autotool.patch 1.9 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur librpcsecgss-0.19.orig/aclocal.m4 librpcsecgss-0.19/aclocal.m4
  6. --- librpcsecgss-0.19.orig/aclocal.m4 2009-07-29 20:49:13.000000000 +0200
  7. +++ librpcsecgss-0.19/aclocal.m4 2011-02-17 18:22:24.683563105 +0100
  8. @@ -1,4 +1,4 @@
  9. -# generated automatically by aclocal 1.11 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13. @@ -13,108 +13,194 @@
  14. m4_ifndef([AC_AUTOCONF_VERSION],
  15. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  16. -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  17. -[m4_warning([this file was generated for autoconf 2.63.
  18. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  19. +[m4_warning([this file was generated for autoconf 2.65.
  20. You have another version of autoconf. It may work, but is not guaranteed to.
  21. If you have problems, you may need to regenerate the build system entirely.
  22. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  23. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  24. +#
  25. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  26. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  27. +# Written by Gordon Matzigkeit, 1996
  28. +#
  29. +# This file is free software; the Free Software Foundation gives
  30. +# unlimited permission to copy and/or distribute it, with or without
  31. +# modifications, as long as this notice is preserved.
  32. +
  33. +m4_define([_LT_COPYING], [dnl
  34. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  35. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  36. +# Written by Gordon Matzigkeit, 1996
  37. +#
  38. +# This file is part of GNU Libtool.
  39. +#
  40. +# GNU Libtool is free software; you can redistribute it and/or
  41. +# modify it under the terms of the GNU General Public License as
  42. +# published by the Free Software Foundation; either version 2 of
  43. +# the License, or (at your option) any later version.
  44. +#
  45. +# As a special exception to the GNU General Public License,
  46. +# if you distribute this file as part of a program or library that
  47. +# is built using GNU Libtool, you may include this file under the
  48. +# same distribution terms that you use for the rest of that program.
  49. +#
  50. +# GNU Libtool is distributed in the hope that it will be useful,
  51. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  52. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  53. +# GNU General Public License for more details.
  54. +#
  55. +# You should have received a copy of the GNU General Public License
  56. +# along with GNU Libtool; see the file COPYING. If not, a copy
  57. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  58. +# obtained by writing to the Free Software Foundation, Inc.,
  59. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  60. +])
  61. -# serial 52 AC_PROG_LIBTOOL
  62. +# serial 56 LT_INIT
  63. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  64. -# -----------------------------------------------------------
  65. -# If this macro is not defined by Autoconf, define it here.
  66. -m4_ifdef([AC_PROVIDE_IFELSE],
  67. - [],
  68. - [m4_define([AC_PROVIDE_IFELSE],
  69. - [m4_ifdef([AC_PROVIDE_$1],
  70. - [$2], [$3])])])
  71. +# LT_PREREQ(VERSION)
  72. +# ------------------
  73. +# Complain and exit if this libtool version is less that VERSION.
  74. +m4_defun([LT_PREREQ],
  75. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  76. + [m4_default([$3],
  77. + [m4_fatal([Libtool version $1 or higher is required],
  78. + 63)])],
  79. + [$2])])
  80. -# AC_PROG_LIBTOOL
  81. -# ---------------
  82. -AC_DEFUN([AC_PROG_LIBTOOL],
  83. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  84. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  85. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  86. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  87. - [AC_LIBTOOL_CXX],
  88. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  89. - ])])
  90. -dnl And a similar setup for Fortran 77 support
  91. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  92. - [AC_LIBTOOL_F77],
  93. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  94. -])])
  95. -
  96. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  97. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  98. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  99. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  100. - [AC_LIBTOOL_GCJ],
  101. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  102. - [AC_LIBTOOL_GCJ],
  103. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  104. - [AC_LIBTOOL_GCJ],
  105. - [ifdef([AC_PROG_GCJ],
  106. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  107. - ifdef([A][M_PROG_GCJ],
  108. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  109. - ifdef([LT_AC_PROG_GCJ],
  110. - [define([LT_AC_PROG_GCJ],
  111. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  112. -])])# AC_PROG_LIBTOOL
  113. +# _LT_CHECK_BUILDDIR
  114. +# ------------------
  115. +# Complain if the absolute build directory name contains unusual characters
  116. +m4_defun([_LT_CHECK_BUILDDIR],
  117. +[case `pwd` in
  118. + *\ * | *\ *)
  119. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  120. +esac
  121. +])
  122. -# _AC_PROG_LIBTOOL
  123. -# ----------------
  124. -AC_DEFUN([_AC_PROG_LIBTOOL],
  125. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  126. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  127. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  128. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  129. +# LT_INIT([OPTIONS])
  130. +# ------------------
  131. +AC_DEFUN([LT_INIT],
  132. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  133. +AC_BEFORE([$0], [LT_LANG])dnl
  134. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  135. +AC_BEFORE([$0], [LTDL_INIT])dnl
  136. +m4_require([_LT_CHECK_BUILDDIR])dnl
  137. +
  138. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  139. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  140. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  141. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  142. +dnl unless we require an AC_DEFUNed macro:
  143. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  144. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  145. +AC_REQUIRE([LTVERSION_VERSION])dnl
  146. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  147. +m4_require([_LT_PROG_LTMAIN])dnl
  148. +
  149. +dnl Parse OPTIONS
  150. +_LT_SET_OPTIONS([$0], [$1])
  151. # This can be used to rebuild libtool when needed
  152. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  153. +LIBTOOL_DEPS="$ltmain"
  154. # Always use our own libtool.
  155. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  156. AC_SUBST(LIBTOOL)dnl
  157. -# Prevent multiple expansion
  158. -define([AC_PROG_LIBTOOL], [])
  159. -])# _AC_PROG_LIBTOOL
  160. +_LT_SETUP
  161. +# Only expand once:
  162. +m4_define([LT_INIT])
  163. +])# LT_INIT
  164. +
  165. +# Old names:
  166. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  167. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  168. +dnl aclocal-1.4 backwards compatibility:
  169. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  170. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  171. -# AC_LIBTOOL_SETUP
  172. -# ----------------
  173. -AC_DEFUN([AC_LIBTOOL_SETUP],
  174. -[AC_PREREQ(2.50)dnl
  175. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  176. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  177. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  178. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  179. +
  180. +# _LT_CC_BASENAME(CC)
  181. +# -------------------
  182. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  183. +m4_defun([_LT_CC_BASENAME],
  184. +[for cc_temp in $1""; do
  185. + case $cc_temp in
  186. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  187. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  188. + \-*) ;;
  189. + *) break;;
  190. + esac
  191. +done
  192. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  193. +])
  194. +
  195. +
  196. +# _LT_FILEUTILS_DEFAULTS
  197. +# ----------------------
  198. +# It is okay to use these file commands and assume they have been set
  199. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  200. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  201. +[: ${CP="cp -f"}
  202. +: ${MV="mv -f"}
  203. +: ${RM="rm -f"}
  204. +])# _LT_FILEUTILS_DEFAULTS
  205. +
  206. +
  207. +# _LT_SETUP
  208. +# ---------
  209. +m4_defun([_LT_SETUP],
  210. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  211. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  212. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  213. +_LT_DECL([], [host], [0])dnl
  214. +_LT_DECL([], [host_os], [0])dnl
  215. +dnl
  216. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  217. +_LT_DECL([], [build], [0])dnl
  218. +_LT_DECL([], [build_os], [0])dnl
  219. +dnl
  220. AC_REQUIRE([AC_PROG_CC])dnl
  221. -AC_REQUIRE([AC_PROG_LD])dnl
  222. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  223. -AC_REQUIRE([AC_PROG_NM])dnl
  224. -
  225. +AC_REQUIRE([LT_PATH_LD])dnl
  226. +AC_REQUIRE([LT_PATH_NM])dnl
  227. +dnl
  228. AC_REQUIRE([AC_PROG_LN_S])dnl
  229. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  230. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  231. -AC_REQUIRE([AC_OBJEXT])dnl
  232. -AC_REQUIRE([AC_EXEEXT])dnl
  233. +test -z "$LN_S" && LN_S="ln -s"
  234. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  235. +dnl
  236. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  237. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  238. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  239. dnl
  240. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  241. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  242. -AC_LIBTOOL_OBJDIR
  243. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  244. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  245. +m4_require([_LT_CMD_RELOAD])dnl
  246. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  247. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  248. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  249. +
  250. +_LT_CONFIG_LIBTOOL_INIT([
  251. +# See if we are running on zsh, and set the options which allow our
  252. +# commands through without removal of \ escapes INIT.
  253. +if test -n "\${ZSH_VERSION+set}" ; then
  254. + setopt NO_GLOB_SUBST
  255. +fi
  256. +])
  257. +if test -n "${ZSH_VERSION+set}" ; then
  258. + setopt NO_GLOB_SUBST
  259. +fi
  260. +
  261. +_LT_CHECK_OBJDIR
  262. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  263. -_LT_AC_PROG_ECHO_BACKSLASH
  264. +m4_require([_LT_TAG_COMPILER])dnl
  265. +_LT_PROG_ECHO_BACKSLASH
  266. case $host_os in
  267. aix3*)
  268. @@ -130,116 +216,653 @@
  269. # Sed substitution that helps us do robust quoting. It backslashifies
  270. # metacharacters that are still active within double-quoted strings.
  271. -Xsed='sed -e 1s/^X//'
  272. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  273. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  274. # Same as above, but do not quote variable references.
  275. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  276. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  277. # Sed substitution to delay expansion of an escaped shell variable in a
  278. # double_quote_subst'ed string.
  279. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  280. +# Sed substitution to delay expansion of an escaped single quote.
  281. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  282. +
  283. # Sed substitution to avoid accidental globbing in evaled expressions
  284. no_glob_subst='s/\*/\\\*/g'
  285. -# Constants:
  286. -rm="rm -f"
  287. -
  288. # Global variables:
  289. -default_ofile=libtool
  290. +ofile=libtool
  291. can_build_shared=yes
  292. # All known linkers require a `.a' archive for static linking (except MSVC,
  293. # which needs '.lib').
  294. libext=a
  295. -ltmain="$ac_aux_dir/ltmain.sh"
  296. -ofile="$default_ofile"
  297. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  298. -AC_CHECK_TOOL(AR, ar, false)
  299. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  300. -AC_CHECK_TOOL(STRIP, strip, :)
  301. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. old_CC="$CC"
  303. old_CFLAGS="$CFLAGS"
  304. # Set sane defaults for various variables
  305. -test -z "$AR" && AR=ar
  306. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  307. -test -z "$AS" && AS=as
  308. test -z "$CC" && CC=cc
  309. test -z "$LTCC" && LTCC=$CC
  310. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  311. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  312. test -z "$LD" && LD=ld
  313. -test -z "$LN_S" && LN_S="ln -s"
  314. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  315. -test -z "$NM" && NM=nm
  316. -test -z "$SED" && SED=sed
  317. -test -z "$OBJDUMP" && OBJDUMP=objdump
  318. -test -z "$RANLIB" && RANLIB=:
  319. -test -z "$STRIP" && STRIP=:
  320. test -z "$ac_objext" && ac_objext=o
  321. -# Determine commands to create old-style static archives.
  322. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  323. -old_postinstall_cmds='chmod 644 $oldlib'
  324. -old_postuninstall_cmds=
  325. -
  326. -if test -n "$RANLIB"; then
  327. - case $host_os in
  328. - openbsd*)
  329. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  330. - ;;
  331. - *)
  332. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  333. - ;;
  334. - esac
  335. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  336. -fi
  337. -
  338. _LT_CC_BASENAME([$compiler])
  339. # Only perform the check for file, if the check method requires it
  340. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  341. case $deplibs_check_method in
  342. file_magic*)
  343. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  344. - AC_PATH_MAGIC
  345. + _LT_PATH_MAGIC
  346. fi
  347. ;;
  348. esac
  349. -_LT_REQUIRED_DARWIN_CHECKS
  350. +# Use C for the default configuration in the libtool script
  351. +LT_SUPPORTED_TAG([CC])
  352. +_LT_LANG_C_CONFIG
  353. +_LT_LANG_DEFAULT_CONFIG
  354. +_LT_CONFIG_COMMANDS
  355. +])# _LT_SETUP
  356. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  357. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  358. -enable_win32_dll=yes, enable_win32_dll=no)
  359. -
  360. -AC_ARG_ENABLE([libtool-lock],
  361. - [AC_HELP_STRING([--disable-libtool-lock],
  362. - [avoid locking (might break parallel builds)])])
  363. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  364. -AC_ARG_WITH([pic],
  365. - [AC_HELP_STRING([--with-pic],
  366. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  367. - [pic_mode="$withval"],
  368. - [pic_mode=default])
  369. -test -z "$pic_mode" && pic_mode=default
  370. +# _LT_PROG_LTMAIN
  371. +# ---------------
  372. +# Note that this code is called both from `configure', and `config.status'
  373. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  374. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  375. +# so we pass a copy along to make sure it has a sensible value anyway.
  376. +m4_defun([_LT_PROG_LTMAIN],
  377. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  378. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  379. +ltmain="$ac_aux_dir/ltmain.sh"
  380. +])# _LT_PROG_LTMAIN
  381. -# Use C for the default configuration in the libtool script
  382. -tagname=
  383. -AC_LIBTOOL_LANG_C_CONFIG
  384. -_LT_AC_TAGCONFIG
  385. -])# AC_LIBTOOL_SETUP
  386. -# _LT_AC_SYS_COMPILER
  387. +# So that we can recreate a full libtool script including additional
  388. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  389. +# in macros and then make a single call at the end using the `libtool'
  390. +# label.
  391. +
  392. +
  393. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  394. +# ----------------------------------------
  395. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  396. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  397. +[m4_ifval([$1],
  398. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  399. + [$1
  400. +])])])
  401. +
  402. +# Initialize.
  403. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  404. +
  405. +
  406. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  407. +# ------------------------------
  408. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  409. +m4_define([_LT_CONFIG_LIBTOOL],
  410. +[m4_ifval([$1],
  411. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  412. + [$1
  413. +])])])
  414. +
  415. +# Initialize.
  416. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  417. +
  418. +
  419. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  420. +# -----------------------------------------------------
  421. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  422. +[_LT_CONFIG_LIBTOOL([$1])
  423. +_LT_CONFIG_LIBTOOL_INIT([$2])
  424. +])
  425. +
  426. +
  427. +# _LT_FORMAT_COMMENT([COMMENT])
  428. +# -----------------------------
  429. +# Add leading comment marks to the start of each line, and a trailing
  430. +# full-stop to the whole comment if one is not present already.
  431. +m4_define([_LT_FORMAT_COMMENT],
  432. +[m4_ifval([$1], [
  433. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  434. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  435. +)])
  436. +
  437. +
  438. +
  439. +
  440. +
  441. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  442. +# -------------------------------------------------------------------
  443. +# CONFIGNAME is the name given to the value in the libtool script.
  444. +# VARNAME is the (base) name used in the configure script.
  445. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  446. +# VARNAME. Any other value will be used directly.
  447. +m4_define([_LT_DECL],
  448. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  449. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  450. + [m4_ifval([$1], [$1], [$2])])
  451. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  452. + m4_ifval([$4],
  453. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  454. + lt_dict_add_subkey([lt_decl_dict], [$2],
  455. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  456. +])
  457. +
  458. +
  459. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  460. +# --------------------------------------------------------
  461. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  462. +
  463. +
  464. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  465. +# ------------------------------------------------
  466. +m4_define([lt_decl_tag_varnames],
  467. +[_lt_decl_filter([tagged?], [yes], $@)])
  468. +
  469. +
  470. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  471. +# ---------------------------------------------------------
  472. +m4_define([_lt_decl_filter],
  473. +[m4_case([$#],
  474. + [0], [m4_fatal([$0: too few arguments: $#])],
  475. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  476. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  477. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  478. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  479. +])
  480. +
  481. +
  482. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  483. +# --------------------------------------------------
  484. +m4_define([lt_decl_quote_varnames],
  485. +[_lt_decl_filter([value], [1], $@)])
  486. +
  487. +
  488. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  489. +# ---------------------------------------------------
  490. +m4_define([lt_decl_dquote_varnames],
  491. +[_lt_decl_filter([value], [2], $@)])
  492. +
  493. +
  494. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  495. +# ---------------------------------------------------
  496. +m4_define([lt_decl_varnames_tagged],
  497. +[m4_assert([$# <= 2])dnl
  498. +_$0(m4_quote(m4_default([$1], [[, ]])),
  499. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  500. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  501. +m4_define([_lt_decl_varnames_tagged],
  502. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  503. +
  504. +
  505. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  506. +# ------------------------------------------------
  507. +m4_define([lt_decl_all_varnames],
  508. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  509. + m4_if([$2], [],
  510. + m4_quote(lt_decl_varnames),
  511. + m4_quote(m4_shift($@))))[]dnl
  512. +])
  513. +m4_define([_lt_decl_all_varnames],
  514. +[lt_join($@, lt_decl_varnames_tagged([$1],
  515. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  516. +])
  517. +
  518. +
  519. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  520. +# ------------------------------------
  521. +# Quote a variable value, and forward it to `config.status' so that its
  522. +# declaration there will have the same value as in `configure'. VARNAME
  523. +# must have a single quote delimited value for this to work.
  524. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  525. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  526. +
  527. +
  528. +# _LT_CONFIG_STATUS_DECLARATIONS
  529. +# ------------------------------
  530. +# We delimit libtool config variables with single quotes, so when
  531. +# we write them to config.status, we have to be sure to quote all
  532. +# embedded single quotes properly. In configure, this macro expands
  533. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  534. +#
  535. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  536. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  537. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  538. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  539. +
  540. +
  541. +# _LT_LIBTOOL_TAGS
  542. +# ----------------
  543. +# Output comment and list of tags supported by the script
  544. +m4_defun([_LT_LIBTOOL_TAGS],
  545. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  546. +available_tags="_LT_TAGS"dnl
  547. +])
  548. +
  549. +
  550. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  551. +# -----------------------------------
  552. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  553. +# expand to a commented shell variable setting:
  554. +#
  555. +# # Some comment about what VAR is for.
  556. +# visible_name=$lt_internal_name
  557. +m4_define([_LT_LIBTOOL_DECLARE],
  558. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  559. + [description])))[]dnl
  560. +m4_pushdef([_libtool_name],
  561. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  562. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  563. + [0], [_libtool_name=[$]$1],
  564. + [1], [_libtool_name=$lt_[]$1],
  565. + [2], [_libtool_name=$lt_[]$1],
  566. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  567. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  568. +])
  569. +
  570. +
  571. +# _LT_LIBTOOL_CONFIG_VARS
  572. +# -----------------------
  573. +# Produce commented declarations of non-tagged libtool config variables
  574. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  575. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  576. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  577. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  578. +[m4_foreach([_lt_var],
  579. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  580. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  581. +
  582. +
  583. +# _LT_LIBTOOL_TAG_VARS(TAG)
  584. +# -------------------------
  585. +m4_define([_LT_LIBTOOL_TAG_VARS],
  586. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  587. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  588. +
  589. +
  590. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  591. +# ------------------------------
  592. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  593. +
  594. +
  595. +# _LT_CONFIG_COMMANDS
  596. # -------------------
  597. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  598. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  599. +# variables for single and double quote escaping we saved from calls
  600. +# to _LT_DECL, we can put quote escaped variables declarations
  601. +# into `config.status', and then the shell code to quote escape them in
  602. +# for loops in `config.status'. Finally, any additional code accumulated
  603. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  604. +m4_defun([_LT_CONFIG_COMMANDS],
  605. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  606. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  607. + dnl instead of duplicating it all over again into config.status,
  608. + dnl then we will have config.status run $CONFIG_LT later, so it
  609. + dnl needs to know what name is stored there:
  610. + [AC_CONFIG_COMMANDS([libtool],
  611. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  612. + dnl If the libtool generation code is destined for config.status,
  613. + dnl expand the accumulated commands and init code now:
  614. + [AC_CONFIG_COMMANDS([libtool],
  615. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  616. +])#_LT_CONFIG_COMMANDS
  617. +
  618. +
  619. +# Initialize.
  620. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  621. +[
  622. +
  623. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  624. +# if CDPATH is set.
  625. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  626. +
  627. +sed_quote_subst='$sed_quote_subst'
  628. +double_quote_subst='$double_quote_subst'
  629. +delay_variable_subst='$delay_variable_subst'
  630. +_LT_CONFIG_STATUS_DECLARATIONS
  631. +LTCC='$LTCC'
  632. +LTCFLAGS='$LTCFLAGS'
  633. +compiler='$compiler_DEFAULT'
  634. +
  635. +# Quote evaled strings.
  636. +for var in lt_decl_all_varnames([[ \
  637. +]], lt_decl_quote_varnames); do
  638. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  639. + *[[\\\\\\\`\\"\\\$]]*)
  640. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  641. + ;;
  642. + *)
  643. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  644. + ;;
  645. + esac
  646. +done
  647. +
  648. +# Double-quote double-evaled strings.
  649. +for var in lt_decl_all_varnames([[ \
  650. +]], lt_decl_dquote_varnames); do
  651. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  652. + *[[\\\\\\\`\\"\\\$]]*)
  653. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  654. + ;;
  655. + *)
  656. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  657. + ;;
  658. + esac
  659. +done
  660. +
  661. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  662. +case \$lt_ECHO in
  663. +*'\\\[$]0 --fallback-echo"')dnl "
  664. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  665. + ;;
  666. +esac
  667. +
  668. +_LT_OUTPUT_LIBTOOL_INIT
  669. +])
  670. +
  671. +
  672. +# LT_OUTPUT
  673. +# ---------
  674. +# This macro allows early generation of the libtool script (before
  675. +# AC_OUTPUT is called), incase it is used in configure for compilation
  676. +# tests.
  677. +AC_DEFUN([LT_OUTPUT],
  678. +[: ${CONFIG_LT=./config.lt}
  679. +AC_MSG_NOTICE([creating $CONFIG_LT])
  680. +cat >"$CONFIG_LT" <<_LTEOF
  681. +#! $SHELL
  682. +# Generated by $as_me.
  683. +# Run this file to recreate a libtool stub with the current configuration.
  684. +
  685. +lt_cl_silent=false
  686. +SHELL=\${CONFIG_SHELL-$SHELL}
  687. +_LTEOF
  688. +
  689. +cat >>"$CONFIG_LT" <<\_LTEOF
  690. +AS_SHELL_SANITIZE
  691. +_AS_PREPARE
  692. +
  693. +exec AS_MESSAGE_FD>&1
  694. +exec AS_MESSAGE_LOG_FD>>config.log
  695. +{
  696. + echo
  697. + AS_BOX([Running $as_me.])
  698. +} >&AS_MESSAGE_LOG_FD
  699. +
  700. +lt_cl_help="\
  701. +\`$as_me' creates a local libtool stub from the current configuration,
  702. +for use in further configure time tests before the real libtool is
  703. +generated.
  704. +
  705. +Usage: $[0] [[OPTIONS]]
  706. +
  707. + -h, --help print this help, then exit
  708. + -V, --version print version number, then exit
  709. + -q, --quiet do not print progress messages
  710. + -d, --debug don't remove temporary files
  711. +
  712. +Report bugs to <bug-libtool@gnu.org>."
  713. +
  714. +lt_cl_version="\
  715. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  716. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  717. +configured by $[0], generated by m4_PACKAGE_STRING.
  718. +
  719. +Copyright (C) 2008 Free Software Foundation, Inc.
  720. +This config.lt script is free software; the Free Software Foundation
  721. +gives unlimited permision to copy, distribute and modify it."
  722. +
  723. +while test $[#] != 0
  724. +do
  725. + case $[1] in
  726. + --version | --v* | -V )
  727. + echo "$lt_cl_version"; exit 0 ;;
  728. + --help | --h* | -h )
  729. + echo "$lt_cl_help"; exit 0 ;;
  730. + --debug | --d* | -d )
  731. + debug=: ;;
  732. + --quiet | --q* | --silent | --s* | -q )
  733. + lt_cl_silent=: ;;
  734. +
  735. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  736. +Try \`$[0] --help' for more information.]) ;;
  737. +
  738. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  739. +Try \`$[0] --help' for more information.]) ;;
  740. + esac
  741. + shift
  742. +done
  743. +
  744. +if $lt_cl_silent; then
  745. + exec AS_MESSAGE_FD>/dev/null
  746. +fi
  747. +_LTEOF
  748. +
  749. +cat >>"$CONFIG_LT" <<_LTEOF
  750. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  751. +_LTEOF
  752. +
  753. +cat >>"$CONFIG_LT" <<\_LTEOF
  754. +AC_MSG_NOTICE([creating $ofile])
  755. +_LT_OUTPUT_LIBTOOL_COMMANDS
  756. +AS_EXIT(0)
  757. +_LTEOF
  758. +chmod +x "$CONFIG_LT"
  759. +
  760. +# configure is writing to config.log, but config.lt does its own redirection,
  761. +# appending to config.log, which fails on DOS, as config.log is still kept
  762. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  763. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  764. +if test "$no_create" != yes; then
  765. + lt_cl_success=:
  766. + test "$silent" = yes &&
  767. + lt_config_lt_args="$lt_config_lt_args --quiet"
  768. + exec AS_MESSAGE_LOG_FD>/dev/null
  769. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  770. + exec AS_MESSAGE_LOG_FD>>config.log
  771. + $lt_cl_success || AS_EXIT(1)
  772. +fi
  773. +])# LT_OUTPUT
  774. +
  775. +
  776. +# _LT_CONFIG(TAG)
  777. +# ---------------
  778. +# If TAG is the built-in tag, create an initial libtool script with a
  779. +# default configuration from the untagged config vars. Otherwise add code
  780. +# to config.status for appending the configuration named by TAG from the
  781. +# matching tagged config vars.
  782. +m4_defun([_LT_CONFIG],
  783. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  784. +_LT_CONFIG_SAVE_COMMANDS([
  785. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  786. + m4_if(_LT_TAG, [C], [
  787. + # See if we are running on zsh, and set the options which allow our
  788. + # commands through without removal of \ escapes.
  789. + if test -n "${ZSH_VERSION+set}" ; then
  790. + setopt NO_GLOB_SUBST
  791. + fi
  792. +
  793. + cfgfile="${ofile}T"
  794. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  795. + $RM "$cfgfile"
  796. +
  797. + cat <<_LT_EOF >> "$cfgfile"
  798. +#! $SHELL
  799. +
  800. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  801. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  802. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  803. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  804. +#
  805. +_LT_COPYING
  806. +_LT_LIBTOOL_TAGS
  807. +
  808. +# ### BEGIN LIBTOOL CONFIG
  809. +_LT_LIBTOOL_CONFIG_VARS
  810. +_LT_LIBTOOL_TAG_VARS
  811. +# ### END LIBTOOL CONFIG
  812. +
  813. +_LT_EOF
  814. +
  815. + case $host_os in
  816. + aix3*)
  817. + cat <<\_LT_EOF >> "$cfgfile"
  818. +# AIX sometimes has problems with the GCC collect2 program. For some
  819. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  820. +# vanish in a puff of smoke.
  821. +if test "X${COLLECT_NAMES+set}" != Xset; then
  822. + COLLECT_NAMES=
  823. + export COLLECT_NAMES
  824. +fi
  825. +_LT_EOF
  826. + ;;
  827. + esac
  828. +
  829. + _LT_PROG_LTMAIN
  830. +
  831. + # We use sed instead of cat because bash on DJGPP gets confused if
  832. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  833. + # text mode, it properly converts lines to CR/LF. This bash problem
  834. + # is reportedly fixed, but why not run on old versions too?
  835. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  836. + || (rm -f "$cfgfile"; exit 1)
  837. +
  838. + _LT_PROG_XSI_SHELLFNS
  839. +
  840. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  841. + || (rm -f "$cfgfile"; exit 1)
  842. +
  843. + mv -f "$cfgfile" "$ofile" ||
  844. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  845. + chmod +x "$ofile"
  846. +],
  847. +[cat <<_LT_EOF >> "$ofile"
  848. +
  849. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  850. +dnl in a comment (ie after a #).
  851. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  852. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  853. +# ### END LIBTOOL TAG CONFIG: $1
  854. +_LT_EOF
  855. +])dnl /m4_if
  856. +],
  857. +[m4_if([$1], [], [
  858. + PACKAGE='$PACKAGE'
  859. + VERSION='$VERSION'
  860. + TIMESTAMP='$TIMESTAMP'
  861. + RM='$RM'
  862. + ofile='$ofile'], [])
  863. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  864. +])# _LT_CONFIG
  865. +
  866. +
  867. +# LT_SUPPORTED_TAG(TAG)
  868. +# ---------------------
  869. +# Trace this macro to discover what tags are supported by the libtool
  870. +# --tag option, using:
  871. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  872. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  873. +
  874. +
  875. +# C support is built-in for now
  876. +m4_define([_LT_LANG_C_enabled], [])
  877. +m4_define([_LT_TAGS], [])
  878. +
  879. +
  880. +# LT_LANG(LANG)
  881. +# -------------
  882. +# Enable libtool support for the given language if not already enabled.
  883. +AC_DEFUN([LT_LANG],
  884. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  885. +m4_case([$1],
  886. + [C], [_LT_LANG(C)],
  887. + [C++], [_LT_LANG(CXX)],
  888. + [Java], [_LT_LANG(GCJ)],
  889. + [Fortran 77], [_LT_LANG(F77)],
  890. + [Fortran], [_LT_LANG(FC)],
  891. + [Windows Resource], [_LT_LANG(RC)],
  892. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  893. + [_LT_LANG($1)],
  894. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  895. +])# LT_LANG
  896. +
  897. +
  898. +# _LT_LANG(LANGNAME)
  899. +# ------------------
  900. +m4_defun([_LT_LANG],
  901. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  902. + [LT_SUPPORTED_TAG([$1])dnl
  903. + m4_append([_LT_TAGS], [$1 ])dnl
  904. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  905. + _LT_LANG_$1_CONFIG($1)])dnl
  906. +])# _LT_LANG
  907. +
  908. +
  909. +# _LT_LANG_DEFAULT_CONFIG
  910. +# -----------------------
  911. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  912. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  913. + [LT_LANG(CXX)],
  914. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  915. +
  916. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  917. + [LT_LANG(F77)],
  918. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  919. +
  920. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  921. + [LT_LANG(FC)],
  922. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  923. +
  924. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  925. +dnl pulling things in needlessly.
  926. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  927. + [LT_LANG(GCJ)],
  928. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  929. + [LT_LANG(GCJ)],
  930. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  931. + [LT_LANG(GCJ)],
  932. + [m4_ifdef([AC_PROG_GCJ],
  933. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  934. + m4_ifdef([A][M_PROG_GCJ],
  935. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  936. + m4_ifdef([LT_PROG_GCJ],
  937. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  938. +
  939. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  940. + [LT_LANG(RC)],
  941. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  942. +])# _LT_LANG_DEFAULT_CONFIG
  943. +
  944. +# Obsolete macros:
  945. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  946. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  947. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  948. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  949. +dnl aclocal-1.4 backwards compatibility:
  950. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  951. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  952. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  953. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  954. +
  955. +
  956. +# _LT_TAG_COMPILER
  957. +# ----------------
  958. +m4_defun([_LT_TAG_COMPILER],
  959. [AC_REQUIRE([AC_PROG_CC])dnl
  960. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  961. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  962. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  963. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  964. +
  965. # If no C compiler was specified, use CC.
  966. LTCC=${LTCC-"$CC"}
  967. @@ -248,36 +871,20 @@
  968. # Allow CC to be a program name with arguments.
  969. compiler=$CC
  970. -])# _LT_AC_SYS_COMPILER
  971. -
  972. -
  973. -# _LT_CC_BASENAME(CC)
  974. -# -------------------
  975. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  976. -AC_DEFUN([_LT_CC_BASENAME],
  977. -[for cc_temp in $1""; do
  978. - case $cc_temp in
  979. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  980. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  981. - \-*) ;;
  982. - *) break;;
  983. - esac
  984. -done
  985. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  986. -])
  987. +])# _LT_TAG_COMPILER
  988. # _LT_COMPILER_BOILERPLATE
  989. # ------------------------
  990. # Check for compiler boilerplate output or warnings with
  991. # the simple compiler test code.
  992. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  993. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  994. +m4_defun([_LT_COMPILER_BOILERPLATE],
  995. +[m4_require([_LT_DECL_SED])dnl
  996. ac_outfile=conftest.$ac_objext
  997. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  998. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  999. _lt_compiler_boilerplate=`cat conftest.err`
  1000. -$rm conftest*
  1001. +$RM conftest*
  1002. ])# _LT_COMPILER_BOILERPLATE
  1003. @@ -285,39 +892,57 @@
  1004. # ----------------------
  1005. # Check for linker boilerplate output or warnings with
  1006. # the simple link test code.
  1007. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1008. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1009. +m4_defun([_LT_LINKER_BOILERPLATE],
  1010. +[m4_require([_LT_DECL_SED])dnl
  1011. ac_outfile=conftest.$ac_objext
  1012. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1013. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1014. _lt_linker_boilerplate=`cat conftest.err`
  1015. -$rm -r conftest*
  1016. +$RM -r conftest*
  1017. ])# _LT_LINKER_BOILERPLATE
  1018. # _LT_REQUIRED_DARWIN_CHECKS
  1019. -# --------------------------
  1020. -# Check for some things on darwin
  1021. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1022. +# -------------------------
  1023. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1024. case $host_os in
  1025. rhapsody* | darwin*)
  1026. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1027. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1028. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1029. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1030. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1031. + _LT_DECL([], [DSYMUTIL], [1],
  1032. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1033. + _LT_DECL([], [NMEDIT], [1],
  1034. + [Tool to change global to local symbols on Mac OS X])
  1035. + _LT_DECL([], [LIPO], [1],
  1036. + [Tool to manipulate fat objects and archives on Mac OS X])
  1037. + _LT_DECL([], [OTOOL], [1],
  1038. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1039. + _LT_DECL([], [OTOOL64], [1],
  1040. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1041. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1042. [lt_cv_apple_cc_single_mod=no
  1043. if test -z "${LT_MULTI_MODULE}"; then
  1044. - # By default we will add the -single_module flag. You can override
  1045. - # by either setting the environment variable LT_MULTI_MODULE
  1046. - # non-empty at configure time, or by adding -multi_module to the
  1047. - # link flags.
  1048. - echo "int foo(void){return 1;}" > conftest.c
  1049. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1050. - -dynamiclib ${wl}-single_module conftest.c
  1051. - if test -f libconftest.dylib; then
  1052. - lt_cv_apple_cc_single_mod=yes
  1053. - rm -rf libconftest.dylib*
  1054. - fi
  1055. - rm conftest.c
  1056. + # By default we will add the -single_module flag. You can override
  1057. + # by either setting the environment variable LT_MULTI_MODULE
  1058. + # non-empty at configure time, or by adding -multi_module to the
  1059. + # link flags.
  1060. + rm -rf libconftest.dylib*
  1061. + echo "int foo(void){return 1;}" > conftest.c
  1062. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1063. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1064. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1065. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1066. + _lt_result=$?
  1067. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1068. + lt_cv_apple_cc_single_mod=yes
  1069. + else
  1070. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1071. + fi
  1072. + rm -rf libconftest.dylib*
  1073. + rm -f conftest.*
  1074. fi])
  1075. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1076. [lt_cv_ld_exported_symbols_list],
  1077. @@ -326,26 +951,26 @@
  1078. echo "_main" > conftest.sym
  1079. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1080. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1081. - [lt_cv_ld_exported_symbols_list=yes],
  1082. - [lt_cv_ld_exported_symbols_list=no])
  1083. - LDFLAGS="$save_LDFLAGS"
  1084. + [lt_cv_ld_exported_symbols_list=yes],
  1085. + [lt_cv_ld_exported_symbols_list=no])
  1086. + LDFLAGS="$save_LDFLAGS"
  1087. ])
  1088. case $host_os in
  1089. - rhapsody* | darwin1.[[0123]])
  1090. + rhapsody* | darwin1.[[012]])
  1091. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1092. darwin1.*)
  1093. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1094. - darwin*)
  1095. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1096. + darwin*) # darwin 5.x on
  1097. # if running on 10.5 or later, the deployment target defaults
  1098. # to the OS version, if on x86, and 10.4, the deployment
  1099. # target defaults to 10.4. Don't you love it?
  1100. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1101. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1102. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1103. - 10.[[012]]*)
  1104. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1105. - 10.*)
  1106. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1107. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1108. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1109. + 10.[[012]]*)
  1110. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1111. + 10.*)
  1112. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1113. esac
  1114. ;;
  1115. esac
  1116. @@ -355,10 +980,10 @@
  1117. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1118. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1119. else
  1120. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  1121. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1122. fi
  1123. if test "$DSYMUTIL" != ":"; then
  1124. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  1125. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1126. else
  1127. _lt_dsymutil=
  1128. fi
  1129. @@ -366,16 +991,51 @@
  1130. esac
  1131. ])
  1132. -# _LT_AC_SYS_LIBPATH_AIX
  1133. -# ----------------------
  1134. -# Links a minimal program and checks the executable
  1135. -# for the system default hardcoded library path. In most cases,
  1136. +
  1137. +# _LT_DARWIN_LINKER_FEATURES
  1138. +# --------------------------
  1139. +# Checks for linker and compiler features on darwin
  1140. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1141. +[
  1142. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1143. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1144. + _LT_TAGVAR(hardcode_direct, $1)=no
  1145. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1146. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1147. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1148. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1149. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1150. + case $cc_basename in
  1151. + ifort*) _lt_dar_can_shared=yes ;;
  1152. + *) _lt_dar_can_shared=$GCC ;;
  1153. + esac
  1154. + if test "$_lt_dar_can_shared" = "yes"; then
  1155. + output_verbose_link_cmd=echo
  1156. + _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}"
  1157. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1158. + _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}"
  1159. + _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}"
  1160. + m4_if([$1], [CXX],
  1161. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1162. + _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}"
  1163. + _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}"
  1164. + fi
  1165. +],[])
  1166. + else
  1167. + _LT_TAGVAR(ld_shlibs, $1)=no
  1168. + fi
  1169. +])
  1170. +
  1171. +# _LT_SYS_MODULE_PATH_AIX
  1172. +# -----------------------
  1173. +# Links a minimal program and checks the executable
  1174. +# for the system default hardcoded library path. In most cases,
  1175. # this is /usr/lib:/lib, but when the MPI compilers are used
  1176. # the location of the communication and MPI libs are included too.
  1177. # If we don't find anything, use the default library path according
  1178. # to the aix ld manual.
  1179. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1180. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1181. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1182. +[m4_require([_LT_DECL_SED])dnl
  1183. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1184. lt_aix_libpath_sed='
  1185. /Import File Strings/,/^$/ {
  1186. @@ -390,45 +1050,45 @@
  1187. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1188. fi],[])
  1189. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1190. -])# _LT_AC_SYS_LIBPATH_AIX
  1191. +])# _LT_SYS_MODULE_PATH_AIX
  1192. -# _LT_AC_SHELL_INIT(ARG)
  1193. -# ----------------------
  1194. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1195. +# _LT_SHELL_INIT(ARG)
  1196. +# -------------------
  1197. +m4_define([_LT_SHELL_INIT],
  1198. [ifdef([AC_DIVERSION_NOTICE],
  1199. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1200. [AC_DIVERT_PUSH(NOTICE)])
  1201. $1
  1202. AC_DIVERT_POP
  1203. -])# _LT_AC_SHELL_INIT
  1204. +])# _LT_SHELL_INIT
  1205. -# _LT_AC_PROG_ECHO_BACKSLASH
  1206. -# --------------------------
  1207. +# _LT_PROG_ECHO_BACKSLASH
  1208. +# -----------------------
  1209. # Add some code to the start of the generated configure script which
  1210. # will find an echo command which doesn't interpret backslashes.
  1211. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1212. -[_LT_AC_SHELL_INIT([
  1213. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1214. +[_LT_SHELL_INIT([
  1215. # Check that we are running under the correct shell.
  1216. SHELL=${CONFIG_SHELL-/bin/sh}
  1217. -case X$ECHO in
  1218. +case X$lt_ECHO in
  1219. X*--fallback-echo)
  1220. # Remove one level of quotation (which was required for Make).
  1221. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1222. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1223. ;;
  1224. esac
  1225. -echo=${ECHO-echo}
  1226. +ECHO=${lt_ECHO-echo}
  1227. if test "X[$]1" = X--no-reexec; then
  1228. # Discard the --no-reexec flag, and continue.
  1229. shift
  1230. elif test "X[$]1" = X--fallback-echo; then
  1231. # Avoid inline document here, it may be left over
  1232. :
  1233. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1234. - # Yippee, $echo works!
  1235. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1236. + # Yippee, $ECHO works!
  1237. :
  1238. else
  1239. # Restart under the correct shell.
  1240. @@ -438,9 +1098,9 @@
  1241. if test "X[$]1" = X--fallback-echo; then
  1242. # used as fallback echo
  1243. shift
  1244. - cat <<EOF
  1245. + cat <<_LT_EOF
  1246. [$]*
  1247. -EOF
  1248. +_LT_EOF
  1249. exit 0
  1250. fi
  1251. @@ -448,124 +1108,127 @@
  1252. # if CDPATH is set.
  1253. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1254. -if test -z "$ECHO"; then
  1255. -if test "X${echo_test_string+set}" != Xset; then
  1256. -# find a string as large as possible, as long as the shell can cope with it
  1257. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1258. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1259. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1260. - echo_test_string=`eval $cmd` &&
  1261. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1262. - then
  1263. - break
  1264. - fi
  1265. - done
  1266. -fi
  1267. +if test -z "$lt_ECHO"; then
  1268. + if test "X${echo_test_string+set}" != Xset; then
  1269. + # find a string as large as possible, as long as the shell can cope with it
  1270. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1271. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1272. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1273. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1274. + then
  1275. + break
  1276. + fi
  1277. + done
  1278. + fi
  1279. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1280. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1281. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1282. - :
  1283. -else
  1284. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1285. - # backslashes. This makes it impossible to quote backslashes using
  1286. - # echo "$something" | sed 's/\\/\\\\/g'
  1287. - #
  1288. - # So, first we look for a working echo in the user's PATH.
  1289. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1290. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1291. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1292. + :
  1293. + else
  1294. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1295. + # backslashes. This makes it impossible to quote backslashes using
  1296. + # echo "$something" | sed 's/\\/\\\\/g'
  1297. + #
  1298. + # So, first we look for a working echo in the user's PATH.
  1299. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1300. - for dir in $PATH /usr/ucb; do
  1301. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1302. + for dir in $PATH /usr/ucb; do
  1303. + IFS="$lt_save_ifs"
  1304. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1305. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1306. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1307. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1308. + ECHO="$dir/echo"
  1309. + break
  1310. + fi
  1311. + done
  1312. IFS="$lt_save_ifs"
  1313. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1314. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1315. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1316. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1317. - echo="$dir/echo"
  1318. - break
  1319. - fi
  1320. - done
  1321. - IFS="$lt_save_ifs"
  1322. - if test "X$echo" = Xecho; then
  1323. - # We didn't find a better echo, so look for alternatives.
  1324. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1325. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1326. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1327. - # This shell has a builtin print -r that does the trick.
  1328. - echo='print -r'
  1329. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1330. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1331. - # If we have ksh, try running configure again with it.
  1332. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1333. - export ORIGINAL_CONFIG_SHELL
  1334. - CONFIG_SHELL=/bin/ksh
  1335. - export CONFIG_SHELL
  1336. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1337. - else
  1338. - # Try using printf.
  1339. - echo='printf %s\n'
  1340. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1341. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1342. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1343. - # Cool, printf works
  1344. - :
  1345. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1346. - test "X$echo_testing_string" = 'X\t' &&
  1347. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1348. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1349. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1350. - export CONFIG_SHELL
  1351. - SHELL="$CONFIG_SHELL"
  1352. - export SHELL
  1353. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1354. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1355. - test "X$echo_testing_string" = 'X\t' &&
  1356. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1357. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1358. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1359. + if test "X$ECHO" = Xecho; then
  1360. + # We didn't find a better echo, so look for alternatives.
  1361. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1362. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1363. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1364. + # This shell has a builtin print -r that does the trick.
  1365. + ECHO='print -r'
  1366. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1367. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1368. + # If we have ksh, try running configure again with it.
  1369. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1370. + export ORIGINAL_CONFIG_SHELL
  1371. + CONFIG_SHELL=/bin/ksh
  1372. + export CONFIG_SHELL
  1373. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1374. else
  1375. - # maybe with a smaller string...
  1376. - prev=:
  1377. + # Try using printf.
  1378. + ECHO='printf %s\n'
  1379. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1380. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1381. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1382. + # Cool, printf works
  1383. + :
  1384. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1385. + test "X$echo_testing_string" = 'X\t' &&
  1386. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1387. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1388. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1389. + export CONFIG_SHELL
  1390. + SHELL="$CONFIG_SHELL"
  1391. + export SHELL
  1392. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1393. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1394. + test "X$echo_testing_string" = 'X\t' &&
  1395. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1396. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1397. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1398. + else
  1399. + # maybe with a smaller string...
  1400. + prev=:
  1401. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1402. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1403. - then
  1404. - break
  1405. - fi
  1406. - prev="$cmd"
  1407. - done
  1408. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1409. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1410. + then
  1411. + break
  1412. + fi
  1413. + prev="$cmd"
  1414. + done
  1415. - if test "$prev" != 'sed 50q "[$]0"'; then
  1416. - echo_test_string=`eval $prev`
  1417. - export echo_test_string
  1418. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1419. - else
  1420. - # Oops. We lost completely, so just stick with echo.
  1421. - echo=echo
  1422. - fi
  1423. + if test "$prev" != 'sed 50q "[$]0"'; then
  1424. + echo_test_string=`eval $prev`
  1425. + export echo_test_string
  1426. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1427. + else
  1428. + # Oops. We lost completely, so just stick with echo.
  1429. + ECHO=echo
  1430. + fi
  1431. + fi
  1432. fi
  1433. fi
  1434. fi
  1435. fi
  1436. -fi
  1437. # Copy echo and quote the copy suitably for passing to libtool from
  1438. # the Makefile, instead of quoting the original, which is used later.
  1439. -ECHO=$echo
  1440. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1441. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1442. +lt_ECHO=$ECHO
  1443. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1444. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1445. fi
  1446. -AC_SUBST(ECHO)
  1447. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1448. +AC_SUBST(lt_ECHO)
  1449. +])
  1450. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1451. +_LT_DECL([], [ECHO], [1],
  1452. + [An echo program that does not interpret backslashes])
  1453. +])# _LT_PROG_ECHO_BACKSLASH
  1454. -# _LT_AC_LOCK
  1455. -# -----------
  1456. -AC_DEFUN([_LT_AC_LOCK],
  1457. +# _LT_ENABLE_LOCK
  1458. +# ---------------
  1459. +m4_defun([_LT_ENABLE_LOCK],
  1460. [AC_ARG_ENABLE([libtool-lock],
  1461. - [AC_HELP_STRING([--disable-libtool-lock],
  1462. - [avoid locking (might break parallel builds)])])
  1463. + [AS_HELP_STRING([--disable-libtool-lock],
  1464. + [avoid locking (might break parallel builds)])])
  1465. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1466. # Some flags need to be propagated to the compiler or linker for good
  1467. @@ -576,12 +1239,12 @@
  1468. echo 'int i;' > conftest.$ac_ext
  1469. if AC_TRY_EVAL(ac_compile); then
  1470. case `/usr/bin/file conftest.$ac_objext` in
  1471. - *ELF-32*)
  1472. - HPUX_IA64_MODE="32"
  1473. - ;;
  1474. - *ELF-64*)
  1475. - HPUX_IA64_MODE="64"
  1476. - ;;
  1477. + *ELF-32*)
  1478. + HPUX_IA64_MODE="32"
  1479. + ;;
  1480. + *ELF-64*)
  1481. + HPUX_IA64_MODE="64"
  1482. + ;;
  1483. esac
  1484. fi
  1485. rm -rf conftest*
  1486. @@ -590,80 +1253,79 @@
  1487. # Find out which ABI we are using.
  1488. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1489. if AC_TRY_EVAL(ac_compile); then
  1490. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1491. - case `/usr/bin/file conftest.$ac_objext` in
  1492. - *32-bit*)
  1493. - LD="${LD-ld} -melf32bsmip"
  1494. - ;;
  1495. - *N32*)
  1496. - LD="${LD-ld} -melf32bmipn32"
  1497. - ;;
  1498. - *64-bit*)
  1499. - LD="${LD-ld} -melf64bmip"
  1500. - ;;
  1501. - esac
  1502. - else
  1503. - case `/usr/bin/file conftest.$ac_objext` in
  1504. - *32-bit*)
  1505. - LD="${LD-ld} -32"
  1506. - ;;
  1507. - *N32*)
  1508. - LD="${LD-ld} -n32"
  1509. - ;;
  1510. - *64-bit*)
  1511. - LD="${LD-ld} -64"
  1512. - ;;
  1513. - esac
  1514. - fi
  1515. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1516. + case `/usr/bin/file conftest.$ac_objext` in
  1517. + *32-bit*)
  1518. + LD="${LD-ld} -melf32bsmip"
  1519. + ;;
  1520. + *N32*)
  1521. + LD="${LD-ld} -melf32bmipn32"
  1522. + ;;
  1523. + *64-bit*)
  1524. + LD="${LD-ld} -melf64bmip"
  1525. + ;;
  1526. + esac
  1527. + else
  1528. + case `/usr/bin/file conftest.$ac_objext` in
  1529. + *32-bit*)
  1530. + LD="${LD-ld} -32"
  1531. + ;;
  1532. + *N32*)
  1533. + LD="${LD-ld} -n32"
  1534. + ;;
  1535. + *64-bit*)
  1536. + LD="${LD-ld} -64"
  1537. + ;;
  1538. + esac
  1539. + fi
  1540. fi
  1541. rm -rf conftest*
  1542. ;;
  1543. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1544. -s390*-*linux*|sparc*-*linux*)
  1545. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1546. # Find out which ABI we are using.
  1547. echo 'int i;' > conftest.$ac_ext
  1548. if AC_TRY_EVAL(ac_compile); then
  1549. case `/usr/bin/file conftest.o` in
  1550. - *32-bit*)
  1551. - case $host in
  1552. - x86_64-*kfreebsd*-gnu)
  1553. - LD="${LD-ld} -m elf_i386_fbsd"
  1554. - ;;
  1555. - x86_64-*linux*)
  1556. - LD="${LD-ld} -m elf_i386"
  1557. - ;;
  1558. - ppc64-*linux*|powerpc64-*linux*)
  1559. - LD="${LD-ld} -m elf32ppclinux"
  1560. - ;;
  1561. - s390x-*linux*)
  1562. - LD="${LD-ld} -m elf_s390"
  1563. - ;;
  1564. - sparc64-*linux*)
  1565. - LD="${LD-ld} -m elf32_sparc"
  1566. - ;;
  1567. - esac
  1568. - ;;
  1569. - *64-bit*)
  1570. - libsuff=64
  1571. - case $host in
  1572. - x86_64-*kfreebsd*-gnu)
  1573. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1574. - ;;
  1575. - x86_64-*linux*)
  1576. - LD="${LD-ld} -m elf_x86_64"
  1577. - ;;
  1578. - ppc*-*linux*|powerpc*-*linux*)
  1579. - LD="${LD-ld} -m elf64ppc"
  1580. - ;;
  1581. - s390*-*linux*)
  1582. - LD="${LD-ld} -m elf64_s390"
  1583. - ;;
  1584. - sparc*-*linux*)
  1585. - LD="${LD-ld} -m elf64_sparc"
  1586. - ;;
  1587. - esac
  1588. - ;;
  1589. + *32-bit*)
  1590. + case $host in
  1591. + x86_64-*kfreebsd*-gnu)
  1592. + LD="${LD-ld} -m elf_i386_fbsd"
  1593. + ;;
  1594. + x86_64-*linux*)
  1595. + LD="${LD-ld} -m elf_i386"
  1596. + ;;
  1597. + ppc64-*linux*|powerpc64-*linux*)
  1598. + LD="${LD-ld} -m elf32ppclinux"
  1599. + ;;
  1600. + s390x-*linux*)
  1601. + LD="${LD-ld} -m elf_s390"
  1602. + ;;
  1603. + sparc64-*linux*)
  1604. + LD="${LD-ld} -m elf32_sparc"
  1605. + ;;
  1606. + esac
  1607. + ;;
  1608. + *64-bit*)
  1609. + case $host in
  1610. + x86_64-*kfreebsd*-gnu)
  1611. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1612. + ;;
  1613. + x86_64-*linux*)
  1614. + LD="${LD-ld} -m elf_x86_64"
  1615. + ;;
  1616. + ppc*-*linux*|powerpc*-*linux*)
  1617. + LD="${LD-ld} -m elf64ppc"
  1618. + ;;
  1619. + s390*-*linux*|s390*-*tpf*)
  1620. + LD="${LD-ld} -m elf64_s390"
  1621. + ;;
  1622. + sparc*-*linux*)
  1623. + LD="${LD-ld} -m elf64_sparc"
  1624. + ;;
  1625. + esac
  1626. + ;;
  1627. esac
  1628. fi
  1629. rm -rf conftest*
  1630. @@ -675,7 +1337,7 @@
  1631. CFLAGS="$CFLAGS -belf"
  1632. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1633. [AC_LANG_PUSH(C)
  1634. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1635. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1636. AC_LANG_POP])
  1637. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1638. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1639. @@ -691,7 +1353,7 @@
  1640. case $lt_cv_prog_gnu_ld in
  1641. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1642. *)
  1643. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1644. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1645. LD="${LD-ld} -64"
  1646. fi
  1647. ;;
  1648. @@ -701,30 +1363,63 @@
  1649. fi
  1650. rm -rf conftest*
  1651. ;;
  1652. -
  1653. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1654. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1655. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1656. - AC_CHECK_TOOL(AS, as, false)
  1657. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1658. - ;;
  1659. - ])
  1660. esac
  1661. need_locks="$enable_libtool_lock"
  1662. +])# _LT_ENABLE_LOCK
  1663. +
  1664. +
  1665. +# _LT_CMD_OLD_ARCHIVE
  1666. +# -------------------
  1667. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1668. +[AC_CHECK_TOOL(AR, ar, false)
  1669. +test -z "$AR" && AR=ar
  1670. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1671. +_LT_DECL([], [AR], [1], [The archiver])
  1672. +_LT_DECL([], [AR_FLAGS], [1])
  1673. +
  1674. +AC_CHECK_TOOL(STRIP, strip, :)
  1675. +test -z "$STRIP" && STRIP=:
  1676. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1677. +
  1678. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1679. +test -z "$RANLIB" && RANLIB=:
  1680. +_LT_DECL([], [RANLIB], [1],
  1681. + [Commands used to install an old-style archive])
  1682. +
  1683. +# Determine commands to create old-style static archives.
  1684. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1685. +old_postinstall_cmds='chmod 644 $oldlib'
  1686. +old_postuninstall_cmds=
  1687. -])# _LT_AC_LOCK
  1688. +if test -n "$RANLIB"; then
  1689. + case $host_os in
  1690. + openbsd*)
  1691. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1692. + ;;
  1693. + *)
  1694. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1695. + ;;
  1696. + esac
  1697. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1698. +fi
  1699. +_LT_DECL([], [old_postinstall_cmds], [2])
  1700. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1701. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1702. + [Commands used to build an old-style archive])
  1703. +])# _LT_CMD_OLD_ARCHIVE
  1704. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1705. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1706. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1707. # ----------------------------------------------------------------
  1708. # Check whether the given compiler option works
  1709. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1710. -[AC_REQUIRE([LT_AC_PROG_SED])
  1711. +AC_DEFUN([_LT_COMPILER_OPTION],
  1712. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1713. +m4_require([_LT_DECL_SED])dnl
  1714. AC_CACHE_CHECK([$1], [$2],
  1715. [$2=no
  1716. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1717. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1718. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1719. lt_compiler_flag="$3"
  1720. # Insert the option either (1) after the last *FLAGS variable, or
  1721. @@ -744,29 +1439,35 @@
  1722. if (exit $ac_status) && test -s "$ac_outfile"; then
  1723. # The compiler can only warn and ignore the option if not recognized
  1724. # So say no if there are warnings other than the usual output.
  1725. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1726. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1727. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1728. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1729. $2=yes
  1730. fi
  1731. fi
  1732. - $rm conftest*
  1733. + $RM conftest*
  1734. ])
  1735. if test x"[$]$2" = xyes; then
  1736. - ifelse([$5], , :, [$5])
  1737. + m4_if([$5], , :, [$5])
  1738. else
  1739. - ifelse([$6], , :, [$6])
  1740. + m4_if([$6], , :, [$6])
  1741. fi
  1742. -])# AC_LIBTOOL_COMPILER_OPTION
  1743. -
  1744. +])# _LT_COMPILER_OPTION
  1745. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1746. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1747. -# ------------------------------------------------------------
  1748. -# Check whether the given compiler option works
  1749. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1750. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1751. +# Old name:
  1752. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1753. +dnl aclocal-1.4 backwards compatibility:
  1754. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1755. +
  1756. +
  1757. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1758. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1759. +# ----------------------------------------------------
  1760. +# Check whether the given linker option works
  1761. +AC_DEFUN([_LT_LINKER_OPTION],
  1762. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1763. +m4_require([_LT_DECL_SED])dnl
  1764. AC_CACHE_CHECK([$1], [$2],
  1765. [$2=no
  1766. save_LDFLAGS="$LDFLAGS"
  1767. @@ -778,7 +1479,7 @@
  1768. if test -s conftest.err; then
  1769. # Append any errors to the config.log.
  1770. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1771. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1772. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1773. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1774. if diff conftest.exp conftest.er2 >/dev/null; then
  1775. $2=yes
  1776. @@ -787,22 +1488,28 @@
  1777. $2=yes
  1778. fi
  1779. fi
  1780. - $rm -r conftest*
  1781. + $RM -r conftest*
  1782. LDFLAGS="$save_LDFLAGS"
  1783. ])
  1784. if test x"[$]$2" = xyes; then
  1785. - ifelse([$4], , :, [$4])
  1786. + m4_if([$4], , :, [$4])
  1787. else
  1788. - ifelse([$5], , :, [$5])
  1789. + m4_if([$5], , :, [$5])
  1790. fi
  1791. -])# AC_LIBTOOL_LINKER_OPTION
  1792. +])# _LT_LINKER_OPTION
  1793. +# Old name:
  1794. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1795. +dnl aclocal-1.4 backwards compatibility:
  1796. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1797. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1798. -# --------------------------
  1799. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1800. -[# find the maximum length of command line arguments
  1801. +
  1802. +# LT_CMD_MAX_LEN
  1803. +#---------------
  1804. +AC_DEFUN([LT_CMD_MAX_LEN],
  1805. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1806. +# find the maximum length of command line arguments
  1807. AC_MSG_CHECKING([the maximum length of command line arguments])
  1808. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1809. i=0
  1810. @@ -824,7 +1531,7 @@
  1811. lt_cv_sys_max_cmd_len=-1;
  1812. ;;
  1813. - cygwin* | mingw*)
  1814. + cygwin* | mingw* | cegcc*)
  1815. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1816. # about 5 minutes as the teststring grows exponentially.
  1817. # Worse, since 9x/ME are not pre-emptively multitasking,
  1818. @@ -879,7 +1586,7 @@
  1819. sysv5* | sco5v6* | sysv4.2uw2*)
  1820. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1821. if test -n "$kargmax"; then
  1822. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1823. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1824. else
  1825. lt_cv_sys_max_cmd_len=32768
  1826. fi
  1827. @@ -890,20 +1597,28 @@
  1828. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1829. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1830. else
  1831. + # Make teststring a little bigger before we do anything with it.
  1832. + # a 1K string should be a reasonable start.
  1833. + for i in 1 2 3 4 5 6 7 8 ; do
  1834. + teststring=$teststring$teststring
  1835. + done
  1836. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1837. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1838. - = "XX$teststring") >/dev/null 2>&1 &&
  1839. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1840. - lt_cv_sys_max_cmd_len=$new_result &&
  1841. + # If test is not a shell built-in, we'll probably end up computing a
  1842. + # maximum length that is only half of the actual maximum length, but
  1843. + # we can't tell.
  1844. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1845. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1846. test $i != 17 # 1/2 MB should be enough
  1847. do
  1848. i=`expr $i + 1`
  1849. teststring=$teststring$teststring
  1850. done
  1851. + # Only check the string length outside the loop.
  1852. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1853. teststring=
  1854. - # Add a significant safety factor because C++ compilers can tack on massive
  1855. - # amounts of additional arguments before passing them to the linker.
  1856. - # It appears as though 1/2 is a usable value.
  1857. + # Add a significant safety factor because C++ compilers can tack on
  1858. + # massive amounts of additional arguments before passing them to the
  1859. + # linker. It appears as though 1/2 is a usable value.
  1860. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1861. fi
  1862. ;;
  1863. @@ -914,27 +1629,35 @@
  1864. else
  1865. AC_MSG_RESULT(none)
  1866. fi
  1867. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1868. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1869. +_LT_DECL([], [max_cmd_len], [0],
  1870. + [What is the maximum length of a command?])
  1871. +])# LT_CMD_MAX_LEN
  1872. +# Old name:
  1873. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1874. +dnl aclocal-1.4 backwards compatibility:
  1875. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1876. -# _LT_AC_CHECK_DLFCN
  1877. -# ------------------
  1878. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1879. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1880. -])# _LT_AC_CHECK_DLFCN
  1881. +
  1882. +# _LT_HEADER_DLFCN
  1883. +# ----------------
  1884. +m4_defun([_LT_HEADER_DLFCN],
  1885. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1886. +])# _LT_HEADER_DLFCN
  1887. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1888. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1889. -# ---------------------------------------------------------------------
  1890. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1891. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1892. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1893. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1894. +# ----------------------------------------------------------------
  1895. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1896. +[m4_require([_LT_HEADER_DLFCN])dnl
  1897. if test "$cross_compiling" = yes; then :
  1898. [$4]
  1899. else
  1900. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1901. lt_status=$lt_dlunknown
  1902. - cat > conftest.$ac_ext <<EOF
  1903. + cat > conftest.$ac_ext <<_LT_EOF
  1904. [#line __oline__ "configure"
  1905. #include "confdefs.h"
  1906. @@ -976,10 +1699,6 @@
  1907. # endif
  1908. #endif
  1909. -#ifdef __cplusplus
  1910. -extern "C" void exit (int);
  1911. -#endif
  1912. -
  1913. void fnord() { int i=42;}
  1914. int main ()
  1915. {
  1916. @@ -995,9 +1714,9 @@
  1917. else
  1918. puts (dlerror ());
  1919. - exit (status);
  1920. + return status;
  1921. }]
  1922. -EOF
  1923. +_LT_EOF
  1924. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1925. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1926. lt_status=$?
  1927. @@ -1012,13 +1731,13 @@
  1928. fi
  1929. fi
  1930. rm -fr conftest*
  1931. -])# _LT_AC_TRY_DLOPEN_SELF
  1932. +])# _LT_TRY_DLOPEN_SELF
  1933. -# AC_LIBTOOL_DLOPEN_SELF
  1934. -# ----------------------
  1935. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1936. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1937. +# LT_SYS_DLOPEN_SELF
  1938. +# ------------------
  1939. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1940. +[m4_require([_LT_HEADER_DLFCN])dnl
  1941. if test "x$enable_dlopen" != xyes; then
  1942. enable_dlopen=unknown
  1943. enable_dlopen_self=unknown
  1944. @@ -1034,15 +1753,15 @@
  1945. lt_cv_dlopen_self=yes
  1946. ;;
  1947. - mingw* | pw32*)
  1948. + mingw* | pw32* | cegcc*)
  1949. lt_cv_dlopen="LoadLibrary"
  1950. lt_cv_dlopen_libs=
  1951. - ;;
  1952. + ;;
  1953. cygwin*)
  1954. lt_cv_dlopen="dlopen"
  1955. lt_cv_dlopen_libs=
  1956. - ;;
  1957. + ;;
  1958. darwin*)
  1959. # if libdl is installed we need to link against it
  1960. @@ -1052,7 +1771,7 @@
  1961. lt_cv_dlopen_libs=
  1962. lt_cv_dlopen_self=yes
  1963. ])
  1964. - ;;
  1965. + ;;
  1966. *)
  1967. AC_CHECK_FUNC([shl_load],
  1968. @@ -1094,7 +1813,7 @@
  1969. AC_CACHE_CHECK([whether a program can dlopen itself],
  1970. lt_cv_dlopen_self, [dnl
  1971. - _LT_AC_TRY_DLOPEN_SELF(
  1972. + _LT_TRY_DLOPEN_SELF(
  1973. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1974. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1975. ])
  1976. @@ -1102,8 +1821,8 @@
  1977. if test "x$lt_cv_dlopen_self" = xyes; then
  1978. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1979. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1980. - lt_cv_dlopen_self_static, [dnl
  1981. - _LT_AC_TRY_DLOPEN_SELF(
  1982. + lt_cv_dlopen_self_static, [dnl
  1983. + _LT_TRY_DLOPEN_SELF(
  1984. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1985. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1986. ])
  1987. @@ -1125,19 +1844,32 @@
  1988. *) enable_dlopen_self_static=unknown ;;
  1989. esac
  1990. fi
  1991. -])# AC_LIBTOOL_DLOPEN_SELF
  1992. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1993. + [Whether dlopen is supported])
  1994. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1995. + [Whether dlopen of programs is supported])
  1996. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1997. + [Whether dlopen of statically linked programs is supported])
  1998. +])# LT_SYS_DLOPEN_SELF
  1999. +
  2000. +# Old name:
  2001. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2002. +dnl aclocal-1.4 backwards compatibility:
  2003. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2004. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2005. -# ---------------------------------
  2006. -# Check to see if options -c and -o are simultaneously supported by compiler
  2007. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2008. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2009. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2010. +# _LT_COMPILER_C_O([TAGNAME])
  2011. +# ---------------------------
  2012. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2013. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2014. +m4_defun([_LT_COMPILER_C_O],
  2015. +[m4_require([_LT_DECL_SED])dnl
  2016. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2017. +m4_require([_LT_TAG_COMPILER])dnl
  2018. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2019. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2020. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2021. - $rm -r conftest 2>/dev/null
  2022. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2023. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2024. + $RM -r conftest 2>/dev/null
  2025. mkdir conftest
  2026. cd conftest
  2027. mkdir out
  2028. @@ -1161,37 +1893,41 @@
  2029. then
  2030. # The compiler can only warn and ignore the option if not recognized
  2031. # So say no if there are warnings
  2032. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2033. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2034. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2035. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2036. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2037. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2038. fi
  2039. fi
  2040. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2041. - $rm conftest*
  2042. + $RM conftest*
  2043. # SGI C++ compiler will create directory out/ii_files/ for
  2044. # template instantiation
  2045. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2046. - $rm out/* && rmdir out
  2047. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2048. + $RM out/* && rmdir out
  2049. cd ..
  2050. - rmdir conftest
  2051. - $rm conftest*
  2052. + $RM -r conftest
  2053. + $RM conftest*
  2054. ])
  2055. -])# AC_LIBTOOL_PROG_CC_C_O
  2056. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2057. + [Does compiler simultaneously support -c and -o options?])
  2058. +])# _LT_COMPILER_C_O
  2059. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2060. -# -----------------------------------------
  2061. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2062. +# ----------------------------------
  2063. # Check to see if we can do hard links to lock some files if needed
  2064. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2065. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2066. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2067. +[m4_require([_LT_ENABLE_LOCK])dnl
  2068. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2069. +_LT_COMPILER_C_O([$1])
  2070. hard_links="nottested"
  2071. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2072. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2073. # do not overwrite the value of need_locks provided by the user
  2074. AC_MSG_CHECKING([if we can lock with hard links])
  2075. hard_links=yes
  2076. - $rm conftest*
  2077. + $RM conftest*
  2078. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2079. touch conftest.a
  2080. ln conftest.a conftest.b 2>&5 || hard_links=no
  2081. @@ -1204,12 +1940,13 @@
  2082. else
  2083. need_locks=no
  2084. fi
  2085. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2086. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2087. +])# _LT_COMPILER_FILE_LOCKS
  2088. -# AC_LIBTOOL_OBJDIR
  2089. -# -----------------
  2090. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2091. +# _LT_CHECK_OBJDIR
  2092. +# ----------------
  2093. +m4_defun([_LT_CHECK_OBJDIR],
  2094. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2095. [rm -f .libs 2>/dev/null
  2096. mkdir .libs 2>/dev/null
  2097. @@ -1221,40 +1958,46 @@
  2098. fi
  2099. rmdir .libs 2>/dev/null])
  2100. objdir=$lt_cv_objdir
  2101. -])# AC_LIBTOOL_OBJDIR
  2102. +_LT_DECL([], [objdir], [0],
  2103. + [The name of the directory that contains temporary libtool files])dnl
  2104. +m4_pattern_allow([LT_OBJDIR])dnl
  2105. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2106. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2107. +])# _LT_CHECK_OBJDIR
  2108. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2109. -# ----------------------------------------------
  2110. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2111. +# --------------------------------------
  2112. # Check hardcoding attributes.
  2113. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2114. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2115. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2116. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2117. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2118. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2119. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2120. +_LT_TAGVAR(hardcode_action, $1)=
  2121. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2122. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2123. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2124. - # We can hardcode non-existant directories.
  2125. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2126. + # We can hardcode non-existent directories.
  2127. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2128. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2129. # have to relink, otherwise we might link with an installed library
  2130. # when we should be linking with a yet-to-be-installed one
  2131. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2132. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2133. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2134. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2135. # Linking always hardcodes the temporary library directory.
  2136. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2137. + _LT_TAGVAR(hardcode_action, $1)=relink
  2138. else
  2139. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2140. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2141. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2142. fi
  2143. else
  2144. # We cannot hardcode anything, or else we can only hardcode existing
  2145. # directories.
  2146. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2147. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2148. fi
  2149. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2150. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2151. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2152. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2153. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2154. # Fast installation is not supported
  2155. enable_fast_install=no
  2156. elif test "$shlibpath_overrides_runpath" = yes ||
  2157. @@ -1262,73 +2005,70 @@
  2158. # Fast installation is not necessary
  2159. enable_fast_install=needless
  2160. fi
  2161. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2162. +_LT_TAGDECL([], [hardcode_action], [0],
  2163. + [How to hardcode a shared library path into an executable])
  2164. +])# _LT_LINKER_HARDCODE_LIBPATH
  2165. -# AC_LIBTOOL_SYS_LIB_STRIP
  2166. -# ------------------------
  2167. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2168. -[striplib=
  2169. +# _LT_CMD_STRIPLIB
  2170. +# ----------------
  2171. +m4_defun([_LT_CMD_STRIPLIB],
  2172. +[m4_require([_LT_DECL_EGREP])
  2173. +striplib=
  2174. old_striplib=
  2175. AC_MSG_CHECKING([whether stripping libraries is possible])
  2176. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2177. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2178. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2179. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2180. AC_MSG_RESULT([yes])
  2181. else
  2182. # FIXME - insert some real tests, host_os isn't really good enough
  2183. case $host_os in
  2184. - darwin*)
  2185. - if test -n "$STRIP" ; then
  2186. - striplib="$STRIP -x"
  2187. - old_striplib="$STRIP -S"
  2188. - AC_MSG_RESULT([yes])
  2189. - else
  2190. - AC_MSG_RESULT([no])
  2191. -fi
  2192. - ;;
  2193. - *)
  2194. - AC_MSG_RESULT([no])
  2195. + darwin*)
  2196. + if test -n "$STRIP" ; then
  2197. + striplib="$STRIP -x"
  2198. + old_striplib="$STRIP -S"
  2199. + AC_MSG_RESULT([yes])
  2200. + else
  2201. + AC_MSG_RESULT([no])
  2202. + fi
  2203. + ;;
  2204. + *)
  2205. + AC_MSG_RESULT([no])
  2206. ;;
  2207. esac
  2208. fi
  2209. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2210. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2211. +_LT_DECL([], [striplib], [1])
  2212. +])# _LT_CMD_STRIPLIB
  2213. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2214. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2215. # -----------------------------
  2216. # PORTME Fill in your ld.so characteristics
  2217. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2218. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2219. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2220. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2221. +m4_require([_LT_DECL_EGREP])dnl
  2222. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2223. +m4_require([_LT_DECL_OBJDUMP])dnl
  2224. +m4_require([_LT_DECL_SED])dnl
  2225. AC_MSG_CHECKING([dynamic linker characteristics])
  2226. -library_names_spec=
  2227. -libname_spec='lib$name'
  2228. -soname_spec=
  2229. -shrext_cmds=".so"
  2230. -postinstall_cmds=
  2231. -postuninstall_cmds=
  2232. -finish_cmds=
  2233. -finish_eval=
  2234. -shlibpath_var=
  2235. -shlibpath_overrides_runpath=unknown
  2236. -version_type=none
  2237. -dynamic_linker="$host_os ld.so"
  2238. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2239. -m4_if($1,[],[
  2240. +m4_if([$1],
  2241. + [], [
  2242. if test "$GCC" = yes; then
  2243. case $host_os in
  2244. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2245. *) lt_awk_arg="/^libraries:/" ;;
  2246. esac
  2247. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2248. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2249. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2250. # if the path contains ";" then we assume it to be the separator
  2251. # otherwise default to the standard path separator (i.e. ":") - it is
  2252. # assumed that no part of a normal pathname contains ";" but that should
  2253. # okay in the real world where ";" in dirpaths is itself problematic.
  2254. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2255. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2256. else
  2257. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2258. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2259. fi
  2260. # Ok, now we have the path, separated by spaces, we can step through it
  2261. # and add multilib dir if necessary.
  2262. @@ -1342,7 +2082,7 @@
  2263. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2264. fi
  2265. done
  2266. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2267. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2268. BEGIN {RS=" "; FS="/|\n";} {
  2269. lt_foo="";
  2270. lt_count=0;
  2271. @@ -1362,10 +2102,23 @@
  2272. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2273. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2274. }'`
  2275. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2276. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2277. else
  2278. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2279. fi])
  2280. +library_names_spec=
  2281. +libname_spec='lib$name'
  2282. +soname_spec=
  2283. +shrext_cmds=".so"
  2284. +postinstall_cmds=
  2285. +postuninstall_cmds=
  2286. +finish_cmds=
  2287. +finish_eval=
  2288. +shlibpath_var=
  2289. +shlibpath_overrides_runpath=unknown
  2290. +version_type=none
  2291. +dynamic_linker="$host_os ld.so"
  2292. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2293. need_lib_prefix=unknown
  2294. hardcode_into_libs=no
  2295. @@ -1402,7 +2155,7 @@
  2296. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2297. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2298. echo ' yes '
  2299. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2300. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2301. :
  2302. else
  2303. can_build_shared=no
  2304. @@ -1428,9 +2181,18 @@
  2305. ;;
  2306. amigaos*)
  2307. - library_names_spec='$libname.ixlibrary $libname.a'
  2308. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2309. - 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'
  2310. + case $host_cpu in
  2311. + powerpc)
  2312. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2313. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2314. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2315. + ;;
  2316. + m68k)
  2317. + library_names_spec='$libname.ixlibrary $libname.a'
  2318. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2319. + 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'
  2320. + ;;
  2321. + esac
  2322. ;;
  2323. beos*)
  2324. @@ -1453,25 +2215,28 @@
  2325. # libtool to hard-code these into programs
  2326. ;;
  2327. -cygwin* | mingw* | pw32*)
  2328. +cygwin* | mingw* | pw32* | cegcc*)
  2329. version_type=windows
  2330. shrext_cmds=".dll"
  2331. need_version=no
  2332. need_lib_prefix=no
  2333. case $GCC,$host_os in
  2334. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2335. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2336. library_names_spec='$libname.dll.a'
  2337. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2338. postinstall_cmds='base_file=`basename \${file}`~
  2339. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2340. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2341. dldir=$destdir/`dirname \$dlpath`~
  2342. test -d \$dldir || mkdir -p \$dldir~
  2343. $install_prog $dir/$dlname \$dldir/$dlname~
  2344. - chmod a+x \$dldir/$dlname'
  2345. + chmod a+x \$dldir/$dlname~
  2346. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2347. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2348. + fi'
  2349. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2350. dlpath=$dir/\$dldll~
  2351. - $rm \$dlpath'
  2352. + $RM \$dlpath'
  2353. shlibpath_overrides_runpath=yes
  2354. case $host_os in
  2355. @@ -1480,20 +2245,20 @@
  2356. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2357. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2358. ;;
  2359. - mingw*)
  2360. + mingw* | cegcc*)
  2361. # MinGW DLLs use traditional 'lib' prefix
  2362. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2363. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2364. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2365. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2366. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2367. # It is most probably a Windows format PATH printed by
  2368. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2369. # path with ; separators, and with drive letters. We can handle the
  2370. # drive letters (cygwin fileutils understands them), so leave them,
  2371. # especially as we might pass files found there to a mingw objdump,
  2372. # which wouldn't understand a cygwinified path. Ahh.
  2373. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2374. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2375. else
  2376. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2377. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2378. fi
  2379. ;;
  2380. pw32*)
  2381. @@ -1517,13 +2282,13 @@
  2382. version_type=darwin
  2383. need_lib_prefix=no
  2384. need_version=no
  2385. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2386. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2387. soname_spec='${libname}${release}${major}$shared_ext'
  2388. shlibpath_overrides_runpath=yes
  2389. shlibpath_var=DYLD_LIBRARY_PATH
  2390. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2391. - m4_if([$1], [],[
  2392. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2393. +m4_if([$1], [],[
  2394. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2395. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2396. ;;
  2397. @@ -1616,18 +2381,18 @@
  2398. fi
  2399. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2400. ;;
  2401. - hppa*64*)
  2402. - shrext_cmds='.sl'
  2403. - hardcode_into_libs=yes
  2404. - dynamic_linker="$host_os dld.sl"
  2405. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2406. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2407. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2408. - soname_spec='${libname}${release}${shared_ext}$major'
  2409. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2410. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2411. - ;;
  2412. - *)
  2413. + hppa*64*)
  2414. + shrext_cmds='.sl'
  2415. + hardcode_into_libs=yes
  2416. + dynamic_linker="$host_os dld.sl"
  2417. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2418. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2419. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2420. + soname_spec='${libname}${release}${shared_ext}$major'
  2421. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2422. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2423. + ;;
  2424. + *)
  2425. shrext_cmds='.sl'
  2426. dynamic_linker="$host_os dld.sl"
  2427. shlibpath_var=SHLIB_PATH
  2428. @@ -1695,7 +2460,7 @@
  2429. ;;
  2430. # This must be Linux ELF.
  2431. -linux* | k*bsd*-gnu)
  2432. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2433. version_type=linux
  2434. need_lib_prefix=no
  2435. need_version=no
  2436. @@ -1704,17 +2469,26 @@
  2437. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2438. shlibpath_var=LD_LIBRARY_PATH
  2439. shlibpath_overrides_runpath=no
  2440. + # Some binutils ld are patched to set DT_RUNPATH
  2441. + save_LDFLAGS=$LDFLAGS
  2442. + save_libdir=$libdir
  2443. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2444. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2445. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2446. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2447. + [shlibpath_overrides_runpath=yes])])
  2448. + LDFLAGS=$save_LDFLAGS
  2449. + libdir=$save_libdir
  2450. +
  2451. # This implies no fast_install, which is unacceptable.
  2452. # Some rework will be needed to allow for fast_install
  2453. # before this can be enabled.
  2454. hardcode_into_libs=yes
  2455. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2456. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2457. # Append ld.so.conf contents to the search path
  2458. if test -f /etc/ld.so.conf; then
  2459. - 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' ' '`
  2460. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2461. + 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' ' '`
  2462. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2463. fi
  2464. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2465. @@ -1726,11 +2500,23 @@
  2466. dynamic_linker='GNU/Linux ld.so'
  2467. ;;
  2468. +netbsdelf*-gnu)
  2469. + version_type=linux
  2470. + need_lib_prefix=no
  2471. + need_version=no
  2472. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2473. + soname_spec='${libname}${release}${shared_ext}$major'
  2474. + shlibpath_var=LD_LIBRARY_PATH
  2475. + shlibpath_overrides_runpath=no
  2476. + hardcode_into_libs=yes
  2477. + dynamic_linker='NetBSD ld.elf_so'
  2478. + ;;
  2479. +
  2480. netbsd*)
  2481. version_type=sunos
  2482. need_lib_prefix=no
  2483. need_version=no
  2484. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2485. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2487. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2488. dynamic_linker='NetBSD (a.out) ld.so'
  2489. @@ -1751,14 +2537,16 @@
  2490. shlibpath_overrides_runpath=yes
  2491. ;;
  2492. -nto-qnx*)
  2493. - version_type=linux
  2494. +*nto* | *qnx*)
  2495. + version_type=qnx
  2496. need_lib_prefix=no
  2497. need_version=no
  2498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2499. soname_spec='${libname}${release}${shared_ext}$major'
  2500. shlibpath_var=LD_LIBRARY_PATH
  2501. - shlibpath_overrides_runpath=yes
  2502. + shlibpath_overrides_runpath=no
  2503. + hardcode_into_libs=yes
  2504. + dynamic_linker='ldqnx.so'
  2505. ;;
  2506. openbsd*)
  2507. @@ -1767,13 +2555,13 @@
  2508. need_lib_prefix=no
  2509. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2510. case $host_os in
  2511. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2512. - *) need_version=no ;;
  2513. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2514. + *) need_version=no ;;
  2515. esac
  2516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2518. shlibpath_var=LD_LIBRARY_PATH
  2519. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2520. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2521. case $host_os in
  2522. openbsd2.[[89]] | openbsd2.[[89]].*)
  2523. shlibpath_overrides_runpath=no
  2524. @@ -1845,7 +2633,6 @@
  2525. sni)
  2526. shlibpath_overrides_runpath=no
  2527. need_lib_prefix=no
  2528. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2529. runpath_var=LD_RUN_PATH
  2530. ;;
  2531. siemens)
  2532. @@ -1876,13 +2663,12 @@
  2533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2534. soname_spec='${libname}${release}${shared_ext}$major'
  2535. shlibpath_var=LD_LIBRARY_PATH
  2536. + shlibpath_overrides_runpath=yes
  2537. hardcode_into_libs=yes
  2538. if test "$with_gnu_ld" = yes; then
  2539. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2540. - shlibpath_overrides_runpath=no
  2541. else
  2542. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2543. - shlibpath_overrides_runpath=yes
  2544. case $host_os in
  2545. sco3.2v5*)
  2546. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2547. @@ -1892,6 +2678,17 @@
  2548. sys_lib_dlsearch_path_spec='/usr/lib'
  2549. ;;
  2550. +tpf*)
  2551. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2552. + version_type=linux
  2553. + need_lib_prefix=no
  2554. + need_version=no
  2555. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2556. + shlibpath_var=LD_LIBRARY_PATH
  2557. + shlibpath_overrides_runpath=no
  2558. + hardcode_into_libs=yes
  2559. + ;;
  2560. +
  2561. uts4*)
  2562. version_type=linux
  2563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2564. @@ -1906,288 +2703,58 @@
  2565. AC_MSG_RESULT([$dynamic_linker])
  2566. test "$dynamic_linker" = no && can_build_shared=no
  2567. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  2568. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  2569. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2570. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  2571. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  2572. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2573. -
  2574. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2575. if test "$GCC" = yes; then
  2576. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2577. fi
  2578. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2579. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2580. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2581. +fi
  2582. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2583. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2584. +fi
  2585. -# _LT_AC_TAGCONFIG
  2586. -# ----------------
  2587. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2588. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2589. -AC_ARG_WITH([tags],
  2590. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2591. - [include additional configurations @<:@automatic@:>@])],
  2592. - [tagnames="$withval"])
  2593. -
  2594. -if test -f "$ltmain" && test -n "$tagnames"; then
  2595. - if test ! -f "${ofile}"; then
  2596. - AC_MSG_WARN([output file `$ofile' does not exist])
  2597. - fi
  2598. -
  2599. - if test -z "$LTCC"; then
  2600. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2601. - if test -z "$LTCC"; then
  2602. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2603. - else
  2604. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2605. - fi
  2606. - fi
  2607. - if test -z "$LTCFLAGS"; then
  2608. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  2609. - fi
  2610. -
  2611. - # Extract list of available tagged configurations in $ofile.
  2612. - # Note that this assumes the entire list is on one line.
  2613. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2614. -
  2615. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2616. - for tagname in $tagnames; do
  2617. - IFS="$lt_save_ifs"
  2618. - # Check whether tagname contains only valid characters
  2619. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2620. - "") ;;
  2621. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2622. - ;;
  2623. - esac
  2624. -
  2625. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2626. - then
  2627. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2628. - fi
  2629. -
  2630. - # Update the list of available tags.
  2631. - if test -n "$tagname"; then
  2632. - echo appending configuration tag \"$tagname\" to $ofile
  2633. -
  2634. - case $tagname in
  2635. - CXX)
  2636. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2637. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2638. - (test "X$CXX" != "Xg++"))) ; then
  2639. - AC_LIBTOOL_LANG_CXX_CONFIG
  2640. - else
  2641. - tagname=""
  2642. - fi
  2643. - ;;
  2644. -
  2645. - F77)
  2646. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2647. - AC_LIBTOOL_LANG_F77_CONFIG
  2648. - else
  2649. - tagname=""
  2650. - fi
  2651. - ;;
  2652. -
  2653. - GCJ)
  2654. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2655. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2656. - else
  2657. - tagname=""
  2658. - fi
  2659. - ;;
  2660. -
  2661. - RC)
  2662. - AC_LIBTOOL_LANG_RC_CONFIG
  2663. - ;;
  2664. -
  2665. - *)
  2666. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2667. - ;;
  2668. - esac
  2669. -
  2670. - # Append the new tag name to the list of available tags.
  2671. - if test -n "$tagname" ; then
  2672. - available_tags="$available_tags $tagname"
  2673. - fi
  2674. - fi
  2675. - done
  2676. - IFS="$lt_save_ifs"
  2677. -
  2678. - # Now substitute the updated list of available tags.
  2679. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2680. - mv "${ofile}T" "$ofile"
  2681. - chmod +x "$ofile"
  2682. - else
  2683. - rm -f "${ofile}T"
  2684. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2685. - fi
  2686. -fi
  2687. -])# _LT_AC_TAGCONFIG
  2688. -
  2689. -
  2690. -# AC_LIBTOOL_DLOPEN
  2691. -# -----------------
  2692. -# enable checks for dlopen support
  2693. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2694. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2695. -])# AC_LIBTOOL_DLOPEN
  2696. -
  2697. -
  2698. -# AC_LIBTOOL_WIN32_DLL
  2699. -# --------------------
  2700. -# declare package support for building win32 DLLs
  2701. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2702. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2703. -])# AC_LIBTOOL_WIN32_DLL
  2704. -
  2705. -
  2706. -# AC_ENABLE_SHARED([DEFAULT])
  2707. -# ---------------------------
  2708. -# implement the --enable-shared flag
  2709. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2710. -AC_DEFUN([AC_ENABLE_SHARED],
  2711. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2712. -AC_ARG_ENABLE([shared],
  2713. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2714. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2715. - [p=${PACKAGE-default}
  2716. - case $enableval in
  2717. - yes) enable_shared=yes ;;
  2718. - no) enable_shared=no ;;
  2719. - *)
  2720. - enable_shared=no
  2721. - # Look at the argument we got. We use all the common list separators.
  2722. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2723. - for pkg in $enableval; do
  2724. - IFS="$lt_save_ifs"
  2725. - if test "X$pkg" = "X$p"; then
  2726. - enable_shared=yes
  2727. - fi
  2728. - done
  2729. - IFS="$lt_save_ifs"
  2730. - ;;
  2731. - esac],
  2732. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2733. -])# AC_ENABLE_SHARED
  2734. -
  2735. -
  2736. -# AC_DISABLE_SHARED
  2737. -# -----------------
  2738. -# set the default shared flag to --disable-shared
  2739. -AC_DEFUN([AC_DISABLE_SHARED],
  2740. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2741. -AC_ENABLE_SHARED(no)
  2742. -])# AC_DISABLE_SHARED
  2743. -
  2744. -
  2745. -# AC_ENABLE_STATIC([DEFAULT])
  2746. -# ---------------------------
  2747. -# implement the --enable-static flag
  2748. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2749. -AC_DEFUN([AC_ENABLE_STATIC],
  2750. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2751. -AC_ARG_ENABLE([static],
  2752. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2753. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2754. - [p=${PACKAGE-default}
  2755. - case $enableval in
  2756. - yes) enable_static=yes ;;
  2757. - no) enable_static=no ;;
  2758. - *)
  2759. - enable_static=no
  2760. - # Look at the argument we got. We use all the common list separators.
  2761. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2762. - for pkg in $enableval; do
  2763. - IFS="$lt_save_ifs"
  2764. - if test "X$pkg" = "X$p"; then
  2765. - enable_static=yes
  2766. - fi
  2767. - done
  2768. - IFS="$lt_save_ifs"
  2769. - ;;
  2770. - esac],
  2771. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2772. -])# AC_ENABLE_STATIC
  2773. -
  2774. +_LT_DECL([], [variables_saved_for_relink], [1],
  2775. + [Variables whose values should be saved in libtool wrapper scripts and
  2776. + restored at link time])
  2777. +_LT_DECL([], [need_lib_prefix], [0],
  2778. + [Do we need the "lib" prefix for modules?])
  2779. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2780. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2781. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2782. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2783. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2784. + [Is shlibpath searched before the hard-coded library search path?])
  2785. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2786. +_LT_DECL([], [library_names_spec], [1],
  2787. + [[List of archive names. First name is the real one, the rest are links.
  2788. + The last name is the one that the linker finds with -lNAME]])
  2789. +_LT_DECL([], [soname_spec], [1],
  2790. + [[The coded name of the library, if different from the real name]])
  2791. +_LT_DECL([], [postinstall_cmds], [2],
  2792. + [Command to use after installation of a shared archive])
  2793. +_LT_DECL([], [postuninstall_cmds], [2],
  2794. + [Command to use after uninstallation of a shared archive])
  2795. +_LT_DECL([], [finish_cmds], [2],
  2796. + [Commands used to finish a libtool library installation in a directory])
  2797. +_LT_DECL([], [finish_eval], [1],
  2798. + [[As "finish_cmds", except a single script fragment to be evaled but
  2799. + not shown]])
  2800. +_LT_DECL([], [hardcode_into_libs], [0],
  2801. + [Whether we should hardcode library paths into libraries])
  2802. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2803. + [Compile-time system search path for libraries])
  2804. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2805. + [Run-time system search path for libraries])
  2806. +])# _LT_SYS_DYNAMIC_LINKER
  2807. -# AC_DISABLE_STATIC
  2808. -# -----------------
  2809. -# set the default static flag to --disable-static
  2810. -AC_DEFUN([AC_DISABLE_STATIC],
  2811. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2812. -AC_ENABLE_STATIC(no)
  2813. -])# AC_DISABLE_STATIC
  2814. -
  2815. -
  2816. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2817. -# ---------------------------------
  2818. -# implement the --enable-fast-install flag
  2819. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2820. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2821. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2822. -AC_ARG_ENABLE([fast-install],
  2823. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2824. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2825. - [p=${PACKAGE-default}
  2826. - case $enableval in
  2827. - yes) enable_fast_install=yes ;;
  2828. - no) enable_fast_install=no ;;
  2829. - *)
  2830. - enable_fast_install=no
  2831. - # Look at the argument we got. We use all the common list separators.
  2832. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2833. - for pkg in $enableval; do
  2834. - IFS="$lt_save_ifs"
  2835. - if test "X$pkg" = "X$p"; then
  2836. - enable_fast_install=yes
  2837. - fi
  2838. - done
  2839. - IFS="$lt_save_ifs"
  2840. - ;;
  2841. - esac],
  2842. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2843. -])# AC_ENABLE_FAST_INSTALL
  2844. -
  2845. -# AC_DISABLE_FAST_INSTALL
  2846. -# -----------------------
  2847. -# set the default to --disable-fast-install
  2848. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2849. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2850. -AC_ENABLE_FAST_INSTALL(no)
  2851. -])# AC_DISABLE_FAST_INSTALL
  2852. -
  2853. -
  2854. -# AC_LIBTOOL_PICMODE([MODE])
  2855. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2856. # --------------------------
  2857. -# implement the --with-pic flag
  2858. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2859. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2860. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2861. -pic_mode=ifelse($#,1,$1,default)
  2862. -])# AC_LIBTOOL_PICMODE
  2863. -
  2864. -
  2865. -# AC_PROG_EGREP
  2866. -# -------------
  2867. -# This is predefined starting with Autoconf 2.54, so this conditional
  2868. -# definition can be removed once we require Autoconf 2.54 or later.
  2869. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2870. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2871. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2872. - then ac_cv_prog_egrep='grep -E'
  2873. - else ac_cv_prog_egrep='egrep'
  2874. - fi])
  2875. - EGREP=$ac_cv_prog_egrep
  2876. - AC_SUBST([EGREP])
  2877. -])])
  2878. -
  2879. -
  2880. -# AC_PATH_TOOL_PREFIX
  2881. -# -------------------
  2882. # find a file program which can recognize shared library
  2883. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2884. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2885. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2886. +[m4_require([_LT_DECL_EGREP])dnl
  2887. AC_MSG_CHECKING([for $1])
  2888. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2889. [case $MAGIC_CMD in
  2890. @@ -2200,7 +2767,7 @@
  2891. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2892. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2893. dnl not every word. This closes a longstanding sh security hole.
  2894. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2895. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2896. for ac_dir in $ac_dummy; do
  2897. IFS="$lt_save_ifs"
  2898. test -z "$ac_dir" && ac_dir=.
  2899. @@ -2215,7 +2782,7 @@
  2900. $EGREP "$file_magic_regex" > /dev/null; then
  2901. :
  2902. else
  2903. - cat <<EOF 1>&2
  2904. + cat <<_LT_EOF 1>&2
  2905. *** Warning: the command libtool uses to detect shared libraries,
  2906. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2907. @@ -2226,7 +2793,7 @@
  2908. *** may want to report the problem to your system manager and/or to
  2909. *** bug-libtool@gnu.org
  2910. -EOF
  2911. +_LT_EOF
  2912. fi ;;
  2913. esac
  2914. fi
  2915. @@ -2243,37 +2810,47 @@
  2916. else
  2917. AC_MSG_RESULT(no)
  2918. fi
  2919. -])# AC_PATH_TOOL_PREFIX
  2920. +_LT_DECL([], [MAGIC_CMD], [0],
  2921. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2922. +])# _LT_PATH_TOOL_PREFIX
  2923. +# Old name:
  2924. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2925. +dnl aclocal-1.4 backwards compatibility:
  2926. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2927. -# AC_PATH_MAGIC
  2928. -# -------------
  2929. +
  2930. +# _LT_PATH_MAGIC
  2931. +# --------------
  2932. # find a file program which can recognize a shared library
  2933. -AC_DEFUN([AC_PATH_MAGIC],
  2934. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2935. +m4_defun([_LT_PATH_MAGIC],
  2936. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2937. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2938. if test -n "$ac_tool_prefix"; then
  2939. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2940. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2941. else
  2942. MAGIC_CMD=:
  2943. fi
  2944. fi
  2945. -])# AC_PATH_MAGIC
  2946. +])# _LT_PATH_MAGIC
  2947. -# AC_PROG_LD
  2948. +# LT_PATH_LD
  2949. # ----------
  2950. # find the pathname to the GNU or non-GNU linker
  2951. -AC_DEFUN([AC_PROG_LD],
  2952. -[AC_ARG_WITH([gnu-ld],
  2953. - [AC_HELP_STRING([--with-gnu-ld],
  2954. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2955. - [test "$withval" = no || with_gnu_ld=yes],
  2956. - [with_gnu_ld=no])
  2957. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2958. -AC_REQUIRE([AC_PROG_CC])dnl
  2959. +AC_DEFUN([LT_PATH_LD],
  2960. +[AC_REQUIRE([AC_PROG_CC])dnl
  2961. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2962. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2963. +m4_require([_LT_DECL_SED])dnl
  2964. +m4_require([_LT_DECL_EGREP])dnl
  2965. +
  2966. +AC_ARG_WITH([gnu-ld],
  2967. + [AS_HELP_STRING([--with-gnu-ld],
  2968. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2969. + [test "$withval" = no || with_gnu_ld=yes],
  2970. + [with_gnu_ld=no])dnl
  2971. +
  2972. ac_prog=ld
  2973. if test "$GCC" = yes; then
  2974. # Check if gcc -print-prog-name=ld gives a path.
  2975. @@ -2290,9 +2867,9 @@
  2976. [[\\/]]* | ?:[[\\/]]*)
  2977. re_direlt='/[[^/]][[^/]]*/\.\./'
  2978. # Canonicalize the pathname of ld
  2979. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2980. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2981. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2982. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2983. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2984. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2985. done
  2986. test -z "$LD" && LD="$ac_prog"
  2987. ;;
  2988. @@ -2342,15 +2919,24 @@
  2989. AC_MSG_RESULT(no)
  2990. fi
  2991. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2992. -AC_PROG_LD_GNU
  2993. -])# AC_PROG_LD
  2994. +_LT_PATH_LD_GNU
  2995. +AC_SUBST([LD])
  2996. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2997. +])# LT_PATH_LD
  2998. -# AC_PROG_LD_GNU
  2999. -# --------------
  3000. -AC_DEFUN([AC_PROG_LD_GNU],
  3001. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3002. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3003. +# Old names:
  3004. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3005. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3006. +dnl aclocal-1.4 backwards compatibility:
  3007. +dnl AC_DEFUN([AM_PROG_LD], [])
  3008. +dnl AC_DEFUN([AC_PROG_LD], [])
  3009. +
  3010. +
  3011. +# _LT_PATH_LD_GNU
  3012. +#- --------------
  3013. +m4_defun([_LT_PATH_LD_GNU],
  3014. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3015. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3016. case `$LD -v 2>&1 </dev/null` in
  3017. *GNU* | *'with BFD'*)
  3018. @@ -2361,14 +2947,14 @@
  3019. ;;
  3020. esac])
  3021. with_gnu_ld=$lt_cv_prog_gnu_ld
  3022. -])# AC_PROG_LD_GNU
  3023. +])# _LT_PATH_LD_GNU
  3024. -# AC_PROG_LD_RELOAD_FLAG
  3025. -# ----------------------
  3026. +# _LT_CMD_RELOAD
  3027. +# --------------
  3028. # find reload flag for linker
  3029. # -- PORTME Some linkers may need a different reload flag.
  3030. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3031. +m4_defun([_LT_CMD_RELOAD],
  3032. [AC_CACHE_CHECK([for $LD option to reload object files],
  3033. lt_cv_ld_reload_flag,
  3034. [lt_cv_ld_reload_flag='-r'])
  3035. @@ -2387,15 +2973,19 @@
  3036. fi
  3037. ;;
  3038. esac
  3039. -])# AC_PROG_LD_RELOAD_FLAG
  3040. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3041. +_LT_DECL([], [reload_cmds], [2])dnl
  3042. +])# _LT_CMD_RELOAD
  3043. -# AC_DEPLIBS_CHECK_METHOD
  3044. -# -----------------------
  3045. +# _LT_CHECK_MAGIC_METHOD
  3046. +# ----------------------
  3047. # how to check for library dependencies
  3048. # -- PORTME fill in with the dynamic library characteristics
  3049. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3050. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3051. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3052. +[m4_require([_LT_DECL_EGREP])
  3053. +m4_require([_LT_DECL_OBJDUMP])
  3054. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3055. lt_cv_deplibs_check_method,
  3056. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3057. lt_cv_file_magic_test_file=
  3058. @@ -2445,12 +3035,18 @@
  3059. fi
  3060. ;;
  3061. +cegcc)
  3062. + # use the weaker test based on 'objdump'. See mingw*.
  3063. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3064. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3065. + ;;
  3066. +
  3067. darwin* | rhapsody*)
  3068. lt_cv_deplibs_check_method=pass_all
  3069. ;;
  3070. freebsd* | dragonfly*)
  3071. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3072. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3073. case $host_cpu in
  3074. i*86 )
  3075. # Not sure whether the presence of OpenBSD here was a mistake.
  3076. @@ -2503,12 +3099,12 @@
  3077. ;;
  3078. # This must be Linux ELF.
  3079. -linux* | k*bsd*-gnu)
  3080. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3081. lt_cv_deplibs_check_method=pass_all
  3082. ;;
  3083. -netbsd*)
  3084. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3085. +netbsd* | netbsdelf*-gnu)
  3086. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3087. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3088. else
  3089. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3090. @@ -2521,12 +3117,12 @@
  3091. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3092. ;;
  3093. -nto-qnx*)
  3094. - lt_cv_deplibs_check_method=unknown
  3095. +*nto* | *qnx*)
  3096. + lt_cv_deplibs_check_method=pass_all
  3097. ;;
  3098. openbsd*)
  3099. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3100. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3101. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3102. else
  3103. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3104. @@ -2545,6 +3141,10 @@
  3105. lt_cv_deplibs_check_method=pass_all
  3106. ;;
  3107. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3108. + lt_cv_deplibs_check_method=pass_all
  3109. + ;;
  3110. +
  3111. sysv4 | sysv4.3*)
  3112. case $host_vendor in
  3113. motorola)
  3114. @@ -2572,7 +3172,7 @@
  3115. esac
  3116. ;;
  3117. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3118. +tpf*)
  3119. lt_cv_deplibs_check_method=pass_all
  3120. ;;
  3121. esac
  3122. @@ -2580,14 +3180,20 @@
  3123. file_magic_cmd=$lt_cv_file_magic_cmd
  3124. deplibs_check_method=$lt_cv_deplibs_check_method
  3125. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3126. -])# AC_DEPLIBS_CHECK_METHOD
  3127. +
  3128. +_LT_DECL([], [deplibs_check_method], [1],
  3129. + [Method to check whether dependent libraries are shared objects])
  3130. +_LT_DECL([], [file_magic_cmd], [1],
  3131. + [Command to use when deplibs_check_method == "file_magic"])
  3132. +])# _LT_CHECK_MAGIC_METHOD
  3133. -# AC_PROG_NM
  3134. +# LT_PATH_NM
  3135. # ----------
  3136. -# find the pathname to a BSD-compatible name lister
  3137. -AC_DEFUN([AC_PROG_NM],
  3138. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3139. +# find the pathname to a BSD- or MS-compatible name lister
  3140. +AC_DEFUN([LT_PATH_NM],
  3141. +[AC_REQUIRE([AC_PROG_CC])dnl
  3142. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3143. [if test -n "$NM"; then
  3144. # Let the user override the test.
  3145. lt_cv_path_NM="$NM"
  3146. @@ -2629,16 +3235,51 @@
  3147. done
  3148. IFS="$lt_save_ifs"
  3149. done
  3150. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3151. + : ${lt_cv_path_NM=no}
  3152. fi])
  3153. -NM="$lt_cv_path_NM"
  3154. -])# AC_PROG_NM
  3155. +if test "$lt_cv_path_NM" != "no"; then
  3156. + NM="$lt_cv_path_NM"
  3157. +else
  3158. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3159. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3160. + AC_SUBST([DUMPBIN])
  3161. + if test "$DUMPBIN" != ":"; then
  3162. + NM="$DUMPBIN"
  3163. + fi
  3164. +fi
  3165. +test -z "$NM" && NM=nm
  3166. +AC_SUBST([NM])
  3167. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3168. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3169. + [lt_cv_nm_interface="BSD nm"
  3170. + echo "int some_variable = 0;" > conftest.$ac_ext
  3171. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3172. + (eval "$ac_compile" 2>conftest.err)
  3173. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3174. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3175. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3176. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3177. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3178. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3179. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3180. + lt_cv_nm_interface="MS dumpbin"
  3181. + fi
  3182. + rm -f conftest*])
  3183. +])# LT_PATH_NM
  3184. +
  3185. +# Old names:
  3186. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3187. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3188. +dnl aclocal-1.4 backwards compatibility:
  3189. +dnl AC_DEFUN([AM_PROG_NM], [])
  3190. +dnl AC_DEFUN([AC_PROG_NM], [])
  3191. -# AC_CHECK_LIBM
  3192. -# -------------
  3193. +
  3194. +# LT_LIB_M
  3195. +# --------
  3196. # check for math library
  3197. -AC_DEFUN([AC_CHECK_LIBM],
  3198. +AC_DEFUN([LT_LIB_M],
  3199. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3200. LIBM=
  3201. case $host in
  3202. @@ -2653,4011 +3294,4697 @@
  3203. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3204. ;;
  3205. esac
  3206. -])# AC_CHECK_LIBM
  3207. +AC_SUBST([LIBM])
  3208. +])# LT_LIB_M
  3209. +# Old name:
  3210. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3211. +dnl aclocal-1.4 backwards compatibility:
  3212. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3213. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3214. -# -----------------------------------
  3215. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3216. -# LTDLINCL to the include flags for the libltdl header and adds
  3217. -# --enable-ltdl-convenience to the configure arguments. Note that
  3218. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3219. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  3220. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  3221. -# (note the single quotes!). If your package is not flat and you're not
  3222. -# using automake, define top_builddir and top_srcdir appropriately in
  3223. -# the Makefiles.
  3224. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3225. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3226. - case $enable_ltdl_convenience in
  3227. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3228. - "") enable_ltdl_convenience=yes
  3229. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3230. - esac
  3231. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3232. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3233. - # For backwards non-gettext consistent compatibility...
  3234. - INCLTDL="$LTDLINCL"
  3235. -])# AC_LIBLTDL_CONVENIENCE
  3236. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3237. +# -------------------------------
  3238. +m4_defun([_LT_COMPILER_NO_RTTI],
  3239. +[m4_require([_LT_TAG_COMPILER])dnl
  3240. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3241. -# -----------------------------------
  3242. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3243. -# LTDLINCL to the include flags for the libltdl header and adds
  3244. -# --enable-ltdl-install to the configure arguments. Note that
  3245. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3246. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  3247. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  3248. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3249. -# flat and you're not using automake, define top_builddir and top_srcdir
  3250. -# appropriately in the Makefiles.
  3251. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3252. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3253. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3254. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3255. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3256. - [if test x"$enable_ltdl_install" = xno; then
  3257. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3258. - else
  3259. - enable_ltdl_install=yes
  3260. - fi
  3261. - ])
  3262. - if test x"$enable_ltdl_install" = x"yes"; then
  3263. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3264. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3265. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3266. - else
  3267. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3268. - LIBLTDL="-lltdl"
  3269. - LTDLINCL=
  3270. - fi
  3271. - # For backwards non-gettext consistent compatibility...
  3272. - INCLTDL="$LTDLINCL"
  3273. -])# AC_LIBLTDL_INSTALLABLE
  3274. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3275. +if test "$GCC" = yes; then
  3276. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3277. -# AC_LIBTOOL_CXX
  3278. -# --------------
  3279. -# enable support for C++ libraries
  3280. -AC_DEFUN([AC_LIBTOOL_CXX],
  3281. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3282. -])# AC_LIBTOOL_CXX
  3283. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3284. + lt_cv_prog_compiler_rtti_exceptions,
  3285. + [-fno-rtti -fno-exceptions], [],
  3286. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3287. +fi
  3288. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3289. + [Compiler flag to turn off builtin functions])
  3290. +])# _LT_COMPILER_NO_RTTI
  3291. -# _LT_AC_LANG_CXX
  3292. -# ---------------
  3293. -AC_DEFUN([_LT_AC_LANG_CXX],
  3294. -[AC_REQUIRE([AC_PROG_CXX])
  3295. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3296. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3297. -])# _LT_AC_LANG_CXX
  3298. +# _LT_CMD_GLOBAL_SYMBOLS
  3299. +# ----------------------
  3300. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3301. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3302. +AC_REQUIRE([AC_PROG_CC])dnl
  3303. +AC_REQUIRE([LT_PATH_NM])dnl
  3304. +AC_REQUIRE([LT_PATH_LD])dnl
  3305. +m4_require([_LT_DECL_SED])dnl
  3306. +m4_require([_LT_DECL_EGREP])dnl
  3307. +m4_require([_LT_TAG_COMPILER])dnl
  3308. -# _LT_AC_PROG_CXXCPP
  3309. -# ------------------
  3310. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  3311. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3312. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3313. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3314. [
  3315. -AC_REQUIRE([AC_PROG_CXX])
  3316. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3317. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3318. - (test "X$CXX" != "Xg++"))) ; then
  3319. - AC_PROG_CXXCPP
  3320. -fi
  3321. -])# _LT_AC_PROG_CXXCPP
  3322. +# These are sane defaults that work on at least a few old systems.
  3323. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3324. -# AC_LIBTOOL_F77
  3325. -# --------------
  3326. -# enable support for Fortran 77 libraries
  3327. -AC_DEFUN([AC_LIBTOOL_F77],
  3328. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3329. -])# AC_LIBTOOL_F77
  3330. +# Character class describing NM global symbol codes.
  3331. +symcode='[[BCDEGRST]]'
  3332. +# Regexp to match symbols that can be accessed directly from C.
  3333. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3334. -# _LT_AC_LANG_F77
  3335. -# ---------------
  3336. -AC_DEFUN([_LT_AC_LANG_F77],
  3337. -[AC_REQUIRE([AC_PROG_F77])
  3338. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3339. -])# _LT_AC_LANG_F77
  3340. +# Define system-specific variables.
  3341. +case $host_os in
  3342. +aix*)
  3343. + symcode='[[BCDT]]'
  3344. + ;;
  3345. +cygwin* | mingw* | pw32* | cegcc*)
  3346. + symcode='[[ABCDGISTW]]'
  3347. + ;;
  3348. +hpux*)
  3349. + if test "$host_cpu" = ia64; then
  3350. + symcode='[[ABCDEGRST]]'
  3351. + fi
  3352. + ;;
  3353. +irix* | nonstopux*)
  3354. + symcode='[[BCDEGRST]]'
  3355. + ;;
  3356. +osf*)
  3357. + symcode='[[BCDEGQRST]]'
  3358. + ;;
  3359. +solaris*)
  3360. + symcode='[[BDRT]]'
  3361. + ;;
  3362. +sco3.2v5*)
  3363. + symcode='[[DT]]'
  3364. + ;;
  3365. +sysv4.2uw2*)
  3366. + symcode='[[DT]]'
  3367. + ;;
  3368. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3369. + symcode='[[ABDT]]'
  3370. + ;;
  3371. +sysv4)
  3372. + symcode='[[DFNSTU]]'
  3373. + ;;
  3374. +esac
  3375. +# If we're using GNU nm, then use its standard symbol codes.
  3376. +case `$NM -V 2>&1` in
  3377. +*GNU* | *'with BFD'*)
  3378. + symcode='[[ABCDGIRSTW]]' ;;
  3379. +esac
  3380. -# AC_LIBTOOL_GCJ
  3381. -# --------------
  3382. -# enable support for GCJ libraries
  3383. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3384. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3385. -])# AC_LIBTOOL_GCJ
  3386. +# Transform an extracted symbol line into a proper C declaration.
  3387. +# Some systems (esp. on ia64) link data and code symbols differently,
  3388. +# so use this general approach.
  3389. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3390. +# Transform an extracted symbol line into symbol name and symbol address
  3391. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3392. +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'"
  3393. -# _LT_AC_LANG_GCJ
  3394. -# ---------------
  3395. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3396. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3397. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3398. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3399. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3400. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3401. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3402. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3403. -])# _LT_AC_LANG_GCJ
  3404. +# Handle CRLF in mingw tool chain
  3405. +opt_cr=
  3406. +case $build_os in
  3407. +mingw*)
  3408. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3409. + ;;
  3410. +esac
  3411. +# Try without a prefix underscore, then with it.
  3412. +for ac_symprfx in "" "_"; do
  3413. -# AC_LIBTOOL_RC
  3414. -# -------------
  3415. -# enable support for Windows resource files
  3416. -AC_DEFUN([AC_LIBTOOL_RC],
  3417. -[AC_REQUIRE([LT_AC_PROG_RC])
  3418. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3419. -])# AC_LIBTOOL_RC
  3420. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3421. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3422. + # Write the raw and C identifiers.
  3423. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3424. + # Fake it for dumpbin and say T for any non-static function
  3425. + # and D for any global variable.
  3426. + # Also find C++ and __fastcall symbols from MSVC++,
  3427. + # which start with @ or ?.
  3428. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3429. +" {last_section=section; section=\$ 3};"\
  3430. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3431. +" \$ 0!~/External *\|/{next};"\
  3432. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3433. +" {if(hide[section]) next};"\
  3434. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3435. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3436. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3437. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3438. +" ' prfx=^$ac_symprfx]"
  3439. + else
  3440. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3441. + fi
  3442. -# AC_LIBTOOL_LANG_C_CONFIG
  3443. -# ------------------------
  3444. -# Ensure that the configuration vars for the C compiler are
  3445. -# suitably defined. Those variables are subsequently used by
  3446. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3447. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3448. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3449. -[lt_save_CC="$CC"
  3450. -AC_LANG_PUSH(C)
  3451. -
  3452. -# Source file extension for C test sources.
  3453. -ac_ext=c
  3454. -
  3455. -# Object file extension for compiled C test sources.
  3456. -objext=o
  3457. -_LT_AC_TAGVAR(objext, $1)=$objext
  3458. -
  3459. -# Code to be used in simple compile tests
  3460. -lt_simple_compile_test_code="int some_variable = 0;"
  3461. -
  3462. -# Code to be used in simple link tests
  3463. -lt_simple_link_test_code='int main(){return(0);}'
  3464. -
  3465. -_LT_AC_SYS_COMPILER
  3466. -
  3467. -# save warnings/boilerplate of simple test code
  3468. -_LT_COMPILER_BOILERPLATE
  3469. -_LT_LINKER_BOILERPLATE
  3470. -
  3471. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3472. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3473. -AC_LIBTOOL_PROG_CC_C_O($1)
  3474. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3475. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3476. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3477. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3478. -AC_LIBTOOL_SYS_LIB_STRIP
  3479. -AC_LIBTOOL_DLOPEN_SELF
  3480. -
  3481. -# Report which library types will actually be built
  3482. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3483. -AC_MSG_RESULT([$can_build_shared])
  3484. -
  3485. -AC_MSG_CHECKING([whether to build shared libraries])
  3486. -test "$can_build_shared" = "no" && enable_shared=no
  3487. -
  3488. -# On AIX, shared libraries and static libraries use the same namespace, and
  3489. -# are all built from PIC.
  3490. -case $host_os in
  3491. -aix3*)
  3492. - test "$enable_shared" = yes && enable_static=no
  3493. - if test -n "$RANLIB"; then
  3494. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3495. - postinstall_cmds='$RANLIB $lib'
  3496. - fi
  3497. - ;;
  3498. -
  3499. -aix[[4-9]]*)
  3500. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3501. - test "$enable_shared" = yes && enable_static=no
  3502. - fi
  3503. - ;;
  3504. -esac
  3505. -AC_MSG_RESULT([$enable_shared])
  3506. -
  3507. -AC_MSG_CHECKING([whether to build static libraries])
  3508. -# Make sure either enable_shared or enable_static is yes.
  3509. -test "$enable_shared" = yes || enable_static=yes
  3510. -AC_MSG_RESULT([$enable_static])
  3511. -
  3512. -AC_LIBTOOL_CONFIG($1)
  3513. -
  3514. -AC_LANG_POP
  3515. -CC="$lt_save_CC"
  3516. -])# AC_LIBTOOL_LANG_C_CONFIG
  3517. -
  3518. -
  3519. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3520. -# --------------------------
  3521. -# Ensure that the configuration vars for the C compiler are
  3522. -# suitably defined. Those variables are subsequently used by
  3523. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3524. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3525. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3526. -[AC_LANG_PUSH(C++)
  3527. -AC_REQUIRE([AC_PROG_CXX])
  3528. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3529. -
  3530. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3531. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3532. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3533. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3534. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3535. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3536. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3537. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3538. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3539. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3540. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3541. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3542. -_LT_AC_TAGVAR(module_cmds, $1)=
  3543. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3544. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3545. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3546. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3547. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3548. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3549. -
  3550. -# Dependencies to place before and after the object being linked:
  3551. -_LT_AC_TAGVAR(predep_objects, $1)=
  3552. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3553. -_LT_AC_TAGVAR(predeps, $1)=
  3554. -_LT_AC_TAGVAR(postdeps, $1)=
  3555. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3556. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3557. -
  3558. -# Source file extension for C++ test sources.
  3559. -ac_ext=cpp
  3560. -
  3561. -# Object file extension for compiled C++ test sources.
  3562. -objext=o
  3563. -_LT_AC_TAGVAR(objext, $1)=$objext
  3564. -
  3565. -# Code to be used in simple compile tests
  3566. -lt_simple_compile_test_code="int some_variable = 0;"
  3567. -
  3568. -# Code to be used in simple link tests
  3569. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  3570. -
  3571. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3572. -_LT_AC_SYS_COMPILER
  3573. -
  3574. -# save warnings/boilerplate of simple test code
  3575. -_LT_COMPILER_BOILERPLATE
  3576. -_LT_LINKER_BOILERPLATE
  3577. + # Check to see that the pipe works correctly.
  3578. + pipe_works=no
  3579. -# Allow CC to be a program name with arguments.
  3580. -lt_save_CC=$CC
  3581. -lt_save_LD=$LD
  3582. -lt_save_GCC=$GCC
  3583. -GCC=$GXX
  3584. -lt_save_with_gnu_ld=$with_gnu_ld
  3585. -lt_save_path_LD=$lt_cv_path_LD
  3586. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3587. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3588. -else
  3589. - $as_unset lt_cv_prog_gnu_ld
  3590. -fi
  3591. -if test -n "${lt_cv_path_LDCXX+set}"; then
  3592. - lt_cv_path_LD=$lt_cv_path_LDCXX
  3593. -else
  3594. - $as_unset lt_cv_path_LD
  3595. -fi
  3596. -test -z "${LDCXX+set}" || LD=$LDCXX
  3597. -CC=${CXX-"c++"}
  3598. -compiler=$CC
  3599. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3600. -_LT_CC_BASENAME([$compiler])
  3601. + rm -f conftest*
  3602. + cat > conftest.$ac_ext <<_LT_EOF
  3603. +#ifdef __cplusplus
  3604. +extern "C" {
  3605. +#endif
  3606. +char nm_test_var;
  3607. +void nm_test_func(void);
  3608. +void nm_test_func(void){}
  3609. +#ifdef __cplusplus
  3610. +}
  3611. +#endif
  3612. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3613. +_LT_EOF
  3614. -# We don't want -fno-exception wen compiling C++ code, so set the
  3615. -# no_builtin_flag separately
  3616. -if test "$GXX" = yes; then
  3617. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3618. -else
  3619. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3620. -fi
  3621. + if AC_TRY_EVAL(ac_compile); then
  3622. + # Now try to grab the symbols.
  3623. + nlist=conftest.nm
  3624. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3625. + # Try sorting and uniquifying the output.
  3626. + if sort "$nlist" | uniq > "$nlist"T; then
  3627. + mv -f "$nlist"T "$nlist"
  3628. + else
  3629. + rm -f "$nlist"T
  3630. + fi
  3631. -if test "$GXX" = yes; then
  3632. - # Set up default GNU C++ configuration
  3633. + # Make sure that we snagged all the symbols we need.
  3634. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3635. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3636. + cat <<_LT_EOF > conftest.$ac_ext
  3637. +#ifdef __cplusplus
  3638. +extern "C" {
  3639. +#endif
  3640. - AC_PROG_LD
  3641. +_LT_EOF
  3642. + # Now generate the symbol file.
  3643. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3644. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3645. - # archiving commands below assume that GNU ld is being used.
  3646. - if test "$with_gnu_ld" = yes; then
  3647. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3648. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3649. + cat <<_LT_EOF >> conftest.$ac_ext
  3650. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3651. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3652. +/* The mapping between symbol names and symbols. */
  3653. +const struct {
  3654. + const char *name;
  3655. + void *address;
  3656. +}
  3657. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3658. +{
  3659. + { "@PROGRAM@", (void *) 0 },
  3660. +_LT_EOF
  3661. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3662. + cat <<\_LT_EOF >> conftest.$ac_ext
  3663. + {0, (void *) 0}
  3664. +};
  3665. - # If archive_cmds runs LD, not CC, wlarc should be empty
  3666. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3667. - # investigate it a little bit more. (MM)
  3668. - wlarc='${wl}'
  3669. +/* This works around a problem in FreeBSD linker */
  3670. +#ifdef FREEBSD_WORKAROUND
  3671. +static const void *lt_preloaded_setup() {
  3672. + return lt__PROGRAM__LTX_preloaded_symbols;
  3673. +}
  3674. +#endif
  3675. - # ancient GNU ld didn't support --whole-archive et. al.
  3676. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3677. - grep 'no-whole-archive' > /dev/null; then
  3678. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3679. +#ifdef __cplusplus
  3680. +}
  3681. +#endif
  3682. +_LT_EOF
  3683. + # Now try linking the two files.
  3684. + mv conftest.$ac_objext conftstm.$ac_objext
  3685. + lt_save_LIBS="$LIBS"
  3686. + lt_save_CFLAGS="$CFLAGS"
  3687. + LIBS="conftstm.$ac_objext"
  3688. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3689. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3690. + pipe_works=yes
  3691. + fi
  3692. + LIBS="$lt_save_LIBS"
  3693. + CFLAGS="$lt_save_CFLAGS"
  3694. + else
  3695. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3696. + fi
  3697. + else
  3698. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3699. + fi
  3700. else
  3701. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3702. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3703. fi
  3704. else
  3705. - with_gnu_ld=no
  3706. - wlarc=
  3707. -
  3708. - # A generic and very simple default shared library creation
  3709. - # command for GNU C++ for the case where it uses the native
  3710. - # linker, instead of GNU ld. If possible, this setting should
  3711. - # overridden to take advantage of the native linker features on
  3712. - # the platform it is being used on.
  3713. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3714. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3715. + cat conftest.$ac_ext >&5
  3716. fi
  3717. + rm -rf conftest* conftst*
  3718. - # Commands to make compiler produce verbose output that lists
  3719. - # what "hidden" libraries, object files and flags are used when
  3720. - # linking a shared library.
  3721. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3722. -
  3723. + # Do not use the global_symbol_pipe unless it works.
  3724. + if test "$pipe_works" = yes; then
  3725. + break
  3726. + else
  3727. + lt_cv_sys_global_symbol_pipe=
  3728. + fi
  3729. +done
  3730. +])
  3731. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3732. + lt_cv_sys_global_symbol_to_cdecl=
  3733. +fi
  3734. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3735. + AC_MSG_RESULT(failed)
  3736. else
  3737. - GXX=no
  3738. - with_gnu_ld=no
  3739. - wlarc=
  3740. + AC_MSG_RESULT(ok)
  3741. fi
  3742. -# PORTME: fill in a description of your system's C++ link characteristics
  3743. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3744. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3745. -case $host_os in
  3746. - aix3*)
  3747. - # FIXME: insert proper C++ library support
  3748. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3749. - ;;
  3750. - aix[[4-9]]*)
  3751. - if test "$host_cpu" = ia64; then
  3752. - # On IA64, the linker does run time linking by default, so we don't
  3753. - # have to do anything special.
  3754. - aix_use_runtimelinking=no
  3755. - exp_sym_flag='-Bexport'
  3756. - no_entry_flag=""
  3757. - else
  3758. - aix_use_runtimelinking=no
  3759. -
  3760. - # Test if we are trying to use run time linking or normal
  3761. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3762. - # need to do runtime linking.
  3763. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  3764. - for ld_flag in $LDFLAGS; do
  3765. - case $ld_flag in
  3766. - *-brtl*)
  3767. - aix_use_runtimelinking=yes
  3768. - break
  3769. - ;;
  3770. - esac
  3771. - done
  3772. - ;;
  3773. - esac
  3774. -
  3775. - exp_sym_flag='-bexport'
  3776. - no_entry_flag='-bnoentry'
  3777. - fi
  3778. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3779. + [Take the output of nm and produce a listing of raw symbols and C names])
  3780. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3781. + [Transform the output of nm in a proper C declaration])
  3782. +_LT_DECL([global_symbol_to_c_name_address],
  3783. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3784. + [Transform the output of nm in a C name address pair])
  3785. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3786. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3787. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3788. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3789. - # When large executables or shared objects are built, AIX ld can
  3790. - # have problems creating the table of contents. If linking a library
  3791. - # or program results in "error TOC overflow" add -mminimal-toc to
  3792. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3793. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3794. -
  3795. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3796. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3797. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3798. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3799. - if test "$GXX" = yes; then
  3800. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3801. - # We only want to do this on AIX 4.2 and lower, the check
  3802. - # below for broken collect2 doesn't work under 4.3+
  3803. - collect2name=`${CC} -print-prog-name=collect2`
  3804. - if test -f "$collect2name" && \
  3805. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3806. - then
  3807. - # We have reworked collect2
  3808. - :
  3809. - else
  3810. - # We have old collect2
  3811. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3812. - # It fails to find uninstalled libraries when the uninstalled
  3813. - # path is not listed in the libpath. Setting hardcode_minus_L
  3814. - # to unsupported forces relinking
  3815. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3816. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3817. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3818. - fi
  3819. - ;;
  3820. - esac
  3821. - shared_flag='-shared'
  3822. - if test "$aix_use_runtimelinking" = yes; then
  3823. - shared_flag="$shared_flag "'${wl}-G'
  3824. - fi
  3825. - else
  3826. - # not using gcc
  3827. - if test "$host_cpu" = ia64; then
  3828. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3829. - # chokes on -Wl,-G. The following line is correct:
  3830. - shared_flag='-G'
  3831. - else
  3832. - if test "$aix_use_runtimelinking" = yes; then
  3833. - shared_flag='${wl}-G'
  3834. - else
  3835. - shared_flag='${wl}-bM:SRE'
  3836. - fi
  3837. - fi
  3838. - fi
  3839. +# _LT_COMPILER_PIC([TAGNAME])
  3840. +# ---------------------------
  3841. +m4_defun([_LT_COMPILER_PIC],
  3842. +[m4_require([_LT_TAG_COMPILER])dnl
  3843. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3844. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3845. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3846. - # It seems that -bexpall does not export symbols beginning with
  3847. - # underscore (_), so it is better to generate a list of symbols to export.
  3848. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3849. - if test "$aix_use_runtimelinking" = yes; then
  3850. - # Warning - without using the other runtime loading flags (-brtl),
  3851. - # -berok will link without error, but may produce a broken library.
  3852. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3853. - # Determine the default libpath from the value encoded in an empty executable.
  3854. - _LT_AC_SYS_LIBPATH_AIX
  3855. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3856. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3857. +m4_if([$1], [CXX], [
  3858. + # C++ specific cases for pic, static, wl, etc.
  3859. + if test "$GXX" = yes; then
  3860. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3861. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3862. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3863. - else
  3864. + case $host_os in
  3865. + aix*)
  3866. + # All AIX code is PIC.
  3867. if test "$host_cpu" = ia64; then
  3868. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3869. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3870. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  3871. - else
  3872. - # Determine the default libpath from the value encoded in an empty executable.
  3873. - _LT_AC_SYS_LIBPATH_AIX
  3874. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3875. - # Warning - without using the other run time loading flags,
  3876. - # -berok will link without error, but may produce a broken library.
  3877. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3878. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3879. - # Exported symbols can be pulled into shared objects from archives
  3880. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3881. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3882. - # This is similar to how AIX traditionally builds its shared libraries.
  3883. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  3884. - fi
  3885. - fi
  3886. - ;;
  3887. -
  3888. - beos*)
  3889. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3890. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3891. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3892. - # support --undefined. This deserves some investigation. FIXME
  3893. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3894. - else
  3895. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3896. - fi
  3897. - ;;
  3898. -
  3899. - chorus*)
  3900. - case $cc_basename in
  3901. - *)
  3902. - # FIXME: insert proper C++ library support
  3903. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3904. - ;;
  3905. - esac
  3906. - ;;
  3907. -
  3908. - cygwin* | mingw* | pw32*)
  3909. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3910. - # as there is no search path for DLLs.
  3911. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3912. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3913. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3914. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3915. -
  3916. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3917. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3918. - # If the export-symbols file already is a .def file (1st line
  3919. - # is EXPORTS), use it as is; otherwise, prepend...
  3920. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3921. - cp $export_symbols $output_objdir/$soname.def;
  3922. - else
  3923. - echo EXPORTS > $output_objdir/$soname.def;
  3924. - cat $export_symbols >> $output_objdir/$soname.def;
  3925. - fi~
  3926. - $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'
  3927. - else
  3928. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3929. - fi
  3930. - ;;
  3931. - darwin* | rhapsody*)
  3932. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3933. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3934. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3935. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3936. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3937. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3938. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3939. - if test "$GXX" = yes ; then
  3940. - output_verbose_link_cmd='echo'
  3941. - _LT_AC_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}"
  3942. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3943. - _LT_AC_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}"
  3944. - _LT_AC_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}"
  3945. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3946. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  3947. - _LT_AC_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}"
  3948. - fi
  3949. - else
  3950. - case $cc_basename in
  3951. - xlc*)
  3952. - output_verbose_link_cmd='echo'
  3953. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  3954. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3955. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3956. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3957. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3958. - ;;
  3959. - *)
  3960. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3961. - ;;
  3962. - esac
  3963. - fi
  3964. - ;;
  3965. -
  3966. - dgux*)
  3967. - case $cc_basename in
  3968. - ec++*)
  3969. - # FIXME: insert proper C++ library support
  3970. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3971. - ;;
  3972. - ghcx*)
  3973. - # Green Hills C++ Compiler
  3974. - # FIXME: insert proper C++ library support
  3975. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3976. - ;;
  3977. - *)
  3978. - # FIXME: insert proper C++ library support
  3979. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3980. - ;;
  3981. - esac
  3982. - ;;
  3983. - freebsd[[12]]*)
  3984. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3985. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3986. - ;;
  3987. - freebsd-elf*)
  3988. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3989. - ;;
  3990. - freebsd* | dragonfly*)
  3991. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3992. - # conventions
  3993. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3994. - ;;
  3995. - gnu*)
  3996. - ;;
  3997. - hpux9*)
  3998. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3999. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4000. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4001. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4002. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4003. - # but as the default
  4004. - # location of the library.
  4005. -
  4006. - case $cc_basename in
  4007. - CC*)
  4008. - # FIXME: insert proper C++ library support
  4009. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4010. - ;;
  4011. - aCC*)
  4012. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4013. - # Commands to make compiler produce verbose output that lists
  4014. - # what "hidden" libraries, object files and flags are used when
  4015. - # linking a shared library.
  4016. - #
  4017. - # There doesn't appear to be a way to prevent this compiler from
  4018. - # explicitly linking system object files so we need to strip them
  4019. - # from the output so that they don't get included in the library
  4020. - # dependencies.
  4021. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4022. - ;;
  4023. - *)
  4024. - if test "$GXX" = yes; then
  4025. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4026. - else
  4027. - # FIXME: insert proper C++ library support
  4028. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4029. + # AIX 5 now supports IA64 processor
  4030. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4031. fi
  4032. ;;
  4033. - esac
  4034. - ;;
  4035. - hpux10*|hpux11*)
  4036. - if test $with_gnu_ld = no; then
  4037. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4038. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4039. + amigaos*)
  4040. case $host_cpu in
  4041. - hppa*64*|ia64*) ;;
  4042. - *)
  4043. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4044. + powerpc)
  4045. + # see comment about AmigaOS4 .so support
  4046. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4047. + ;;
  4048. + m68k)
  4049. + # FIXME: we need at least 68020 code to build shared libraries, but
  4050. + # adding the `-m68020' flag to GCC prevents building anything better,
  4051. + # like `-m68040'.
  4052. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4053. ;;
  4054. esac
  4055. - fi
  4056. - case $host_cpu in
  4057. - hppa*64*|ia64*)
  4058. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4059. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4060. - ;;
  4061. - *)
  4062. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4063. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4064. - # but as the default
  4065. - # location of the library.
  4066. ;;
  4067. - esac
  4068. - case $cc_basename in
  4069. - CC*)
  4070. - # FIXME: insert proper C++ library support
  4071. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4072. - ;;
  4073. - aCC*)
  4074. - case $host_cpu in
  4075. - hppa*64*)
  4076. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4077. - ;;
  4078. - ia64*)
  4079. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4080. - ;;
  4081. - *)
  4082. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4083. - ;;
  4084. - esac
  4085. - # Commands to make compiler produce verbose output that lists
  4086. - # what "hidden" libraries, object files and flags are used when
  4087. - # linking a shared library.
  4088. - #
  4089. - # There doesn't appear to be a way to prevent this compiler from
  4090. - # explicitly linking system object files so we need to strip them
  4091. - # from the output so that they don't get included in the library
  4092. - # dependencies.
  4093. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4094. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4095. + # PIC is the default for these OSes.
  4096. + ;;
  4097. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  4098. + # This hack is so that the source file can tell whether it is being
  4099. + # built for inclusion in a dll (and should export symbols for example).
  4100. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4101. + # (--disable-auto-import) libraries
  4102. + m4_if([$1], [GCJ], [],
  4103. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4104. + ;;
  4105. + darwin* | rhapsody*)
  4106. + # PIC is the default on this platform
  4107. + # Common symbols not allowed in MH_DYLIB files
  4108. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4109. + ;;
  4110. + *djgpp*)
  4111. + # DJGPP does not support shared libraries at all
  4112. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4113. + ;;
  4114. + interix[[3-9]]*)
  4115. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4116. + # Instead, we relocate shared libraries at runtime.
  4117. + ;;
  4118. + sysv4*MP*)
  4119. + if test -d /usr/nec; then
  4120. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4121. + fi
  4122. + ;;
  4123. + hpux*)
  4124. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4125. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4126. + # sets the default TLS model and affects inlining.
  4127. + case $host_cpu in
  4128. + hppa*64*)
  4129. ;;
  4130. *)
  4131. - if test "$GXX" = yes; then
  4132. - if test $with_gnu_ld = no; then
  4133. - case $host_cpu in
  4134. - hppa*64*)
  4135. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4136. - ;;
  4137. - ia64*)
  4138. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4139. - ;;
  4140. - *)
  4141. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4142. - ;;
  4143. - esac
  4144. - fi
  4145. - else
  4146. - # FIXME: insert proper C++ library support
  4147. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4148. - fi
  4149. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4150. ;;
  4151. + esac
  4152. + ;;
  4153. + *qnx* | *nto*)
  4154. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4155. + # it will coredump.
  4156. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4157. + ;;
  4158. + *)
  4159. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4160. + ;;
  4161. esac
  4162. - ;;
  4163. - interix[[3-9]]*)
  4164. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4165. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4166. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4167. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4168. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4169. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  4170. - # default) and relocated if they conflict, which is a slow very memory
  4171. - # consuming and fragmenting process. To avoid this, we pick a random,
  4172. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4173. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4174. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4175. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4176. - ;;
  4177. - irix5* | irix6*)
  4178. - case $cc_basename in
  4179. - CC*)
  4180. - # SGI C++
  4181. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4182. -
  4183. - # Archives containing C++ object files must be created using
  4184. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4185. - # necessary to make sure instantiated templates are included
  4186. - # in the archive.
  4187. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4188. - ;;
  4189. - *)
  4190. - if test "$GXX" = yes; then
  4191. - if test "$with_gnu_ld" = no; then
  4192. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4193. - else
  4194. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  4195. - fi
  4196. + else
  4197. + case $host_os in
  4198. + aix[[4-9]]*)
  4199. + # All AIX code is PIC.
  4200. + if test "$host_cpu" = ia64; then
  4201. + # AIX 5 now supports IA64 processor
  4202. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4203. + else
  4204. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4205. fi
  4206. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4207. ;;
  4208. - esac
  4209. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4210. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4211. - ;;
  4212. - linux* | k*bsd*-gnu)
  4213. - case $cc_basename in
  4214. - KCC*)
  4215. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4216. -
  4217. - # KCC will only create a shared library if the output file
  4218. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4219. - # to its proper name (with version) after linking.
  4220. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4221. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  4222. - # Commands to make compiler produce verbose output that lists
  4223. - # what "hidden" libraries, object files and flags are used when
  4224. - # linking a shared library.
  4225. - #
  4226. - # There doesn't appear to be a way to prevent this compiler from
  4227. - # explicitly linking system object files so we need to strip them
  4228. - # from the output so that they don't get included in the library
  4229. - # dependencies.
  4230. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4231. -
  4232. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4233. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4234. -
  4235. - # Archives containing C++ object files must be created using
  4236. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4237. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4238. - ;;
  4239. - icpc*)
  4240. - # Intel C++
  4241. - with_gnu_ld=yes
  4242. - # version 8.0 and above of icpc choke on multiply defined symbols
  4243. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  4244. - # earlier do not add the objects themselves.
  4245. - case `$CC -V 2>&1` in
  4246. - *"Version 7."*)
  4247. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4248. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4249. - ;;
  4250. - *) # Version 8.0 or newer
  4251. - tmp_idyn=
  4252. - case $host_cpu in
  4253. - ia64*) tmp_idyn=' -i_dynamic';;
  4254. - esac
  4255. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4256. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4257. + chorus*)
  4258. + case $cc_basename in
  4259. + cxch68*)
  4260. + # Green Hills C++ Compiler
  4261. + # _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"
  4262. ;;
  4263. esac
  4264. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4265. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4266. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4267. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4268. - ;;
  4269. - pgCC* | pgcpp*)
  4270. - # Portland Group C++ compiler
  4271. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4272. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  4273. -
  4274. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4275. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4276. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4277. - ;;
  4278. - cxx*)
  4279. - # Compaq C++
  4280. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4281. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  4282. -
  4283. - runpath_var=LD_RUN_PATH
  4284. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4285. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4286. -
  4287. - # Commands to make compiler produce verbose output that lists
  4288. - # what "hidden" libraries, object files and flags are used when
  4289. - # linking a shared library.
  4290. - #
  4291. - # There doesn't appear to be a way to prevent this compiler from
  4292. - # explicitly linking system object files so we need to strip them
  4293. - # from the output so that they don't get included in the library
  4294. - # dependencies.
  4295. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4296. ;;
  4297. - *)
  4298. - case `$CC -V 2>&1 | sed 5q` in
  4299. - *Sun\ C*)
  4300. - # Sun C++ 5.9
  4301. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4302. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4303. - _LT_AC_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'
  4304. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4305. - _LT_AC_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'
  4306. -
  4307. - # Not sure whether something based on
  4308. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4309. - # would be better.
  4310. - output_verbose_link_cmd='echo'
  4311. -
  4312. - # Archives containing C++ object files must be created using
  4313. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4314. - # necessary to make sure instantiated templates are included
  4315. - # in the archive.
  4316. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4317. - ;;
  4318. + dgux*)
  4319. + case $cc_basename in
  4320. + ec++*)
  4321. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4322. + ;;
  4323. + ghcx*)
  4324. + # Green Hills C++ Compiler
  4325. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4326. + ;;
  4327. + *)
  4328. + ;;
  4329. esac
  4330. ;;
  4331. - esac
  4332. - ;;
  4333. - lynxos*)
  4334. - # FIXME: insert proper C++ library support
  4335. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4336. - ;;
  4337. - m88k*)
  4338. - # FIXME: insert proper C++ library support
  4339. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4340. - ;;
  4341. - mvs*)
  4342. - case $cc_basename in
  4343. - cxx*)
  4344. - # FIXME: insert proper C++ library support
  4345. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4346. - ;;
  4347. - *)
  4348. - # FIXME: insert proper C++ library support
  4349. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4350. + freebsd* | dragonfly*)
  4351. + # FreeBSD uses GNU C++
  4352. ;;
  4353. - esac
  4354. - ;;
  4355. - netbsd*)
  4356. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4357. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4358. - wlarc=
  4359. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4360. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4361. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4362. - fi
  4363. - # Workaround some broken pre-1.5 toolchains
  4364. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4365. - ;;
  4366. - openbsd2*)
  4367. - # C++ shared libraries are fairly broken
  4368. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4369. - ;;
  4370. - openbsd*)
  4371. - if test -f /usr/libexec/ld.so; then
  4372. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4373. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4374. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4375. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4376. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4377. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  4378. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4379. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4380. - fi
  4381. - output_verbose_link_cmd='echo'
  4382. - else
  4383. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4384. - fi
  4385. - ;;
  4386. - osf3*)
  4387. - case $cc_basename in
  4388. - KCC*)
  4389. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4390. -
  4391. - # KCC will only create a shared library if the output file
  4392. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4393. - # to its proper name (with version) after linking.
  4394. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4395. -
  4396. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4397. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4398. -
  4399. - # Archives containing C++ object files must be created using
  4400. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4401. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4402. -
  4403. - ;;
  4404. - RCC*)
  4405. - # Rational C++ 2.4.1
  4406. - # FIXME: insert proper C++ library support
  4407. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4408. - ;;
  4409. - cxx*)
  4410. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4411. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4412. -
  4413. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4414. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4415. -
  4416. - # Commands to make compiler produce verbose output that lists
  4417. - # what "hidden" libraries, object files and flags are used when
  4418. - # linking a shared library.
  4419. - #
  4420. - # There doesn't appear to be a way to prevent this compiler from
  4421. - # explicitly linking system object files so we need to strip them
  4422. - # from the output so that they don't get included in the library
  4423. - # dependencies.
  4424. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4425. + hpux9* | hpux10* | hpux11*)
  4426. + case $cc_basename in
  4427. + CC*)
  4428. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4429. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4430. + if test "$host_cpu" != ia64; then
  4431. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4432. + fi
  4433. + ;;
  4434. + aCC*)
  4435. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4436. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4437. + case $host_cpu in
  4438. + hppa*64*|ia64*)
  4439. + # +Z the default
  4440. + ;;
  4441. + *)
  4442. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4443. + ;;
  4444. + esac
  4445. + ;;
  4446. + *)
  4447. + ;;
  4448. + esac
  4449. ;;
  4450. - *)
  4451. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4452. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4453. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4454. -
  4455. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4456. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4457. -
  4458. - # Commands to make compiler produce verbose output that lists
  4459. - # what "hidden" libraries, object files and flags are used when
  4460. - # linking a shared library.
  4461. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4462. -
  4463. - else
  4464. - # FIXME: insert proper C++ library support
  4465. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4466. - fi
  4467. + interix*)
  4468. + # This is c89, which is MS Visual C++ (no shared libs)
  4469. + # Anyone wants to do a port?
  4470. ;;
  4471. - esac
  4472. - ;;
  4473. - osf4* | osf5*)
  4474. - case $cc_basename in
  4475. - KCC*)
  4476. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4477. -
  4478. - # KCC will only create a shared library if the output file
  4479. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4480. - # to its proper name (with version) after linking.
  4481. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4482. -
  4483. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4484. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4485. -
  4486. - # Archives containing C++ object files must be created using
  4487. - # the KAI C++ compiler.
  4488. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4489. - ;;
  4490. - RCC*)
  4491. - # Rational C++ 2.4.1
  4492. - # FIXME: insert proper C++ library support
  4493. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4494. - ;;
  4495. - cxx*)
  4496. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4497. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4498. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4499. - echo "-hidden">> $lib.exp~
  4500. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  4501. - $rm $lib.exp'
  4502. -
  4503. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4504. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4505. -
  4506. - # Commands to make compiler produce verbose output that lists
  4507. - # what "hidden" libraries, object files and flags are used when
  4508. - # linking a shared library.
  4509. - #
  4510. - # There doesn't appear to be a way to prevent this compiler from
  4511. - # explicitly linking system object files so we need to strip them
  4512. - # from the output so that they don't get included in the library
  4513. - # dependencies.
  4514. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4515. + irix5* | irix6* | nonstopux*)
  4516. + case $cc_basename in
  4517. + CC*)
  4518. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4519. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4520. + # CC pic flag -KPIC is the default.
  4521. + ;;
  4522. + *)
  4523. + ;;
  4524. + esac
  4525. ;;
  4526. - *)
  4527. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4528. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4529. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4530. -
  4531. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4532. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4533. -
  4534. - # Commands to make compiler produce verbose output that lists
  4535. - # what "hidden" libraries, object files and flags are used when
  4536. - # linking a shared library.
  4537. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4538. -
  4539. - else
  4540. - # FIXME: insert proper C++ library support
  4541. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4542. - fi
  4543. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4544. + case $cc_basename in
  4545. + KCC*)
  4546. + # KAI C++ Compiler
  4547. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4548. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4549. + ;;
  4550. + ecpc* )
  4551. + # old Intel C++ for x86_64 which still supported -KPIC.
  4552. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4553. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4554. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4555. + ;;
  4556. + icpc* )
  4557. + # Intel C++, used to be incompatible with GCC.
  4558. + # ICC 10 doesn't accept -KPIC any more.
  4559. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4560. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4561. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4562. + ;;
  4563. + pgCC* | pgcpp*)
  4564. + # Portland Group C++ compiler
  4565. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4566. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4567. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4568. + ;;
  4569. + cxx*)
  4570. + # Compaq C++
  4571. + # Make sure the PIC flag is empty. It appears that all Alpha
  4572. + # Linux and Compaq Tru64 Unix objects are PIC.
  4573. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4574. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4575. + ;;
  4576. + xlc* | xlC*)
  4577. + # IBM XL 8.0 on PPC
  4578. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4579. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4580. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4581. + ;;
  4582. + *)
  4583. + case `$CC -V 2>&1 | sed 5q` in
  4584. + *Sun\ C*)
  4585. + # Sun C++ 5.9
  4586. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4587. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4588. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4589. + ;;
  4590. + esac
  4591. + ;;
  4592. + esac
  4593. ;;
  4594. - esac
  4595. - ;;
  4596. - psos*)
  4597. - # FIXME: insert proper C++ library support
  4598. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4599. - ;;
  4600. - sunos4*)
  4601. - case $cc_basename in
  4602. - CC*)
  4603. - # Sun C++ 4.x
  4604. - # FIXME: insert proper C++ library support
  4605. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4606. - ;;
  4607. - lcc*)
  4608. - # Lucid
  4609. - # FIXME: insert proper C++ library support
  4610. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4611. + lynxos*)
  4612. ;;
  4613. - *)
  4614. - # FIXME: insert proper C++ library support
  4615. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4616. + m88k*)
  4617. ;;
  4618. - esac
  4619. - ;;
  4620. - solaris*)
  4621. - case $cc_basename in
  4622. - CC*)
  4623. - # Sun C++ 4.2, 5.x and Centerline C++
  4624. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4625. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4626. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4627. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4628. - $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'
  4629. -
  4630. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4631. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4632. - case $host_os in
  4633. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4634. + mvs*)
  4635. + case $cc_basename in
  4636. + cxx*)
  4637. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4638. + ;;
  4639. *)
  4640. - # The compiler driver will combine and reorder linker options,
  4641. - # but understands `-z linker_flag'.
  4642. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  4643. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4644. ;;
  4645. esac
  4646. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4647. -
  4648. - output_verbose_link_cmd='echo'
  4649. -
  4650. - # Archives containing C++ object files must be created using
  4651. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4652. - # necessary to make sure instantiated templates are included
  4653. - # in the archive.
  4654. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4655. - ;;
  4656. - gcx*)
  4657. - # Green Hills C++ Compiler
  4658. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4659. -
  4660. - # The C++ compiler must be used to create the archive.
  4661. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  4662. ;;
  4663. - *)
  4664. - # GNU C++ compiler with Solaris linker
  4665. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4666. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  4667. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  4668. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4669. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4670. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4671. -
  4672. - # Commands to make compiler produce verbose output that lists
  4673. - # what "hidden" libraries, object files and flags are used when
  4674. - # linking a shared library.
  4675. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4676. - else
  4677. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  4678. - # platform.
  4679. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4680. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4681. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4682. -
  4683. - # Commands to make compiler produce verbose output that lists
  4684. - # what "hidden" libraries, object files and flags are used when
  4685. - # linking a shared library.
  4686. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4687. - fi
  4688. -
  4689. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4690. - case $host_os in
  4691. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4692. + netbsd* | netbsdelf*-gnu)
  4693. + ;;
  4694. + *qnx* | *nto*)
  4695. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4696. + # it will coredump.
  4697. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4698. + ;;
  4699. + osf3* | osf4* | osf5*)
  4700. + case $cc_basename in
  4701. + KCC*)
  4702. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4703. + ;;
  4704. + RCC*)
  4705. + # Rational C++ 2.4.1
  4706. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4707. + ;;
  4708. + cxx*)
  4709. + # Digital/Compaq C++
  4710. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4711. + # Make sure the PIC flag is empty. It appears that all Alpha
  4712. + # Linux and Compaq Tru64 Unix objects are PIC.
  4713. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4714. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4715. + ;;
  4716. *)
  4717. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4718. ;;
  4719. - esac
  4720. - fi
  4721. + esac
  4722. ;;
  4723. - esac
  4724. - ;;
  4725. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4726. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4727. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4728. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4729. - runpath_var='LD_RUN_PATH'
  4730. -
  4731. - case $cc_basename in
  4732. - CC*)
  4733. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4734. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4735. + psos*)
  4736. ;;
  4737. - *)
  4738. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4739. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4740. + solaris*)
  4741. + case $cc_basename in
  4742. + CC*)
  4743. + # Sun C++ 4.2, 5.x and Centerline C++
  4744. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4745. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4746. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4747. + ;;
  4748. + gcx*)
  4749. + # Green Hills C++ Compiler
  4750. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4751. + ;;
  4752. + *)
  4753. + ;;
  4754. + esac
  4755. ;;
  4756. - esac
  4757. - ;;
  4758. - sysv5* | sco3.2v5* | sco5v6*)
  4759. - # Note: We can NOT use -z defs as we might desire, because we do not
  4760. - # link with -lc, and that would cause any symbols used from libc to
  4761. - # always be unresolved, which means just about no library would
  4762. - # ever link correctly. If we're not using GNU ld we use -z text
  4763. - # though, which does catch some bad symbols but isn't as heavy-handed
  4764. - # as -z defs.
  4765. - # For security reasons, it is highly recommended that you always
  4766. - # use absolute paths for naming shared libraries, and exclude the
  4767. - # DT_RUNPATH tag from executables and libraries. But doing so
  4768. - # requires that you compile everything twice, which is a pain.
  4769. - # So that behaviour is only enabled if SCOABSPATH is set to a
  4770. - # non-empty value in the environment. Most likely only useful for
  4771. - # creating official distributions of packages.
  4772. - # This is a hack until libtool officially supports absolute path
  4773. - # names for shared libraries.
  4774. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4775. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4776. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4777. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4778. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4779. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4780. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4781. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4782. - runpath_var='LD_RUN_PATH'
  4783. -
  4784. - case $cc_basename in
  4785. - CC*)
  4786. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4787. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4788. + sunos4*)
  4789. + case $cc_basename in
  4790. + CC*)
  4791. + # Sun C++ 4.x
  4792. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4793. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4794. + ;;
  4795. + lcc*)
  4796. + # Lucid
  4797. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4798. + ;;
  4799. + *)
  4800. + ;;
  4801. + esac
  4802. ;;
  4803. - *)
  4804. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4805. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4806. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4807. + case $cc_basename in
  4808. + CC*)
  4809. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4810. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4811. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4812. + ;;
  4813. + esac
  4814. ;;
  4815. - esac
  4816. - ;;
  4817. - tandem*)
  4818. - case $cc_basename in
  4819. - NCC*)
  4820. - # NonStop-UX NCC 3.20
  4821. - # FIXME: insert proper C++ library support
  4822. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4823. + tandem*)
  4824. + case $cc_basename in
  4825. + NCC*)
  4826. + # NonStop-UX NCC 3.20
  4827. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4828. + ;;
  4829. + *)
  4830. + ;;
  4831. + esac
  4832. + ;;
  4833. + vxworks*)
  4834. ;;
  4835. *)
  4836. - # FIXME: insert proper C++ library support
  4837. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4838. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4839. ;;
  4840. esac
  4841. - ;;
  4842. - vxworks*)
  4843. - # FIXME: insert proper C++ library support
  4844. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4845. - ;;
  4846. - *)
  4847. - # FIXME: insert proper C++ library support
  4848. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4849. - ;;
  4850. -esac
  4851. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4852. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4853. -
  4854. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  4855. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4856. -
  4857. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  4858. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4859. -AC_LIBTOOL_PROG_CC_C_O($1)
  4860. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4861. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4862. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4863. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4864. -
  4865. -AC_LIBTOOL_CONFIG($1)
  4866. + fi
  4867. +],
  4868. +[
  4869. + if test "$GCC" = yes; then
  4870. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4871. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4872. -AC_LANG_POP
  4873. -CC=$lt_save_CC
  4874. -LDCXX=$LD
  4875. -LD=$lt_save_LD
  4876. -GCC=$lt_save_GCC
  4877. -with_gnu_ldcxx=$with_gnu_ld
  4878. -with_gnu_ld=$lt_save_with_gnu_ld
  4879. -lt_cv_path_LDCXX=$lt_cv_path_LD
  4880. -lt_cv_path_LD=$lt_save_path_LD
  4881. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  4882. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  4883. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  4884. + case $host_os in
  4885. + aix*)
  4886. + # All AIX code is PIC.
  4887. + if test "$host_cpu" = ia64; then
  4888. + # AIX 5 now supports IA64 processor
  4889. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4890. + fi
  4891. + ;;
  4892. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4893. -# ------------------------------------
  4894. -# Figure out "hidden" library dependencies from verbose
  4895. -# compiler output when linking a shared library.
  4896. -# Parse the compiler output and extract the necessary
  4897. -# objects, libraries and library flags.
  4898. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  4899. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4900. -dnl we can't use the lt_simple_compile_test_code here,
  4901. -dnl because it contains code intended for an executable,
  4902. -dnl not a library. It's possible we should let each
  4903. -dnl tag define a new lt_????_link_test_code variable,
  4904. -dnl but it's only used here...
  4905. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  4906. -int a;
  4907. -void foo (void) { a = 0; }
  4908. -EOF
  4909. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  4910. -class Foo
  4911. -{
  4912. -public:
  4913. - Foo (void) { a = 0; }
  4914. -private:
  4915. - int a;
  4916. -};
  4917. -EOF
  4918. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  4919. - subroutine foo
  4920. - implicit none
  4921. - integer*4 a
  4922. - a=0
  4923. - return
  4924. - end
  4925. -EOF
  4926. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  4927. -public class foo {
  4928. - private int a;
  4929. - public void bar (void) {
  4930. - a = 0;
  4931. - }
  4932. -};
  4933. -EOF
  4934. -])
  4935. -dnl Parse the compiler output and extract the necessary
  4936. -dnl objects, libraries and library flags.
  4937. -if AC_TRY_EVAL(ac_compile); then
  4938. - # Parse the compiler output and extract the necessary
  4939. - # objects, libraries and library flags.
  4940. + amigaos*)
  4941. + case $host_cpu in
  4942. + powerpc)
  4943. + # see comment about AmigaOS4 .so support
  4944. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4945. + ;;
  4946. + m68k)
  4947. + # FIXME: we need at least 68020 code to build shared libraries, but
  4948. + # adding the `-m68020' flag to GCC prevents building anything better,
  4949. + # like `-m68040'.
  4950. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4951. + ;;
  4952. + esac
  4953. + ;;
  4954. - # Sentinel used to keep track of whether or not we are before
  4955. - # the conftest object file.
  4956. - pre_test_object_deps_done=no
  4957. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4958. + # PIC is the default for these OSes.
  4959. + ;;
  4960. - # The `*' in the case matches for architectures that use `case' in
  4961. - # $output_verbose_cmd can trigger glob expansion during the loop
  4962. - # eval without this substitution.
  4963. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4964. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4965. + # This hack is so that the source file can tell whether it is being
  4966. + # built for inclusion in a dll (and should export symbols for example).
  4967. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4968. + # (--disable-auto-import) libraries
  4969. + m4_if([$1], [GCJ], [],
  4970. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4971. + ;;
  4972. - for p in `eval $output_verbose_link_cmd`; do
  4973. - case $p in
  4974. + darwin* | rhapsody*)
  4975. + # PIC is the default on this platform
  4976. + # Common symbols not allowed in MH_DYLIB files
  4977. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4978. + ;;
  4979. - -L* | -R* | -l*)
  4980. - # Some compilers place space between "-{L,R}" and the path.
  4981. - # Remove the space.
  4982. - if test $p = "-L" \
  4983. - || test $p = "-R"; then
  4984. - prev=$p
  4985. - continue
  4986. - else
  4987. - prev=
  4988. - fi
  4989. + hpux*)
  4990. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4991. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4992. + # sets the default TLS model and affects inlining.
  4993. + case $host_cpu in
  4994. + hppa*64*)
  4995. + # +Z the default
  4996. + ;;
  4997. + *)
  4998. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4999. + ;;
  5000. + esac
  5001. + ;;
  5002. - if test "$pre_test_object_deps_done" = no; then
  5003. - case $p in
  5004. - -L* | -R*)
  5005. - # Internal compiler library paths should come after those
  5006. - # provided the user. The postdeps already come after the
  5007. - # user supplied libs so there is no need to process them.
  5008. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5009. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5010. - else
  5011. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5012. - fi
  5013. - ;;
  5014. - # The "-l" case would never come before the object being
  5015. - # linked, so don't bother handling this case.
  5016. - esac
  5017. - else
  5018. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5019. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5020. - else
  5021. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5022. - fi
  5023. - fi
  5024. - ;;
  5025. + interix[[3-9]]*)
  5026. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5027. + # Instead, we relocate shared libraries at runtime.
  5028. + ;;
  5029. - *.$objext)
  5030. - # This assumes that the test object file only shows up
  5031. - # once in the compiler output.
  5032. - if test "$p" = "conftest.$objext"; then
  5033. - pre_test_object_deps_done=yes
  5034. - continue
  5035. - fi
  5036. + msdosdjgpp*)
  5037. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  5038. + # on systems that don't support them.
  5039. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5040. + enable_shared=no
  5041. + ;;
  5042. - if test "$pre_test_object_deps_done" = no; then
  5043. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5044. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5045. - else
  5046. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5047. - fi
  5048. - else
  5049. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5050. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5051. - else
  5052. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5053. - fi
  5054. - fi
  5055. - ;;
  5056. + *nto* | *qnx*)
  5057. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5058. + # it will coredump.
  5059. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5060. + ;;
  5061. - *) ;; # Ignore the rest.
  5062. + sysv4*MP*)
  5063. + if test -d /usr/nec; then
  5064. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5065. + fi
  5066. + ;;
  5067. + *)
  5068. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5069. + ;;
  5070. esac
  5071. - done
  5072. + else
  5073. + # PORTME Check for flag to pass linker flags through the system compiler.
  5074. + case $host_os in
  5075. + aix*)
  5076. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5077. + if test "$host_cpu" = ia64; then
  5078. + # AIX 5 now supports IA64 processor
  5079. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5080. + else
  5081. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5082. + fi
  5083. + ;;
  5084. - # Clean up.
  5085. - rm -f a.out a.exe
  5086. -else
  5087. - echo "libtool.m4: error: problem compiling $1 test program"
  5088. -fi
  5089. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5090. + # This hack is so that the source file can tell whether it is being
  5091. + # built for inclusion in a dll (and should export symbols for example).
  5092. + m4_if([$1], [GCJ], [],
  5093. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5094. + ;;
  5095. -$rm -f confest.$objext
  5096. + hpux9* | hpux10* | hpux11*)
  5097. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5098. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5099. + # not for PA HP-UX.
  5100. + case $host_cpu in
  5101. + hppa*64*|ia64*)
  5102. + # +Z the default
  5103. + ;;
  5104. + *)
  5105. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5106. + ;;
  5107. + esac
  5108. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5109. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5110. + ;;
  5111. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  5112. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5113. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  5114. -fi
  5115. + irix5* | irix6* | nonstopux*)
  5116. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5117. + # PIC (with -KPIC) is the default.
  5118. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5119. + ;;
  5120. -# PORTME: override above test on systems where it is broken
  5121. -ifelse([$1],[CXX],
  5122. -[case $host_os in
  5123. -interix[[3-9]]*)
  5124. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5125. - # hack all around it, let's just trust "g++" to DTRT.
  5126. - _LT_AC_TAGVAR(predep_objects,$1)=
  5127. - _LT_AC_TAGVAR(postdep_objects,$1)=
  5128. - _LT_AC_TAGVAR(postdeps,$1)=
  5129. - ;;
  5130. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5131. + case $cc_basename in
  5132. + # old Intel for x86_64 which still supported -KPIC.
  5133. + ecc*)
  5134. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5135. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5136. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5137. + ;;
  5138. + # icc used to be incompatible with GCC.
  5139. + # ICC 10 doesn't accept -KPIC any more.
  5140. + icc* | ifort*)
  5141. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5142. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5143. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5144. + ;;
  5145. + # Lahey Fortran 8.1.
  5146. + lf95*)
  5147. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5148. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  5149. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  5150. + ;;
  5151. + pgcc* | pgf77* | pgf90* | pgf95*)
  5152. + # Portland Group compilers (*not* the Pentium gcc compiler,
  5153. + # which looks to be a dead project)
  5154. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5155. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5156. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5157. + ;;
  5158. + ccc*)
  5159. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5160. + # All Alpha code is PIC.
  5161. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5162. + ;;
  5163. + xl*)
  5164. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5165. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5166. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5167. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5168. + ;;
  5169. + *)
  5170. + case `$CC -V 2>&1 | sed 5q` in
  5171. + *Sun\ C*)
  5172. + # Sun C 5.9
  5173. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5174. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5175. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5176. + ;;
  5177. + *Sun\ F*)
  5178. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5179. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5180. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5181. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  5182. + ;;
  5183. + esac
  5184. + ;;
  5185. + esac
  5186. + ;;
  5187. -linux*)
  5188. - case `$CC -V 2>&1 | sed 5q` in
  5189. - *Sun\ C*)
  5190. - # Sun C++ 5.9
  5191. - #
  5192. - # The more standards-conforming stlport4 library is
  5193. - # incompatible with the Cstd library. Avoid specifying
  5194. - # it if it's in CXXFLAGS. Ignore libCrun as
  5195. - # -library=stlport4 depends on it.
  5196. - case " $CXX $CXXFLAGS " in
  5197. - *" -library=stlport4 "*)
  5198. - solaris_use_stlport4=yes
  5199. + newsos6)
  5200. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5201. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5202. ;;
  5203. - esac
  5204. - if test "$solaris_use_stlport4" != yes; then
  5205. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5206. - fi
  5207. - ;;
  5208. - esac
  5209. - ;;
  5210. -solaris*)
  5211. - case $cc_basename in
  5212. - CC*)
  5213. - # The more standards-conforming stlport4 library is
  5214. - # incompatible with the Cstd library. Avoid specifying
  5215. - # it if it's in CXXFLAGS. Ignore libCrun as
  5216. - # -library=stlport4 depends on it.
  5217. - case " $CXX $CXXFLAGS " in
  5218. - *" -library=stlport4 "*)
  5219. - solaris_use_stlport4=yes
  5220. + *nto* | *qnx*)
  5221. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5222. + # it will coredump.
  5223. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5224. ;;
  5225. - esac
  5226. - # Adding this requires a known-good setup of shared libraries for
  5227. - # Sun compiler versions before 5.6, else PIC objects from an old
  5228. - # archive will be linked into the output, leading to subtle bugs.
  5229. - if test "$solaris_use_stlport4" != yes; then
  5230. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5231. - fi
  5232. - ;;
  5233. - esac
  5234. - ;;
  5235. -esac
  5236. -])
  5237. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5238. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5239. -esac
  5240. -])# AC_LIBTOOL_POSTDEP_PREDEP
  5241. + osf3* | osf4* | osf5*)
  5242. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5243. + # All OSF/1 code is PIC.
  5244. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5245. + ;;
  5246. -# AC_LIBTOOL_LANG_F77_CONFIG
  5247. -# --------------------------
  5248. -# Ensure that the configuration vars for the C compiler are
  5249. -# suitably defined. Those variables are subsequently used by
  5250. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5251. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5252. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5253. -[AC_REQUIRE([AC_PROG_F77])
  5254. -AC_LANG_PUSH(Fortran 77)
  5255. + rdos*)
  5256. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5257. + ;;
  5258. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5259. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5260. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5261. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5262. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5263. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5264. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5265. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5266. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5267. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5268. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5269. -_LT_AC_TAGVAR(module_cmds, $1)=
  5270. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5271. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5272. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5273. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5274. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5275. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5276. -
  5277. -# Source file extension for f77 test sources.
  5278. -ac_ext=f
  5279. -
  5280. -# Object file extension for compiled f77 test sources.
  5281. -objext=o
  5282. -_LT_AC_TAGVAR(objext, $1)=$objext
  5283. -
  5284. -# Code to be used in simple compile tests
  5285. -lt_simple_compile_test_code="\
  5286. - subroutine t
  5287. - return
  5288. - end
  5289. -"
  5290. + solaris*)
  5291. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5292. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5293. + case $cc_basename in
  5294. + f77* | f90* | f95*)
  5295. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5296. + *)
  5297. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5298. + esac
  5299. + ;;
  5300. -# Code to be used in simple link tests
  5301. -lt_simple_link_test_code="\
  5302. - program t
  5303. - end
  5304. -"
  5305. + sunos4*)
  5306. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5307. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5308. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5309. + ;;
  5310. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5311. -_LT_AC_SYS_COMPILER
  5312. + sysv4 | sysv4.2uw2* | sysv4.3*)
  5313. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5314. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5315. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5316. + ;;
  5317. -# save warnings/boilerplate of simple test code
  5318. -_LT_COMPILER_BOILERPLATE
  5319. -_LT_LINKER_BOILERPLATE
  5320. + sysv4*MP*)
  5321. + if test -d /usr/nec ;then
  5322. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5323. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5324. + fi
  5325. + ;;
  5326. -# Allow CC to be a program name with arguments.
  5327. -lt_save_CC="$CC"
  5328. -CC=${F77-"f77"}
  5329. -compiler=$CC
  5330. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5331. -_LT_CC_BASENAME([$compiler])
  5332. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5333. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5334. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5335. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5336. + ;;
  5337. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5338. -AC_MSG_RESULT([$can_build_shared])
  5339. + unicos*)
  5340. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5341. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5342. + ;;
  5343. -AC_MSG_CHECKING([whether to build shared libraries])
  5344. -test "$can_build_shared" = "no" && enable_shared=no
  5345. + uts4*)
  5346. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5347. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5348. + ;;
  5349. -# On AIX, shared libraries and static libraries use the same namespace, and
  5350. -# are all built from PIC.
  5351. -case $host_os in
  5352. -aix3*)
  5353. - test "$enable_shared" = yes && enable_static=no
  5354. - if test -n "$RANLIB"; then
  5355. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5356. - postinstall_cmds='$RANLIB $lib'
  5357. - fi
  5358. - ;;
  5359. -aix[[4-9]]*)
  5360. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5361. - test "$enable_shared" = yes && enable_static=no
  5362. + *)
  5363. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5364. + ;;
  5365. + esac
  5366. fi
  5367. - ;;
  5368. +])
  5369. +case $host_os in
  5370. + # For platforms which do not support PIC, -DPIC is meaningless:
  5371. + *djgpp*)
  5372. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5373. + ;;
  5374. + *)
  5375. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5376. + ;;
  5377. esac
  5378. -AC_MSG_RESULT([$enable_shared])
  5379. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5380. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5381. + [How to pass a linker flag through the compiler])
  5382. -AC_MSG_CHECKING([whether to build static libraries])
  5383. -# Make sure either enable_shared or enable_static is yes.
  5384. -test "$enable_shared" = yes || enable_static=yes
  5385. -AC_MSG_RESULT([$enable_static])
  5386. -
  5387. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  5388. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5389. -
  5390. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5391. -AC_LIBTOOL_PROG_CC_C_O($1)
  5392. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5393. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5394. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5395. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5396. +#
  5397. +# Check to make sure the PIC flag actually works.
  5398. +#
  5399. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5400. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5401. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5402. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5403. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5404. + "" | " "*) ;;
  5405. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5406. + esac],
  5407. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5408. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5409. +fi
  5410. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5411. + [Additional compiler flags for building library objects])
  5412. -AC_LIBTOOL_CONFIG($1)
  5413. +#
  5414. +# Check to make sure the static flag actually works.
  5415. +#
  5416. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5417. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5418. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5419. + $lt_tmp_static_flag,
  5420. + [],
  5421. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5422. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5423. + [Compiler flag to prevent dynamic linking])
  5424. +])# _LT_COMPILER_PIC
  5425. -AC_LANG_POP
  5426. -CC="$lt_save_CC"
  5427. -])# AC_LIBTOOL_LANG_F77_CONFIG
  5428. +# _LT_LINKER_SHLIBS([TAGNAME])
  5429. +# ----------------------------
  5430. +# See if the linker supports building shared libraries.
  5431. +m4_defun([_LT_LINKER_SHLIBS],
  5432. +[AC_REQUIRE([LT_PATH_LD])dnl
  5433. +AC_REQUIRE([LT_PATH_NM])dnl
  5434. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5435. +m4_require([_LT_DECL_EGREP])dnl
  5436. +m4_require([_LT_DECL_SED])dnl
  5437. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5438. +m4_require([_LT_TAG_COMPILER])dnl
  5439. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5440. +m4_if([$1], [CXX], [
  5441. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5442. + case $host_os in
  5443. + aix[[4-9]]*)
  5444. + # If we're using GNU nm, then we don't want the "-C" option.
  5445. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5446. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5447. + _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'
  5448. + else
  5449. + _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'
  5450. + fi
  5451. + ;;
  5452. + pw32*)
  5453. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5454. + ;;
  5455. + cygwin* | mingw* | cegcc*)
  5456. + _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'
  5457. + ;;
  5458. + linux* | k*bsd*-gnu)
  5459. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5460. + ;;
  5461. + *)
  5462. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5463. + ;;
  5464. + esac
  5465. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5466. +], [
  5467. + runpath_var=
  5468. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5469. + _LT_TAGVAR(always_export_symbols, $1)=no
  5470. + _LT_TAGVAR(archive_cmds, $1)=
  5471. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  5472. + _LT_TAGVAR(compiler_needs_object, $1)=no
  5473. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5474. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5475. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5476. + _LT_TAGVAR(hardcode_automatic, $1)=no
  5477. + _LT_TAGVAR(hardcode_direct, $1)=no
  5478. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5479. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5480. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5481. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5482. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  5483. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5484. + _LT_TAGVAR(inherit_rpath, $1)=no
  5485. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5486. + _LT_TAGVAR(module_cmds, $1)=
  5487. + _LT_TAGVAR(module_expsym_cmds, $1)=
  5488. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5489. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5490. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5491. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5492. + # include_expsyms should be a list of space-separated symbols to be *always*
  5493. + # included in the symbol list
  5494. + _LT_TAGVAR(include_expsyms, $1)=
  5495. + # exclude_expsyms can be an extended regexp of symbols to exclude
  5496. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5497. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5498. + # as well as any symbol that contains `d'.
  5499. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5500. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5501. + # platforms (ab)use it in PIC code, but their linkers get confused if
  5502. + # the symbol is explicitly referenced. Since portable code cannot
  5503. + # rely on this symbol name, it's probably fine to never include it in
  5504. + # preloaded symbol tables.
  5505. + # Exclude shared library initialization/finalization symbols.
  5506. +dnl Note also adjust exclude_expsyms for C++ above.
  5507. + extract_expsyms_cmds=
  5508. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  5509. -# --------------------------
  5510. -# Ensure that the configuration vars for the C compiler are
  5511. -# suitably defined. Those variables are subsequently used by
  5512. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5513. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5514. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5515. -[AC_LANG_SAVE
  5516. + case $host_os in
  5517. + cygwin* | mingw* | pw32* | cegcc*)
  5518. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5519. + # When not using gcc, we currently assume that we are using
  5520. + # Microsoft Visual C++.
  5521. + if test "$GCC" != yes; then
  5522. + with_gnu_ld=no
  5523. + fi
  5524. + ;;
  5525. + interix*)
  5526. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  5527. + with_gnu_ld=yes
  5528. + ;;
  5529. + openbsd*)
  5530. + with_gnu_ld=no
  5531. + ;;
  5532. + linux* | k*bsd*-gnu)
  5533. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5534. + ;;
  5535. + esac
  5536. -# Source file extension for Java test sources.
  5537. -ac_ext=java
  5538. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5539. + if test "$with_gnu_ld" = yes; then
  5540. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5541. + wlarc='${wl}'
  5542. -# Object file extension for compiled Java test sources.
  5543. -objext=o
  5544. -_LT_AC_TAGVAR(objext, $1)=$objext
  5545. + # Set some defaults for GNU ld with shared library support. These
  5546. + # are reset later if shared libraries are not supported. Putting them
  5547. + # here allows them to be overridden if necessary.
  5548. + runpath_var=LD_RUN_PATH
  5549. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5550. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5551. + # ancient GNU ld didn't support --whole-archive et. al.
  5552. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5553. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5554. + else
  5555. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5556. + fi
  5557. + supports_anon_versioning=no
  5558. + case `$LD -v 2>&1` in
  5559. + *GNU\ gold*) supports_anon_versioning=yes ;;
  5560. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5561. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5562. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5563. + *\ 2.11.*) ;; # other 2.11 versions
  5564. + *) supports_anon_versioning=yes ;;
  5565. + esac
  5566. -# Code to be used in simple compile tests
  5567. -lt_simple_compile_test_code="class foo {}"
  5568. + # See if GNU ld supports shared libraries.
  5569. + case $host_os in
  5570. + aix[[3-9]]*)
  5571. + # On AIX/PPC, the GNU linker is very broken
  5572. + if test "$host_cpu" != ia64; then
  5573. + _LT_TAGVAR(ld_shlibs, $1)=no
  5574. + cat <<_LT_EOF 1>&2
  5575. -# Code to be used in simple link tests
  5576. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  5577. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5578. +*** to be unable to reliably create shared libraries on AIX.
  5579. +*** Therefore, libtool is disabling shared libraries support. If you
  5580. +*** really care for shared libraries, you may want to modify your PATH
  5581. +*** so that a non-GNU linker is found, and then restart.
  5582. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5583. -_LT_AC_SYS_COMPILER
  5584. +_LT_EOF
  5585. + fi
  5586. + ;;
  5587. -# save warnings/boilerplate of simple test code
  5588. -_LT_COMPILER_BOILERPLATE
  5589. -_LT_LINKER_BOILERPLATE
  5590. + amigaos*)
  5591. + case $host_cpu in
  5592. + powerpc)
  5593. + # see comment about AmigaOS4 .so support
  5594. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5595. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5596. + ;;
  5597. + m68k)
  5598. + _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)'
  5599. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5600. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5601. + ;;
  5602. + esac
  5603. + ;;
  5604. -# Allow CC to be a program name with arguments.
  5605. -lt_save_CC="$CC"
  5606. -CC=${GCJ-"gcj"}
  5607. -compiler=$CC
  5608. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5609. -_LT_CC_BASENAME([$compiler])
  5610. + beos*)
  5611. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5612. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5613. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5614. + # support --undefined. This deserves some investigation. FIXME
  5615. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5616. + else
  5617. + _LT_TAGVAR(ld_shlibs, $1)=no
  5618. + fi
  5619. + ;;
  5620. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5621. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5622. + cygwin* | mingw* | pw32* | cegcc*)
  5623. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5624. + # as there is no search path for DLLs.
  5625. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5626. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5627. + _LT_TAGVAR(always_export_symbols, $1)=no
  5628. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5629. + _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'
  5630. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5631. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5632. + _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'
  5633. + # If the export-symbols file already is a .def file (1st line
  5634. + # is EXPORTS), use it as is; otherwise, prepend...
  5635. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5636. + cp $export_symbols $output_objdir/$soname.def;
  5637. + else
  5638. + echo EXPORTS > $output_objdir/$soname.def;
  5639. + cat $export_symbols >> $output_objdir/$soname.def;
  5640. + fi~
  5641. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5642. + else
  5643. + _LT_TAGVAR(ld_shlibs, $1)=no
  5644. + fi
  5645. + ;;
  5646. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5647. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5648. -AC_LIBTOOL_PROG_CC_C_O($1)
  5649. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5650. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5651. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5652. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5653. + interix[[3-9]]*)
  5654. + _LT_TAGVAR(hardcode_direct, $1)=no
  5655. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5656. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5657. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5658. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5659. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5660. + # default) and relocated if they conflict, which is a slow very memory
  5661. + # consuming and fragmenting process. To avoid this, we pick a random,
  5662. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5663. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5664. + _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'
  5665. + _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'
  5666. + ;;
  5667. -AC_LIBTOOL_CONFIG($1)
  5668. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5669. + tmp_diet=no
  5670. + if test "$host_os" = linux-dietlibc; then
  5671. + case $cc_basename in
  5672. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5673. + esac
  5674. + fi
  5675. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5676. + && test "$tmp_diet" = no
  5677. + then
  5678. + tmp_addflag=
  5679. + tmp_sharedflag='-shared'
  5680. + case $cc_basename,$host_cpu in
  5681. + pgcc*) # Portland Group C compiler
  5682. + _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'
  5683. + tmp_addflag=' $pic_flag'
  5684. + ;;
  5685. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5686. + _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'
  5687. + tmp_addflag=' $pic_flag -Mnomain' ;;
  5688. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5689. + tmp_addflag=' -i_dynamic' ;;
  5690. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5691. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  5692. + ifc* | ifort*) # Intel Fortran compiler
  5693. + tmp_addflag=' -nofor_main' ;;
  5694. + lf95*) # Lahey Fortran 8.1
  5695. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5696. + tmp_sharedflag='--shared' ;;
  5697. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5698. + tmp_sharedflag='-qmkshrobj'
  5699. + tmp_addflag= ;;
  5700. + esac
  5701. + case `$CC -V 2>&1 | sed 5q` in
  5702. + *Sun\ C*) # Sun C 5.9
  5703. + _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'
  5704. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  5705. + tmp_sharedflag='-G' ;;
  5706. + *Sun\ F*) # Sun Fortran 8.3
  5707. + tmp_sharedflag='-G' ;;
  5708. + esac
  5709. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5710. -AC_LANG_RESTORE
  5711. -CC="$lt_save_CC"
  5712. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5713. + if test "x$supports_anon_versioning" = xyes; then
  5714. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5715. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5716. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5717. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5718. + fi
  5719. + case $cc_basename in
  5720. + xlf*)
  5721. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5722. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5723. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5724. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5725. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5726. + if test "x$supports_anon_versioning" = xyes; then
  5727. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5728. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5729. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5730. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5731. + fi
  5732. + ;;
  5733. + esac
  5734. + else
  5735. + _LT_TAGVAR(ld_shlibs, $1)=no
  5736. + fi
  5737. + ;;
  5738. -# AC_LIBTOOL_LANG_RC_CONFIG
  5739. -# -------------------------
  5740. -# Ensure that the configuration vars for the Windows resource compiler are
  5741. -# suitably defined. Those variables are subsequently used by
  5742. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5743. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5744. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5745. -[AC_LANG_SAVE
  5746. + netbsd* | netbsdelf*-gnu)
  5747. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5748. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5749. + wlarc=
  5750. + else
  5751. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5752. + _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'
  5753. + fi
  5754. + ;;
  5755. -# Source file extension for RC test sources.
  5756. -ac_ext=rc
  5757. + solaris*)
  5758. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5759. + _LT_TAGVAR(ld_shlibs, $1)=no
  5760. + cat <<_LT_EOF 1>&2
  5761. -# Object file extension for compiled RC test sources.
  5762. -objext=o
  5763. -_LT_AC_TAGVAR(objext, $1)=$objext
  5764. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5765. +*** create shared libraries on Solaris systems. Therefore, libtool
  5766. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5767. +*** binutils to release 2.9.1 or newer. Another option is to modify
  5768. +*** your PATH or compiler configuration so that the native linker is
  5769. +*** used, and then restart.
  5770. -# Code to be used in simple compile tests
  5771. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  5772. -
  5773. -# Code to be used in simple link tests
  5774. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  5775. -
  5776. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5777. -_LT_AC_SYS_COMPILER
  5778. -
  5779. -# save warnings/boilerplate of simple test code
  5780. -_LT_COMPILER_BOILERPLATE
  5781. -_LT_LINKER_BOILERPLATE
  5782. -
  5783. -# Allow CC to be a program name with arguments.
  5784. -lt_save_CC="$CC"
  5785. -CC=${RC-"windres"}
  5786. -compiler=$CC
  5787. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5788. -_LT_CC_BASENAME([$compiler])
  5789. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5790. +_LT_EOF
  5791. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5792. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5793. + _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'
  5794. + else
  5795. + _LT_TAGVAR(ld_shlibs, $1)=no
  5796. + fi
  5797. + ;;
  5798. -AC_LIBTOOL_CONFIG($1)
  5799. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5800. + case `$LD -v 2>&1` in
  5801. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5802. + _LT_TAGVAR(ld_shlibs, $1)=no
  5803. + cat <<_LT_EOF 1>&2
  5804. -AC_LANG_RESTORE
  5805. -CC="$lt_save_CC"
  5806. -])# AC_LIBTOOL_LANG_RC_CONFIG
  5807. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5808. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  5809. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5810. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5811. +*** your PATH or compiler configuration so that the native linker is
  5812. +*** used, and then restart.
  5813. +_LT_EOF
  5814. + ;;
  5815. + *)
  5816. + # For security reasons, it is highly recommended that you always
  5817. + # use absolute paths for naming shared libraries, and exclude the
  5818. + # DT_RUNPATH tag from executables and libraries. But doing so
  5819. + # requires that you compile everything twice, which is a pain.
  5820. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5821. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5822. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5823. + _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'
  5824. + else
  5825. + _LT_TAGVAR(ld_shlibs, $1)=no
  5826. + fi
  5827. + ;;
  5828. + esac
  5829. + ;;
  5830. -# AC_LIBTOOL_CONFIG([TAGNAME])
  5831. -# ----------------------------
  5832. -# If TAGNAME is not passed, then create an initial libtool script
  5833. -# with a default configuration from the untagged config vars. Otherwise
  5834. -# add code to config.status for appending the configuration named by
  5835. -# TAGNAME from the matching tagged config vars.
  5836. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  5837. -[# The else clause should only fire when bootstrapping the
  5838. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  5839. -# with your package, and you will get complaints that there are
  5840. -# no rules to generate ltmain.sh.
  5841. -if test -f "$ltmain"; then
  5842. - # See if we are running on zsh, and set the options which allow our commands through
  5843. - # without removal of \ escapes.
  5844. - if test -n "${ZSH_VERSION+set}" ; then
  5845. - setopt NO_GLOB_SUBST
  5846. - fi
  5847. - # Now quote all the things that may contain metacharacters while being
  5848. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  5849. - # variables and quote the copies for generation of the libtool script.
  5850. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  5851. - SED SHELL STRIP \
  5852. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  5853. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  5854. - deplibs_check_method reload_flag reload_cmds need_locks \
  5855. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  5856. - lt_cv_sys_global_symbol_to_c_name_address \
  5857. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5858. - old_postinstall_cmds old_postuninstall_cmds \
  5859. - _LT_AC_TAGVAR(compiler, $1) \
  5860. - _LT_AC_TAGVAR(CC, $1) \
  5861. - _LT_AC_TAGVAR(LD, $1) \
  5862. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  5863. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  5864. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  5865. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  5866. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  5867. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  5868. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  5869. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  5870. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  5871. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  5872. - _LT_AC_TAGVAR(predep_objects, $1) \
  5873. - _LT_AC_TAGVAR(postdep_objects, $1) \
  5874. - _LT_AC_TAGVAR(predeps, $1) \
  5875. - _LT_AC_TAGVAR(postdeps, $1) \
  5876. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  5877. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  5878. - _LT_AC_TAGVAR(archive_cmds, $1) \
  5879. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  5880. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  5881. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  5882. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  5883. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  5884. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  5885. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  5886. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  5887. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  5888. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  5889. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  5890. - _LT_AC_TAGVAR(module_cmds, $1) \
  5891. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  5892. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  5893. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  5894. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  5895. - _LT_AC_TAGVAR(include_expsyms, $1); do
  5896. -
  5897. - case $var in
  5898. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  5899. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  5900. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  5901. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  5902. - _LT_AC_TAGVAR(module_cmds, $1) | \
  5903. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  5904. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  5905. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  5906. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  5907. - postinstall_cmds | postuninstall_cmds | \
  5908. - old_postinstall_cmds | old_postuninstall_cmds | \
  5909. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5910. - # Double-quote double-evaled strings.
  5911. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5912. + sunos4*)
  5913. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5914. + wlarc=
  5915. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5916. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5917. ;;
  5918. +
  5919. *)
  5920. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5921. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5922. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5923. + _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'
  5924. + else
  5925. + _LT_TAGVAR(ld_shlibs, $1)=no
  5926. + fi
  5927. ;;
  5928. esac
  5929. - done
  5930. -
  5931. - case $lt_echo in
  5932. - *'\[$]0 --fallback-echo"')
  5933. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  5934. - ;;
  5935. - esac
  5936. -ifelse([$1], [],
  5937. - [cfgfile="${ofile}T"
  5938. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  5939. - $rm -f "$cfgfile"
  5940. - AC_MSG_NOTICE([creating $ofile])],
  5941. - [cfgfile="$ofile"])
  5942. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5943. + runpath_var=
  5944. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5945. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5946. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5947. + fi
  5948. + else
  5949. + # PORTME fill in a description of your system's linker (not GNU ld)
  5950. + case $host_os in
  5951. + aix3*)
  5952. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5953. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5954. + _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'
  5955. + # Note: this linker hardcodes the directories in LIBPATH if there
  5956. + # are no directories specified by -L.
  5957. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5958. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5959. + # Neither direct hardcoding nor static linking is supported with a
  5960. + # broken collect2.
  5961. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5962. + fi
  5963. + ;;
  5964. - cat <<__EOF__ >> "$cfgfile"
  5965. -ifelse([$1], [],
  5966. -[#! $SHELL
  5967. + aix[[4-9]]*)
  5968. + if test "$host_cpu" = ia64; then
  5969. + # On IA64, the linker does run time linking by default, so we don't
  5970. + # have to do anything special.
  5971. + aix_use_runtimelinking=no
  5972. + exp_sym_flag='-Bexport'
  5973. + no_entry_flag=""
  5974. + else
  5975. + # If we're using GNU nm, then we don't want the "-C" option.
  5976. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5977. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5978. + _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'
  5979. + else
  5980. + _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'
  5981. + fi
  5982. + aix_use_runtimelinking=no
  5983. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  5984. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  5985. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  5986. -#
  5987. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  5988. -# Free Software Foundation, Inc.
  5989. -#
  5990. -# This file is part of GNU Libtool:
  5991. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5992. -#
  5993. -# This program is free software; you can redistribute it and/or modify
  5994. -# it under the terms of the GNU General Public License as published by
  5995. -# the Free Software Foundation; either version 2 of the License, or
  5996. -# (at your option) any later version.
  5997. -#
  5998. -# This program is distributed in the hope that it will be useful, but
  5999. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  6000. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6001. -# General Public License for more details.
  6002. -#
  6003. -# You should have received a copy of the GNU General Public License
  6004. -# along with this program; if not, write to the Free Software
  6005. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  6006. -#
  6007. -# As a special exception to the GNU General Public License, if you
  6008. -# distribute this file as part of a program that contains a
  6009. -# configuration script generated by Autoconf, you may include it under
  6010. -# the same distribution terms that you use for the rest of that program.
  6011. + # Test if we are trying to use run time linking or normal
  6012. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6013. + # need to do runtime linking.
  6014. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6015. + for ld_flag in $LDFLAGS; do
  6016. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6017. + aix_use_runtimelinking=yes
  6018. + break
  6019. + fi
  6020. + done
  6021. + ;;
  6022. + esac
  6023. -# A sed program that does not truncate output.
  6024. -SED=$lt_SED
  6025. + exp_sym_flag='-bexport'
  6026. + no_entry_flag='-bnoentry'
  6027. + fi
  6028. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6029. -Xsed="$SED -e 1s/^X//"
  6030. + # When large executables or shared objects are built, AIX ld can
  6031. + # have problems creating the table of contents. If linking a library
  6032. + # or program results in "error TOC overflow" add -mminimal-toc to
  6033. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6034. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6035. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6036. -# if CDPATH is set.
  6037. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6038. + _LT_TAGVAR(archive_cmds, $1)=''
  6039. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6040. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6041. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6042. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6043. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6044. -# The names of the tagged configurations supported by this script.
  6045. -available_tags=
  6046. + if test "$GCC" = yes; then
  6047. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6048. + # We only want to do this on AIX 4.2 and lower, the check
  6049. + # below for broken collect2 doesn't work under 4.3+
  6050. + collect2name=`${CC} -print-prog-name=collect2`
  6051. + if test -f "$collect2name" &&
  6052. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6053. + then
  6054. + # We have reworked collect2
  6055. + :
  6056. + else
  6057. + # We have old collect2
  6058. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6059. + # It fails to find uninstalled libraries when the uninstalled
  6060. + # path is not listed in the libpath. Setting hardcode_minus_L
  6061. + # to unsupported forces relinking
  6062. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6063. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6064. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6065. + fi
  6066. + ;;
  6067. + esac
  6068. + shared_flag='-shared'
  6069. + if test "$aix_use_runtimelinking" = yes; then
  6070. + shared_flag="$shared_flag "'${wl}-G'
  6071. + fi
  6072. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6073. + else
  6074. + # not using gcc
  6075. + if test "$host_cpu" = ia64; then
  6076. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6077. + # chokes on -Wl,-G. The following line is correct:
  6078. + shared_flag='-G'
  6079. + else
  6080. + if test "$aix_use_runtimelinking" = yes; then
  6081. + shared_flag='${wl}-G'
  6082. + else
  6083. + shared_flag='${wl}-bM:SRE'
  6084. + fi
  6085. + fi
  6086. + fi
  6087. -# ### BEGIN LIBTOOL CONFIG],
  6088. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6089. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6090. + # It seems that -bexpall does not export symbols beginning with
  6091. + # underscore (_), so it is better to generate a list of symbols to export.
  6092. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6093. + if test "$aix_use_runtimelinking" = yes; then
  6094. + # Warning - without using the other runtime loading flags (-brtl),
  6095. + # -berok will link without error, but may produce a broken library.
  6096. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6097. + # Determine the default libpath from the value encoded in an
  6098. + # empty executable.
  6099. + _LT_SYS_MODULE_PATH_AIX
  6100. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6101. + _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"
  6102. + else
  6103. + if test "$host_cpu" = ia64; then
  6104. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6105. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6106. + _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"
  6107. + else
  6108. + # Determine the default libpath from the value encoded in an
  6109. + # empty executable.
  6110. + _LT_SYS_MODULE_PATH_AIX
  6111. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6112. + # Warning - without using the other run time loading flags,
  6113. + # -berok will link without error, but may produce a broken library.
  6114. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6115. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6116. + # Exported symbols can be pulled into shared objects from archives
  6117. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6118. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6119. + # This is similar to how AIX traditionally builds its shared libraries.
  6120. + _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'
  6121. + fi
  6122. + fi
  6123. + ;;
  6124. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6125. + amigaos*)
  6126. + case $host_cpu in
  6127. + powerpc)
  6128. + # see comment about AmigaOS4 .so support
  6129. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6130. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6131. + ;;
  6132. + m68k)
  6133. + _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)'
  6134. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6135. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6136. + ;;
  6137. + esac
  6138. + ;;
  6139. -# Shell to use when invoking shell scripts.
  6140. -SHELL=$lt_SHELL
  6141. + bsdi[[45]]*)
  6142. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6143. + ;;
  6144. -# Whether or not to build shared libraries.
  6145. -build_libtool_libs=$enable_shared
  6146. + cygwin* | mingw* | pw32* | cegcc*)
  6147. + # When not using gcc, we currently assume that we are using
  6148. + # Microsoft Visual C++.
  6149. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6150. + # no search path for DLLs.
  6151. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6152. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6153. + # Tell ltmain to make .lib files, not .a files.
  6154. + libext=lib
  6155. + # Tell ltmain to make .dll files, not .so files.
  6156. + shrext_cmds=".dll"
  6157. + # FIXME: Setting linknames here is a bad hack.
  6158. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6159. + # The linker will automatically build a .lib file if we build a DLL.
  6160. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6161. + # FIXME: Should let the user specify the lib program.
  6162. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6163. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6164. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6165. + ;;
  6166. -# Whether or not to build static libraries.
  6167. -build_old_libs=$enable_static
  6168. + darwin* | rhapsody*)
  6169. + _LT_DARWIN_LINKER_FEATURES($1)
  6170. + ;;
  6171. -# Whether or not to add -lc for building shared libraries.
  6172. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6173. + dgux*)
  6174. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6175. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6176. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6177. + ;;
  6178. -# Whether or not to disallow shared libs when runtime libs are static
  6179. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6180. + freebsd1*)
  6181. + _LT_TAGVAR(ld_shlibs, $1)=no
  6182. + ;;
  6183. -# Whether or not to optimize for fast installation.
  6184. -fast_install=$enable_fast_install
  6185. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6186. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6187. + # does not break anything, and helps significantly (at the cost of a little
  6188. + # extra space).
  6189. + freebsd2.2*)
  6190. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6191. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6192. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6193. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6194. + ;;
  6195. -# The host system.
  6196. -host_alias=$host_alias
  6197. -host=$host
  6198. -host_os=$host_os
  6199. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6200. + freebsd2*)
  6201. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6202. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6203. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6204. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6205. + ;;
  6206. -# The build system.
  6207. -build_alias=$build_alias
  6208. -build=$build
  6209. -build_os=$build_os
  6210. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6211. + freebsd* | dragonfly*)
  6212. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6213. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6214. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6215. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6216. + ;;
  6217. -# An echo program that does not interpret backslashes.
  6218. -echo=$lt_echo
  6219. + hpux9*)
  6220. + if test "$GCC" = yes; then
  6221. + _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'
  6222. + else
  6223. + _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'
  6224. + fi
  6225. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6226. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6227. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6228. -# The archiver.
  6229. -AR=$lt_AR
  6230. -AR_FLAGS=$lt_AR_FLAGS
  6231. + # hardcode_minus_L: Not really in the search PATH,
  6232. + # but as the default location of the library.
  6233. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6234. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6235. + ;;
  6236. -# A C compiler.
  6237. -LTCC=$lt_LTCC
  6238. + hpux10*)
  6239. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6240. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6241. + else
  6242. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6243. + fi
  6244. + if test "$with_gnu_ld" = no; then
  6245. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6246. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6247. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6248. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6249. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6250. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6251. + # hardcode_minus_L: Not really in the search PATH,
  6252. + # but as the default location of the library.
  6253. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6254. + fi
  6255. + ;;
  6256. -# LTCC compiler flags.
  6257. -LTCFLAGS=$lt_LTCFLAGS
  6258. + hpux11*)
  6259. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6260. + case $host_cpu in
  6261. + hppa*64*)
  6262. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6263. + ;;
  6264. + ia64*)
  6265. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6266. + ;;
  6267. + *)
  6268. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6269. + ;;
  6270. + esac
  6271. + else
  6272. + case $host_cpu in
  6273. + hppa*64*)
  6274. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6275. + ;;
  6276. + ia64*)
  6277. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6278. + ;;
  6279. + *)
  6280. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6281. + ;;
  6282. + esac
  6283. + fi
  6284. + if test "$with_gnu_ld" = no; then
  6285. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6286. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6287. -# A language-specific compiler.
  6288. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6289. + case $host_cpu in
  6290. + hppa*64*|ia64*)
  6291. + _LT_TAGVAR(hardcode_direct, $1)=no
  6292. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6293. + ;;
  6294. + *)
  6295. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6296. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6297. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6298. -# Is the compiler the GNU C compiler?
  6299. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6300. + # hardcode_minus_L: Not really in the search PATH,
  6301. + # but as the default location of the library.
  6302. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6303. + ;;
  6304. + esac
  6305. + fi
  6306. + ;;
  6307. -# An ERE matcher.
  6308. -EGREP=$lt_EGREP
  6309. + irix5* | irix6* | nonstopux*)
  6310. + if test "$GCC" = yes; then
  6311. + _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'
  6312. + # Try to use the -exported_symbol ld option, if it does not
  6313. + # work, assume that -exports_file does not work either and
  6314. + # implicitly export all symbols.
  6315. + save_LDFLAGS="$LDFLAGS"
  6316. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6317. + AC_LINK_IFELSE(int foo(void) {},
  6318. + _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'
  6319. + )
  6320. + LDFLAGS="$save_LDFLAGS"
  6321. + else
  6322. + _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'
  6323. + _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'
  6324. + fi
  6325. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6326. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6327. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6328. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6329. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6330. + ;;
  6331. -# The linker used to build libraries.
  6332. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6333. + netbsd* | netbsdelf*-gnu)
  6334. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6335. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6336. + else
  6337. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6338. + fi
  6339. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6340. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6341. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6342. + ;;
  6343. -# Whether we need hard or soft links.
  6344. -LN_S=$lt_LN_S
  6345. + newsos6)
  6346. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6347. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6348. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6349. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6350. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6351. + ;;
  6352. -# A BSD-compatible nm program.
  6353. -NM=$lt_NM
  6354. + *nto* | *qnx*)
  6355. + ;;
  6356. -# A symbol stripping program
  6357. -STRIP=$lt_STRIP
  6358. + openbsd*)
  6359. + if test -f /usr/libexec/ld.so; then
  6360. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6361. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6362. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6363. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6364. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6365. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6366. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6367. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6368. + else
  6369. + case $host_os in
  6370. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6371. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6372. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6373. + ;;
  6374. + *)
  6375. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6376. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6377. + ;;
  6378. + esac
  6379. + fi
  6380. + else
  6381. + _LT_TAGVAR(ld_shlibs, $1)=no
  6382. + fi
  6383. + ;;
  6384. -# Used to examine libraries when file_magic_cmd begins "file"
  6385. -MAGIC_CMD=$MAGIC_CMD
  6386. + os2*)
  6387. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6388. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6389. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6390. + _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'
  6391. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6392. + ;;
  6393. -# Used on cygwin: DLL creation program.
  6394. -DLLTOOL="$DLLTOOL"
  6395. + osf3*)
  6396. + if test "$GCC" = yes; then
  6397. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6398. + _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'
  6399. + else
  6400. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6401. + _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'
  6402. + fi
  6403. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6404. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6405. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6406. + ;;
  6407. -# Used on cygwin: object dumper.
  6408. -OBJDUMP="$OBJDUMP"
  6409. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6410. + if test "$GCC" = yes; then
  6411. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6412. + _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'
  6413. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6414. + else
  6415. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6416. + _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'
  6417. + _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~
  6418. + $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'
  6419. -# Used on cygwin: assembler.
  6420. -AS="$AS"
  6421. + # Both c and cxx compiler support -rpath directly
  6422. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6423. + fi
  6424. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6425. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6426. + ;;
  6427. -# The name of the directory that contains temporary libtool files.
  6428. -objdir=$objdir
  6429. + solaris*)
  6430. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6431. + if test "$GCC" = yes; then
  6432. + wlarc='${wl}'
  6433. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6434. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6435. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6436. + else
  6437. + case `$CC -V 2>&1` in
  6438. + *"Compilers 5.0"*)
  6439. + wlarc=''
  6440. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6441. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6442. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6443. + ;;
  6444. + *)
  6445. + wlarc='${wl}'
  6446. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6447. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6448. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6449. + ;;
  6450. + esac
  6451. + fi
  6452. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6453. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6454. + case $host_os in
  6455. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6456. + *)
  6457. + # The compiler driver will combine and reorder linker options,
  6458. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  6459. + # but is careful enough not to reorder.
  6460. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6461. + if test "$GCC" = yes; then
  6462. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6463. + else
  6464. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6465. + fi
  6466. + ;;
  6467. + esac
  6468. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6469. + ;;
  6470. -# How to create reloadable object files.
  6471. -reload_flag=$lt_reload_flag
  6472. -reload_cmds=$lt_reload_cmds
  6473. + sunos4*)
  6474. + if test "x$host_vendor" = xsequent; then
  6475. + # Use $CC to link under sequent, because it throws in some extra .o
  6476. + # files that make .init and .fini sections work.
  6477. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6478. + else
  6479. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6480. + fi
  6481. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6482. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6483. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6484. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6485. + ;;
  6486. -# How to pass a linker flag through the compiler.
  6487. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6488. + sysv4)
  6489. + case $host_vendor in
  6490. + sni)
  6491. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6492. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6493. + ;;
  6494. + siemens)
  6495. + ## LD is ld it makes a PLAMLIB
  6496. + ## CC just makes a GrossModule.
  6497. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6498. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6499. + _LT_TAGVAR(hardcode_direct, $1)=no
  6500. + ;;
  6501. + motorola)
  6502. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6503. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6504. + ;;
  6505. + esac
  6506. + runpath_var='LD_RUN_PATH'
  6507. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6508. + ;;
  6509. -# Object file suffix (normally "o").
  6510. -objext="$ac_objext"
  6511. + sysv4.3*)
  6512. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6513. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6514. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6515. + ;;
  6516. -# Old archive suffix (normally "a").
  6517. -libext="$libext"
  6518. + sysv4*MP*)
  6519. + if test -d /usr/nec; then
  6520. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6521. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6522. + runpath_var=LD_RUN_PATH
  6523. + hardcode_runpath_var=yes
  6524. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6525. + fi
  6526. + ;;
  6527. -# Shared library suffix (normally ".so").
  6528. -shrext_cmds='$shrext_cmds'
  6529. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6530. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6531. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6532. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6533. + runpath_var='LD_RUN_PATH'
  6534. -# Executable file suffix (normally "").
  6535. -exeext="$exeext"
  6536. + if test "$GCC" = yes; then
  6537. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6538. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6539. + else
  6540. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6541. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6542. + fi
  6543. + ;;
  6544. -# Additional compiler flags for building library objects.
  6545. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6546. -pic_mode=$pic_mode
  6547. + sysv5* | sco3.2v5* | sco5v6*)
  6548. + # Note: We can NOT use -z defs as we might desire, because we do not
  6549. + # link with -lc, and that would cause any symbols used from libc to
  6550. + # always be unresolved, which means just about no library would
  6551. + # ever link correctly. If we're not using GNU ld we use -z text
  6552. + # though, which does catch some bad symbols but isn't as heavy-handed
  6553. + # as -z defs.
  6554. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6555. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6556. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6557. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6558. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6559. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6560. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6561. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6562. + runpath_var='LD_RUN_PATH'
  6563. -# What is the maximum length of a command?
  6564. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6565. + if test "$GCC" = yes; then
  6566. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6567. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6568. + else
  6569. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6570. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6571. + fi
  6572. + ;;
  6573. -# Does compiler simultaneously support -c and -o options?
  6574. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6575. + uts4*)
  6576. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6577. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6578. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6579. + ;;
  6580. -# Must we lock files when doing compilation?
  6581. -need_locks=$lt_need_locks
  6582. + *)
  6583. + _LT_TAGVAR(ld_shlibs, $1)=no
  6584. + ;;
  6585. + esac
  6586. -# Do we need the lib prefix for modules?
  6587. -need_lib_prefix=$need_lib_prefix
  6588. + if test x$host_vendor = xsni; then
  6589. + case $host in
  6590. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6591. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6592. + ;;
  6593. + esac
  6594. + fi
  6595. + fi
  6596. +])
  6597. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6598. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6599. -# Do we need a version for libraries?
  6600. -need_version=$need_version
  6601. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6602. -# Whether dlopen is supported.
  6603. -dlopen_support=$enable_dlopen
  6604. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6605. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6606. +_LT_DECL([], [extract_expsyms_cmds], [2],
  6607. + [The commands to extract the exported symbol list from a shared archive])
  6608. -# Whether dlopen of programs is supported.
  6609. -dlopen_self=$enable_dlopen_self
  6610. +#
  6611. +# Do we need to explicitly link libc?
  6612. +#
  6613. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6614. +x|xyes)
  6615. + # Assume -lc should be added
  6616. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6617. -# Whether dlopen of statically linked programs is supported.
  6618. -dlopen_self_static=$enable_dlopen_self_static
  6619. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  6620. + case $_LT_TAGVAR(archive_cmds, $1) in
  6621. + *'~'*)
  6622. + # FIXME: we may have to deal with multi-command sequences.
  6623. + ;;
  6624. + '$CC '*)
  6625. + # Test whether the compiler implicitly links with -lc since on some
  6626. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6627. + # to ld, don't add -lc before -lgcc.
  6628. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6629. + $RM conftest*
  6630. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6631. -# Compiler flag to prevent dynamic linking.
  6632. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6633. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6634. + soname=conftest
  6635. + lib=conftest
  6636. + libobjs=conftest.$ac_objext
  6637. + deplibs=
  6638. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6639. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6640. + compiler_flags=-v
  6641. + linker_flags=-v
  6642. + verstring=
  6643. + output_objdir=.
  6644. + libname=conftest
  6645. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6646. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6647. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6648. + then
  6649. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6650. + else
  6651. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6652. + fi
  6653. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6654. + else
  6655. + cat conftest.err 1>&5
  6656. + fi
  6657. + $RM conftest*
  6658. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6659. + ;;
  6660. + esac
  6661. + fi
  6662. + ;;
  6663. +esac
  6664. -# Compiler flag to turn off builtin functions.
  6665. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6666. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6667. + [Whether or not to add -lc for building shared libraries])
  6668. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6669. + [enable_shared_with_static_runtimes], [0],
  6670. + [Whether or not to disallow shared libs when runtime libs are static])
  6671. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6672. + [Compiler flag to allow reflexive dlopens])
  6673. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6674. + [Compiler flag to generate shared objects directly from archives])
  6675. +_LT_TAGDECL([], [compiler_needs_object], [1],
  6676. + [Whether the compiler copes with passing no objects directly])
  6677. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6678. + [Create an old-style archive from a shared archive])
  6679. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6680. + [Create a temporary old-style archive to link instead of a shared archive])
  6681. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6682. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  6683. +_LT_TAGDECL([], [module_cmds], [2],
  6684. + [Commands used to build a loadable module if different from building
  6685. + a shared archive.])
  6686. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  6687. +_LT_TAGDECL([], [with_gnu_ld], [1],
  6688. + [Whether we are building with GNU ld or not])
  6689. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  6690. + [Flag that allows shared libraries with undefined symbols to be built])
  6691. +_LT_TAGDECL([], [no_undefined_flag], [1],
  6692. + [Flag that enforces no undefined symbols])
  6693. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6694. + [Flag to hardcode $libdir into a binary during linking.
  6695. + This must work even if $libdir does not exist])
  6696. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6697. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  6698. + during linking. This must work even if $libdir does not exist]])
  6699. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6700. + [Whether we need a single "-rpath" flag with a separated argument])
  6701. +_LT_TAGDECL([], [hardcode_direct], [0],
  6702. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6703. + DIR into the resulting binary])
  6704. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6705. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6706. + DIR into the resulting binary and the resulting library dependency is
  6707. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6708. + library is relocated])
  6709. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  6710. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6711. + into the resulting binary])
  6712. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6713. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6714. + into the resulting binary])
  6715. +_LT_TAGDECL([], [hardcode_automatic], [0],
  6716. + [Set to "yes" if building a shared library automatically hardcodes DIR
  6717. + into the library and all subsequent libraries and executables linked
  6718. + against it])
  6719. +_LT_TAGDECL([], [inherit_rpath], [0],
  6720. + [Set to yes if linker adds runtime paths of dependent libraries
  6721. + to runtime path list])
  6722. +_LT_TAGDECL([], [link_all_deplibs], [0],
  6723. + [Whether libtool must link a program against all its dependency libraries])
  6724. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  6725. + [Fix the shell variable $srcfile for the compiler])
  6726. +_LT_TAGDECL([], [always_export_symbols], [0],
  6727. + [Set to "yes" if exported symbols are required])
  6728. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  6729. + [The commands to list exported symbols])
  6730. +_LT_TAGDECL([], [exclude_expsyms], [1],
  6731. + [Symbols that should not be listed in the preloaded symbols])
  6732. +_LT_TAGDECL([], [include_expsyms], [1],
  6733. + [Symbols that must always be exported])
  6734. +_LT_TAGDECL([], [prelink_cmds], [2],
  6735. + [Commands necessary for linking programs (against libraries) with templates])
  6736. +_LT_TAGDECL([], [file_list_spec], [1],
  6737. + [Specify filename containing input files])
  6738. +dnl FIXME: Not yet implemented
  6739. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6740. +dnl [Compiler flag to generate thread safe objects])
  6741. +])# _LT_LINKER_SHLIBS
  6742. -# Compiler flag to allow reflexive dlopens.
  6743. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6744. -# Compiler flag to generate shared objects directly from archives.
  6745. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6746. +# _LT_LANG_C_CONFIG([TAG])
  6747. +# ------------------------
  6748. +# Ensure that the configuration variables for a C compiler are suitably
  6749. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6750. +# the compiler configuration to `libtool'.
  6751. +m4_defun([_LT_LANG_C_CONFIG],
  6752. +[m4_require([_LT_DECL_EGREP])dnl
  6753. +lt_save_CC="$CC"
  6754. +AC_LANG_PUSH(C)
  6755. -# Compiler flag to generate thread-safe objects.
  6756. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6757. +# Source file extension for C test sources.
  6758. +ac_ext=c
  6759. -# Library versioning type.
  6760. -version_type=$version_type
  6761. +# Object file extension for compiled C test sources.
  6762. +objext=o
  6763. +_LT_TAGVAR(objext, $1)=$objext
  6764. -# Format of library name prefix.
  6765. -libname_spec=$lt_libname_spec
  6766. +# Code to be used in simple compile tests
  6767. +lt_simple_compile_test_code="int some_variable = 0;"
  6768. -# List of archive names. First name is the real one, the rest are links.
  6769. -# The last name is the one that the linker finds with -lNAME.
  6770. -library_names_spec=$lt_library_names_spec
  6771. +# Code to be used in simple link tests
  6772. +lt_simple_link_test_code='int main(){return(0);}'
  6773. -# The coded name of the library, if different from the real name.
  6774. -soname_spec=$lt_soname_spec
  6775. +_LT_TAG_COMPILER
  6776. +# Save the default compiler, since it gets overwritten when the other
  6777. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6778. +compiler_DEFAULT=$CC
  6779. -# Commands used to build and install an old-style archive.
  6780. -RANLIB=$lt_RANLIB
  6781. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6782. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6783. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6784. +# save warnings/boilerplate of simple test code
  6785. +_LT_COMPILER_BOILERPLATE
  6786. +_LT_LINKER_BOILERPLATE
  6787. -# Create an old-style archive from a shared archive.
  6788. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6789. +if test -n "$compiler"; then
  6790. + _LT_COMPILER_NO_RTTI($1)
  6791. + _LT_COMPILER_PIC($1)
  6792. + _LT_COMPILER_C_O($1)
  6793. + _LT_COMPILER_FILE_LOCKS($1)
  6794. + _LT_LINKER_SHLIBS($1)
  6795. + _LT_SYS_DYNAMIC_LINKER($1)
  6796. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6797. + LT_SYS_DLOPEN_SELF
  6798. + _LT_CMD_STRIPLIB
  6799. +
  6800. + # Report which library types will actually be built
  6801. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6802. + AC_MSG_RESULT([$can_build_shared])
  6803. -# Create a temporary old-style archive to link instead of a shared archive.
  6804. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6805. + AC_MSG_CHECKING([whether to build shared libraries])
  6806. + test "$can_build_shared" = "no" && enable_shared=no
  6807. -# Commands used to build and install a shared archive.
  6808. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6809. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6810. -postinstall_cmds=$lt_postinstall_cmds
  6811. -postuninstall_cmds=$lt_postuninstall_cmds
  6812. + # On AIX, shared libraries and static libraries use the same namespace, and
  6813. + # are all built from PIC.
  6814. + case $host_os in
  6815. + aix3*)
  6816. + test "$enable_shared" = yes && enable_static=no
  6817. + if test -n "$RANLIB"; then
  6818. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6819. + postinstall_cmds='$RANLIB $lib'
  6820. + fi
  6821. + ;;
  6822. -# Commands used to build a loadable module (assumed same as above if empty)
  6823. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6824. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6825. + aix[[4-9]]*)
  6826. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6827. + test "$enable_shared" = yes && enable_static=no
  6828. + fi
  6829. + ;;
  6830. + esac
  6831. + AC_MSG_RESULT([$enable_shared])
  6832. -# Commands to strip libraries.
  6833. -old_striplib=$lt_old_striplib
  6834. -striplib=$lt_striplib
  6835. + AC_MSG_CHECKING([whether to build static libraries])
  6836. + # Make sure either enable_shared or enable_static is yes.
  6837. + test "$enable_shared" = yes || enable_static=yes
  6838. + AC_MSG_RESULT([$enable_static])
  6839. -# Dependencies to place before the objects being linked to create a
  6840. -# shared library.
  6841. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6842. + _LT_CONFIG($1)
  6843. +fi
  6844. +AC_LANG_POP
  6845. +CC="$lt_save_CC"
  6846. +])# _LT_LANG_C_CONFIG
  6847. -# Dependencies to place after the objects being linked to create a
  6848. -# shared library.
  6849. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6850. -# Dependencies to place before the objects being linked to create a
  6851. -# shared library.
  6852. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6853. +# _LT_PROG_CXX
  6854. +# ------------
  6855. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  6856. +# compiler, we have our own version here.
  6857. +m4_defun([_LT_PROG_CXX],
  6858. +[
  6859. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  6860. +AC_PROG_CXX
  6861. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6862. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6863. + (test "X$CXX" != "Xg++"))) ; then
  6864. + AC_PROG_CXXCPP
  6865. +else
  6866. + _lt_caught_CXX_error=yes
  6867. +fi
  6868. +popdef([AC_MSG_ERROR])
  6869. +])# _LT_PROG_CXX
  6870. -# Dependencies to place after the objects being linked to create a
  6871. -# shared library.
  6872. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6873. +dnl aclocal-1.4 backwards compatibility:
  6874. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  6875. -# The directories searched by this compiler when creating a shared
  6876. -# library
  6877. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  6878. -# The library search path used internally by the compiler when linking
  6879. -# a shared library.
  6880. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6881. +# _LT_LANG_CXX_CONFIG([TAG])
  6882. +# --------------------------
  6883. +# Ensure that the configuration variables for a C++ compiler are suitably
  6884. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6885. +# the compiler configuration to `libtool'.
  6886. +m4_defun([_LT_LANG_CXX_CONFIG],
  6887. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  6888. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6889. +m4_require([_LT_DECL_EGREP])dnl
  6890. +
  6891. +AC_LANG_PUSH(C++)
  6892. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6893. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6894. +_LT_TAGVAR(always_export_symbols, $1)=no
  6895. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6896. +_LT_TAGVAR(compiler_needs_object, $1)=no
  6897. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6898. +_LT_TAGVAR(hardcode_direct, $1)=no
  6899. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6900. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6901. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6902. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6903. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6904. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6905. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6906. +_LT_TAGVAR(inherit_rpath, $1)=no
  6907. +_LT_TAGVAR(module_cmds, $1)=
  6908. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6909. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6910. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6911. +_LT_TAGVAR(no_undefined_flag, $1)=
  6912. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6913. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6914. -# Method to check whether dependent libraries are shared objects.
  6915. -deplibs_check_method=$lt_deplibs_check_method
  6916. +# Source file extension for C++ test sources.
  6917. +ac_ext=cpp
  6918. -# Command to use when deplibs_check_method == file_magic.
  6919. -file_magic_cmd=$lt_file_magic_cmd
  6920. +# Object file extension for compiled C++ test sources.
  6921. +objext=o
  6922. +_LT_TAGVAR(objext, $1)=$objext
  6923. -# Flag that allows shared libraries with undefined symbols to be built.
  6924. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6925. +# No sense in running all these tests if we already determined that
  6926. +# the CXX compiler isn't working. Some variables (like enable_shared)
  6927. +# are currently assumed to apply to all compilers on this platform,
  6928. +# and will be corrupted by setting them based on a non-working compiler.
  6929. +if test "$_lt_caught_CXX_error" != yes; then
  6930. + # Code to be used in simple compile tests
  6931. + lt_simple_compile_test_code="int some_variable = 0;"
  6932. +
  6933. + # Code to be used in simple link tests
  6934. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6935. +
  6936. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6937. + _LT_TAG_COMPILER
  6938. +
  6939. + # save warnings/boilerplate of simple test code
  6940. + _LT_COMPILER_BOILERPLATE
  6941. + _LT_LINKER_BOILERPLATE
  6942. +
  6943. + # Allow CC to be a program name with arguments.
  6944. + lt_save_CC=$CC
  6945. + lt_save_LD=$LD
  6946. + lt_save_GCC=$GCC
  6947. + GCC=$GXX
  6948. + lt_save_with_gnu_ld=$with_gnu_ld
  6949. + lt_save_path_LD=$lt_cv_path_LD
  6950. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6951. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6952. + else
  6953. + $as_unset lt_cv_prog_gnu_ld
  6954. + fi
  6955. + if test -n "${lt_cv_path_LDCXX+set}"; then
  6956. + lt_cv_path_LD=$lt_cv_path_LDCXX
  6957. + else
  6958. + $as_unset lt_cv_path_LD
  6959. + fi
  6960. + test -z "${LDCXX+set}" || LD=$LDCXX
  6961. + CC=${CXX-"c++"}
  6962. + compiler=$CC
  6963. + _LT_TAGVAR(compiler, $1)=$CC
  6964. + _LT_CC_BASENAME([$compiler])
  6965. -# Flag that forces no undefined symbols.
  6966. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6967. + if test -n "$compiler"; then
  6968. + # We don't want -fno-exception when compiling C++ code, so set the
  6969. + # no_builtin_flag separately
  6970. + if test "$GXX" = yes; then
  6971. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6972. + else
  6973. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6974. + fi
  6975. -# Commands used to finish a libtool library installation in a directory.
  6976. -finish_cmds=$lt_finish_cmds
  6977. + if test "$GXX" = yes; then
  6978. + # Set up default GNU C++ configuration
  6979. -# Same as above, but a single script fragment to be evaled but not shown.
  6980. -finish_eval=$lt_finish_eval
  6981. + LT_PATH_LD
  6982. -# Take the output of nm and produce a listing of raw symbols and C names.
  6983. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6984. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  6985. + # archiving commands below assume that GNU ld is being used.
  6986. + if test "$with_gnu_ld" = yes; then
  6987. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6988. + _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'
  6989. +
  6990. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6991. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6992. +
  6993. + # If archive_cmds runs LD, not CC, wlarc should be empty
  6994. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  6995. + # investigate it a little bit more. (MM)
  6996. + wlarc='${wl}'
  6997. +
  6998. + # ancient GNU ld didn't support --whole-archive et. al.
  6999. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7000. + $GREP 'no-whole-archive' > /dev/null; then
  7001. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7002. + else
  7003. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7004. + fi
  7005. + else
  7006. + with_gnu_ld=no
  7007. + wlarc=
  7008. -# Transform the output of nm in a proper C declaration
  7009. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7010. + # A generic and very simple default shared library creation
  7011. + # command for GNU C++ for the case where it uses the native
  7012. + # linker, instead of GNU ld. If possible, this setting should
  7013. + # overridden to take advantage of the native linker features on
  7014. + # the platform it is being used on.
  7015. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7016. + fi
  7017. -# Transform the output of nm in a C name address pair
  7018. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7019. + # Commands to make compiler produce verbose output that lists
  7020. + # what "hidden" libraries, object files and flags are used when
  7021. + # linking a shared library.
  7022. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7023. -# This is the shared library runtime path variable.
  7024. -runpath_var=$runpath_var
  7025. + else
  7026. + GXX=no
  7027. + with_gnu_ld=no
  7028. + wlarc=
  7029. + fi
  7030. -# This is the shared library path variable.
  7031. -shlibpath_var=$shlibpath_var
  7032. + # PORTME: fill in a description of your system's C++ link characteristics
  7033. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7034. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7035. + case $host_os in
  7036. + aix3*)
  7037. + # FIXME: insert proper C++ library support
  7038. + _LT_TAGVAR(ld_shlibs, $1)=no
  7039. + ;;
  7040. + aix[[4-9]]*)
  7041. + if test "$host_cpu" = ia64; then
  7042. + # On IA64, the linker does run time linking by default, so we don't
  7043. + # have to do anything special.
  7044. + aix_use_runtimelinking=no
  7045. + exp_sym_flag='-Bexport'
  7046. + no_entry_flag=""
  7047. + else
  7048. + aix_use_runtimelinking=no
  7049. -# Is shlibpath searched before the hard-coded library search path?
  7050. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7051. + # Test if we are trying to use run time linking or normal
  7052. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7053. + # need to do runtime linking.
  7054. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7055. + for ld_flag in $LDFLAGS; do
  7056. + case $ld_flag in
  7057. + *-brtl*)
  7058. + aix_use_runtimelinking=yes
  7059. + break
  7060. + ;;
  7061. + esac
  7062. + done
  7063. + ;;
  7064. + esac
  7065. -# How to hardcode a shared library path into an executable.
  7066. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7067. + exp_sym_flag='-bexport'
  7068. + no_entry_flag='-bnoentry'
  7069. + fi
  7070. -# Whether we should hardcode library paths into libraries.
  7071. -hardcode_into_libs=$hardcode_into_libs
  7072. + # When large executables or shared objects are built, AIX ld can
  7073. + # have problems creating the table of contents. If linking a library
  7074. + # or program results in "error TOC overflow" add -mminimal-toc to
  7075. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7076. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7077. +
  7078. + _LT_TAGVAR(archive_cmds, $1)=''
  7079. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7080. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7081. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7082. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7083. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7084. +
  7085. + if test "$GXX" = yes; then
  7086. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7087. + # We only want to do this on AIX 4.2 and lower, the check
  7088. + # below for broken collect2 doesn't work under 4.3+
  7089. + collect2name=`${CC} -print-prog-name=collect2`
  7090. + if test -f "$collect2name" &&
  7091. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7092. + then
  7093. + # We have reworked collect2
  7094. + :
  7095. + else
  7096. + # We have old collect2
  7097. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7098. + # It fails to find uninstalled libraries when the uninstalled
  7099. + # path is not listed in the libpath. Setting hardcode_minus_L
  7100. + # to unsupported forces relinking
  7101. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7102. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7103. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7104. + fi
  7105. + esac
  7106. + shared_flag='-shared'
  7107. + if test "$aix_use_runtimelinking" = yes; then
  7108. + shared_flag="$shared_flag "'${wl}-G'
  7109. + fi
  7110. + else
  7111. + # not using gcc
  7112. + if test "$host_cpu" = ia64; then
  7113. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7114. + # chokes on -Wl,-G. The following line is correct:
  7115. + shared_flag='-G'
  7116. + else
  7117. + if test "$aix_use_runtimelinking" = yes; then
  7118. + shared_flag='${wl}-G'
  7119. + else
  7120. + shared_flag='${wl}-bM:SRE'
  7121. + fi
  7122. + fi
  7123. + fi
  7124. -# Flag to hardcode \$libdir into a binary during linking.
  7125. -# This must work even if \$libdir does not exist.
  7126. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7127. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7128. + # It seems that -bexpall does not export symbols beginning with
  7129. + # underscore (_), so it is better to generate a list of symbols to
  7130. + # export.
  7131. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7132. + if test "$aix_use_runtimelinking" = yes; then
  7133. + # Warning - without using the other runtime loading flags (-brtl),
  7134. + # -berok will link without error, but may produce a broken library.
  7135. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7136. + # Determine the default libpath from the value encoded in an empty
  7137. + # executable.
  7138. + _LT_SYS_MODULE_PATH_AIX
  7139. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7140. -# If ld is used when linking, flag to hardcode \$libdir into
  7141. -# a binary during linking. This must work even if \$libdir does
  7142. -# not exist.
  7143. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7144. + _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"
  7145. + else
  7146. + if test "$host_cpu" = ia64; then
  7147. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7148. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7149. + _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"
  7150. + else
  7151. + # Determine the default libpath from the value encoded in an
  7152. + # empty executable.
  7153. + _LT_SYS_MODULE_PATH_AIX
  7154. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7155. + # Warning - without using the other run time loading flags,
  7156. + # -berok will link without error, but may produce a broken library.
  7157. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7158. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7159. + # Exported symbols can be pulled into shared objects from archives
  7160. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7161. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7162. + # This is similar to how AIX traditionally builds its shared
  7163. + # libraries.
  7164. + _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'
  7165. + fi
  7166. + fi
  7167. + ;;
  7168. -# Whether we need a single -rpath flag with a separated argument.
  7169. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7170. + beos*)
  7171. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7172. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7173. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7174. + # support --undefined. This deserves some investigation. FIXME
  7175. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7176. + else
  7177. + _LT_TAGVAR(ld_shlibs, $1)=no
  7178. + fi
  7179. + ;;
  7180. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7181. -# resulting binary.
  7182. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7183. + chorus*)
  7184. + case $cc_basename in
  7185. + *)
  7186. + # FIXME: insert proper C++ library support
  7187. + _LT_TAGVAR(ld_shlibs, $1)=no
  7188. + ;;
  7189. + esac
  7190. + ;;
  7191. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7192. -# resulting binary.
  7193. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7194. + cygwin* | mingw* | pw32* | cegcc*)
  7195. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7196. + # as there is no search path for DLLs.
  7197. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7198. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7199. + _LT_TAGVAR(always_export_symbols, $1)=no
  7200. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7201. +
  7202. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7203. + _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'
  7204. + # If the export-symbols file already is a .def file (1st line
  7205. + # is EXPORTS), use it as is; otherwise, prepend...
  7206. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7207. + cp $export_symbols $output_objdir/$soname.def;
  7208. + else
  7209. + echo EXPORTS > $output_objdir/$soname.def;
  7210. + cat $export_symbols >> $output_objdir/$soname.def;
  7211. + fi~
  7212. + $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'
  7213. + else
  7214. + _LT_TAGVAR(ld_shlibs, $1)=no
  7215. + fi
  7216. + ;;
  7217. + darwin* | rhapsody*)
  7218. + _LT_DARWIN_LINKER_FEATURES($1)
  7219. + ;;
  7220. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7221. -# the resulting binary.
  7222. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7223. + dgux*)
  7224. + case $cc_basename in
  7225. + ec++*)
  7226. + # FIXME: insert proper C++ library support
  7227. + _LT_TAGVAR(ld_shlibs, $1)=no
  7228. + ;;
  7229. + ghcx*)
  7230. + # Green Hills C++ Compiler
  7231. + # FIXME: insert proper C++ library support
  7232. + _LT_TAGVAR(ld_shlibs, $1)=no
  7233. + ;;
  7234. + *)
  7235. + # FIXME: insert proper C++ library support
  7236. + _LT_TAGVAR(ld_shlibs, $1)=no
  7237. + ;;
  7238. + esac
  7239. + ;;
  7240. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7241. -# and all subsequent libraries and executables linked against it.
  7242. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7243. + freebsd[[12]]*)
  7244. + # C++ shared libraries reported to be fairly broken before
  7245. + # switch to ELF
  7246. + _LT_TAGVAR(ld_shlibs, $1)=no
  7247. + ;;
  7248. -# Variables whose values should be saved in libtool wrapper scripts and
  7249. -# restored at relink time.
  7250. -variables_saved_for_relink="$variables_saved_for_relink"
  7251. + freebsd-elf*)
  7252. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7253. + ;;
  7254. -# Whether libtool must link a program against all its dependency libraries.
  7255. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7256. + freebsd* | dragonfly*)
  7257. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7258. + # conventions
  7259. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7260. + ;;
  7261. -# Compile-time system search path for libraries
  7262. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7263. + gnu*)
  7264. + ;;
  7265. -# Run-time system search path for libraries
  7266. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7267. -
  7268. -# Fix the shell variable \$srcfile for the compiler.
  7269. -fix_srcfile_path=$lt_fix_srcfile_path
  7270. -
  7271. -# Set to yes if exported symbols are required.
  7272. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7273. + hpux9*)
  7274. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7275. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7276. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7277. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7278. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7279. + # but as the default
  7280. + # location of the library.
  7281. +
  7282. + case $cc_basename in
  7283. + CC*)
  7284. + # FIXME: insert proper C++ library support
  7285. + _LT_TAGVAR(ld_shlibs, $1)=no
  7286. + ;;
  7287. + aCC*)
  7288. + _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'
  7289. + # Commands to make compiler produce verbose output that lists
  7290. + # what "hidden" libraries, object files and flags are used when
  7291. + # linking a shared library.
  7292. + #
  7293. + # There doesn't appear to be a way to prevent this compiler from
  7294. + # explicitly linking system object files so we need to strip them
  7295. + # from the output so that they don't get included in the library
  7296. + # dependencies.
  7297. + 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'
  7298. + ;;
  7299. + *)
  7300. + if test "$GXX" = yes; then
  7301. + _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'
  7302. + else
  7303. + # FIXME: insert proper C++ library support
  7304. + _LT_TAGVAR(ld_shlibs, $1)=no
  7305. + fi
  7306. + ;;
  7307. + esac
  7308. + ;;
  7309. -# The commands to list exported symbols.
  7310. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7311. + hpux10*|hpux11*)
  7312. + if test $with_gnu_ld = no; then
  7313. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7314. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7315. +
  7316. + case $host_cpu in
  7317. + hppa*64*|ia64*)
  7318. + ;;
  7319. + *)
  7320. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7321. + ;;
  7322. + esac
  7323. + fi
  7324. + case $host_cpu in
  7325. + hppa*64*|ia64*)
  7326. + _LT_TAGVAR(hardcode_direct, $1)=no
  7327. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7328. + ;;
  7329. + *)
  7330. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7331. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7332. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7333. + # but as the default
  7334. + # location of the library.
  7335. + ;;
  7336. + esac
  7337. +
  7338. + case $cc_basename in
  7339. + CC*)
  7340. + # FIXME: insert proper C++ library support
  7341. + _LT_TAGVAR(ld_shlibs, $1)=no
  7342. + ;;
  7343. + aCC*)
  7344. + case $host_cpu in
  7345. + hppa*64*)
  7346. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7347. + ;;
  7348. + ia64*)
  7349. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7350. + ;;
  7351. + *)
  7352. + _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'
  7353. + ;;
  7354. + esac
  7355. + # Commands to make compiler produce verbose output that lists
  7356. + # what "hidden" libraries, object files and flags are used when
  7357. + # linking a shared library.
  7358. + #
  7359. + # There doesn't appear to be a way to prevent this compiler from
  7360. + # explicitly linking system object files so we need to strip them
  7361. + # from the output so that they don't get included in the library
  7362. + # dependencies.
  7363. + 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'
  7364. + ;;
  7365. + *)
  7366. + if test "$GXX" = yes; then
  7367. + if test $with_gnu_ld = no; then
  7368. + case $host_cpu in
  7369. + hppa*64*)
  7370. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7371. + ;;
  7372. + ia64*)
  7373. + _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'
  7374. + ;;
  7375. + *)
  7376. + _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'
  7377. + ;;
  7378. + esac
  7379. + fi
  7380. + else
  7381. + # FIXME: insert proper C++ library support
  7382. + _LT_TAGVAR(ld_shlibs, $1)=no
  7383. + fi
  7384. + ;;
  7385. + esac
  7386. + ;;
  7387. -# The commands to extract the exported symbol list from a shared archive.
  7388. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7389. + interix[[3-9]]*)
  7390. + _LT_TAGVAR(hardcode_direct, $1)=no
  7391. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7392. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7393. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7394. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7395. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7396. + # default) and relocated if they conflict, which is a slow very memory
  7397. + # consuming and fragmenting process. To avoid this, we pick a random,
  7398. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7399. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7400. + _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'
  7401. + _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'
  7402. + ;;
  7403. + irix5* | irix6*)
  7404. + case $cc_basename in
  7405. + CC*)
  7406. + # SGI C++
  7407. + _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'
  7408. +
  7409. + # Archives containing C++ object files must be created using
  7410. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7411. + # necessary to make sure instantiated templates are included
  7412. + # in the archive.
  7413. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7414. + ;;
  7415. + *)
  7416. + if test "$GXX" = yes; then
  7417. + if test "$with_gnu_ld" = no; then
  7418. + _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'
  7419. + else
  7420. + _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'
  7421. + fi
  7422. + fi
  7423. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7424. + ;;
  7425. + esac
  7426. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7427. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7428. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7429. + ;;
  7430. -# Symbols that should not be listed in the preloaded symbols.
  7431. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7432. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7433. + case $cc_basename in
  7434. + KCC*)
  7435. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7436. +
  7437. + # KCC will only create a shared library if the output file
  7438. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7439. + # to its proper name (with version) after linking.
  7440. + _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'
  7441. + _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'
  7442. + # Commands to make compiler produce verbose output that lists
  7443. + # what "hidden" libraries, object files and flags are used when
  7444. + # linking a shared library.
  7445. + #
  7446. + # There doesn't appear to be a way to prevent this compiler from
  7447. + # explicitly linking system object files so we need to strip them
  7448. + # from the output so that they don't get included in the library
  7449. + # dependencies.
  7450. + 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'
  7451. +
  7452. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7453. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7454. +
  7455. + # Archives containing C++ object files must be created using
  7456. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7457. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7458. + ;;
  7459. + icpc* | ecpc* )
  7460. + # Intel C++
  7461. + with_gnu_ld=yes
  7462. + # version 8.0 and above of icpc choke on multiply defined symbols
  7463. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  7464. + # earlier do not add the objects themselves.
  7465. + case `$CC -V 2>&1` in
  7466. + *"Version 7."*)
  7467. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7468. + _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'
  7469. + ;;
  7470. + *) # Version 8.0 or newer
  7471. + tmp_idyn=
  7472. + case $host_cpu in
  7473. + ia64*) tmp_idyn=' -i_dynamic';;
  7474. + esac
  7475. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7476. + _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'
  7477. + ;;
  7478. + esac
  7479. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7480. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7481. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7482. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7483. + ;;
  7484. + pgCC* | pgcpp*)
  7485. + # Portland Group C++ compiler
  7486. + case `$CC -V` in
  7487. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7488. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7489. + rm -rf $tpldir~
  7490. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7491. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7492. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7493. + rm -rf $tpldir~
  7494. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7495. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7496. + $RANLIB $oldlib'
  7497. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7498. + rm -rf $tpldir~
  7499. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7500. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7501. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7502. + rm -rf $tpldir~
  7503. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7504. + $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'
  7505. + ;;
  7506. + *) # Version 6 will use weak symbols
  7507. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7508. + _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'
  7509. + ;;
  7510. + esac
  7511. -# Symbols that must always be exported.
  7512. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7513. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7514. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7515. + _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'
  7516. + ;;
  7517. + cxx*)
  7518. + # Compaq C++
  7519. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7520. + _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'
  7521. -ifelse([$1],[],
  7522. -[# ### END LIBTOOL CONFIG],
  7523. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7524. + runpath_var=LD_RUN_PATH
  7525. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7526. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7527. -__EOF__
  7528. + # Commands to make compiler produce verbose output that lists
  7529. + # what "hidden" libraries, object files and flags are used when
  7530. + # linking a shared library.
  7531. + #
  7532. + # There doesn't appear to be a way to prevent this compiler from
  7533. + # explicitly linking system object files so we need to strip them
  7534. + # from the output so that they don't get included in the library
  7535. + # dependencies.
  7536. + 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'
  7537. + ;;
  7538. + xl*)
  7539. + # IBM XL 8.0 on PPC, with GNU ld
  7540. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7541. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7542. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7543. + if test "x$supports_anon_versioning" = xyes; then
  7544. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7545. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7546. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7547. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7548. + fi
  7549. + ;;
  7550. + *)
  7551. + case `$CC -V 2>&1 | sed 5q` in
  7552. + *Sun\ C*)
  7553. + # Sun C++ 5.9
  7554. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7555. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7556. + _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'
  7557. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7558. + _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'
  7559. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7560. +
  7561. + # Not sure whether something based on
  7562. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7563. + # would be better.
  7564. + output_verbose_link_cmd='echo'
  7565. +
  7566. + # Archives containing C++ object files must be created using
  7567. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7568. + # necessary to make sure instantiated templates are included
  7569. + # in the archive.
  7570. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7571. + ;;
  7572. + esac
  7573. + ;;
  7574. + esac
  7575. + ;;
  7576. -ifelse([$1],[], [
  7577. - case $host_os in
  7578. - aix3*)
  7579. - cat <<\EOF >> "$cfgfile"
  7580. + lynxos*)
  7581. + # FIXME: insert proper C++ library support
  7582. + _LT_TAGVAR(ld_shlibs, $1)=no
  7583. + ;;
  7584. -# AIX sometimes has problems with the GCC collect2 program. For some
  7585. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7586. -# vanish in a puff of smoke.
  7587. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7588. - COLLECT_NAMES=
  7589. - export COLLECT_NAMES
  7590. -fi
  7591. -EOF
  7592. - ;;
  7593. - esac
  7594. + m88k*)
  7595. + # FIXME: insert proper C++ library support
  7596. + _LT_TAGVAR(ld_shlibs, $1)=no
  7597. + ;;
  7598. - # We use sed instead of cat because bash on DJGPP gets confused if
  7599. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7600. - # text mode, it properly converts lines to CR/LF. This bash problem
  7601. - # is reportedly fixed, but why not run on old versions too?
  7602. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7603. + mvs*)
  7604. + case $cc_basename in
  7605. + cxx*)
  7606. + # FIXME: insert proper C++ library support
  7607. + _LT_TAGVAR(ld_shlibs, $1)=no
  7608. + ;;
  7609. + *)
  7610. + # FIXME: insert proper C++ library support
  7611. + _LT_TAGVAR(ld_shlibs, $1)=no
  7612. + ;;
  7613. + esac
  7614. + ;;
  7615. - mv -f "$cfgfile" "$ofile" || \
  7616. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7617. - chmod +x "$ofile"
  7618. -])
  7619. -else
  7620. - # If there is no Makefile yet, we rely on a make rule to execute
  7621. - # `config.status --recheck' to rerun these tests and create the
  7622. - # libtool script then.
  7623. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7624. - if test -f "$ltmain_in"; then
  7625. - test -f Makefile && make "$ltmain"
  7626. - fi
  7627. -fi
  7628. -])# AC_LIBTOOL_CONFIG
  7629. + netbsd*)
  7630. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7631. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7632. + wlarc=
  7633. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7634. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7635. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7636. + fi
  7637. + # Workaround some broken pre-1.5 toolchains
  7638. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7639. + ;;
  7640. + *nto* | *qnx*)
  7641. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7642. + ;;
  7643. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7644. -# -------------------------------------------
  7645. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7646. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7647. + openbsd2*)
  7648. + # C++ shared libraries are fairly broken
  7649. + _LT_TAGVAR(ld_shlibs, $1)=no
  7650. + ;;
  7651. +
  7652. + openbsd*)
  7653. + if test -f /usr/libexec/ld.so; then
  7654. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7655. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7656. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7657. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7658. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7659. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7660. + _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'
  7661. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7662. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7663. + fi
  7664. + output_verbose_link_cmd=echo
  7665. + else
  7666. + _LT_TAGVAR(ld_shlibs, $1)=no
  7667. + fi
  7668. + ;;
  7669. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7670. + osf3* | osf4* | osf5*)
  7671. + case $cc_basename in
  7672. + KCC*)
  7673. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7674. +
  7675. + # KCC will only create a shared library if the output file
  7676. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7677. + # to its proper name (with version) after linking.
  7678. + _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'
  7679. +
  7680. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7681. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7682. +
  7683. + # Archives containing C++ object files must be created using
  7684. + # the KAI C++ compiler.
  7685. + case $host in
  7686. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7687. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7688. + esac
  7689. + ;;
  7690. + RCC*)
  7691. + # Rational C++ 2.4.1
  7692. + # FIXME: insert proper C++ library support
  7693. + _LT_TAGVAR(ld_shlibs, $1)=no
  7694. + ;;
  7695. + cxx*)
  7696. + case $host in
  7697. + osf3*)
  7698. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7699. + _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'
  7700. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7701. + ;;
  7702. + *)
  7703. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7704. + _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'
  7705. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7706. + echo "-hidden">> $lib.exp~
  7707. + $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~
  7708. + $RM $lib.exp'
  7709. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7710. + ;;
  7711. + esac
  7712. -if test "$GCC" = yes; then
  7713. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7714. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7715. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7716. - lt_cv_prog_compiler_rtti_exceptions,
  7717. - [-fno-rtti -fno-exceptions], [],
  7718. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7719. -fi
  7720. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7721. + # Commands to make compiler produce verbose output that lists
  7722. + # what "hidden" libraries, object files and flags are used when
  7723. + # linking a shared library.
  7724. + #
  7725. + # There doesn't appear to be a way to prevent this compiler from
  7726. + # explicitly linking system object files so we need to strip them
  7727. + # from the output so that they don't get included in the library
  7728. + # dependencies.
  7729. + 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'
  7730. + ;;
  7731. + *)
  7732. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7733. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7734. + case $host in
  7735. + osf3*)
  7736. + _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'
  7737. + ;;
  7738. + *)
  7739. + _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'
  7740. + ;;
  7741. + esac
  7742. +
  7743. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7744. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7745. +
  7746. + # Commands to make compiler produce verbose output that lists
  7747. + # what "hidden" libraries, object files and flags are used when
  7748. + # linking a shared library.
  7749. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7750. +
  7751. + else
  7752. + # FIXME: insert proper C++ library support
  7753. + _LT_TAGVAR(ld_shlibs, $1)=no
  7754. + fi
  7755. + ;;
  7756. + esac
  7757. + ;;
  7758. + psos*)
  7759. + # FIXME: insert proper C++ library support
  7760. + _LT_TAGVAR(ld_shlibs, $1)=no
  7761. + ;;
  7762. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7763. -# ---------------------------------
  7764. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7765. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7766. -AC_REQUIRE([LT_AC_PROG_SED])
  7767. -AC_REQUIRE([AC_PROG_NM])
  7768. -AC_REQUIRE([AC_OBJEXT])
  7769. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7770. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7771. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7772. -[
  7773. -# These are sane defaults that work on at least a few old systems.
  7774. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7775. + sunos4*)
  7776. + case $cc_basename in
  7777. + CC*)
  7778. + # Sun C++ 4.x
  7779. + # FIXME: insert proper C++ library support
  7780. + _LT_TAGVAR(ld_shlibs, $1)=no
  7781. + ;;
  7782. + lcc*)
  7783. + # Lucid
  7784. + # FIXME: insert proper C++ library support
  7785. + _LT_TAGVAR(ld_shlibs, $1)=no
  7786. + ;;
  7787. + *)
  7788. + # FIXME: insert proper C++ library support
  7789. + _LT_TAGVAR(ld_shlibs, $1)=no
  7790. + ;;
  7791. + esac
  7792. + ;;
  7793. -# Character class describing NM global symbol codes.
  7794. -symcode='[[BCDEGRST]]'
  7795. + solaris*)
  7796. + case $cc_basename in
  7797. + CC*)
  7798. + # Sun C++ 4.2, 5.x and Centerline C++
  7799. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7800. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7801. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7802. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7803. + $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'
  7804. +
  7805. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7806. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7807. + case $host_os in
  7808. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7809. + *)
  7810. + # The compiler driver will combine and reorder linker options,
  7811. + # but understands `-z linker_flag'.
  7812. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7813. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7814. + ;;
  7815. + esac
  7816. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7817. -# Regexp to match symbols that can be accessed directly from C.
  7818. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7819. + output_verbose_link_cmd='echo'
  7820. -# Transform an extracted symbol line into a proper C declaration
  7821. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7822. + # Archives containing C++ object files must be created using
  7823. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7824. + # necessary to make sure instantiated templates are included
  7825. + # in the archive.
  7826. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7827. + ;;
  7828. + gcx*)
  7829. + # Green Hills C++ Compiler
  7830. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7831. -# Transform an extracted symbol line into symbol name and symbol address
  7832. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7833. + # The C++ compiler must be used to create the archive.
  7834. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7835. + ;;
  7836. + *)
  7837. + # GNU C++ compiler with Solaris linker
  7838. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7839. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7840. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7841. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7842. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7843. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7844. +
  7845. + # Commands to make compiler produce verbose output that lists
  7846. + # what "hidden" libraries, object files and flags are used when
  7847. + # linking a shared library.
  7848. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7849. + else
  7850. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7851. + # platform.
  7852. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7853. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7854. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7855. +
  7856. + # Commands to make compiler produce verbose output that lists
  7857. + # what "hidden" libraries, object files and flags are used when
  7858. + # linking a shared library.
  7859. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7860. + fi
  7861. +
  7862. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7863. + case $host_os in
  7864. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7865. + *)
  7866. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7867. + ;;
  7868. + esac
  7869. + fi
  7870. + ;;
  7871. + esac
  7872. + ;;
  7873. -# Define system-specific variables.
  7874. -case $host_os in
  7875. -aix*)
  7876. - symcode='[[BCDT]]'
  7877. - ;;
  7878. -cygwin* | mingw* | pw32*)
  7879. - symcode='[[ABCDGISTW]]'
  7880. - ;;
  7881. -hpux*) # Its linker distinguishes data from code symbols
  7882. - if test "$host_cpu" = ia64; then
  7883. - symcode='[[ABCDEGRST]]'
  7884. - fi
  7885. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7886. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7887. - ;;
  7888. -linux* | k*bsd*-gnu)
  7889. - if test "$host_cpu" = ia64; then
  7890. - symcode='[[ABCDGIRSTW]]'
  7891. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7892. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7893. - fi
  7894. - ;;
  7895. -irix* | nonstopux*)
  7896. - symcode='[[BCDEGRST]]'
  7897. - ;;
  7898. -osf*)
  7899. - symcode='[[BCDEGQRST]]'
  7900. - ;;
  7901. -solaris*)
  7902. - symcode='[[BDRT]]'
  7903. - ;;
  7904. -sco3.2v5*)
  7905. - symcode='[[DT]]'
  7906. - ;;
  7907. -sysv4.2uw2*)
  7908. - symcode='[[DT]]'
  7909. - ;;
  7910. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7911. - symcode='[[ABDT]]'
  7912. - ;;
  7913. -sysv4)
  7914. - symcode='[[DFNSTU]]'
  7915. - ;;
  7916. -esac
  7917. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7918. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7919. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7920. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7921. + runpath_var='LD_RUN_PATH'
  7922. -# Handle CRLF in mingw tool chain
  7923. -opt_cr=
  7924. -case $build_os in
  7925. -mingw*)
  7926. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7927. - ;;
  7928. -esac
  7929. + case $cc_basename in
  7930. + CC*)
  7931. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7932. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7933. + ;;
  7934. + *)
  7935. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7936. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7937. + ;;
  7938. + esac
  7939. + ;;
  7940. -# If we're using GNU nm, then use its standard symbol codes.
  7941. -case `$NM -V 2>&1` in
  7942. -*GNU* | *'with BFD'*)
  7943. - symcode='[[ABCDGIRSTW]]' ;;
  7944. -esac
  7945. + sysv5* | sco3.2v5* | sco5v6*)
  7946. + # Note: We can NOT use -z defs as we might desire, because we do not
  7947. + # link with -lc, and that would cause any symbols used from libc to
  7948. + # always be unresolved, which means just about no library would
  7949. + # ever link correctly. If we're not using GNU ld we use -z text
  7950. + # though, which does catch some bad symbols but isn't as heavy-handed
  7951. + # as -z defs.
  7952. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7953. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7954. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7955. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7956. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7957. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7958. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7959. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7960. + runpath_var='LD_RUN_PATH'
  7961. -# Try without a prefix undercore, then with it.
  7962. -for ac_symprfx in "" "_"; do
  7963. + case $cc_basename in
  7964. + CC*)
  7965. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7966. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7967. + ;;
  7968. + *)
  7969. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7970. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7971. + ;;
  7972. + esac
  7973. + ;;
  7974. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7975. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  7976. + tandem*)
  7977. + case $cc_basename in
  7978. + NCC*)
  7979. + # NonStop-UX NCC 3.20
  7980. + # FIXME: insert proper C++ library support
  7981. + _LT_TAGVAR(ld_shlibs, $1)=no
  7982. + ;;
  7983. + *)
  7984. + # FIXME: insert proper C++ library support
  7985. + _LT_TAGVAR(ld_shlibs, $1)=no
  7986. + ;;
  7987. + esac
  7988. + ;;
  7989. - # Write the raw and C identifiers.
  7990. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7991. + vxworks*)
  7992. + # FIXME: insert proper C++ library support
  7993. + _LT_TAGVAR(ld_shlibs, $1)=no
  7994. + ;;
  7995. - # Check to see that the pipe works correctly.
  7996. - pipe_works=no
  7997. + *)
  7998. + # FIXME: insert proper C++ library support
  7999. + _LT_TAGVAR(ld_shlibs, $1)=no
  8000. + ;;
  8001. + esac
  8002. - rm -f conftest*
  8003. - cat > conftest.$ac_ext <<EOF
  8004. -#ifdef __cplusplus
  8005. -extern "C" {
  8006. -#endif
  8007. -char nm_test_var;
  8008. -void nm_test_func(){}
  8009. -#ifdef __cplusplus
  8010. -}
  8011. -#endif
  8012. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8013. -EOF
  8014. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8015. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8016. - if AC_TRY_EVAL(ac_compile); then
  8017. - # Now try to grab the symbols.
  8018. - nlist=conftest.nm
  8019. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8020. - # Try sorting and uniquifying the output.
  8021. - if sort "$nlist" | uniq > "$nlist"T; then
  8022. - mv -f "$nlist"T "$nlist"
  8023. - else
  8024. - rm -f "$nlist"T
  8025. - fi
  8026. + _LT_TAGVAR(GCC, $1)="$GXX"
  8027. + _LT_TAGVAR(LD, $1)="$LD"
  8028. - # Make sure that we snagged all the symbols we need.
  8029. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8030. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8031. - cat <<EOF > conftest.$ac_ext
  8032. -#ifdef __cplusplus
  8033. -extern "C" {
  8034. -#endif
  8035. + ## CAVEAT EMPTOR:
  8036. + ## There is no encapsulation within the following macros, do not change
  8037. + ## the running order or otherwise move them around unless you know exactly
  8038. + ## what you are doing...
  8039. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8040. + _LT_COMPILER_PIC($1)
  8041. + _LT_COMPILER_C_O($1)
  8042. + _LT_COMPILER_FILE_LOCKS($1)
  8043. + _LT_LINKER_SHLIBS($1)
  8044. + _LT_SYS_DYNAMIC_LINKER($1)
  8045. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8046. +
  8047. + _LT_CONFIG($1)
  8048. + fi # test -n "$compiler"
  8049. +
  8050. + CC=$lt_save_CC
  8051. + LDCXX=$LD
  8052. + LD=$lt_save_LD
  8053. + GCC=$lt_save_GCC
  8054. + with_gnu_ld=$lt_save_with_gnu_ld
  8055. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8056. + lt_cv_path_LD=$lt_save_path_LD
  8057. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8058. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8059. +fi # test "$_lt_caught_CXX_error" != yes
  8060. -EOF
  8061. - # Now generate the symbol file.
  8062. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8063. +AC_LANG_POP
  8064. +])# _LT_LANG_CXX_CONFIG
  8065. - cat <<EOF >> conftest.$ac_ext
  8066. -#if defined (__STDC__) && __STDC__
  8067. -# define lt_ptr_t void *
  8068. -#else
  8069. -# define lt_ptr_t char *
  8070. -# define const
  8071. -#endif
  8072. -/* The mapping between symbol names and symbols. */
  8073. -const struct {
  8074. - const char *name;
  8075. - lt_ptr_t address;
  8076. -}
  8077. -lt_preloaded_symbols[[]] =
  8078. -{
  8079. -EOF
  8080. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8081. - cat <<\EOF >> conftest.$ac_ext
  8082. - {0, (lt_ptr_t) 0}
  8083. -};
  8084. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8085. +# ---------------------------------
  8086. +# Figure out "hidden" library dependencies from verbose
  8087. +# compiler output when linking a shared library.
  8088. +# Parse the compiler output and extract the necessary
  8089. +# objects, libraries and library flags.
  8090. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8091. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8092. +# Dependencies to place before and after the object being linked:
  8093. +_LT_TAGVAR(predep_objects, $1)=
  8094. +_LT_TAGVAR(postdep_objects, $1)=
  8095. +_LT_TAGVAR(predeps, $1)=
  8096. +_LT_TAGVAR(postdeps, $1)=
  8097. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8098. -#ifdef __cplusplus
  8099. -}
  8100. -#endif
  8101. -EOF
  8102. - # Now try linking the two files.
  8103. - mv conftest.$ac_objext conftstm.$ac_objext
  8104. - lt_save_LIBS="$LIBS"
  8105. - lt_save_CFLAGS="$CFLAGS"
  8106. - LIBS="conftstm.$ac_objext"
  8107. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8108. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8109. - pipe_works=yes
  8110. - fi
  8111. - LIBS="$lt_save_LIBS"
  8112. - CFLAGS="$lt_save_CFLAGS"
  8113. - else
  8114. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8115. - fi
  8116. - else
  8117. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8118. - fi
  8119. - else
  8120. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8121. - fi
  8122. - else
  8123. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8124. - cat conftest.$ac_ext >&5
  8125. - fi
  8126. - rm -rf conftest* conftst*
  8127. -
  8128. - # Do not use the global_symbol_pipe unless it works.
  8129. - if test "$pipe_works" = yes; then
  8130. - break
  8131. - else
  8132. - lt_cv_sys_global_symbol_pipe=
  8133. - fi
  8134. -done
  8135. +dnl we can't use the lt_simple_compile_test_code here,
  8136. +dnl because it contains code intended for an executable,
  8137. +dnl not a library. It's possible we should let each
  8138. +dnl tag define a new lt_????_link_test_code variable,
  8139. +dnl but it's only used here...
  8140. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8141. +int a;
  8142. +void foo (void) { a = 0; }
  8143. +_LT_EOF
  8144. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8145. +class Foo
  8146. +{
  8147. +public:
  8148. + Foo (void) { a = 0; }
  8149. +private:
  8150. + int a;
  8151. +};
  8152. +_LT_EOF
  8153. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8154. + subroutine foo
  8155. + implicit none
  8156. + integer*4 a
  8157. + a=0
  8158. + return
  8159. + end
  8160. +_LT_EOF
  8161. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8162. + subroutine foo
  8163. + implicit none
  8164. + integer a
  8165. + a=0
  8166. + return
  8167. + end
  8168. +_LT_EOF
  8169. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8170. +public class foo {
  8171. + private int a;
  8172. + public void bar (void) {
  8173. + a = 0;
  8174. + }
  8175. +};
  8176. +_LT_EOF
  8177. ])
  8178. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8179. - lt_cv_sys_global_symbol_to_cdecl=
  8180. -fi
  8181. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8182. - AC_MSG_RESULT(failed)
  8183. +dnl Parse the compiler output and extract the necessary
  8184. +dnl objects, libraries and library flags.
  8185. +if AC_TRY_EVAL(ac_compile); then
  8186. + # Parse the compiler output and extract the necessary
  8187. + # objects, libraries and library flags.
  8188. +
  8189. + # Sentinel used to keep track of whether or not we are before
  8190. + # the conftest object file.
  8191. + pre_test_object_deps_done=no
  8192. +
  8193. + for p in `eval "$output_verbose_link_cmd"`; do
  8194. + case $p in
  8195. +
  8196. + -L* | -R* | -l*)
  8197. + # Some compilers place space between "-{L,R}" and the path.
  8198. + # Remove the space.
  8199. + if test $p = "-L" ||
  8200. + test $p = "-R"; then
  8201. + prev=$p
  8202. + continue
  8203. + else
  8204. + prev=
  8205. + fi
  8206. +
  8207. + if test "$pre_test_object_deps_done" = no; then
  8208. + case $p in
  8209. + -L* | -R*)
  8210. + # Internal compiler library paths should come after those
  8211. + # provided the user. The postdeps already come after the
  8212. + # user supplied libs so there is no need to process them.
  8213. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8214. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8215. + else
  8216. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8217. + fi
  8218. + ;;
  8219. + # The "-l" case would never come before the object being
  8220. + # linked, so don't bother handling this case.
  8221. + esac
  8222. + else
  8223. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8224. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8225. + else
  8226. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8227. + fi
  8228. + fi
  8229. + ;;
  8230. +
  8231. + *.$objext)
  8232. + # This assumes that the test object file only shows up
  8233. + # once in the compiler output.
  8234. + if test "$p" = "conftest.$objext"; then
  8235. + pre_test_object_deps_done=yes
  8236. + continue
  8237. + fi
  8238. +
  8239. + if test "$pre_test_object_deps_done" = no; then
  8240. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8241. + _LT_TAGVAR(predep_objects, $1)="$p"
  8242. + else
  8243. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8244. + fi
  8245. + else
  8246. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8247. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8248. + else
  8249. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8250. + fi
  8251. + fi
  8252. + ;;
  8253. +
  8254. + *) ;; # Ignore the rest.
  8255. +
  8256. + esac
  8257. + done
  8258. +
  8259. + # Clean up.
  8260. + rm -f a.out a.exe
  8261. else
  8262. - AC_MSG_RESULT(ok)
  8263. + echo "libtool.m4: error: problem compiling $1 test program"
  8264. fi
  8265. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8266. +$RM -f confest.$objext
  8267. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8268. -# ---------------------------------------
  8269. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8270. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8271. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8272. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8273. +# PORTME: override above test on systems where it is broken
  8274. +m4_if([$1], [CXX],
  8275. +[case $host_os in
  8276. +interix[[3-9]]*)
  8277. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8278. + # hack all around it, let's just trust "g++" to DTRT.
  8279. + _LT_TAGVAR(predep_objects,$1)=
  8280. + _LT_TAGVAR(postdep_objects,$1)=
  8281. + _LT_TAGVAR(postdeps,$1)=
  8282. + ;;
  8283. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8284. - ifelse([$1],[CXX],[
  8285. - # C++ specific cases for pic, static, wl, etc.
  8286. - if test "$GXX" = yes; then
  8287. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8288. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8289. +linux*)
  8290. + case `$CC -V 2>&1 | sed 5q` in
  8291. + *Sun\ C*)
  8292. + # Sun C++ 5.9
  8293. - case $host_os in
  8294. - aix*)
  8295. - # All AIX code is PIC.
  8296. - if test "$host_cpu" = ia64; then
  8297. - # AIX 5 now supports IA64 processor
  8298. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8299. - fi
  8300. - ;;
  8301. - amigaos*)
  8302. - # FIXME: we need at least 68020 code to build shared libraries, but
  8303. - # adding the `-m68020' flag to GCC prevents building anything better,
  8304. - # like `-m68040'.
  8305. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8306. - ;;
  8307. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8308. - # PIC is the default for these OSes.
  8309. - ;;
  8310. - mingw* | cygwin* | os2* | pw32*)
  8311. - # This hack is so that the source file can tell whether it is being
  8312. - # built for inclusion in a dll (and should export symbols for example).
  8313. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8314. - # (--disable-auto-import) libraries
  8315. - m4_if([$1], [GCJ], [],
  8316. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  8317. - ;;
  8318. - darwin* | rhapsody*)
  8319. - # PIC is the default on this platform
  8320. - # Common symbols not allowed in MH_DYLIB files
  8321. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8322. - ;;
  8323. - *djgpp*)
  8324. - # DJGPP does not support shared libraries at all
  8325. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8326. - ;;
  8327. - interix[[3-9]]*)
  8328. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8329. - # Instead, we relocate shared libraries at runtime.
  8330. - ;;
  8331. - sysv4*MP*)
  8332. - if test -d /usr/nec; then
  8333. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8334. - fi
  8335. - ;;
  8336. - hpux*)
  8337. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8338. - # not for PA HP-UX.
  8339. - case $host_cpu in
  8340. - hppa*64*|ia64*)
  8341. - ;;
  8342. - *)
  8343. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8344. - ;;
  8345. - esac
  8346. + # The more standards-conforming stlport4 library is
  8347. + # incompatible with the Cstd library. Avoid specifying
  8348. + # it if it's in CXXFLAGS. Ignore libCrun as
  8349. + # -library=stlport4 depends on it.
  8350. + case " $CXX $CXXFLAGS " in
  8351. + *" -library=stlport4 "*)
  8352. + solaris_use_stlport4=yes
  8353. ;;
  8354. - *)
  8355. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8356. + esac
  8357. +
  8358. + if test "$solaris_use_stlport4" != yes; then
  8359. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8360. + fi
  8361. + ;;
  8362. + esac
  8363. + ;;
  8364. +
  8365. +solaris*)
  8366. + case $cc_basename in
  8367. + CC*)
  8368. + # The more standards-conforming stlport4 library is
  8369. + # incompatible with the Cstd library. Avoid specifying
  8370. + # it if it's in CXXFLAGS. Ignore libCrun as
  8371. + # -library=stlport4 depends on it.
  8372. + case " $CXX $CXXFLAGS " in
  8373. + *" -library=stlport4 "*)
  8374. + solaris_use_stlport4=yes
  8375. ;;
  8376. esac
  8377. - else
  8378. +
  8379. + # Adding this requires a known-good setup of shared libraries for
  8380. + # Sun compiler versions before 5.6, else PIC objects from an old
  8381. + # archive will be linked into the output, leading to subtle bugs.
  8382. + if test "$solaris_use_stlport4" != yes; then
  8383. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8384. + fi
  8385. + ;;
  8386. + esac
  8387. + ;;
  8388. +esac
  8389. +])
  8390. +
  8391. +case " $_LT_TAGVAR(postdeps, $1) " in
  8392. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8393. +esac
  8394. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8395. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8396. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8397. +fi
  8398. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8399. + [The directories searched by this compiler when creating a shared library])
  8400. +_LT_TAGDECL([], [predep_objects], [1],
  8401. + [Dependencies to place before and after the objects being linked to
  8402. + create a shared library])
  8403. +_LT_TAGDECL([], [postdep_objects], [1])
  8404. +_LT_TAGDECL([], [predeps], [1])
  8405. +_LT_TAGDECL([], [postdeps], [1])
  8406. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  8407. + [The library search path used internally by the compiler when linking
  8408. + a shared library])
  8409. +])# _LT_SYS_HIDDEN_LIBDEPS
  8410. +
  8411. +
  8412. +# _LT_PROG_F77
  8413. +# ------------
  8414. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  8415. +# if there is no fortran compiler, we have our own version here.
  8416. +m4_defun([_LT_PROG_F77],
  8417. +[
  8418. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8419. +AC_PROG_F77
  8420. +if test -z "$F77" || test "X$F77" = "Xno"; then
  8421. + _lt_disable_F77=yes
  8422. +fi
  8423. +popdef([AC_MSG_ERROR])
  8424. +])# _LT_PROG_F77
  8425. +
  8426. +dnl aclocal-1.4 backwards compatibility:
  8427. +dnl AC_DEFUN([_LT_PROG_F77], [])
  8428. +
  8429. +
  8430. +# _LT_LANG_F77_CONFIG([TAG])
  8431. +# --------------------------
  8432. +# Ensure that the configuration variables for a Fortran 77 compiler are
  8433. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8434. +# to write the compiler configuration to `libtool'.
  8435. +m4_defun([_LT_LANG_F77_CONFIG],
  8436. +[AC_REQUIRE([_LT_PROG_F77])dnl
  8437. +AC_LANG_PUSH(Fortran 77)
  8438. +
  8439. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8440. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8441. +_LT_TAGVAR(always_export_symbols, $1)=no
  8442. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8443. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8444. +_LT_TAGVAR(hardcode_direct, $1)=no
  8445. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8446. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8447. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8448. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8449. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8450. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8451. +_LT_TAGVAR(inherit_rpath, $1)=no
  8452. +_LT_TAGVAR(module_cmds, $1)=
  8453. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8454. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8455. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8456. +_LT_TAGVAR(no_undefined_flag, $1)=
  8457. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8458. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8459. +
  8460. +# Source file extension for f77 test sources.
  8461. +ac_ext=f
  8462. +
  8463. +# Object file extension for compiled f77 test sources.
  8464. +objext=o
  8465. +_LT_TAGVAR(objext, $1)=$objext
  8466. +
  8467. +# No sense in running all these tests if we already determined that
  8468. +# the F77 compiler isn't working. Some variables (like enable_shared)
  8469. +# are currently assumed to apply to all compilers on this platform,
  8470. +# and will be corrupted by setting them based on a non-working compiler.
  8471. +if test "$_lt_disable_F77" != yes; then
  8472. + # Code to be used in simple compile tests
  8473. + lt_simple_compile_test_code="\
  8474. + subroutine t
  8475. + return
  8476. + end
  8477. +"
  8478. +
  8479. + # Code to be used in simple link tests
  8480. + lt_simple_link_test_code="\
  8481. + program t
  8482. + end
  8483. +"
  8484. +
  8485. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8486. + _LT_TAG_COMPILER
  8487. +
  8488. + # save warnings/boilerplate of simple test code
  8489. + _LT_COMPILER_BOILERPLATE
  8490. + _LT_LINKER_BOILERPLATE
  8491. +
  8492. + # Allow CC to be a program name with arguments.
  8493. + lt_save_CC="$CC"
  8494. + lt_save_GCC=$GCC
  8495. + CC=${F77-"f77"}
  8496. + compiler=$CC
  8497. + _LT_TAGVAR(compiler, $1)=$CC
  8498. + _LT_CC_BASENAME([$compiler])
  8499. + GCC=$G77
  8500. + if test -n "$compiler"; then
  8501. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8502. + AC_MSG_RESULT([$can_build_shared])
  8503. +
  8504. + AC_MSG_CHECKING([whether to build shared libraries])
  8505. + test "$can_build_shared" = "no" && enable_shared=no
  8506. +
  8507. + # On AIX, shared libraries and static libraries use the same namespace, and
  8508. + # are all built from PIC.
  8509. case $host_os in
  8510. + aix3*)
  8511. + test "$enable_shared" = yes && enable_static=no
  8512. + if test -n "$RANLIB"; then
  8513. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8514. + postinstall_cmds='$RANLIB $lib'
  8515. + fi
  8516. + ;;
  8517. aix[[4-9]]*)
  8518. - # All AIX code is PIC.
  8519. - if test "$host_cpu" = ia64; then
  8520. - # AIX 5 now supports IA64 processor
  8521. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8522. - else
  8523. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8524. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8525. + test "$enable_shared" = yes && enable_static=no
  8526. fi
  8527. - ;;
  8528. - chorus*)
  8529. - case $cc_basename in
  8530. - cxch68*)
  8531. - # Green Hills C++ Compiler
  8532. - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  8533. - ;;
  8534. - esac
  8535. - ;;
  8536. - darwin*)
  8537. - # PIC is the default on this platform
  8538. - # Common symbols not allowed in MH_DYLIB files
  8539. - case $cc_basename in
  8540. - xlc*)
  8541. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  8542. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8543. - ;;
  8544. - esac
  8545. - ;;
  8546. - dgux*)
  8547. - case $cc_basename in
  8548. - ec++*)
  8549. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8550. - ;;
  8551. - ghcx*)
  8552. - # Green Hills C++ Compiler
  8553. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8554. - ;;
  8555. - *)
  8556. - ;;
  8557. - esac
  8558. - ;;
  8559. - freebsd* | dragonfly*)
  8560. - # FreeBSD uses GNU C++
  8561. - ;;
  8562. - hpux9* | hpux10* | hpux11*)
  8563. - case $cc_basename in
  8564. - CC*)
  8565. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8566. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8567. - if test "$host_cpu" != ia64; then
  8568. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8569. - fi
  8570. - ;;
  8571. - aCC*)
  8572. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8573. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8574. - case $host_cpu in
  8575. - hppa*64*|ia64*)
  8576. - # +Z the default
  8577. - ;;
  8578. - *)
  8579. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8580. - ;;
  8581. - esac
  8582. - ;;
  8583. - *)
  8584. - ;;
  8585. - esac
  8586. - ;;
  8587. - interix*)
  8588. - # This is c89, which is MS Visual C++ (no shared libs)
  8589. - # Anyone wants to do a port?
  8590. - ;;
  8591. - irix5* | irix6* | nonstopux*)
  8592. - case $cc_basename in
  8593. - CC*)
  8594. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8595. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8596. - # CC pic flag -KPIC is the default.
  8597. - ;;
  8598. - *)
  8599. - ;;
  8600. - esac
  8601. - ;;
  8602. - linux* | k*bsd*-gnu)
  8603. - case $cc_basename in
  8604. - KCC*)
  8605. - # KAI C++ Compiler
  8606. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8607. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8608. - ;;
  8609. - icpc* | ecpc*)
  8610. - # Intel C++
  8611. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8612. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8613. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8614. - ;;
  8615. - pgCC* | pgcpp*)
  8616. - # Portland Group C++ compiler.
  8617. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8618. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8619. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8620. - ;;
  8621. - cxx*)
  8622. - # Compaq C++
  8623. - # Make sure the PIC flag is empty. It appears that all Alpha
  8624. - # Linux and Compaq Tru64 Unix objects are PIC.
  8625. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8626. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8627. - ;;
  8628. - *)
  8629. - case `$CC -V 2>&1 | sed 5q` in
  8630. - *Sun\ C*)
  8631. - # Sun C++ 5.9
  8632. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8633. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8634. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8635. - ;;
  8636. - esac
  8637. - ;;
  8638. - esac
  8639. - ;;
  8640. - lynxos*)
  8641. - ;;
  8642. - m88k*)
  8643. - ;;
  8644. - mvs*)
  8645. - case $cc_basename in
  8646. - cxx*)
  8647. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8648. - ;;
  8649. - *)
  8650. - ;;
  8651. - esac
  8652. - ;;
  8653. - netbsd*)
  8654. - ;;
  8655. - osf3* | osf4* | osf5*)
  8656. - case $cc_basename in
  8657. - KCC*)
  8658. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8659. - ;;
  8660. - RCC*)
  8661. - # Rational C++ 2.4.1
  8662. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8663. - ;;
  8664. - cxx*)
  8665. - # Digital/Compaq C++
  8666. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8667. - # Make sure the PIC flag is empty. It appears that all Alpha
  8668. - # Linux and Compaq Tru64 Unix objects are PIC.
  8669. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8670. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8671. - ;;
  8672. - *)
  8673. - ;;
  8674. - esac
  8675. - ;;
  8676. - psos*)
  8677. - ;;
  8678. - solaris*)
  8679. - case $cc_basename in
  8680. - CC*)
  8681. - # Sun C++ 4.2, 5.x and Centerline C++
  8682. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8683. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8684. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8685. - ;;
  8686. - gcx*)
  8687. - # Green Hills C++ Compiler
  8688. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8689. - ;;
  8690. - *)
  8691. - ;;
  8692. - esac
  8693. - ;;
  8694. - sunos4*)
  8695. - case $cc_basename in
  8696. - CC*)
  8697. - # Sun C++ 4.x
  8698. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8699. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8700. - ;;
  8701. - lcc*)
  8702. - # Lucid
  8703. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8704. - ;;
  8705. - *)
  8706. - ;;
  8707. - esac
  8708. - ;;
  8709. - tandem*)
  8710. - case $cc_basename in
  8711. - NCC*)
  8712. - # NonStop-UX NCC 3.20
  8713. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8714. - ;;
  8715. - *)
  8716. - ;;
  8717. - esac
  8718. - ;;
  8719. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8720. - case $cc_basename in
  8721. - CC*)
  8722. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8723. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8724. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8725. - ;;
  8726. - esac
  8727. - ;;
  8728. - vxworks*)
  8729. - ;;
  8730. - *)
  8731. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8732. - ;;
  8733. + ;;
  8734. + esac
  8735. + AC_MSG_RESULT([$enable_shared])
  8736. +
  8737. + AC_MSG_CHECKING([whether to build static libraries])
  8738. + # Make sure either enable_shared or enable_static is yes.
  8739. + test "$enable_shared" = yes || enable_static=yes
  8740. + AC_MSG_RESULT([$enable_static])
  8741. +
  8742. + _LT_TAGVAR(GCC, $1)="$G77"
  8743. + _LT_TAGVAR(LD, $1)="$LD"
  8744. +
  8745. + ## CAVEAT EMPTOR:
  8746. + ## There is no encapsulation within the following macros, do not change
  8747. + ## the running order or otherwise move them around unless you know exactly
  8748. + ## what you are doing...
  8749. + _LT_COMPILER_PIC($1)
  8750. + _LT_COMPILER_C_O($1)
  8751. + _LT_COMPILER_FILE_LOCKS($1)
  8752. + _LT_LINKER_SHLIBS($1)
  8753. + _LT_SYS_DYNAMIC_LINKER($1)
  8754. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8755. +
  8756. + _LT_CONFIG($1)
  8757. + fi # test -n "$compiler"
  8758. +
  8759. + GCC=$lt_save_GCC
  8760. + CC="$lt_save_CC"
  8761. +fi # test "$_lt_disable_F77" != yes
  8762. +
  8763. +AC_LANG_POP
  8764. +])# _LT_LANG_F77_CONFIG
  8765. +
  8766. +
  8767. +# _LT_PROG_FC
  8768. +# -----------
  8769. +# Since AC_PROG_FC is broken, in that it returns the empty string
  8770. +# if there is no fortran compiler, we have our own version here.
  8771. +m4_defun([_LT_PROG_FC],
  8772. +[
  8773. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8774. +AC_PROG_FC
  8775. +if test -z "$FC" || test "X$FC" = "Xno"; then
  8776. + _lt_disable_FC=yes
  8777. +fi
  8778. +popdef([AC_MSG_ERROR])
  8779. +])# _LT_PROG_FC
  8780. +
  8781. +dnl aclocal-1.4 backwards compatibility:
  8782. +dnl AC_DEFUN([_LT_PROG_FC], [])
  8783. +
  8784. +
  8785. +# _LT_LANG_FC_CONFIG([TAG])
  8786. +# -------------------------
  8787. +# Ensure that the configuration variables for a Fortran compiler are
  8788. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8789. +# to write the compiler configuration to `libtool'.
  8790. +m4_defun([_LT_LANG_FC_CONFIG],
  8791. +[AC_REQUIRE([_LT_PROG_FC])dnl
  8792. +AC_LANG_PUSH(Fortran)
  8793. +
  8794. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8795. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8796. +_LT_TAGVAR(always_export_symbols, $1)=no
  8797. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8798. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8799. +_LT_TAGVAR(hardcode_direct, $1)=no
  8800. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8801. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8802. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8803. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8804. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8805. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8806. +_LT_TAGVAR(inherit_rpath, $1)=no
  8807. +_LT_TAGVAR(module_cmds, $1)=
  8808. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8809. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8810. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8811. +_LT_TAGVAR(no_undefined_flag, $1)=
  8812. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8813. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8814. +
  8815. +# Source file extension for fc test sources.
  8816. +ac_ext=${ac_fc_srcext-f}
  8817. +
  8818. +# Object file extension for compiled fc test sources.
  8819. +objext=o
  8820. +_LT_TAGVAR(objext, $1)=$objext
  8821. +
  8822. +# No sense in running all these tests if we already determined that
  8823. +# the FC compiler isn't working. Some variables (like enable_shared)
  8824. +# are currently assumed to apply to all compilers on this platform,
  8825. +# and will be corrupted by setting them based on a non-working compiler.
  8826. +if test "$_lt_disable_FC" != yes; then
  8827. + # Code to be used in simple compile tests
  8828. + lt_simple_compile_test_code="\
  8829. + subroutine t
  8830. + return
  8831. + end
  8832. +"
  8833. +
  8834. + # Code to be used in simple link tests
  8835. + lt_simple_link_test_code="\
  8836. + program t
  8837. + end
  8838. +"
  8839. +
  8840. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8841. + _LT_TAG_COMPILER
  8842. +
  8843. + # save warnings/boilerplate of simple test code
  8844. + _LT_COMPILER_BOILERPLATE
  8845. + _LT_LINKER_BOILERPLATE
  8846. +
  8847. + # Allow CC to be a program name with arguments.
  8848. + lt_save_CC="$CC"
  8849. + lt_save_GCC=$GCC
  8850. + CC=${FC-"f95"}
  8851. + compiler=$CC
  8852. + GCC=$ac_cv_fc_compiler_gnu
  8853. +
  8854. + _LT_TAGVAR(compiler, $1)=$CC
  8855. + _LT_CC_BASENAME([$compiler])
  8856. +
  8857. + if test -n "$compiler"; then
  8858. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8859. + AC_MSG_RESULT([$can_build_shared])
  8860. +
  8861. + AC_MSG_CHECKING([whether to build shared libraries])
  8862. + test "$can_build_shared" = "no" && enable_shared=no
  8863. +
  8864. + # On AIX, shared libraries and static libraries use the same namespace, and
  8865. + # are all built from PIC.
  8866. + case $host_os in
  8867. + aix3*)
  8868. + test "$enable_shared" = yes && enable_static=no
  8869. + if test -n "$RANLIB"; then
  8870. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8871. + postinstall_cmds='$RANLIB $lib'
  8872. + fi
  8873. + ;;
  8874. + aix[[4-9]]*)
  8875. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8876. + test "$enable_shared" = yes && enable_static=no
  8877. + fi
  8878. + ;;
  8879. esac
  8880. - fi
  8881. -],
  8882. -[
  8883. - if test "$GCC" = yes; then
  8884. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8885. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8886. + AC_MSG_RESULT([$enable_shared])
  8887. - case $host_os in
  8888. - aix*)
  8889. - # All AIX code is PIC.
  8890. - if test "$host_cpu" = ia64; then
  8891. - # AIX 5 now supports IA64 processor
  8892. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8893. - fi
  8894. - ;;
  8895. + AC_MSG_CHECKING([whether to build static libraries])
  8896. + # Make sure either enable_shared or enable_static is yes.
  8897. + test "$enable_shared" = yes || enable_static=yes
  8898. + AC_MSG_RESULT([$enable_static])
  8899. +
  8900. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  8901. + _LT_TAGVAR(LD, $1)="$LD"
  8902. +
  8903. + ## CAVEAT EMPTOR:
  8904. + ## There is no encapsulation within the following macros, do not change
  8905. + ## the running order or otherwise move them around unless you know exactly
  8906. + ## what you are doing...
  8907. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8908. + _LT_COMPILER_PIC($1)
  8909. + _LT_COMPILER_C_O($1)
  8910. + _LT_COMPILER_FILE_LOCKS($1)
  8911. + _LT_LINKER_SHLIBS($1)
  8912. + _LT_SYS_DYNAMIC_LINKER($1)
  8913. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8914. +
  8915. + _LT_CONFIG($1)
  8916. + fi # test -n "$compiler"
  8917. +
  8918. + GCC=$lt_save_GCC
  8919. + CC="$lt_save_CC"
  8920. +fi # test "$_lt_disable_FC" != yes
  8921. - amigaos*)
  8922. - # FIXME: we need at least 68020 code to build shared libraries, but
  8923. - # adding the `-m68020' flag to GCC prevents building anything better,
  8924. - # like `-m68040'.
  8925. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8926. - ;;
  8927. +AC_LANG_POP
  8928. +])# _LT_LANG_FC_CONFIG
  8929. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8930. - # PIC is the default for these OSes.
  8931. - ;;
  8932. - mingw* | cygwin* | pw32* | os2*)
  8933. - # This hack is so that the source file can tell whether it is being
  8934. - # built for inclusion in a dll (and should export symbols for example).
  8935. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8936. - # (--disable-auto-import) libraries
  8937. - m4_if([$1], [GCJ], [],
  8938. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  8939. - ;;
  8940. +# _LT_LANG_GCJ_CONFIG([TAG])
  8941. +# --------------------------
  8942. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  8943. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  8944. +# to write the compiler configuration to `libtool'.
  8945. +m4_defun([_LT_LANG_GCJ_CONFIG],
  8946. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  8947. +AC_LANG_SAVE
  8948. - darwin* | rhapsody*)
  8949. - # PIC is the default on this platform
  8950. - # Common symbols not allowed in MH_DYLIB files
  8951. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8952. - ;;
  8953. +# Source file extension for Java test sources.
  8954. +ac_ext=java
  8955. - interix[[3-9]]*)
  8956. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8957. - # Instead, we relocate shared libraries at runtime.
  8958. - ;;
  8959. +# Object file extension for compiled Java test sources.
  8960. +objext=o
  8961. +_LT_TAGVAR(objext, $1)=$objext
  8962. - msdosdjgpp*)
  8963. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  8964. - # on systems that don't support them.
  8965. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8966. - enable_shared=no
  8967. - ;;
  8968. +# Code to be used in simple compile tests
  8969. +lt_simple_compile_test_code="class foo {}"
  8970. - sysv4*MP*)
  8971. - if test -d /usr/nec; then
  8972. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8973. - fi
  8974. - ;;
  8975. +# Code to be used in simple link tests
  8976. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  8977. - hpux*)
  8978. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8979. - # not for PA HP-UX.
  8980. - case $host_cpu in
  8981. - hppa*64*|ia64*)
  8982. - # +Z the default
  8983. - ;;
  8984. - *)
  8985. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8986. - ;;
  8987. - esac
  8988. - ;;
  8989. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8990. +_LT_TAG_COMPILER
  8991. - *)
  8992. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8993. - ;;
  8994. - esac
  8995. - else
  8996. - # PORTME Check for flag to pass linker flags through the system compiler.
  8997. - case $host_os in
  8998. - aix*)
  8999. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9000. - if test "$host_cpu" = ia64; then
  9001. - # AIX 5 now supports IA64 processor
  9002. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9003. - else
  9004. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9005. +# save warnings/boilerplate of simple test code
  9006. +_LT_COMPILER_BOILERPLATE
  9007. +_LT_LINKER_BOILERPLATE
  9008. +
  9009. +# Allow CC to be a program name with arguments.
  9010. +lt_save_CC="$CC"
  9011. +lt_save_GCC=$GCC
  9012. +GCC=yes
  9013. +CC=${GCJ-"gcj"}
  9014. +compiler=$CC
  9015. +_LT_TAGVAR(compiler, $1)=$CC
  9016. +_LT_TAGVAR(LD, $1)="$LD"
  9017. +_LT_CC_BASENAME([$compiler])
  9018. +
  9019. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  9020. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9021. +
  9022. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9023. +
  9024. +if test -n "$compiler"; then
  9025. + _LT_COMPILER_NO_RTTI($1)
  9026. + _LT_COMPILER_PIC($1)
  9027. + _LT_COMPILER_C_O($1)
  9028. + _LT_COMPILER_FILE_LOCKS($1)
  9029. + _LT_LINKER_SHLIBS($1)
  9030. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9031. +
  9032. + _LT_CONFIG($1)
  9033. +fi
  9034. +
  9035. +AC_LANG_RESTORE
  9036. +
  9037. +GCC=$lt_save_GCC
  9038. +CC="$lt_save_CC"
  9039. +])# _LT_LANG_GCJ_CONFIG
  9040. +
  9041. +
  9042. +# _LT_LANG_RC_CONFIG([TAG])
  9043. +# -------------------------
  9044. +# Ensure that the configuration variables for the Windows resource compiler
  9045. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9046. +# to write the compiler configuration to `libtool'.
  9047. +m4_defun([_LT_LANG_RC_CONFIG],
  9048. +[AC_REQUIRE([LT_PROG_RC])dnl
  9049. +AC_LANG_SAVE
  9050. +
  9051. +# Source file extension for RC test sources.
  9052. +ac_ext=rc
  9053. +
  9054. +# Object file extension for compiled RC test sources.
  9055. +objext=o
  9056. +_LT_TAGVAR(objext, $1)=$objext
  9057. +
  9058. +# Code to be used in simple compile tests
  9059. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9060. +
  9061. +# Code to be used in simple link tests
  9062. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9063. +
  9064. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9065. +_LT_TAG_COMPILER
  9066. +
  9067. +# save warnings/boilerplate of simple test code
  9068. +_LT_COMPILER_BOILERPLATE
  9069. +_LT_LINKER_BOILERPLATE
  9070. +
  9071. +# Allow CC to be a program name with arguments.
  9072. +lt_save_CC="$CC"
  9073. +lt_save_GCC=$GCC
  9074. +GCC=
  9075. +CC=${RC-"windres"}
  9076. +compiler=$CC
  9077. +_LT_TAGVAR(compiler, $1)=$CC
  9078. +_LT_CC_BASENAME([$compiler])
  9079. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9080. +
  9081. +if test -n "$compiler"; then
  9082. + :
  9083. + _LT_CONFIG($1)
  9084. +fi
  9085. +
  9086. +GCC=$lt_save_GCC
  9087. +AC_LANG_RESTORE
  9088. +CC="$lt_save_CC"
  9089. +])# _LT_LANG_RC_CONFIG
  9090. +
  9091. +
  9092. +# LT_PROG_GCJ
  9093. +# -----------
  9094. +AC_DEFUN([LT_PROG_GCJ],
  9095. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9096. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9097. + [AC_CHECK_TOOL(GCJ, gcj,)
  9098. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9099. + AC_SUBST(GCJFLAGS)])])[]dnl
  9100. +])
  9101. +
  9102. +# Old name:
  9103. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9104. +dnl aclocal-1.4 backwards compatibility:
  9105. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9106. +
  9107. +
  9108. +# LT_PROG_RC
  9109. +# ----------
  9110. +AC_DEFUN([LT_PROG_RC],
  9111. +[AC_CHECK_TOOL(RC, windres,)
  9112. +])
  9113. +
  9114. +# Old name:
  9115. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9116. +dnl aclocal-1.4 backwards compatibility:
  9117. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9118. +
  9119. +
  9120. +# _LT_DECL_EGREP
  9121. +# --------------
  9122. +# If we don't have a new enough Autoconf to choose the best grep
  9123. +# available, choose the one first in the user's PATH.
  9124. +m4_defun([_LT_DECL_EGREP],
  9125. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9126. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9127. +test -z "$GREP" && GREP=grep
  9128. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9129. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9130. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9131. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9132. +AC_SUBST([GREP])
  9133. +])
  9134. +
  9135. +
  9136. +# _LT_DECL_OBJDUMP
  9137. +# --------------
  9138. +# If we don't have a new enough Autoconf to choose the best objdump
  9139. +# available, choose the one first in the user's PATH.
  9140. +m4_defun([_LT_DECL_OBJDUMP],
  9141. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9142. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9143. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9144. +AC_SUBST([OBJDUMP])
  9145. +])
  9146. +
  9147. +
  9148. +# _LT_DECL_SED
  9149. +# ------------
  9150. +# Check for a fully-functional sed program, that truncates
  9151. +# as few characters as possible. Prefer GNU sed if found.
  9152. +m4_defun([_LT_DECL_SED],
  9153. +[AC_PROG_SED
  9154. +test -z "$SED" && SED=sed
  9155. +Xsed="$SED -e 1s/^X//"
  9156. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9157. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9158. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9159. +])# _LT_DECL_SED
  9160. +
  9161. +m4_ifndef([AC_PROG_SED], [
  9162. +# NOTE: This macro has been submitted for inclusion into #
  9163. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9164. +# a released version of Autoconf we should remove this #
  9165. +# macro and use it instead. #
  9166. +
  9167. +m4_defun([AC_PROG_SED],
  9168. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9169. +AC_CACHE_VAL(lt_cv_path_SED,
  9170. +[# Loop through the user's path and test for sed and gsed.
  9171. +# Then use that list of sed's as ones to test for truncation.
  9172. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9173. +for as_dir in $PATH
  9174. +do
  9175. + IFS=$as_save_IFS
  9176. + test -z "$as_dir" && as_dir=.
  9177. + for lt_ac_prog in sed gsed; do
  9178. + for ac_exec_ext in '' $ac_executable_extensions; do
  9179. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9180. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9181. fi
  9182. - ;;
  9183. - darwin*)
  9184. - # PIC is the default on this platform
  9185. - # Common symbols not allowed in MH_DYLIB files
  9186. - case $cc_basename in
  9187. - xlc*)
  9188. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9189. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9190. - ;;
  9191. - esac
  9192. - ;;
  9193. + done
  9194. + done
  9195. +done
  9196. +IFS=$as_save_IFS
  9197. +lt_ac_max=0
  9198. +lt_ac_count=0
  9199. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9200. +# along with /bin/sed that truncates output.
  9201. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9202. + test ! -f $lt_ac_sed && continue
  9203. + cat /dev/null > conftest.in
  9204. + lt_ac_count=0
  9205. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9206. + # Check for GNU sed and select it if it is found.
  9207. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9208. + lt_cv_path_SED=$lt_ac_sed
  9209. + break
  9210. + fi
  9211. + while true; do
  9212. + cat conftest.in conftest.in >conftest.tmp
  9213. + mv conftest.tmp conftest.in
  9214. + cp conftest.in conftest.nl
  9215. + echo >>conftest.nl
  9216. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9217. + cmp -s conftest.out conftest.nl || break
  9218. + # 10000 chars as input seems more than enough
  9219. + test $lt_ac_count -gt 10 && break
  9220. + lt_ac_count=`expr $lt_ac_count + 1`
  9221. + if test $lt_ac_count -gt $lt_ac_max; then
  9222. + lt_ac_max=$lt_ac_count
  9223. + lt_cv_path_SED=$lt_ac_sed
  9224. + fi
  9225. + done
  9226. +done
  9227. +])
  9228. +SED=$lt_cv_path_SED
  9229. +AC_SUBST([SED])
  9230. +AC_MSG_RESULT([$SED])
  9231. +])#AC_PROG_SED
  9232. +])#m4_ifndef
  9233. - mingw* | cygwin* | pw32* | os2*)
  9234. - # This hack is so that the source file can tell whether it is being
  9235. - # built for inclusion in a dll (and should export symbols for example).
  9236. - m4_if([$1], [GCJ], [],
  9237. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9238. - ;;
  9239. +# Old name:
  9240. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9241. +dnl aclocal-1.4 backwards compatibility:
  9242. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9243. - hpux9* | hpux10* | hpux11*)
  9244. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9245. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9246. - # not for PA HP-UX.
  9247. - case $host_cpu in
  9248. - hppa*64*|ia64*)
  9249. - # +Z the default
  9250. - ;;
  9251. - *)
  9252. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9253. - ;;
  9254. - esac
  9255. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9256. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9257. - ;;
  9258. - irix5* | irix6* | nonstopux*)
  9259. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9260. - # PIC (with -KPIC) is the default.
  9261. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9262. - ;;
  9263. +# _LT_CHECK_SHELL_FEATURES
  9264. +# ------------------------
  9265. +# Find out whether the shell is Bourne or XSI compatible,
  9266. +# or has some other useful features.
  9267. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9268. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9269. +# Try some XSI features
  9270. +xsi_shell=no
  9271. +( _lt_dummy="a/b/c"
  9272. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9273. + = c,a/b,, \
  9274. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9275. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9276. + && xsi_shell=yes
  9277. +AC_MSG_RESULT([$xsi_shell])
  9278. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9279. +
  9280. +AC_MSG_CHECKING([whether the shell understands "+="])
  9281. +lt_shell_append=no
  9282. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9283. + >/dev/null 2>&1 \
  9284. + && lt_shell_append=yes
  9285. +AC_MSG_RESULT([$lt_shell_append])
  9286. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9287. - newsos6)
  9288. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9289. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9290. - ;;
  9291. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9292. + lt_unset=unset
  9293. +else
  9294. + lt_unset=false
  9295. +fi
  9296. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9297. - linux* | k*bsd*-gnu)
  9298. - case $cc_basename in
  9299. - icc* | ecc*)
  9300. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9301. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9302. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9303. - ;;
  9304. - pgcc* | pgf77* | pgf90* | pgf95*)
  9305. - # Portland Group compilers (*not* the Pentium gcc compiler,
  9306. - # which looks to be a dead project)
  9307. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9308. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9309. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9310. - ;;
  9311. - ccc*)
  9312. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9313. - # All Alpha code is PIC.
  9314. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9315. - ;;
  9316. - *)
  9317. - case `$CC -V 2>&1 | sed 5q` in
  9318. - *Sun\ C*)
  9319. - # Sun C 5.9
  9320. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9321. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9322. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9323. - ;;
  9324. - *Sun\ F*)
  9325. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9326. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9327. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9328. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  9329. - ;;
  9330. - esac
  9331. - ;;
  9332. - esac
  9333. - ;;
  9334. +# test EBCDIC or ASCII
  9335. +case `echo X|tr X '\101'` in
  9336. + A) # ASCII based system
  9337. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9338. + lt_SP2NL='tr \040 \012'
  9339. + lt_NL2SP='tr \015\012 \040\040'
  9340. + ;;
  9341. + *) # EBCDIC based system
  9342. + lt_SP2NL='tr \100 \n'
  9343. + lt_NL2SP='tr \r\n \100\100'
  9344. + ;;
  9345. +esac
  9346. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9347. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9348. +])# _LT_CHECK_SHELL_FEATURES
  9349. - osf3* | osf4* | osf5*)
  9350. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9351. - # All OSF/1 code is PIC.
  9352. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9353. - ;;
  9354. - rdos*)
  9355. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9356. - ;;
  9357. +# _LT_PROG_XSI_SHELLFNS
  9358. +# ---------------------
  9359. +# Bourne and XSI compatible variants of some useful shell functions.
  9360. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9361. +[case $xsi_shell in
  9362. + yes)
  9363. + cat << \_LT_EOF >> "$cfgfile"
  9364. +
  9365. +# func_dirname file append nondir_replacement
  9366. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9367. +# otherwise set result to NONDIR_REPLACEMENT.
  9368. +func_dirname ()
  9369. +{
  9370. + case ${1} in
  9371. + */*) func_dirname_result="${1%/*}${2}" ;;
  9372. + * ) func_dirname_result="${3}" ;;
  9373. + esac
  9374. +}
  9375. - solaris*)
  9376. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9377. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9378. - case $cc_basename in
  9379. - f77* | f90* | f95*)
  9380. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  9381. - *)
  9382. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  9383. - esac
  9384. - ;;
  9385. +# func_basename file
  9386. +func_basename ()
  9387. +{
  9388. + func_basename_result="${1##*/}"
  9389. +}
  9390. - sunos4*)
  9391. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9392. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9393. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9394. - ;;
  9395. +# func_dirname_and_basename file append nondir_replacement
  9396. +# perform func_basename and func_dirname in a single function
  9397. +# call:
  9398. +# dirname: Compute the dirname of FILE. If nonempty,
  9399. +# add APPEND to the result, otherwise set result
  9400. +# to NONDIR_REPLACEMENT.
  9401. +# value returned in "$func_dirname_result"
  9402. +# basename: Compute filename of FILE.
  9403. +# value retuned in "$func_basename_result"
  9404. +# Implementation must be kept synchronized with func_dirname
  9405. +# and func_basename. For efficiency, we do not delegate to
  9406. +# those functions but instead duplicate the functionality here.
  9407. +func_dirname_and_basename ()
  9408. +{
  9409. + case ${1} in
  9410. + */*) func_dirname_result="${1%/*}${2}" ;;
  9411. + * ) func_dirname_result="${3}" ;;
  9412. + esac
  9413. + func_basename_result="${1##*/}"
  9414. +}
  9415. - sysv4 | sysv4.2uw2* | sysv4.3*)
  9416. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9417. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9418. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9419. - ;;
  9420. +# func_stripname prefix suffix name
  9421. +# strip PREFIX and SUFFIX off of NAME.
  9422. +# PREFIX and SUFFIX must not contain globbing or regex special
  9423. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9424. +# dot (in which case that matches only a dot).
  9425. +func_stripname ()
  9426. +{
  9427. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9428. + # positional parameters, so assign one to ordinary parameter first.
  9429. + func_stripname_result=${3}
  9430. + func_stripname_result=${func_stripname_result#"${1}"}
  9431. + func_stripname_result=${func_stripname_result%"${2}"}
  9432. +}
  9433. - sysv4*MP*)
  9434. - if test -d /usr/nec ;then
  9435. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  9436. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9437. - fi
  9438. - ;;
  9439. +# func_opt_split
  9440. +func_opt_split ()
  9441. +{
  9442. + func_opt_split_opt=${1%%=*}
  9443. + func_opt_split_arg=${1#*=}
  9444. +}
  9445. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9446. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9447. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9448. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9449. - ;;
  9450. +# func_lo2o object
  9451. +func_lo2o ()
  9452. +{
  9453. + case ${1} in
  9454. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9455. + *) func_lo2o_result=${1} ;;
  9456. + esac
  9457. +}
  9458. - unicos*)
  9459. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9460. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9461. - ;;
  9462. +# func_xform libobj-or-source
  9463. +func_xform ()
  9464. +{
  9465. + func_xform_result=${1%.*}.lo
  9466. +}
  9467. - uts4*)
  9468. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9469. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9470. - ;;
  9471. +# func_arith arithmetic-term...
  9472. +func_arith ()
  9473. +{
  9474. + func_arith_result=$(( $[*] ))
  9475. +}
  9476. - *)
  9477. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9478. - ;;
  9479. - esac
  9480. - fi
  9481. -])
  9482. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  9483. +# func_len string
  9484. +# STRING may not start with a hyphen.
  9485. +func_len ()
  9486. +{
  9487. + func_len_result=${#1}
  9488. +}
  9489. -#
  9490. -# Check to make sure the PIC flag actually works.
  9491. -#
  9492. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  9493. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  9494. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  9495. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  9496. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  9497. - "" | " "*) ;;
  9498. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  9499. - esac],
  9500. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9501. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  9502. -fi
  9503. -case $host_os in
  9504. - # For platforms which do not support PIC, -DPIC is meaningless:
  9505. - *djgpp*)
  9506. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9507. - ;;
  9508. - *)
  9509. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  9510. +_LT_EOF
  9511. ;;
  9512. -esac
  9513. + *) # Bourne compatible functions.
  9514. + cat << \_LT_EOF >> "$cfgfile"
  9515. -#
  9516. -# Check to make sure the static flag actually works.
  9517. -#
  9518. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  9519. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  9520. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  9521. - $lt_tmp_static_flag,
  9522. - [],
  9523. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  9524. -])
  9525. +# func_dirname file append nondir_replacement
  9526. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9527. +# otherwise set result to NONDIR_REPLACEMENT.
  9528. +func_dirname ()
  9529. +{
  9530. + # Extract subdirectory from the argument.
  9531. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9532. + if test "X$func_dirname_result" = "X${1}"; then
  9533. + func_dirname_result="${3}"
  9534. + else
  9535. + func_dirname_result="$func_dirname_result${2}"
  9536. + fi
  9537. +}
  9538. +# func_basename file
  9539. +func_basename ()
  9540. +{
  9541. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9542. +}
  9543. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  9544. -# ------------------------------------
  9545. -# See if the linker supports building shared libraries.
  9546. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  9547. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  9548. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9549. -ifelse([$1],[CXX],[
  9550. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9551. - case $host_os in
  9552. - aix[[4-9]]*)
  9553. - # If we're using GNU nm, then we don't want the "-C" option.
  9554. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9555. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9556. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9557. - else
  9558. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9559. - fi
  9560. - ;;
  9561. - pw32*)
  9562. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  9563. - ;;
  9564. - cygwin* | mingw*)
  9565. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  9566. - ;;
  9567. - *)
  9568. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9569. - ;;
  9570. - esac
  9571. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9572. -],[
  9573. - runpath_var=
  9574. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  9575. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9576. - _LT_AC_TAGVAR(archive_cmds, $1)=
  9577. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  9578. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  9579. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  9580. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9581. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9582. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  9583. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9584. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9585. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9586. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9587. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  9588. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9589. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  9590. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  9591. - _LT_AC_TAGVAR(module_cmds, $1)=
  9592. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  9593. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9594. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9595. - # include_expsyms should be a list of space-separated symbols to be *always*
  9596. - # included in the symbol list
  9597. - _LT_AC_TAGVAR(include_expsyms, $1)=
  9598. - # exclude_expsyms can be an extended regexp of symbols to exclude
  9599. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9600. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9601. - # as well as any symbol that contains `d'.
  9602. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9603. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9604. - # platforms (ab)use it in PIC code, but their linkers get confused if
  9605. - # the symbol is explicitly referenced. Since portable code cannot
  9606. - # rely on this symbol name, it's probably fine to never include it in
  9607. - # preloaded symbol tables.
  9608. - # Exclude shared library initialization/finalization symbols.
  9609. -dnl Note also adjust exclude_expsyms for C++ above.
  9610. - extract_expsyms_cmds=
  9611. - # Just being paranoid about ensuring that cc_basename is set.
  9612. - _LT_CC_BASENAME([$compiler])
  9613. - case $host_os in
  9614. - cygwin* | mingw* | pw32*)
  9615. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9616. - # When not using gcc, we currently assume that we are using
  9617. - # Microsoft Visual C++.
  9618. - if test "$GCC" != yes; then
  9619. - with_gnu_ld=no
  9620. - fi
  9621. - ;;
  9622. - interix*)
  9623. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  9624. - with_gnu_ld=yes
  9625. - ;;
  9626. - openbsd*)
  9627. - with_gnu_ld=no
  9628. - ;;
  9629. +dnl func_dirname_and_basename
  9630. +dnl A portable version of this function is already defined in general.m4sh
  9631. +dnl so there is no need for it here.
  9632. +
  9633. +# func_stripname prefix suffix name
  9634. +# strip PREFIX and SUFFIX off of NAME.
  9635. +# PREFIX and SUFFIX must not contain globbing or regex special
  9636. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9637. +# dot (in which case that matches only a dot).
  9638. +# func_strip_suffix prefix name
  9639. +func_stripname ()
  9640. +{
  9641. + case ${2} in
  9642. + .*) func_stripname_result=`$ECHO "X${3}" \
  9643. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9644. + *) func_stripname_result=`$ECHO "X${3}" \
  9645. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9646. esac
  9647. +}
  9648. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9649. - if test "$with_gnu_ld" = yes; then
  9650. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9651. - wlarc='${wl}'
  9652. +# sed scripts:
  9653. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9654. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9655. - # Set some defaults for GNU ld with shared library support. These
  9656. - # are reset later if shared libraries are not supported. Putting them
  9657. - # here allows them to be overridden if necessary.
  9658. - runpath_var=LD_RUN_PATH
  9659. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9660. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9661. - # ancient GNU ld didn't support --whole-archive et. al.
  9662. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9663. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9664. - else
  9665. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9666. - fi
  9667. - supports_anon_versioning=no
  9668. - case `$LD -v 2>/dev/null` in
  9669. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  9670. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9671. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9672. - *\ 2.11.*) ;; # other 2.11 versions
  9673. - *) supports_anon_versioning=yes ;;
  9674. - esac
  9675. +# func_opt_split
  9676. +func_opt_split ()
  9677. +{
  9678. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9679. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9680. +}
  9681. - # See if GNU ld supports shared libraries.
  9682. - case $host_os in
  9683. - aix[[3-9]]*)
  9684. - # On AIX/PPC, the GNU linker is very broken
  9685. - if test "$host_cpu" != ia64; then
  9686. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9687. - cat <<EOF 1>&2
  9688. +# func_lo2o object
  9689. +func_lo2o ()
  9690. +{
  9691. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9692. +}
  9693. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9694. -*** to be unable to reliably create shared libraries on AIX.
  9695. -*** Therefore, libtool is disabling shared libraries support. If you
  9696. -*** really care for shared libraries, you may want to modify your PATH
  9697. -*** so that a non-GNU linker is found, and then restart.
  9698. +# func_xform libobj-or-source
  9699. +func_xform ()
  9700. +{
  9701. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9702. +}
  9703. -EOF
  9704. - fi
  9705. - ;;
  9706. +# func_arith arithmetic-term...
  9707. +func_arith ()
  9708. +{
  9709. + func_arith_result=`expr "$[@]"`
  9710. +}
  9711. - amigaos*)
  9712. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9713. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9714. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9715. -
  9716. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9717. - # that the semantics of dynamic libraries on AmigaOS, at least up
  9718. - # to version 4, is to share data among multiple programs linked
  9719. - # with the same dynamic library. Since this doesn't match the
  9720. - # behavior of shared libraries on other platforms, we can't use
  9721. - # them.
  9722. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9723. - ;;
  9724. +# func_len string
  9725. +# STRING may not start with a hyphen.
  9726. +func_len ()
  9727. +{
  9728. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9729. +}
  9730. - beos*)
  9731. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9732. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9733. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9734. - # support --undefined. This deserves some investigation. FIXME
  9735. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9736. - else
  9737. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9738. - fi
  9739. - ;;
  9740. +_LT_EOF
  9741. +esac
  9742. - cygwin* | mingw* | pw32*)
  9743. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9744. - # as there is no search path for DLLs.
  9745. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9746. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9747. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9748. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9749. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  9750. +case $lt_shell_append in
  9751. + yes)
  9752. + cat << \_LT_EOF >> "$cfgfile"
  9753. +
  9754. +# func_append var value
  9755. +# Append VALUE to the end of shell variable VAR.
  9756. +func_append ()
  9757. +{
  9758. + eval "$[1]+=\$[2]"
  9759. +}
  9760. +_LT_EOF
  9761. + ;;
  9762. + *)
  9763. + cat << \_LT_EOF >> "$cfgfile"
  9764. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9765. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9766. - # If the export-symbols file already is a .def file (1st line
  9767. - # is EXPORTS), use it as is; otherwise, prepend...
  9768. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9769. - cp $export_symbols $output_objdir/$soname.def;
  9770. - else
  9771. - echo EXPORTS > $output_objdir/$soname.def;
  9772. - cat $export_symbols >> $output_objdir/$soname.def;
  9773. - fi~
  9774. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9775. - else
  9776. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9777. - fi
  9778. - ;;
  9779. +# func_append var value
  9780. +# Append VALUE to the end of shell variable VAR.
  9781. +func_append ()
  9782. +{
  9783. + eval "$[1]=\$$[1]\$[2]"
  9784. +}
  9785. - interix[[3-9]]*)
  9786. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9787. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9788. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9789. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9790. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9791. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  9792. - # default) and relocated if they conflict, which is a slow very memory
  9793. - # consuming and fragmenting process. To avoid this, we pick a random,
  9794. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9795. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9796. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9797. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9798. - ;;
  9799. +_LT_EOF
  9800. + ;;
  9801. + esac
  9802. +])
  9803. - gnu* | linux* | k*bsd*-gnu)
  9804. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9805. - tmp_addflag=
  9806. - case $cc_basename,$host_cpu in
  9807. - pgcc*) # Portland Group C compiler
  9808. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9809. - tmp_addflag=' $pic_flag'
  9810. - ;;
  9811. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9812. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9813. - tmp_addflag=' $pic_flag -Mnomain' ;;
  9814. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9815. - tmp_addflag=' -i_dynamic' ;;
  9816. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9817. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  9818. - ifc* | ifort*) # Intel Fortran compiler
  9819. - tmp_addflag=' -nofor_main' ;;
  9820. - esac
  9821. - case `$CC -V 2>&1 | sed 5q` in
  9822. - *Sun\ C*) # Sun C 5.9
  9823. - _LT_AC_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'
  9824. - tmp_sharedflag='-G' ;;
  9825. - *Sun\ F*) # Sun Fortran 8.3
  9826. - tmp_sharedflag='-G' ;;
  9827. - *)
  9828. - tmp_sharedflag='-shared' ;;
  9829. - esac
  9830. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9831. +# Helper functions for option handling. -*- Autoconf -*-
  9832. +#
  9833. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9834. +# Written by Gary V. Vaughan, 2004
  9835. +#
  9836. +# This file is free software; the Free Software Foundation gives
  9837. +# unlimited permission to copy and/or distribute it, with or without
  9838. +# modifications, as long as this notice is preserved.
  9839. - if test $supports_anon_versioning = yes; then
  9840. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  9841. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9842. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  9843. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9844. - fi
  9845. - else
  9846. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9847. - fi
  9848. - ;;
  9849. +# serial 6 ltoptions.m4
  9850. - netbsd*)
  9851. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9852. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9853. - wlarc=
  9854. - else
  9855. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9856. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9857. - fi
  9858. - ;;
  9859. +# This is to help aclocal find these macros, as it can't see m4_define.
  9860. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9861. - solaris*)
  9862. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9863. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9864. - cat <<EOF 1>&2
  9865. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9866. -*** create shared libraries on Solaris systems. Therefore, libtool
  9867. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9868. -*** binutils to release 2.9.1 or newer. Another option is to modify
  9869. -*** your PATH or compiler configuration so that the native linker is
  9870. -*** used, and then restart.
  9871. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9872. +# ------------------------------------------
  9873. +m4_define([_LT_MANGLE_OPTION],
  9874. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9875. -EOF
  9876. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9877. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9878. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9879. - else
  9880. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9881. - fi
  9882. - ;;
  9883. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9884. - case `$LD -v 2>&1` in
  9885. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  9886. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9887. - cat <<_LT_EOF 1>&2
  9888. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9889. +# ---------------------------------------
  9890. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9891. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9892. +# saved as a flag.
  9893. +m4_define([_LT_SET_OPTION],
  9894. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9895. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9896. + _LT_MANGLE_DEFUN([$1], [$2]),
  9897. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9898. +])
  9899. +
  9900. +
  9901. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9902. +# ------------------------------------------------------------
  9903. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9904. +m4_define([_LT_IF_OPTION],
  9905. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9906. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9907. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  9908. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9909. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9910. -*** your PATH or compiler configuration so that the native linker is
  9911. -*** used, and then restart.
  9912. -_LT_EOF
  9913. - ;;
  9914. - *)
  9915. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9916. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  9917. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  9918. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  9919. - else
  9920. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9921. - fi
  9922. - ;;
  9923. - esac
  9924. - ;;
  9925. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  9926. +# -------------------------------------------------------
  9927. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  9928. +# are set.
  9929. +m4_define([_LT_UNLESS_OPTIONS],
  9930. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9931. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  9932. + [m4_define([$0_found])])])[]dnl
  9933. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  9934. +])[]dnl
  9935. +])
  9936. - sunos4*)
  9937. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9938. - wlarc=
  9939. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9940. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9941. - ;;
  9942. - *)
  9943. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9944. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9945. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9946. - else
  9947. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9948. - fi
  9949. - ;;
  9950. - esac
  9951. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  9952. +# ----------------------------------------
  9953. +# OPTION-LIST is a space-separated list of Libtool options associated
  9954. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  9955. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  9956. +# the unknown option and exit.
  9957. +m4_defun([_LT_SET_OPTIONS],
  9958. +[# Set options
  9959. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9960. + [_LT_SET_OPTION([$1], _LT_Option)])
  9961. +
  9962. +m4_if([$1],[LT_INIT],[
  9963. + dnl
  9964. + dnl Simply set some default values (i.e off) if boolean options were not
  9965. + dnl specified:
  9966. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  9967. + ])
  9968. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  9969. + ])
  9970. + dnl
  9971. + dnl If no reference was made to various pairs of opposing options, then
  9972. + dnl we run the default mode handler for the pair. For example, if neither
  9973. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  9974. + dnl archives by default:
  9975. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  9976. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  9977. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  9978. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  9979. + [_LT_ENABLE_FAST_INSTALL])
  9980. + ])
  9981. +])# _LT_SET_OPTIONS
  9982. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  9983. - runpath_var=
  9984. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9985. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9986. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9987. - fi
  9988. - else
  9989. - # PORTME fill in a description of your system's linker (not GNU ld)
  9990. - case $host_os in
  9991. - aix3*)
  9992. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9993. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  9994. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9995. - # Note: this linker hardcodes the directories in LIBPATH if there
  9996. - # are no directories specified by -L.
  9997. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9998. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9999. - # Neither direct hardcoding nor static linking is supported with a
  10000. - # broken collect2.
  10001. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10002. - fi
  10003. - ;;
  10004. - aix[[4-9]]*)
  10005. - if test "$host_cpu" = ia64; then
  10006. - # On IA64, the linker does run time linking by default, so we don't
  10007. - # have to do anything special.
  10008. - aix_use_runtimelinking=no
  10009. - exp_sym_flag='-Bexport'
  10010. - no_entry_flag=""
  10011. - else
  10012. - # If we're using GNU nm, then we don't want the "-C" option.
  10013. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10014. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10015. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  10016. - else
  10017. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  10018. - fi
  10019. - aix_use_runtimelinking=no
  10020. - # Test if we are trying to use run time linking or normal
  10021. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10022. - # need to do runtime linking.
  10023. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  10024. - for ld_flag in $LDFLAGS; do
  10025. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10026. - aix_use_runtimelinking=yes
  10027. - break
  10028. - fi
  10029. - done
  10030. - ;;
  10031. - esac
  10032. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10033. +# -----------------------------------------
  10034. +m4_define([_LT_MANGLE_DEFUN],
  10035. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10036. - exp_sym_flag='-bexport'
  10037. - no_entry_flag='-bnoentry'
  10038. - fi
  10039. - # When large executables or shared objects are built, AIX ld can
  10040. - # have problems creating the table of contents. If linking a library
  10041. - # or program results in "error TOC overflow" add -mminimal-toc to
  10042. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10043. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10044. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10045. +# -----------------------------------------------
  10046. +m4_define([LT_OPTION_DEFINE],
  10047. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10048. +])# LT_OPTION_DEFINE
  10049. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  10050. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10051. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10052. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10053. - if test "$GCC" = yes; then
  10054. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  10055. - # We only want to do this on AIX 4.2 and lower, the check
  10056. - # below for broken collect2 doesn't work under 4.3+
  10057. - collect2name=`${CC} -print-prog-name=collect2`
  10058. - if test -f "$collect2name" && \
  10059. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  10060. - then
  10061. - # We have reworked collect2
  10062. - :
  10063. - else
  10064. - # We have old collect2
  10065. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10066. - # It fails to find uninstalled libraries when the uninstalled
  10067. - # path is not listed in the libpath. Setting hardcode_minus_L
  10068. - # to unsupported forces relinking
  10069. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10070. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10071. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  10072. - fi
  10073. - ;;
  10074. - esac
  10075. - shared_flag='-shared'
  10076. - if test "$aix_use_runtimelinking" = yes; then
  10077. - shared_flag="$shared_flag "'${wl}-G'
  10078. - fi
  10079. - else
  10080. - # not using gcc
  10081. - if test "$host_cpu" = ia64; then
  10082. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10083. - # chokes on -Wl,-G. The following line is correct:
  10084. - shared_flag='-G'
  10085. - else
  10086. - if test "$aix_use_runtimelinking" = yes; then
  10087. - shared_flag='${wl}-G'
  10088. - else
  10089. - shared_flag='${wl}-bM:SRE'
  10090. - fi
  10091. - fi
  10092. - fi
  10093. +# dlopen
  10094. +# ------
  10095. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10096. +])
  10097. - # It seems that -bexpall does not export symbols beginning with
  10098. - # underscore (_), so it is better to generate a list of symbols to export.
  10099. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10100. - if test "$aix_use_runtimelinking" = yes; then
  10101. - # Warning - without using the other runtime loading flags (-brtl),
  10102. - # -berok will link without error, but may produce a broken library.
  10103. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  10104. - # Determine the default libpath from the value encoded in an empty executable.
  10105. - _LT_AC_SYS_LIBPATH_AIX
  10106. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10107. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10108. - else
  10109. - if test "$host_cpu" = ia64; then
  10110. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  10111. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  10112. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10113. - else
  10114. - # Determine the default libpath from the value encoded in an empty executable.
  10115. - _LT_AC_SYS_LIBPATH_AIX
  10116. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10117. - # Warning - without using the other run time loading flags,
  10118. - # -berok will link without error, but may produce a broken library.
  10119. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  10120. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  10121. - # Exported symbols can be pulled into shared objects from archives
  10122. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  10123. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10124. - # This is similar to how AIX traditionally builds its shared libraries.
  10125. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10126. - fi
  10127. - fi
  10128. - ;;
  10129. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10130. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10131. +AC_DIAGNOSE([obsolete],
  10132. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10133. +put the `dlopen' option into LT_INIT's first parameter.])
  10134. +])
  10135. - amigaos*)
  10136. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  10137. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10138. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10139. - # see comment about different semantics on the GNU ld section
  10140. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10141. - ;;
  10142. +dnl aclocal-1.4 backwards compatibility:
  10143. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10144. - bsdi[[45]]*)
  10145. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  10146. - ;;
  10147. - cygwin* | mingw* | pw32*)
  10148. - # When not using gcc, we currently assume that we are using
  10149. - # Microsoft Visual C++.
  10150. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  10151. - # no search path for DLLs.
  10152. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  10153. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10154. - # Tell ltmain to make .lib files, not .a files.
  10155. - libext=lib
  10156. - # Tell ltmain to make .dll files, not .so files.
  10157. - shrext_cmds=".dll"
  10158. - # FIXME: Setting linknames here is a bad hack.
  10159. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10160. - # The linker will automatically build a .lib file if we build a DLL.
  10161. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  10162. - # FIXME: Should let the user specify the lib program.
  10163. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10164. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  10165. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  10166. - ;;
  10167. +# win32-dll
  10168. +# ---------
  10169. +# Declare package support for building win32 dll's.
  10170. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10171. +[enable_win32_dll=yes
  10172. - darwin* | rhapsody*)
  10173. - case $host_os in
  10174. - rhapsody* | darwin1.[[012]])
  10175. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  10176. - ;;
  10177. - *) # Darwin 1.3 on
  10178. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10179. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10180. - else
  10181. - case ${MACOSX_DEPLOYMENT_TARGET} in
  10182. - 10.[[012]])
  10183. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10184. - ;;
  10185. - 10.*)
  10186. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  10187. - ;;
  10188. - esac
  10189. - fi
  10190. - ;;
  10191. - esac
  10192. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10193. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10194. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  10195. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10196. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  10197. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10198. - if test "$GCC" = yes ; then
  10199. - output_verbose_link_cmd='echo'
  10200. - _LT_AC_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}"
  10201. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10202. - _LT_AC_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}"
  10203. - _LT_AC_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}"
  10204. - else
  10205. - case $cc_basename in
  10206. - xlc*)
  10207. - output_verbose_link_cmd='echo'
  10208. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10209. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10210. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10211. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10212. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10213. - ;;
  10214. - *)
  10215. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10216. - ;;
  10217. - esac
  10218. - fi
  10219. - ;;
  10220. +case $host in
  10221. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10222. + AC_CHECK_TOOL(AS, as, false)
  10223. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10224. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10225. + ;;
  10226. +esac
  10227. - dgux*)
  10228. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10229. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10230. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10231. - ;;
  10232. +test -z "$AS" && AS=as
  10233. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10234. - freebsd1*)
  10235. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10236. - ;;
  10237. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10238. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10239. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10240. - # support. Future versions do this automatically, but an explicit c++rt0.o
  10241. - # does not break anything, and helps significantly (at the cost of a little
  10242. - # extra space).
  10243. - freebsd2.2*)
  10244. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10245. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10246. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10247. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10248. - ;;
  10249. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10250. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10251. +])# win32-dll
  10252. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10253. - freebsd2*)
  10254. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10255. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10256. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10257. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10258. - ;;
  10259. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10260. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10261. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10262. +AC_DIAGNOSE([obsolete],
  10263. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10264. +put the `win32-dll' option into LT_INIT's first parameter.])
  10265. +])
  10266. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10267. - freebsd* | dragonfly*)
  10268. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10269. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10270. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10271. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10272. - ;;
  10273. +dnl aclocal-1.4 backwards compatibility:
  10274. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10275. - hpux9*)
  10276. - if test "$GCC" = yes; then
  10277. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10278. - else
  10279. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10280. - fi
  10281. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10282. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10283. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10284. - # hardcode_minus_L: Not really in the search PATH,
  10285. - # but as the default location of the library.
  10286. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10287. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10288. +# _LT_ENABLE_SHARED([DEFAULT])
  10289. +# ----------------------------
  10290. +# implement the --enable-shared flag, and supports the `shared' and
  10291. +# `disable-shared' LT_INIT options.
  10292. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10293. +m4_define([_LT_ENABLE_SHARED],
  10294. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10295. +AC_ARG_ENABLE([shared],
  10296. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10297. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10298. + [p=${PACKAGE-default}
  10299. + case $enableval in
  10300. + yes) enable_shared=yes ;;
  10301. + no) enable_shared=no ;;
  10302. + *)
  10303. + enable_shared=no
  10304. + # Look at the argument we got. We use all the common list separators.
  10305. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10306. + for pkg in $enableval; do
  10307. + IFS="$lt_save_ifs"
  10308. + if test "X$pkg" = "X$p"; then
  10309. + enable_shared=yes
  10310. + fi
  10311. + done
  10312. + IFS="$lt_save_ifs"
  10313. ;;
  10314. + esac],
  10315. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10316. - hpux10*)
  10317. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10318. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10319. - else
  10320. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10321. - fi
  10322. - if test "$with_gnu_ld" = no; then
  10323. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10324. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10325. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10326. + [Whether or not to build shared libraries])
  10327. +])# _LT_ENABLE_SHARED
  10328. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10329. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10330. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10331. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10332. - # hardcode_minus_L: Not really in the search PATH,
  10333. - # but as the default location of the library.
  10334. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10335. - fi
  10336. - ;;
  10337. +# Old names:
  10338. +AC_DEFUN([AC_ENABLE_SHARED],
  10339. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10340. +])
  10341. - hpux11*)
  10342. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10343. - case $host_cpu in
  10344. - hppa*64*)
  10345. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10346. - ;;
  10347. - ia64*)
  10348. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10349. - ;;
  10350. - *)
  10351. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10352. - ;;
  10353. - esac
  10354. - else
  10355. - case $host_cpu in
  10356. - hppa*64*)
  10357. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10358. - ;;
  10359. - ia64*)
  10360. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10361. - ;;
  10362. - *)
  10363. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10364. - ;;
  10365. - esac
  10366. - fi
  10367. - if test "$with_gnu_ld" = no; then
  10368. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10369. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10370. +AC_DEFUN([AC_DISABLE_SHARED],
  10371. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10372. +])
  10373. - case $host_cpu in
  10374. - hppa*64*|ia64*)
  10375. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  10376. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10377. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10378. - ;;
  10379. - *)
  10380. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10381. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10382. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10383. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10384. - # hardcode_minus_L: Not really in the search PATH,
  10385. - # but as the default location of the library.
  10386. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10387. - ;;
  10388. - esac
  10389. - fi
  10390. - ;;
  10391. +dnl aclocal-1.4 backwards compatibility:
  10392. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10393. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10394. - irix5* | irix6* | nonstopux*)
  10395. - if test "$GCC" = yes; then
  10396. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10397. - else
  10398. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10399. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  10400. - fi
  10401. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10402. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10403. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10404. +
  10405. +
  10406. +# _LT_ENABLE_STATIC([DEFAULT])
  10407. +# ----------------------------
  10408. +# implement the --enable-static flag, and support the `static' and
  10409. +# `disable-static' LT_INIT options.
  10410. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10411. +m4_define([_LT_ENABLE_STATIC],
  10412. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10413. +AC_ARG_ENABLE([static],
  10414. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10415. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10416. + [p=${PACKAGE-default}
  10417. + case $enableval in
  10418. + yes) enable_static=yes ;;
  10419. + no) enable_static=no ;;
  10420. + *)
  10421. + enable_static=no
  10422. + # Look at the argument we got. We use all the common list separators.
  10423. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10424. + for pkg in $enableval; do
  10425. + IFS="$lt_save_ifs"
  10426. + if test "X$pkg" = "X$p"; then
  10427. + enable_static=yes
  10428. + fi
  10429. + done
  10430. + IFS="$lt_save_ifs"
  10431. ;;
  10432. + esac],
  10433. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10434. - netbsd*)
  10435. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10436. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10437. - else
  10438. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10439. - fi
  10440. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10441. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10442. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10443. - ;;
  10444. + _LT_DECL([build_old_libs], [enable_static], [0],
  10445. + [Whether or not to build static libraries])
  10446. +])# _LT_ENABLE_STATIC
  10447. - newsos6)
  10448. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10449. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10450. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10451. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10452. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10453. - ;;
  10454. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10455. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10456. - openbsd*)
  10457. - if test -f /usr/libexec/ld.so; then
  10458. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10459. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10460. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10461. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10462. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10463. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10464. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10465. - else
  10466. - case $host_os in
  10467. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  10468. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10469. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10470. - ;;
  10471. - *)
  10472. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10473. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10474. - ;;
  10475. - esac
  10476. - fi
  10477. - else
  10478. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10479. - fi
  10480. - ;;
  10481. +# Old names:
  10482. +AC_DEFUN([AC_ENABLE_STATIC],
  10483. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10484. +])
  10485. - os2*)
  10486. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10487. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10488. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10489. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10490. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10491. - ;;
  10492. +AC_DEFUN([AC_DISABLE_STATIC],
  10493. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10494. +])
  10495. - osf3*)
  10496. - if test "$GCC" = yes; then
  10497. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10498. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10499. - else
  10500. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10501. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10502. - fi
  10503. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10504. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10505. - ;;
  10506. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10507. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10508. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  10509. - if test "$GCC" = yes; then
  10510. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10511. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10512. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10513. - else
  10514. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10515. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10516. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  10517. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  10518. +dnl aclocal-1.4 backwards compatibility:
  10519. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10520. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10521. - # Both c and cxx compiler support -rpath directly
  10522. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10523. - fi
  10524. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10525. - ;;
  10526. - solaris*)
  10527. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10528. - if test "$GCC" = yes; then
  10529. - wlarc='${wl}'
  10530. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10531. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10532. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10533. - else
  10534. - wlarc=''
  10535. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10536. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10537. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10538. - fi
  10539. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10540. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10541. - case $host_os in
  10542. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10543. - *)
  10544. - # The compiler driver will combine and reorder linker options,
  10545. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  10546. - # but is careful enough not to reorder.
  10547. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10548. - if test "$GCC" = yes; then
  10549. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10550. - else
  10551. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10552. - fi
  10553. - ;;
  10554. - esac
  10555. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10556. - ;;
  10557. - sunos4*)
  10558. - if test "x$host_vendor" = xsequent; then
  10559. - # Use $CC to link under sequent, because it throws in some extra .o
  10560. - # files that make .init and .fini sections work.
  10561. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10562. - else
  10563. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10564. - fi
  10565. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10566. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10567. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10568. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10569. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10570. +# ----------------------------------
  10571. +# implement the --enable-fast-install flag, and support the `fast-install'
  10572. +# and `disable-fast-install' LT_INIT options.
  10573. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10574. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10575. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10576. +AC_ARG_ENABLE([fast-install],
  10577. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10578. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10579. + [p=${PACKAGE-default}
  10580. + case $enableval in
  10581. + yes) enable_fast_install=yes ;;
  10582. + no) enable_fast_install=no ;;
  10583. + *)
  10584. + enable_fast_install=no
  10585. + # Look at the argument we got. We use all the common list separators.
  10586. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10587. + for pkg in $enableval; do
  10588. + IFS="$lt_save_ifs"
  10589. + if test "X$pkg" = "X$p"; then
  10590. + enable_fast_install=yes
  10591. + fi
  10592. + done
  10593. + IFS="$lt_save_ifs"
  10594. ;;
  10595. + esac],
  10596. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10597. - sysv4)
  10598. - case $host_vendor in
  10599. - sni)
  10600. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10601. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  10602. - ;;
  10603. - siemens)
  10604. - ## LD is ld it makes a PLAMLIB
  10605. - ## CC just makes a GrossModule.
  10606. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10607. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  10608. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10609. - ;;
  10610. - motorola)
  10611. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10612. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  10613. - ;;
  10614. - esac
  10615. - runpath_var='LD_RUN_PATH'
  10616. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10617. - ;;
  10618. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10619. + [Whether or not to optimize for fast installation])dnl
  10620. +])# _LT_ENABLE_FAST_INSTALL
  10621. +
  10622. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10623. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10624. +
  10625. +# Old names:
  10626. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10627. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10628. +AC_DIAGNOSE([obsolete],
  10629. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10630. +the `fast-install' option into LT_INIT's first parameter.])
  10631. +])
  10632. - sysv4.3*)
  10633. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10634. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10635. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  10636. - ;;
  10637. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10638. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10639. +AC_DIAGNOSE([obsolete],
  10640. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10641. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10642. +])
  10643. - sysv4*MP*)
  10644. - if test -d /usr/nec; then
  10645. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10646. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10647. - runpath_var=LD_RUN_PATH
  10648. - hardcode_runpath_var=yes
  10649. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10650. - fi
  10651. - ;;
  10652. +dnl aclocal-1.4 backwards compatibility:
  10653. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10654. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10655. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10656. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10657. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10658. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10659. - runpath_var='LD_RUN_PATH'
  10660. - if test "$GCC" = yes; then
  10661. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10662. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10663. - else
  10664. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10665. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10666. - fi
  10667. - ;;
  10668. +# _LT_WITH_PIC([MODE])
  10669. +# --------------------
  10670. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10671. +# LT_INIT options.
  10672. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10673. +m4_define([_LT_WITH_PIC],
  10674. +[AC_ARG_WITH([pic],
  10675. + [AS_HELP_STRING([--with-pic],
  10676. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10677. + [pic_mode="$withval"],
  10678. + [pic_mode=default])
  10679. - sysv5* | sco3.2v5* | sco5v6*)
  10680. - # Note: We can NOT use -z defs as we might desire, because we do not
  10681. - # link with -lc, and that would cause any symbols used from libc to
  10682. - # always be unresolved, which means just about no library would
  10683. - # ever link correctly. If we're not using GNU ld we use -z text
  10684. - # though, which does catch some bad symbols but isn't as heavy-handed
  10685. - # as -z defs.
  10686. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10687. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10688. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10689. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10690. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10691. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10692. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10693. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10694. - runpath_var='LD_RUN_PATH'
  10695. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10696. - if test "$GCC" = yes; then
  10697. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10698. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10699. - else
  10700. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10701. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10702. - fi
  10703. - ;;
  10704. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10705. +])# _LT_WITH_PIC
  10706. - uts4*)
  10707. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10708. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10709. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10710. - ;;
  10711. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10712. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10713. - *)
  10714. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10715. - ;;
  10716. - esac
  10717. - fi
  10718. +# Old name:
  10719. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10720. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10721. +AC_DIAGNOSE([obsolete],
  10722. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10723. +put the `pic-only' option into LT_INIT's first parameter.])
  10724. ])
  10725. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10726. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10727. +dnl aclocal-1.4 backwards compatibility:
  10728. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10729. +
  10730. +
  10731. +m4_define([_LTDL_MODE], [])
  10732. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10733. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10734. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10735. + [m4_define([_LTDL_MODE], [recursive])])
  10736. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10737. + [m4_define([_LTDL_MODE], [subproject])])
  10738. +
  10739. +m4_define([_LTDL_TYPE], [])
  10740. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10741. + [m4_define([_LTDL_TYPE], [installable])])
  10742. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10743. + [m4_define([_LTDL_TYPE], [convenience])])
  10744. +
  10745. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10746. #
  10747. -# Do we need to explicitly link libc?
  10748. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10749. +# Written by Gary V. Vaughan, 2004
  10750. #
  10751. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  10752. -x|xyes)
  10753. - # Assume -lc should be added
  10754. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10755. +# This file is free software; the Free Software Foundation gives
  10756. +# unlimited permission to copy and/or distribute it, with or without
  10757. +# modifications, as long as this notice is preserved.
  10758. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  10759. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  10760. - *'~'*)
  10761. - # FIXME: we may have to deal with multi-command sequences.
  10762. - ;;
  10763. - '$CC '*)
  10764. - # Test whether the compiler implicitly links with -lc since on some
  10765. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10766. - # to ld, don't add -lc before -lgcc.
  10767. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  10768. - $rm conftest*
  10769. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10770. +# serial 6 ltsugar.m4
  10771. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  10772. - soname=conftest
  10773. - lib=conftest
  10774. - libobjs=conftest.$ac_objext
  10775. - deplibs=
  10776. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  10777. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  10778. - compiler_flags=-v
  10779. - linker_flags=-v
  10780. - verstring=
  10781. - output_objdir=.
  10782. - libname=conftest
  10783. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  10784. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10785. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  10786. - then
  10787. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10788. - else
  10789. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10790. - fi
  10791. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  10792. - else
  10793. - cat conftest.err 1>&5
  10794. - fi
  10795. - $rm conftest*
  10796. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  10797. - ;;
  10798. - esac
  10799. - fi
  10800. - ;;
  10801. -esac
  10802. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  10803. +# This is to help aclocal find these macros, as it can't see m4_define.
  10804. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10805. -# _LT_AC_FILE_LTDLL_C
  10806. -# -------------------
  10807. -# Be careful that the start marker always follows a newline.
  10808. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  10809. -# /* ltdll.c starts here */
  10810. -# #define WIN32_LEAN_AND_MEAN
  10811. -# #include <windows.h>
  10812. -# #undef WIN32_LEAN_AND_MEAN
  10813. -# #include <stdio.h>
  10814. -#
  10815. -# #ifndef __CYGWIN__
  10816. -# # ifdef __CYGWIN32__
  10817. -# # define __CYGWIN__ __CYGWIN32__
  10818. -# # endif
  10819. -# #endif
  10820. -#
  10821. -# #ifdef __cplusplus
  10822. -# extern "C" {
  10823. -# #endif
  10824. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10825. -# #ifdef __cplusplus
  10826. -# }
  10827. -# #endif
  10828. -#
  10829. -# #ifdef __CYGWIN__
  10830. -# #include <cygwin/cygwin_dll.h>
  10831. -# DECLARE_CYGWIN_DLL( DllMain );
  10832. -# #endif
  10833. -# HINSTANCE __hDllInstance_base;
  10834. -#
  10835. -# BOOL APIENTRY
  10836. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10837. -# {
  10838. -# __hDllInstance_base = hInst;
  10839. -# return TRUE;
  10840. -# }
  10841. -# /* ltdll.c ends here */
  10842. -])# _LT_AC_FILE_LTDLL_C
  10843. +# lt_join(SEP, ARG1, [ARG2...])
  10844. +# -----------------------------
  10845. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10846. +# associated separator.
  10847. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10848. +# versions in m4sugar had bugs.
  10849. +m4_define([lt_join],
  10850. +[m4_if([$#], [1], [],
  10851. + [$#], [2], [[$2]],
  10852. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10853. +m4_define([_lt_join],
  10854. +[m4_if([$#$2], [2], [],
  10855. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10856. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  10857. -# ---------------------------------
  10858. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  10859. +# lt_car(LIST)
  10860. +# lt_cdr(LIST)
  10861. +# ------------
  10862. +# Manipulate m4 lists.
  10863. +# These macros are necessary as long as will still need to support
  10864. +# Autoconf-2.59 which quotes differently.
  10865. +m4_define([lt_car], [[$1]])
  10866. +m4_define([lt_cdr],
  10867. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10868. + [$#], 1, [],
  10869. + [m4_dquote(m4_shift($@))])])
  10870. +m4_define([lt_unquote], $1)
  10871. +
  10872. +
  10873. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10874. +# ------------------------------------------
  10875. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10876. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10877. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10878. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10879. +# than defined and empty).
  10880. +#
  10881. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10882. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10883. +m4_define([lt_append],
  10884. +[m4_define([$1],
  10885. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10886. -# old names
  10887. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  10888. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10889. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10890. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10891. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10892. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  10893. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  10894. -# This is just to silence aclocal about the macro not being used
  10895. -ifelse([AC_DISABLE_FAST_INSTALL])
  10896. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10897. +# ----------------------------------------------------------
  10898. +# Produce a SEP delimited list of all paired combinations of elements of
  10899. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10900. +# has the form PREFIXmINFIXSUFFIXn.
  10901. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10902. +m4_define([lt_combine],
  10903. +[m4_if(m4_eval([$# > 3]), [1],
  10904. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10905. +[[m4_foreach([_Lt_prefix], [$2],
  10906. + [m4_foreach([_Lt_suffix],
  10907. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10908. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10909. +
  10910. +
  10911. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10912. +# -----------------------------------------------------------------------
  10913. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10914. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10915. +m4_define([lt_if_append_uniq],
  10916. +[m4_ifdef([$1],
  10917. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10918. + [lt_append([$1], [$2], [$3])$4],
  10919. + [$5])],
  10920. + [lt_append([$1], [$2], [$3])$4])])
  10921. -AC_DEFUN([LT_AC_PROG_GCJ],
  10922. -[AC_CHECK_TOOL(GCJ, gcj, no)
  10923. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10924. - AC_SUBST(GCJFLAGS)
  10925. -])
  10926. -AC_DEFUN([LT_AC_PROG_RC],
  10927. -[AC_CHECK_TOOL(RC, windres, no)
  10928. -])
  10929. +# lt_dict_add(DICT, KEY, VALUE)
  10930. +# -----------------------------
  10931. +m4_define([lt_dict_add],
  10932. +[m4_define([$1($2)], [$3])])
  10933. -# Cheap backport of AS_EXECUTABLE_P and required macros
  10934. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  10935. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10936. +# --------------------------------------------
  10937. +m4_define([lt_dict_add_subkey],
  10938. +[m4_define([$1($2:$3)], [$4])])
  10939. -# _AS_TEST_PREPARE
  10940. -# ----------------
  10941. -m4_ifndef([_AS_TEST_PREPARE],
  10942. -[m4_defun([_AS_TEST_PREPARE],
  10943. -[if test -x / >/dev/null 2>&1; then
  10944. - as_executable_p='test -x'
  10945. -else
  10946. - as_executable_p='test -f'
  10947. -fi
  10948. -])])# _AS_TEST_PREPARE
  10949. -# AS_EXECUTABLE_P
  10950. -# ---------------
  10951. -# Check whether a file is executable.
  10952. -m4_ifndef([AS_EXECUTABLE_P],
  10953. -[m4_defun([AS_EXECUTABLE_P],
  10954. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  10955. -$as_executable_p $1[]dnl
  10956. -])])# AS_EXECUTABLE_P
  10957. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  10958. +# ----------------------------------
  10959. +m4_define([lt_dict_fetch],
  10960. +[m4_ifval([$3],
  10961. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  10962. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  10963. -# NOTE: This macro has been submitted for inclusion into #
  10964. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  10965. -# a released version of Autoconf we should remove this #
  10966. -# macro and use it instead. #
  10967. -# LT_AC_PROG_SED
  10968. -# --------------
  10969. -# Check for a fully-functional sed program, that truncates
  10970. -# as few characters as possible. Prefer GNU sed if found.
  10971. -AC_DEFUN([LT_AC_PROG_SED],
  10972. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  10973. -AC_CACHE_VAL(lt_cv_path_SED,
  10974. -[# Loop through the user's path and test for sed and gsed.
  10975. -# Then use that list of sed's as ones to test for truncation.
  10976. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10977. -for as_dir in $PATH
  10978. -do
  10979. - IFS=$as_save_IFS
  10980. - test -z "$as_dir" && as_dir=.
  10981. - for lt_ac_prog in sed gsed; do
  10982. - for ac_exec_ext in '' $ac_executable_extensions; do
  10983. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  10984. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  10985. - fi
  10986. - done
  10987. - done
  10988. -done
  10989. -IFS=$as_save_IFS
  10990. -lt_ac_max=0
  10991. -lt_ac_count=0
  10992. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  10993. -# along with /bin/sed that truncates output.
  10994. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  10995. - test ! -f $lt_ac_sed && continue
  10996. - cat /dev/null > conftest.in
  10997. - lt_ac_count=0
  10998. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  10999. - # Check for GNU sed and select it if it is found.
  11000. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11001. - lt_cv_path_SED=$lt_ac_sed
  11002. - break
  11003. - fi
  11004. - while true; do
  11005. - cat conftest.in conftest.in >conftest.tmp
  11006. - mv conftest.tmp conftest.in
  11007. - cp conftest.in conftest.nl
  11008. - echo >>conftest.nl
  11009. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11010. - cmp -s conftest.out conftest.nl || break
  11011. - # 10000 chars as input seems more than enough
  11012. - test $lt_ac_count -gt 10 && break
  11013. - lt_ac_count=`expr $lt_ac_count + 1`
  11014. - if test $lt_ac_count -gt $lt_ac_max; then
  11015. - lt_ac_max=$lt_ac_count
  11016. - lt_cv_path_SED=$lt_ac_sed
  11017. - fi
  11018. - done
  11019. -done
  11020. +
  11021. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  11022. +# -----------------------------------------------------------------
  11023. +m4_define([lt_if_dict_fetch],
  11024. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  11025. + [$5],
  11026. + [$6])])
  11027. +
  11028. +
  11029. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  11030. +# --------------------------------------------------------------
  11031. +m4_define([lt_dict_filter],
  11032. +[m4_if([$5], [], [],
  11033. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  11034. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  11035. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  11036. ])
  11037. -SED=$lt_cv_path_SED
  11038. -AC_SUBST([SED])
  11039. -AC_MSG_RESULT([$SED])
  11040. +
  11041. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  11042. +#
  11043. +# Copyright (C) 2004 Free Software Foundation, Inc.
  11044. +# Written by Scott James Remnant, 2004
  11045. +#
  11046. +# This file is free software; the Free Software Foundation gives
  11047. +# unlimited permission to copy and/or distribute it, with or without
  11048. +# modifications, as long as this notice is preserved.
  11049. +
  11050. +# Generated from ltversion.in.
  11051. +
  11052. +# serial 3017 ltversion.m4
  11053. +# This file is part of GNU Libtool
  11054. +
  11055. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  11056. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  11057. +
  11058. +AC_DEFUN([LTVERSION_VERSION],
  11059. +[macro_version='2.2.6b'
  11060. +macro_revision='1.3017'
  11061. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11062. +_LT_DECL(, macro_revision, 0)
  11063. ])
  11064. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11065. +#
  11066. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11067. +# Written by Scott James Remnant, 2004.
  11068. +#
  11069. +# This file is free software; the Free Software Foundation gives
  11070. +# unlimited permission to copy and/or distribute it, with or without
  11071. +# modifications, as long as this notice is preserved.
  11072. +
  11073. +# serial 4 lt~obsolete.m4
  11074. +
  11075. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11076. +#
  11077. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11078. +# which have later been changed to m4_define as they aren't part of the
  11079. +# exported API, or moved to Autoconf or Automake where they belong.
  11080. +#
  11081. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11082. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11083. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11084. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11085. +# and doesn't know about Autoconf macros at all.)
  11086. +#
  11087. +# So we provide this file, which has a silly filename so it's always
  11088. +# included after everything else. This provides aclocal with the
  11089. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11090. +# because those macros already exist, or will be overwritten later.
  11091. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11092. +#
  11093. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11094. +# Yes, that means every name once taken will need to remain here until
  11095. +# we give up compatibility with versions before 1.7, at which point
  11096. +# we need to keep only those names which we still refer to.
  11097. +
  11098. +# This is to help aclocal find these macros, as it can't see m4_define.
  11099. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11100. +
  11101. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11102. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11103. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11104. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11105. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11106. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11107. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11108. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11109. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11110. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11111. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11112. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11113. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11114. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11115. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11116. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11117. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11118. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11119. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11120. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11121. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11122. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11123. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11124. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11125. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11126. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11127. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11128. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11129. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11130. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11131. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11132. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11133. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11134. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11135. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11136. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11137. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11138. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11139. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11140. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11141. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11142. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11143. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11144. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11145. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11146. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11147. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11148. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11149. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11150. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11151. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11152. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11153. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11154. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11155. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11156. +
  11157. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  11158. #
  11159. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  11160. @@ -6726,14 +8053,16 @@
  11161. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  11162. # ---------------------------------------------
  11163. m4_define([_PKG_CONFIG],
  11164. -[if test -n "$$1"; then
  11165. - pkg_cv_[]$1="$$1"
  11166. - elif test -n "$PKG_CONFIG"; then
  11167. - PKG_CHECK_EXISTS([$3],
  11168. - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  11169. - [pkg_failed=yes])
  11170. - else
  11171. - pkg_failed=untried
  11172. +[if test -n "$PKG_CONFIG"; then
  11173. + if test -n "$$1"; then
  11174. + pkg_cv_[]$1="$$1"
  11175. + else
  11176. + PKG_CHECK_EXISTS([$3],
  11177. + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  11178. + [pkg_failed=yes])
  11179. + fi
  11180. +else
  11181. + pkg_failed=untried
  11182. fi[]dnl
  11183. ])# _PKG_CONFIG
  11184. @@ -6777,9 +8106,9 @@
  11185. if test $pkg_failed = yes; then
  11186. _PKG_SHORT_ERRORS_SUPPORTED
  11187. if test $_pkg_short_errors_supported = yes; then
  11188. - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  11189. + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  11190. else
  11191. - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  11192. + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  11193. fi
  11194. # Put the nasty error message in config.log where it belongs
  11195. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  11196. @@ -6829,7 +8158,7 @@
  11197. [am__api_version='1.11'
  11198. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11199. dnl require some minimum version. Point them to the right macro.
  11200. -m4_if([$1], [1.11], [],
  11201. +m4_if([$1], [1.11.1], [],
  11202. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11203. ])
  11204. @@ -6845,7 +8174,7 @@
  11205. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11206. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11207. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11208. -[AM_AUTOMAKE_VERSION([1.11])dnl
  11209. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11210. m4_ifndef([AC_AUTOCONF_VERSION],
  11211. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11212. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11213. diff -Nur librpcsecgss-0.19.orig/config.guess librpcsecgss-0.19/config.guess
  11214. --- librpcsecgss-0.19.orig/config.guess 2009-05-13 23:33:08.000000000 +0200
  11215. +++ librpcsecgss-0.19/config.guess 2011-02-17 18:22:25.846052754 +0100
  11216. @@ -1,9 +1,10 @@
  11217. #! /bin/sh
  11218. # Attempt to guess a canonical system name.
  11219. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  11220. -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  11221. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  11222. +# Free Software Foundation, Inc.
  11223. -timestamp='2004-08-13'
  11224. +timestamp='2009-06-10'
  11225. # This file is free software; you can redistribute it and/or modify it
  11226. # under the terms of the GNU General Public License as published by
  11227. @@ -17,13 +18,15 @@
  11228. #
  11229. # You should have received a copy of the GNU General Public License
  11230. # along with this program; if not, write to the Free Software
  11231. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  11232. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  11233. +# 02110-1301, USA.
  11234. #
  11235. # As a special exception to the GNU General Public License, if you
  11236. # distribute this file as part of a program that contains a
  11237. # configuration script generated by Autoconf, you may include it under
  11238. # the same distribution terms that you use for the rest of that program.
  11239. +
  11240. # Originally written by Per Bothner <per@bothner.com>.
  11241. # Please send patches to <config-patches@gnu.org>. Submit a context
  11242. # diff and a properly formatted ChangeLog entry.
  11243. @@ -53,8 +56,8 @@
  11244. GNU config.guess ($timestamp)
  11245. Originally written by Per Bothner.
  11246. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  11247. -Free Software Foundation, Inc.
  11248. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  11249. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11250. This is free software; see the source for copying conditions. There is NO
  11251. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  11252. @@ -66,11 +69,11 @@
  11253. while test $# -gt 0 ; do
  11254. case $1 in
  11255. --time-stamp | --time* | -t )
  11256. - echo "$timestamp" ; exit 0 ;;
  11257. + echo "$timestamp" ; exit ;;
  11258. --version | -v )
  11259. - echo "$version" ; exit 0 ;;
  11260. + echo "$version" ; exit ;;
  11261. --help | --h* | -h )
  11262. - echo "$usage"; exit 0 ;;
  11263. + echo "$usage"; exit ;;
  11264. -- ) # Stop option processing
  11265. shift; break ;;
  11266. - ) # Use stdin as input.
  11267. @@ -104,7 +107,7 @@
  11268. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  11269. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  11270. : ${TMPDIR=/tmp} ;
  11271. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  11272. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  11273. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  11274. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  11275. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  11276. @@ -123,7 +126,7 @@
  11277. ;;
  11278. ,,*) CC_FOR_BUILD=$CC ;;
  11279. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  11280. -esac ;'
  11281. +esac ; set_cc_for_build= ;'
  11282. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  11283. # (ghazi@noc.rutgers.edu 1994-08-24)
  11284. @@ -158,6 +161,7 @@
  11285. arm*) machine=arm-unknown ;;
  11286. sh3el) machine=shl-unknown ;;
  11287. sh3eb) machine=sh-unknown ;;
  11288. + sh5el) machine=sh5le-unknown ;;
  11289. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  11290. esac
  11291. # The Operating System including object format, if it has switched
  11292. @@ -166,7 +170,7 @@
  11293. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  11294. eval $set_cc_for_build
  11295. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11296. - | grep __ELF__ >/dev/null
  11297. + | grep -q __ELF__
  11298. then
  11299. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  11300. # Return netbsd for either. FIX?
  11301. @@ -196,55 +200,23 @@
  11302. # contains redundant information, the shorter form:
  11303. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  11304. echo "${machine}-${os}${release}"
  11305. - exit 0 ;;
  11306. - amd64:OpenBSD:*:*)
  11307. - echo x86_64-unknown-openbsd${UNAME_RELEASE}
  11308. - exit 0 ;;
  11309. - amiga:OpenBSD:*:*)
  11310. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  11311. - exit 0 ;;
  11312. - cats:OpenBSD:*:*)
  11313. - echo arm-unknown-openbsd${UNAME_RELEASE}
  11314. - exit 0 ;;
  11315. - hp300:OpenBSD:*:*)
  11316. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  11317. - exit 0 ;;
  11318. - luna88k:OpenBSD:*:*)
  11319. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  11320. - exit 0 ;;
  11321. - mac68k:OpenBSD:*:*)
  11322. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  11323. - exit 0 ;;
  11324. - macppc:OpenBSD:*:*)
  11325. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  11326. - exit 0 ;;
  11327. - mvme68k:OpenBSD:*:*)
  11328. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  11329. - exit 0 ;;
  11330. - mvme88k:OpenBSD:*:*)
  11331. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  11332. - exit 0 ;;
  11333. - mvmeppc:OpenBSD:*:*)
  11334. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  11335. - exit 0 ;;
  11336. - sgi:OpenBSD:*:*)
  11337. - echo mips64-unknown-openbsd${UNAME_RELEASE}
  11338. - exit 0 ;;
  11339. - sun3:OpenBSD:*:*)
  11340. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  11341. - exit 0 ;;
  11342. + exit ;;
  11343. *:OpenBSD:*:*)
  11344. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  11345. - exit 0 ;;
  11346. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  11347. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  11348. + exit ;;
  11349. *:ekkoBSD:*:*)
  11350. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  11351. - exit 0 ;;
  11352. + exit ;;
  11353. + *:SolidBSD:*:*)
  11354. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  11355. + exit ;;
  11356. macppc:MirBSD:*:*)
  11357. - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  11358. - exit 0 ;;
  11359. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  11360. + exit ;;
  11361. *:MirBSD:*:*)
  11362. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  11363. - exit 0 ;;
  11364. + exit ;;
  11365. alpha:OSF1:*:*)
  11366. case $UNAME_RELEASE in
  11367. *4.0)
  11368. @@ -297,37 +269,43 @@
  11369. # A Xn.n version is an unreleased experimental baselevel.
  11370. # 1.2 uses "1.2" for uname -r.
  11371. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  11372. - exit 0 ;;
  11373. + exit ;;
  11374. Alpha\ *:Windows_NT*:*)
  11375. # How do we know it's Interix rather than the generic POSIX subsystem?
  11376. # Should we change UNAME_MACHINE based on the output of uname instead
  11377. # of the specific Alpha model?
  11378. echo alpha-pc-interix
  11379. - exit 0 ;;
  11380. + exit ;;
  11381. 21064:Windows_NT:50:3)
  11382. echo alpha-dec-winnt3.5
  11383. - exit 0 ;;
  11384. + exit ;;
  11385. Amiga*:UNIX_System_V:4.0:*)
  11386. echo m68k-unknown-sysv4
  11387. - exit 0;;
  11388. + exit ;;
  11389. *:[Aa]miga[Oo][Ss]:*:*)
  11390. echo ${UNAME_MACHINE}-unknown-amigaos
  11391. - exit 0 ;;
  11392. + exit ;;
  11393. *:[Mm]orph[Oo][Ss]:*:*)
  11394. echo ${UNAME_MACHINE}-unknown-morphos
  11395. - exit 0 ;;
  11396. + exit ;;
  11397. *:OS/390:*:*)
  11398. echo i370-ibm-openedition
  11399. - exit 0 ;;
  11400. + exit ;;
  11401. + *:z/VM:*:*)
  11402. + echo s390-ibm-zvmoe
  11403. + exit ;;
  11404. *:OS400:*:*)
  11405. echo powerpc-ibm-os400
  11406. - exit 0 ;;
  11407. + exit ;;
  11408. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  11409. echo arm-acorn-riscix${UNAME_RELEASE}
  11410. - exit 0;;
  11411. + exit ;;
  11412. + arm:riscos:*:*|arm:RISCOS:*:*)
  11413. + echo arm-unknown-riscos
  11414. + exit ;;
  11415. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  11416. echo hppa1.1-hitachi-hiuxmpp
  11417. - exit 0;;
  11418. + exit ;;
  11419. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  11420. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  11421. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  11422. @@ -335,32 +313,48 @@
  11423. else
  11424. echo pyramid-pyramid-bsd
  11425. fi
  11426. - exit 0 ;;
  11427. + exit ;;
  11428. NILE*:*:*:dcosx)
  11429. echo pyramid-pyramid-svr4
  11430. - exit 0 ;;
  11431. + exit ;;
  11432. DRS?6000:unix:4.0:6*)
  11433. echo sparc-icl-nx6
  11434. - exit 0 ;;
  11435. - DRS?6000:UNIX_SV:4.2*:7*)
  11436. + exit ;;
  11437. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  11438. case `/usr/bin/uname -p` in
  11439. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  11440. + sparc) echo sparc-icl-nx7; exit ;;
  11441. esac ;;
  11442. + s390x:SunOS:*:*)
  11443. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11444. + exit ;;
  11445. sun4H:SunOS:5.*:*)
  11446. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11447. - exit 0 ;;
  11448. + exit ;;
  11449. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  11450. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11451. - exit 0 ;;
  11452. - i86pc:SunOS:5.*:*)
  11453. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11454. - exit 0 ;;
  11455. + exit ;;
  11456. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  11457. + eval $set_cc_for_build
  11458. + SUN_ARCH="i386"
  11459. + # If there is a compiler, see if it is configured for 64-bit objects.
  11460. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  11461. + # This test works for both compilers.
  11462. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  11463. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  11464. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  11465. + grep IS_64BIT_ARCH >/dev/null
  11466. + then
  11467. + SUN_ARCH="x86_64"
  11468. + fi
  11469. + fi
  11470. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11471. + exit ;;
  11472. sun4*:SunOS:6*:*)
  11473. # According to config.sub, this is the proper way to canonicalize
  11474. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  11475. # it's likely to be more like Solaris than SunOS4.
  11476. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11477. - exit 0 ;;
  11478. + exit ;;
  11479. sun4*:SunOS:*:*)
  11480. case "`/usr/bin/arch -k`" in
  11481. Series*|S4*)
  11482. @@ -369,10 +363,10 @@
  11483. esac
  11484. # Japanese Language versions have a version number like `4.1.3-JL'.
  11485. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  11486. - exit 0 ;;
  11487. + exit ;;
  11488. sun3*:SunOS:*:*)
  11489. echo m68k-sun-sunos${UNAME_RELEASE}
  11490. - exit 0 ;;
  11491. + exit ;;
  11492. sun*:*:4.2BSD:*)
  11493. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  11494. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  11495. @@ -384,10 +378,10 @@
  11496. echo sparc-sun-sunos${UNAME_RELEASE}
  11497. ;;
  11498. esac
  11499. - exit 0 ;;
  11500. + exit ;;
  11501. aushp:SunOS:*:*)
  11502. echo sparc-auspex-sunos${UNAME_RELEASE}
  11503. - exit 0 ;;
  11504. + exit ;;
  11505. # The situation for MiNT is a little confusing. The machine name
  11506. # can be virtually everything (everything which is not
  11507. # "atarist" or "atariste" at least should have a processor
  11508. @@ -398,40 +392,40 @@
  11509. # be no problem.
  11510. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  11511. echo m68k-atari-mint${UNAME_RELEASE}
  11512. - exit 0 ;;
  11513. + exit ;;
  11514. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  11515. echo m68k-atari-mint${UNAME_RELEASE}
  11516. - exit 0 ;;
  11517. + exit ;;
  11518. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  11519. echo m68k-atari-mint${UNAME_RELEASE}
  11520. - exit 0 ;;
  11521. + exit ;;
  11522. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  11523. echo m68k-milan-mint${UNAME_RELEASE}
  11524. - exit 0 ;;
  11525. + exit ;;
  11526. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  11527. echo m68k-hades-mint${UNAME_RELEASE}
  11528. - exit 0 ;;
  11529. + exit ;;
  11530. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  11531. echo m68k-unknown-mint${UNAME_RELEASE}
  11532. - exit 0 ;;
  11533. + exit ;;
  11534. m68k:machten:*:*)
  11535. echo m68k-apple-machten${UNAME_RELEASE}
  11536. - exit 0 ;;
  11537. + exit ;;
  11538. powerpc:machten:*:*)
  11539. echo powerpc-apple-machten${UNAME_RELEASE}
  11540. - exit 0 ;;
  11541. + exit ;;
  11542. RISC*:Mach:*:*)
  11543. echo mips-dec-mach_bsd4.3
  11544. - exit 0 ;;
  11545. + exit ;;
  11546. RISC*:ULTRIX:*:*)
  11547. echo mips-dec-ultrix${UNAME_RELEASE}
  11548. - exit 0 ;;
  11549. + exit ;;
  11550. VAX*:ULTRIX*:*:*)
  11551. echo vax-dec-ultrix${UNAME_RELEASE}
  11552. - exit 0 ;;
  11553. + exit ;;
  11554. 2020:CLIX:*:* | 2430:CLIX:*:*)
  11555. echo clipper-intergraph-clix${UNAME_RELEASE}
  11556. - exit 0 ;;
  11557. + exit ;;
  11558. mips:*:*:UMIPS | mips:*:*:RISCos)
  11559. eval $set_cc_for_build
  11560. sed 's/^ //' << EOF >$dummy.c
  11561. @@ -455,32 +449,33 @@
  11562. exit (-1);
  11563. }
  11564. EOF
  11565. - $CC_FOR_BUILD -o $dummy $dummy.c \
  11566. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  11567. - && exit 0
  11568. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  11569. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  11570. + SYSTEM_NAME=`$dummy $dummyarg` &&
  11571. + { echo "$SYSTEM_NAME"; exit; }
  11572. echo mips-mips-riscos${UNAME_RELEASE}
  11573. - exit 0 ;;
  11574. + exit ;;
  11575. Motorola:PowerMAX_OS:*:*)
  11576. echo powerpc-motorola-powermax
  11577. - exit 0 ;;
  11578. + exit ;;
  11579. Motorola:*:4.3:PL8-*)
  11580. echo powerpc-harris-powermax
  11581. - exit 0 ;;
  11582. + exit ;;
  11583. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  11584. echo powerpc-harris-powermax
  11585. - exit 0 ;;
  11586. + exit ;;
  11587. Night_Hawk:Power_UNIX:*:*)
  11588. echo powerpc-harris-powerunix
  11589. - exit 0 ;;
  11590. + exit ;;
  11591. m88k:CX/UX:7*:*)
  11592. echo m88k-harris-cxux7
  11593. - exit 0 ;;
  11594. + exit ;;
  11595. m88k:*:4*:R4*)
  11596. echo m88k-motorola-sysv4
  11597. - exit 0 ;;
  11598. + exit ;;
  11599. m88k:*:3*:R3*)
  11600. echo m88k-motorola-sysv3
  11601. - exit 0 ;;
  11602. + exit ;;
  11603. AViiON:dgux:*:*)
  11604. # DG/UX returns AViiON for all architectures
  11605. UNAME_PROCESSOR=`/usr/bin/uname -p`
  11606. @@ -496,29 +491,29 @@
  11607. else
  11608. echo i586-dg-dgux${UNAME_RELEASE}
  11609. fi
  11610. - exit 0 ;;
  11611. + exit ;;
  11612. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  11613. echo m88k-dolphin-sysv3
  11614. - exit 0 ;;
  11615. + exit ;;
  11616. M88*:*:R3*:*)
  11617. # Delta 88k system running SVR3
  11618. echo m88k-motorola-sysv3
  11619. - exit 0 ;;
  11620. + exit ;;
  11621. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  11622. echo m88k-tektronix-sysv3
  11623. - exit 0 ;;
  11624. + exit ;;
  11625. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  11626. echo m68k-tektronix-bsd
  11627. - exit 0 ;;
  11628. + exit ;;
  11629. *:IRIX*:*:*)
  11630. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  11631. - exit 0 ;;
  11632. + exit ;;
  11633. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  11634. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  11635. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  11636. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  11637. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  11638. i*86:AIX:*:*)
  11639. echo i386-ibm-aix
  11640. - exit 0 ;;
  11641. + exit ;;
  11642. ia64:AIX:*:*)
  11643. if [ -x /usr/bin/oslevel ] ; then
  11644. IBM_REV=`/usr/bin/oslevel`
  11645. @@ -526,7 +521,7 @@
  11646. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  11647. fi
  11648. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  11649. - exit 0 ;;
  11650. + exit ;;
  11651. *:AIX:2:3)
  11652. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  11653. eval $set_cc_for_build
  11654. @@ -541,15 +536,19 @@
  11655. exit(0);
  11656. }
  11657. EOF
  11658. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  11659. - echo rs6000-ibm-aix3.2.5
  11660. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  11661. + then
  11662. + echo "$SYSTEM_NAME"
  11663. + else
  11664. + echo rs6000-ibm-aix3.2.5
  11665. + fi
  11666. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  11667. echo rs6000-ibm-aix3.2.4
  11668. else
  11669. echo rs6000-ibm-aix3.2
  11670. fi
  11671. - exit 0 ;;
  11672. - *:AIX:*:[45])
  11673. + exit ;;
  11674. + *:AIX:*:[456])
  11675. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  11676. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  11677. IBM_ARCH=rs6000
  11678. @@ -562,28 +561,28 @@
  11679. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  11680. fi
  11681. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  11682. - exit 0 ;;
  11683. + exit ;;
  11684. *:AIX:*:*)
  11685. echo rs6000-ibm-aix
  11686. - exit 0 ;;
  11687. + exit ;;
  11688. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  11689. echo romp-ibm-bsd4.4
  11690. - exit 0 ;;
  11691. + exit ;;
  11692. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  11693. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  11694. - exit 0 ;; # report: romp-ibm BSD 4.3
  11695. + exit ;; # report: romp-ibm BSD 4.3
  11696. *:BOSX:*:*)
  11697. echo rs6000-bull-bosx
  11698. - exit 0 ;;
  11699. + exit ;;
  11700. DPX/2?00:B.O.S.:*:*)
  11701. echo m68k-bull-sysv3
  11702. - exit 0 ;;
  11703. + exit ;;
  11704. 9000/[34]??:4.3bsd:1.*:*)
  11705. echo m68k-hp-bsd
  11706. - exit 0 ;;
  11707. + exit ;;
  11708. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  11709. echo m68k-hp-bsd4.4
  11710. - exit 0 ;;
  11711. + exit ;;
  11712. 9000/[34678]??:HP-UX:*:*)
  11713. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  11714. case "${UNAME_MACHINE}" in
  11715. @@ -645,9 +644,19 @@
  11716. esac
  11717. if [ ${HP_ARCH} = "hppa2.0w" ]
  11718. then
  11719. - # avoid double evaluation of $set_cc_for_build
  11720. - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  11721. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  11722. + eval $set_cc_for_build
  11723. +
  11724. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  11725. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  11726. + # generating 64-bit code. GNU and HP use different nomenclature:
  11727. + #
  11728. + # $ CC_FOR_BUILD=cc ./config.guess
  11729. + # => hppa2.0w-hp-hpux11.23
  11730. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  11731. + # => hppa64-hp-hpux11.23
  11732. +
  11733. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  11734. + grep -q __LP64__
  11735. then
  11736. HP_ARCH="hppa2.0w"
  11737. else
  11738. @@ -655,11 +664,11 @@
  11739. fi
  11740. fi
  11741. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  11742. - exit 0 ;;
  11743. + exit ;;
  11744. ia64:HP-UX:*:*)
  11745. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  11746. echo ia64-hp-hpux${HPUX_REV}
  11747. - exit 0 ;;
  11748. + exit ;;
  11749. 3050*:HI-UX:*:*)
  11750. eval $set_cc_for_build
  11751. sed 's/^ //' << EOF >$dummy.c
  11752. @@ -687,196 +696,227 @@
  11753. exit (0);
  11754. }
  11755. EOF
  11756. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  11757. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  11758. + { echo "$SYSTEM_NAME"; exit; }
  11759. echo unknown-hitachi-hiuxwe2
  11760. - exit 0 ;;
  11761. + exit ;;
  11762. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  11763. echo hppa1.1-hp-bsd
  11764. - exit 0 ;;
  11765. + exit ;;
  11766. 9000/8??:4.3bsd:*:*)
  11767. echo hppa1.0-hp-bsd
  11768. - exit 0 ;;
  11769. + exit ;;
  11770. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  11771. echo hppa1.0-hp-mpeix
  11772. - exit 0 ;;
  11773. + exit ;;
  11774. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  11775. echo hppa1.1-hp-osf
  11776. - exit 0 ;;
  11777. + exit ;;
  11778. hp8??:OSF1:*:*)
  11779. echo hppa1.0-hp-osf
  11780. - exit 0 ;;
  11781. + exit ;;
  11782. i*86:OSF1:*:*)
  11783. if [ -x /usr/sbin/sysversion ] ; then
  11784. echo ${UNAME_MACHINE}-unknown-osf1mk
  11785. else
  11786. echo ${UNAME_MACHINE}-unknown-osf1
  11787. fi
  11788. - exit 0 ;;
  11789. + exit ;;
  11790. parisc*:Lites*:*:*)
  11791. echo hppa1.1-hp-lites
  11792. - exit 0 ;;
  11793. + exit ;;
  11794. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  11795. echo c1-convex-bsd
  11796. - exit 0 ;;
  11797. + exit ;;
  11798. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  11799. if getsysinfo -f scalar_acc
  11800. then echo c32-convex-bsd
  11801. else echo c2-convex-bsd
  11802. fi
  11803. - exit 0 ;;
  11804. + exit ;;
  11805. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  11806. echo c34-convex-bsd
  11807. - exit 0 ;;
  11808. + exit ;;
  11809. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  11810. echo c38-convex-bsd
  11811. - exit 0 ;;
  11812. + exit ;;
  11813. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  11814. echo c4-convex-bsd
  11815. - exit 0 ;;
  11816. + exit ;;
  11817. CRAY*Y-MP:*:*:*)
  11818. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  11819. - exit 0 ;;
  11820. + exit ;;
  11821. CRAY*[A-Z]90:*:*:*)
  11822. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  11823. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  11824. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  11825. -e 's/\.[^.]*$/.X/'
  11826. - exit 0 ;;
  11827. + exit ;;
  11828. CRAY*TS:*:*:*)
  11829. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  11830. - exit 0 ;;
  11831. + exit ;;
  11832. CRAY*T3E:*:*:*)
  11833. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  11834. - exit 0 ;;
  11835. + exit ;;
  11836. CRAY*SV1:*:*:*)
  11837. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  11838. - exit 0 ;;
  11839. + exit ;;
  11840. *:UNICOS/mp:*:*)
  11841. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  11842. - exit 0 ;;
  11843. + exit ;;
  11844. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  11845. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  11846. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  11847. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  11848. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  11849. - exit 0 ;;
  11850. + exit ;;
  11851. 5000:UNIX_System_V:4.*:*)
  11852. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  11853. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  11854. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  11855. - exit 0 ;;
  11856. + exit ;;
  11857. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  11858. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  11859. - exit 0 ;;
  11860. + exit ;;
  11861. sparc*:BSD/OS:*:*)
  11862. echo sparc-unknown-bsdi${UNAME_RELEASE}
  11863. - exit 0 ;;
  11864. + exit ;;
  11865. *:BSD/OS:*:*)
  11866. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  11867. - exit 0 ;;
  11868. + exit ;;
  11869. *:FreeBSD:*:*)
  11870. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  11871. - exit 0 ;;
  11872. + case ${UNAME_MACHINE} in
  11873. + pc98)
  11874. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  11875. + amd64)
  11876. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  11877. + *)
  11878. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  11879. + esac
  11880. + exit ;;
  11881. i*:CYGWIN*:*)
  11882. echo ${UNAME_MACHINE}-pc-cygwin
  11883. - exit 0 ;;
  11884. - i*:MINGW*:*)
  11885. + exit ;;
  11886. + *:MINGW*:*)
  11887. echo ${UNAME_MACHINE}-pc-mingw32
  11888. - exit 0 ;;
  11889. + exit ;;
  11890. + i*:windows32*:*)
  11891. + # uname -m includes "-pc" on this system.
  11892. + echo ${UNAME_MACHINE}-mingw32
  11893. + exit ;;
  11894. i*:PW*:*)
  11895. echo ${UNAME_MACHINE}-pc-pw32
  11896. - exit 0 ;;
  11897. - x86:Interix*:[34]*)
  11898. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  11899. - exit 0 ;;
  11900. + exit ;;
  11901. + *:Interix*:[3456]*)
  11902. + case ${UNAME_MACHINE} in
  11903. + x86)
  11904. + echo i586-pc-interix${UNAME_RELEASE}
  11905. + exit ;;
  11906. + EM64T | authenticamd | genuineintel)
  11907. + echo x86_64-unknown-interix${UNAME_RELEASE}
  11908. + exit ;;
  11909. + IA64)
  11910. + echo ia64-unknown-interix${UNAME_RELEASE}
  11911. + exit ;;
  11912. + esac ;;
  11913. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  11914. echo i${UNAME_MACHINE}-pc-mks
  11915. - exit 0 ;;
  11916. + exit ;;
  11917. + 8664:Windows_NT:*)
  11918. + echo x86_64-pc-mks
  11919. + exit ;;
  11920. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  11921. # How do we know it's Interix rather than the generic POSIX subsystem?
  11922. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  11923. # UNAME_MACHINE based on the output of uname instead of i386?
  11924. echo i586-pc-interix
  11925. - exit 0 ;;
  11926. + exit ;;
  11927. i*:UWIN*:*)
  11928. echo ${UNAME_MACHINE}-pc-uwin
  11929. - exit 0 ;;
  11930. + exit ;;
  11931. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  11932. + echo x86_64-unknown-cygwin
  11933. + exit ;;
  11934. p*:CYGWIN*:*)
  11935. echo powerpcle-unknown-cygwin
  11936. - exit 0 ;;
  11937. + exit ;;
  11938. prep*:SunOS:5.*:*)
  11939. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11940. - exit 0 ;;
  11941. + exit ;;
  11942. *:GNU:*:*)
  11943. # the GNU system
  11944. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  11945. - exit 0 ;;
  11946. + exit ;;
  11947. *:GNU/*:*:*)
  11948. # other systems with GNU libc and userland
  11949. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  11950. - exit 0 ;;
  11951. + exit ;;
  11952. i*86:Minix:*:*)
  11953. echo ${UNAME_MACHINE}-pc-minix
  11954. - exit 0 ;;
  11955. + exit ;;
  11956. arm*:Linux:*:*)
  11957. + eval $set_cc_for_build
  11958. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11959. + | grep -q __ARM_EABI__
  11960. + then
  11961. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  11962. + else
  11963. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  11964. + fi
  11965. + exit ;;
  11966. + avr32*:Linux:*:*)
  11967. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11968. - exit 0 ;;
  11969. + exit ;;
  11970. cris:Linux:*:*)
  11971. echo cris-axis-linux-gnu
  11972. - exit 0 ;;
  11973. + exit ;;
  11974. + crisv32:Linux:*:*)
  11975. + echo crisv32-axis-linux-gnu
  11976. + exit ;;
  11977. + frv:Linux:*:*)
  11978. + echo frv-unknown-linux-gnu
  11979. + exit ;;
  11980. ia64:Linux:*:*)
  11981. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11982. - exit 0 ;;
  11983. + exit ;;
  11984. m32r*:Linux:*:*)
  11985. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11986. - exit 0 ;;
  11987. + exit ;;
  11988. m68*:Linux:*:*)
  11989. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11990. - exit 0 ;;
  11991. - mips:Linux:*:*)
  11992. + exit ;;
  11993. + mips:Linux:*:* | mips64:Linux:*:*)
  11994. eval $set_cc_for_build
  11995. sed 's/^ //' << EOF >$dummy.c
  11996. #undef CPU
  11997. - #undef mips
  11998. - #undef mipsel
  11999. + #undef ${UNAME_MACHINE}
  12000. + #undef ${UNAME_MACHINE}el
  12001. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  12002. - CPU=mipsel
  12003. + CPU=${UNAME_MACHINE}el
  12004. #else
  12005. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  12006. - CPU=mips
  12007. + CPU=${UNAME_MACHINE}
  12008. #else
  12009. CPU=
  12010. #endif
  12011. #endif
  12012. EOF
  12013. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  12014. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  12015. - ;;
  12016. - mips64:Linux:*:*)
  12017. - eval $set_cc_for_build
  12018. - sed 's/^ //' << EOF >$dummy.c
  12019. - #undef CPU
  12020. - #undef mips64
  12021. - #undef mips64el
  12022. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  12023. - CPU=mips64el
  12024. - #else
  12025. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  12026. - CPU=mips64
  12027. - #else
  12028. - CPU=
  12029. - #endif
  12030. - #endif
  12031. -EOF
  12032. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  12033. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  12034. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  12035. + /^CPU/{
  12036. + s: ::g
  12037. + p
  12038. + }'`"
  12039. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  12040. ;;
  12041. + or32:Linux:*:*)
  12042. + echo or32-unknown-linux-gnu
  12043. + exit ;;
  12044. ppc:Linux:*:*)
  12045. echo powerpc-unknown-linux-gnu
  12046. - exit 0 ;;
  12047. + exit ;;
  12048. ppc64:Linux:*:*)
  12049. echo powerpc64-unknown-linux-gnu
  12050. - exit 0 ;;
  12051. + exit ;;
  12052. alpha:Linux:*:*)
  12053. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  12054. EV5) UNAME_MACHINE=alphaev5 ;;
  12055. @@ -887,10 +927,13 @@
  12056. EV67) UNAME_MACHINE=alphaev67 ;;
  12057. EV68*) UNAME_MACHINE=alphaev68 ;;
  12058. esac
  12059. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  12060. + objdump --private-headers /bin/sh | grep -q ld.so.1
  12061. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  12062. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  12063. - exit 0 ;;
  12064. + exit ;;
  12065. + padre:Linux:*:*)
  12066. + echo sparc-unknown-linux-gnu
  12067. + exit ;;
  12068. parisc:Linux:*:* | hppa:Linux:*:*)
  12069. # Look for CPU level
  12070. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  12071. @@ -898,25 +941,31 @@
  12072. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  12073. *) echo hppa-unknown-linux-gnu ;;
  12074. esac
  12075. - exit 0 ;;
  12076. + exit ;;
  12077. parisc64:Linux:*:* | hppa64:Linux:*:*)
  12078. echo hppa64-unknown-linux-gnu
  12079. - exit 0 ;;
  12080. + exit ;;
  12081. s390:Linux:*:* | s390x:Linux:*:*)
  12082. echo ${UNAME_MACHINE}-ibm-linux
  12083. - exit 0 ;;
  12084. + exit ;;
  12085. sh64*:Linux:*:*)
  12086. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12087. - exit 0 ;;
  12088. + exit ;;
  12089. sh*:Linux:*:*)
  12090. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12091. - exit 0 ;;
  12092. + exit ;;
  12093. sparc:Linux:*:* | sparc64:Linux:*:*)
  12094. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12095. - exit 0 ;;
  12096. + exit ;;
  12097. + vax:Linux:*:*)
  12098. + echo ${UNAME_MACHINE}-dec-linux-gnu
  12099. + exit ;;
  12100. x86_64:Linux:*:*)
  12101. echo x86_64-unknown-linux-gnu
  12102. - exit 0 ;;
  12103. + exit ;;
  12104. + xtensa*:Linux:*:*)
  12105. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  12106. + exit ;;
  12107. i*86:Linux:*:*)
  12108. # The BFD linker knows what the default object file format is, so
  12109. # first see if it will tell us. cd to the root directory to prevent
  12110. @@ -932,17 +981,6 @@
  12111. elf32-i386)
  12112. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  12113. ;;
  12114. - a.out-i386-linux)
  12115. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  12116. - exit 0 ;;
  12117. - coff-i386)
  12118. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  12119. - exit 0 ;;
  12120. - "")
  12121. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  12122. - # one that does not give us useful --help.
  12123. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  12124. - exit 0 ;;
  12125. esac
  12126. # Determine whether the default compiler is a.out or elf
  12127. eval $set_cc_for_build
  12128. @@ -959,7 +997,7 @@
  12129. LIBC=gnulibc1
  12130. # endif
  12131. #else
  12132. - #ifdef __INTEL_COMPILER
  12133. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  12134. LIBC=gnu
  12135. #else
  12136. LIBC=gnuaout
  12137. @@ -969,16 +1007,23 @@
  12138. LIBC=dietlibc
  12139. #endif
  12140. EOF
  12141. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  12142. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  12143. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  12144. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  12145. + /^LIBC/{
  12146. + s: ::g
  12147. + p
  12148. + }'`"
  12149. + test x"${LIBC}" != x && {
  12150. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  12151. + exit
  12152. + }
  12153. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  12154. ;;
  12155. i*86:DYNIX/ptx:4*:*)
  12156. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  12157. # earlier versions are messed up and put the nodename in both
  12158. # sysname and nodename.
  12159. echo i386-sequent-sysv4
  12160. - exit 0 ;;
  12161. + exit ;;
  12162. i*86:UNIX_SV:4.2MP:2.*)
  12163. # Unixware is an offshoot of SVR4, but it has its own version
  12164. # number series starting with 2...
  12165. @@ -986,27 +1031,27 @@
  12166. # I just have to hope. -- rms.
  12167. # Use sysv4.2uw... so that sysv4* matches it.
  12168. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  12169. - exit 0 ;;
  12170. + exit ;;
  12171. i*86:OS/2:*:*)
  12172. # If we were able to find `uname', then EMX Unix compatibility
  12173. # is probably installed.
  12174. echo ${UNAME_MACHINE}-pc-os2-emx
  12175. - exit 0 ;;
  12176. + exit ;;
  12177. i*86:XTS-300:*:STOP)
  12178. echo ${UNAME_MACHINE}-unknown-stop
  12179. - exit 0 ;;
  12180. + exit ;;
  12181. i*86:atheos:*:*)
  12182. echo ${UNAME_MACHINE}-unknown-atheos
  12183. - exit 0 ;;
  12184. - i*86:syllable:*:*)
  12185. + exit ;;
  12186. + i*86:syllable:*:*)
  12187. echo ${UNAME_MACHINE}-pc-syllable
  12188. - exit 0 ;;
  12189. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  12190. + exit ;;
  12191. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  12192. echo i386-unknown-lynxos${UNAME_RELEASE}
  12193. - exit 0 ;;
  12194. + exit ;;
  12195. i*86:*DOS:*:*)
  12196. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  12197. - exit 0 ;;
  12198. + exit ;;
  12199. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  12200. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  12201. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  12202. @@ -1014,15 +1059,16 @@
  12203. else
  12204. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  12205. fi
  12206. - exit 0 ;;
  12207. - i*86:*:5:[78]*)
  12208. + exit ;;
  12209. + i*86:*:5:[678]*)
  12210. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  12211. case `/bin/uname -X | grep "^Machine"` in
  12212. *486*) UNAME_MACHINE=i486 ;;
  12213. *Pentium) UNAME_MACHINE=i586 ;;
  12214. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  12215. esac
  12216. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  12217. - exit 0 ;;
  12218. + exit ;;
  12219. i*86:*:3.2:*)
  12220. if test -f /usr/options/cb.name; then
  12221. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  12222. @@ -1040,73 +1086,86 @@
  12223. else
  12224. echo ${UNAME_MACHINE}-pc-sysv32
  12225. fi
  12226. - exit 0 ;;
  12227. + exit ;;
  12228. pc:*:*:*)
  12229. # Left here for compatibility:
  12230. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  12231. - # the processor, so we play safe by assuming i386.
  12232. - echo i386-pc-msdosdjgpp
  12233. - exit 0 ;;
  12234. + # the processor, so we play safe by assuming i586.
  12235. + # Note: whatever this is, it MUST be the same as what config.sub
  12236. + # prints for the "djgpp" host, or else GDB configury will decide that
  12237. + # this is a cross-build.
  12238. + echo i586-pc-msdosdjgpp
  12239. + exit ;;
  12240. Intel:Mach:3*:*)
  12241. echo i386-pc-mach3
  12242. - exit 0 ;;
  12243. + exit ;;
  12244. paragon:*:*:*)
  12245. echo i860-intel-osf1
  12246. - exit 0 ;;
  12247. + exit ;;
  12248. i860:*:4.*:*) # i860-SVR4
  12249. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  12250. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  12251. else # Add other i860-SVR4 vendors below as they are discovered.
  12252. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  12253. fi
  12254. - exit 0 ;;
  12255. + exit ;;
  12256. mini*:CTIX:SYS*5:*)
  12257. # "miniframe"
  12258. echo m68010-convergent-sysv
  12259. - exit 0 ;;
  12260. + exit ;;
  12261. mc68k:UNIX:SYSTEM5:3.51m)
  12262. echo m68k-convergent-sysv
  12263. - exit 0 ;;
  12264. + exit ;;
  12265. M680?0:D-NIX:5.3:*)
  12266. echo m68k-diab-dnix
  12267. - exit 0 ;;
  12268. + exit ;;
  12269. M68*:*:R3V[5678]*:*)
  12270. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  12271. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  12272. 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)
  12273. OS_REL=''
  12274. test -r /etc/.relid \
  12275. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  12276. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12277. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  12278. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  12279. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  12280. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  12281. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  12282. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  12283. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12284. - && echo i486-ncr-sysv4 && exit 0 ;;
  12285. + && { echo i486-ncr-sysv4; exit; } ;;
  12286. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  12287. + OS_REL='.3'
  12288. + test -r /etc/.relid \
  12289. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  12290. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12291. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  12292. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  12293. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  12294. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  12295. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  12296. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  12297. echo m68k-unknown-lynxos${UNAME_RELEASE}
  12298. - exit 0 ;;
  12299. + exit ;;
  12300. mc68030:UNIX_System_V:4.*:*)
  12301. echo m68k-atari-sysv4
  12302. - exit 0 ;;
  12303. + exit ;;
  12304. TSUNAMI:LynxOS:2.*:*)
  12305. echo sparc-unknown-lynxos${UNAME_RELEASE}
  12306. - exit 0 ;;
  12307. + exit ;;
  12308. rs6000:LynxOS:2.*:*)
  12309. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  12310. - exit 0 ;;
  12311. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  12312. + exit ;;
  12313. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  12314. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  12315. - exit 0 ;;
  12316. + exit ;;
  12317. SM[BE]S:UNIX_SV:*:*)
  12318. echo mips-dde-sysv${UNAME_RELEASE}
  12319. - exit 0 ;;
  12320. + exit ;;
  12321. RM*:ReliantUNIX-*:*:*)
  12322. echo mips-sni-sysv4
  12323. - exit 0 ;;
  12324. + exit ;;
  12325. RM*:SINIX-*:*:*)
  12326. echo mips-sni-sysv4
  12327. - exit 0 ;;
  12328. + exit ;;
  12329. *:SINIX-*:*:*)
  12330. if uname -p 2>/dev/null >/dev/null ; then
  12331. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  12332. @@ -1114,69 +1173,84 @@
  12333. else
  12334. echo ns32k-sni-sysv
  12335. fi
  12336. - exit 0 ;;
  12337. + exit ;;
  12338. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  12339. # says <Richard.M.Bartel@ccMail.Census.GOV>
  12340. echo i586-unisys-sysv4
  12341. - exit 0 ;;
  12342. + exit ;;
  12343. *:UNIX_System_V:4*:FTX*)
  12344. # From Gerald Hewes <hewes@openmarket.com>.
  12345. # How about differentiating between stratus architectures? -djm
  12346. echo hppa1.1-stratus-sysv4
  12347. - exit 0 ;;
  12348. + exit ;;
  12349. *:*:*:FTX*)
  12350. # From seanf@swdc.stratus.com.
  12351. echo i860-stratus-sysv4
  12352. - exit 0 ;;
  12353. + exit ;;
  12354. + i*86:VOS:*:*)
  12355. + # From Paul.Green@stratus.com.
  12356. + echo ${UNAME_MACHINE}-stratus-vos
  12357. + exit ;;
  12358. *:VOS:*:*)
  12359. # From Paul.Green@stratus.com.
  12360. echo hppa1.1-stratus-vos
  12361. - exit 0 ;;
  12362. + exit ;;
  12363. mc68*:A/UX:*:*)
  12364. echo m68k-apple-aux${UNAME_RELEASE}
  12365. - exit 0 ;;
  12366. + exit ;;
  12367. news*:NEWS-OS:6*:*)
  12368. echo mips-sony-newsos6
  12369. - exit 0 ;;
  12370. + exit ;;
  12371. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  12372. if [ -d /usr/nec ]; then
  12373. echo mips-nec-sysv${UNAME_RELEASE}
  12374. else
  12375. echo mips-unknown-sysv${UNAME_RELEASE}
  12376. fi
  12377. - exit 0 ;;
  12378. + exit ;;
  12379. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  12380. echo powerpc-be-beos
  12381. - exit 0 ;;
  12382. + exit ;;
  12383. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  12384. echo powerpc-apple-beos
  12385. - exit 0 ;;
  12386. + exit ;;
  12387. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  12388. echo i586-pc-beos
  12389. - exit 0 ;;
  12390. + exit ;;
  12391. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  12392. + echo i586-pc-haiku
  12393. + exit ;;
  12394. SX-4:SUPER-UX:*:*)
  12395. echo sx4-nec-superux${UNAME_RELEASE}
  12396. - exit 0 ;;
  12397. + exit ;;
  12398. SX-5:SUPER-UX:*:*)
  12399. echo sx5-nec-superux${UNAME_RELEASE}
  12400. - exit 0 ;;
  12401. + exit ;;
  12402. SX-6:SUPER-UX:*:*)
  12403. echo sx6-nec-superux${UNAME_RELEASE}
  12404. - exit 0 ;;
  12405. + exit ;;
  12406. + SX-7:SUPER-UX:*:*)
  12407. + echo sx7-nec-superux${UNAME_RELEASE}
  12408. + exit ;;
  12409. + SX-8:SUPER-UX:*:*)
  12410. + echo sx8-nec-superux${UNAME_RELEASE}
  12411. + exit ;;
  12412. + SX-8R:SUPER-UX:*:*)
  12413. + echo sx8r-nec-superux${UNAME_RELEASE}
  12414. + exit ;;
  12415. Power*:Rhapsody:*:*)
  12416. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  12417. - exit 0 ;;
  12418. + exit ;;
  12419. *:Rhapsody:*:*)
  12420. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  12421. - exit 0 ;;
  12422. + exit ;;
  12423. *:Darwin:*:*)
  12424. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  12425. case $UNAME_PROCESSOR in
  12426. - *86) UNAME_PROCESSOR=i686 ;;
  12427. unknown) UNAME_PROCESSOR=powerpc ;;
  12428. esac
  12429. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  12430. - exit 0 ;;
  12431. + exit ;;
  12432. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  12433. UNAME_PROCESSOR=`uname -p`
  12434. if test "$UNAME_PROCESSOR" = "x86"; then
  12435. @@ -1184,22 +1258,25 @@
  12436. UNAME_MACHINE=pc
  12437. fi
  12438. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  12439. - exit 0 ;;
  12440. + exit ;;
  12441. *:QNX:*:4*)
  12442. echo i386-pc-qnx
  12443. - exit 0 ;;
  12444. + exit ;;
  12445. + NSE-?:NONSTOP_KERNEL:*:*)
  12446. + echo nse-tandem-nsk${UNAME_RELEASE}
  12447. + exit ;;
  12448. NSR-?:NONSTOP_KERNEL:*:*)
  12449. echo nsr-tandem-nsk${UNAME_RELEASE}
  12450. - exit 0 ;;
  12451. + exit ;;
  12452. *:NonStop-UX:*:*)
  12453. echo mips-compaq-nonstopux
  12454. - exit 0 ;;
  12455. + exit ;;
  12456. BS2000:POSIX*:*:*)
  12457. echo bs2000-siemens-sysv
  12458. - exit 0 ;;
  12459. + exit ;;
  12460. DS/*:UNIX_System_V:*:*)
  12461. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  12462. - exit 0 ;;
  12463. + exit ;;
  12464. *:Plan9:*:*)
  12465. # "uname -m" is not consistent, so use $cputype instead. 386
  12466. # is converted to i386 for consistency with other x86
  12467. @@ -1210,38 +1287,50 @@
  12468. UNAME_MACHINE="$cputype"
  12469. fi
  12470. echo ${UNAME_MACHINE}-unknown-plan9
  12471. - exit 0 ;;
  12472. + exit ;;
  12473. *:TOPS-10:*:*)
  12474. echo pdp10-unknown-tops10
  12475. - exit 0 ;;
  12476. + exit ;;
  12477. *:TENEX:*:*)
  12478. echo pdp10-unknown-tenex
  12479. - exit 0 ;;
  12480. + exit ;;
  12481. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  12482. echo pdp10-dec-tops20
  12483. - exit 0 ;;
  12484. + exit ;;
  12485. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  12486. echo pdp10-xkl-tops20
  12487. - exit 0 ;;
  12488. + exit ;;
  12489. *:TOPS-20:*:*)
  12490. echo pdp10-unknown-tops20
  12491. - exit 0 ;;
  12492. + exit ;;
  12493. *:ITS:*:*)
  12494. echo pdp10-unknown-its
  12495. - exit 0 ;;
  12496. + exit ;;
  12497. SEI:*:*:SEIUX)
  12498. echo mips-sei-seiux${UNAME_RELEASE}
  12499. - exit 0 ;;
  12500. + exit ;;
  12501. *:DragonFly:*:*)
  12502. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  12503. - exit 0 ;;
  12504. + exit ;;
  12505. *:*VMS:*:*)
  12506. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  12507. case "${UNAME_MACHINE}" in
  12508. - A*) echo alpha-dec-vms && exit 0 ;;
  12509. - I*) echo ia64-dec-vms && exit 0 ;;
  12510. - V*) echo vax-dec-vms && exit 0 ;;
  12511. - esac
  12512. + A*) echo alpha-dec-vms ; exit ;;
  12513. + I*) echo ia64-dec-vms ; exit ;;
  12514. + V*) echo vax-dec-vms ; exit ;;
  12515. + esac ;;
  12516. + *:XENIX:*:SysV)
  12517. + echo i386-pc-xenix
  12518. + exit ;;
  12519. + i*86:skyos:*:*)
  12520. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  12521. + exit ;;
  12522. + i*86:rdos:*:*)
  12523. + echo ${UNAME_MACHINE}-pc-rdos
  12524. + exit ;;
  12525. + i*86:AROS:*:*)
  12526. + echo ${UNAME_MACHINE}-pc-aros
  12527. + exit ;;
  12528. esac
  12529. #echo '(No uname command or uname output not recognized.)' 1>&2
  12530. @@ -1273,7 +1362,7 @@
  12531. #endif
  12532. #if defined (__arm) && defined (__acorn) && defined (__unix)
  12533. - printf ("arm-acorn-riscix"); exit (0);
  12534. + printf ("arm-acorn-riscix\n"); exit (0);
  12535. #endif
  12536. #if defined (hp300) && !defined (hpux)
  12537. @@ -1362,11 +1451,12 @@
  12538. }
  12539. EOF
  12540. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  12541. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  12542. + { echo "$SYSTEM_NAME"; exit; }
  12543. # Apollos put the system type in the environment.
  12544. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  12545. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  12546. # Convex versions that predate uname can use getsysinfo(1)
  12547. @@ -1375,22 +1465,22 @@
  12548. case `getsysinfo -f cpu_type` in
  12549. c1*)
  12550. echo c1-convex-bsd
  12551. - exit 0 ;;
  12552. + exit ;;
  12553. c2*)
  12554. if getsysinfo -f scalar_acc
  12555. then echo c32-convex-bsd
  12556. else echo c2-convex-bsd
  12557. fi
  12558. - exit 0 ;;
  12559. + exit ;;
  12560. c34*)
  12561. echo c34-convex-bsd
  12562. - exit 0 ;;
  12563. + exit ;;
  12564. c38*)
  12565. echo c38-convex-bsd
  12566. - exit 0 ;;
  12567. + exit ;;
  12568. c4*)
  12569. echo c4-convex-bsd
  12570. - exit 0 ;;
  12571. + exit ;;
  12572. esac
  12573. fi
  12574. @@ -1401,7 +1491,9 @@
  12575. the operating system you are using. It is advised that you
  12576. download the most up to date version of the config scripts from
  12577. - ftp://ftp.gnu.org/pub/gnu/config/
  12578. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  12579. +and
  12580. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  12581. If the version you run ($0) is already up to date, please
  12582. send the following data and any information you think might be
  12583. diff -Nur librpcsecgss-0.19.orig/config.sub librpcsecgss-0.19/config.sub
  12584. --- librpcsecgss-0.19.orig/config.sub 2009-05-13 23:33:08.000000000 +0200
  12585. +++ librpcsecgss-0.19/config.sub 2011-02-17 18:22:25.856052456 +0100
  12586. @@ -1,9 +1,10 @@
  12587. #! /bin/sh
  12588. # Configuration validation subroutine script.
  12589. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  12590. -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  12591. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  12592. +# Free Software Foundation, Inc.
  12593. -timestamp='2004-06-24'
  12594. +timestamp='2009-06-11'
  12595. # This file is (in principle) common to ALL GNU software.
  12596. # The presence of a machine in this file suggests that SOME GNU software
  12597. @@ -21,14 +22,15 @@
  12598. #
  12599. # You should have received a copy of the GNU General Public License
  12600. # along with this program; if not, write to the Free Software
  12601. -# Foundation, Inc., 59 Temple Place - Suite 330,
  12602. -# Boston, MA 02111-1307, USA.
  12603. -
  12604. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  12605. +# 02110-1301, USA.
  12606. +#
  12607. # As a special exception to the GNU General Public License, if you
  12608. # distribute this file as part of a program that contains a
  12609. # configuration script generated by Autoconf, you may include it under
  12610. # the same distribution terms that you use for the rest of that program.
  12611. +
  12612. # Please send patches to <config-patches@gnu.org>. Submit a context
  12613. # diff and a properly formatted ChangeLog entry.
  12614. #
  12615. @@ -70,8 +72,8 @@
  12616. version="\
  12617. GNU config.sub ($timestamp)
  12618. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  12619. -Free Software Foundation, Inc.
  12620. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  12621. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12622. This is free software; see the source for copying conditions. There is NO
  12623. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  12624. @@ -83,11 +85,11 @@
  12625. while test $# -gt 0 ; do
  12626. case $1 in
  12627. --time-stamp | --time* | -t )
  12628. - echo "$timestamp" ; exit 0 ;;
  12629. + echo "$timestamp" ; exit ;;
  12630. --version | -v )
  12631. - echo "$version" ; exit 0 ;;
  12632. + echo "$version" ; exit ;;
  12633. --help | --h* | -h )
  12634. - echo "$usage"; exit 0 ;;
  12635. + echo "$usage"; exit ;;
  12636. -- ) # Stop option processing
  12637. shift; break ;;
  12638. - ) # Use stdin as input.
  12639. @@ -99,7 +101,7 @@
  12640. *local*)
  12641. # First pass through any local machine types.
  12642. echo $1
  12643. - exit 0;;
  12644. + exit ;;
  12645. * )
  12646. break ;;
  12647. @@ -118,8 +120,10 @@
  12648. # Here we must recognize all the valid KERNEL-OS combinations.
  12649. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  12650. case $maybe_os in
  12651. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  12652. - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  12653. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  12654. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  12655. + kopensolaris*-gnu* | \
  12656. + storm-chaos* | os2-emx* | rtmk-nova*)
  12657. os=-$maybe_os
  12658. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  12659. ;;
  12660. @@ -149,6 +153,9 @@
  12661. os=
  12662. basic_machine=$1
  12663. ;;
  12664. + -bluegene*)
  12665. + os=-cnk
  12666. + ;;
  12667. -sim | -cisco | -oki | -wec | -winbond)
  12668. os=
  12669. basic_machine=$1
  12670. @@ -170,6 +177,10 @@
  12671. -hiux*)
  12672. os=-hiuxwe2
  12673. ;;
  12674. + -sco6)
  12675. + os=-sco5v6
  12676. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  12677. + ;;
  12678. -sco5)
  12679. os=-sco3.2v5
  12680. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  12681. @@ -186,6 +197,10 @@
  12682. # Don't forget version if it is 3.2v4 or newer.
  12683. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  12684. ;;
  12685. + -sco5v6*)
  12686. + # Don't forget version if it is 3.2v4 or newer.
  12687. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  12688. + ;;
  12689. -sco*)
  12690. os=-sco3.2v2
  12691. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  12692. @@ -230,22 +245,28 @@
  12693. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  12694. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  12695. | am33_2.0 \
  12696. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  12697. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  12698. + | bfin \
  12699. | c4x | clipper \
  12700. | d10v | d30v | dlx | dsp16xx \
  12701. - | fr30 | frv \
  12702. + | fido | fr30 | frv \
  12703. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  12704. | i370 | i860 | i960 | ia64 \
  12705. | ip2k | iq2000 \
  12706. - | m32r | m32rle | m68000 | m68k | m88k | mcore \
  12707. + | lm32 \
  12708. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  12709. + | maxq | mb | microblaze | mcore | mep | metag \
  12710. | mips | mipsbe | mipseb | mipsel | mipsle \
  12711. | mips16 \
  12712. | mips64 | mips64el \
  12713. - | mips64vr | mips64vrel \
  12714. + | mips64octeon | mips64octeonel \
  12715. | mips64orion | mips64orionel \
  12716. + | mips64r5900 | mips64r5900el \
  12717. + | mips64vr | mips64vrel \
  12718. | mips64vr4100 | mips64vr4100el \
  12719. | mips64vr4300 | mips64vr4300el \
  12720. | mips64vr5000 | mips64vr5000el \
  12721. + | mips64vr5900 | mips64vr5900el \
  12722. | mipsisa32 | mipsisa32el \
  12723. | mipsisa32r2 | mipsisa32r2el \
  12724. | mipsisa64 | mipsisa64el \
  12725. @@ -254,21 +275,26 @@
  12726. | mipsisa64sr71k | mipsisa64sr71kel \
  12727. | mipstx39 | mipstx39el \
  12728. | mn10200 | mn10300 \
  12729. + | moxie \
  12730. + | mt \
  12731. | msp430 \
  12732. + | nios | nios2 \
  12733. | ns16k | ns32k \
  12734. - | openrisc | or32 \
  12735. + | or32 \
  12736. | pdp10 | pdp11 | pj | pjl \
  12737. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  12738. | pyramid \
  12739. - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  12740. + | score \
  12741. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  12742. | sh64 | sh64le \
  12743. - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
  12744. - | strongarm \
  12745. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  12746. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  12747. + | spu | strongarm \
  12748. | tahoe | thumb | tic4x | tic80 | tron \
  12749. | v850 | v850e \
  12750. | we32k \
  12751. - | x86 | xscale | xstormy16 | xtensa \
  12752. - | z8k)
  12753. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  12754. + | z8k | z80)
  12755. basic_machine=$basic_machine-unknown
  12756. ;;
  12757. m6811 | m68hc11 | m6812 | m68hc12)
  12758. @@ -278,6 +304,9 @@
  12759. ;;
  12760. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  12761. ;;
  12762. + ms1)
  12763. + basic_machine=mt-unknown
  12764. + ;;
  12765. # We use `pc' rather than `unknown'
  12766. # because (1) that's what they normally are, and
  12767. @@ -297,28 +326,32 @@
  12768. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  12769. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  12770. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  12771. - | avr-* \
  12772. - | bs2000-* \
  12773. + | avr-* | avr32-* \
  12774. + | bfin-* | bs2000-* \
  12775. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  12776. | clipper-* | craynv-* | cydra-* \
  12777. | d10v-* | d30v-* | dlx-* \
  12778. | elxsi-* \
  12779. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  12780. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  12781. | h8300-* | h8500-* \
  12782. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  12783. | i*86-* | i860-* | i960-* | ia64-* \
  12784. | ip2k-* | iq2000-* \
  12785. - | m32r-* | m32rle-* \
  12786. + | lm32-* \
  12787. + | m32c-* | m32r-* | m32rle-* \
  12788. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  12789. - | m88110-* | m88k-* | mcore-* \
  12790. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  12791. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  12792. | mips16-* \
  12793. | mips64-* | mips64el-* \
  12794. - | mips64vr-* | mips64vrel-* \
  12795. + | mips64octeon-* | mips64octeonel-* \
  12796. | mips64orion-* | mips64orionel-* \
  12797. + | mips64r5900-* | mips64r5900el-* \
  12798. + | mips64vr-* | mips64vrel-* \
  12799. | mips64vr4100-* | mips64vr4100el-* \
  12800. | mips64vr4300-* | mips64vr4300el-* \
  12801. | mips64vr5000-* | mips64vr5000el-* \
  12802. + | mips64vr5900-* | mips64vr5900el-* \
  12803. | mipsisa32-* | mipsisa32el-* \
  12804. | mipsisa32r2-* | mipsisa32r2el-* \
  12805. | mipsisa64-* | mipsisa64el-* \
  12806. @@ -327,26 +360,33 @@
  12807. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  12808. | mipstx39-* | mipstx39el-* \
  12809. | mmix-* \
  12810. + | mt-* \
  12811. | msp430-* \
  12812. + | nios-* | nios2-* \
  12813. | none-* | np1-* | ns16k-* | ns32k-* \
  12814. | orion-* \
  12815. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  12816. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  12817. | pyramid-* \
  12818. | romp-* | rs6000-* \
  12819. - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  12820. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  12821. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  12822. - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  12823. - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  12824. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  12825. + | sparclite-* \
  12826. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  12827. | tahoe-* | thumb-* \
  12828. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  12829. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  12830. | tron-* \
  12831. | v850-* | v850e-* | vax-* \
  12832. | we32k-* \
  12833. - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  12834. - | xtensa-* \
  12835. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  12836. + | xstormy16-* | xtensa*-* \
  12837. | ymp-* \
  12838. - | z8k-*)
  12839. + | z8k-* | z80-*)
  12840. + ;;
  12841. + # Recognize the basic CPU types without company name, with glob match.
  12842. + xtensa*)
  12843. + basic_machine=$basic_machine-unknown
  12844. ;;
  12845. # Recognize the various machine names and aliases which stand
  12846. # for a CPU type and a company and sometimes even an OS.
  12847. @@ -410,6 +450,10 @@
  12848. basic_machine=m68k-apollo
  12849. os=-bsd
  12850. ;;
  12851. + aros)
  12852. + basic_machine=i386-pc
  12853. + os=-aros
  12854. + ;;
  12855. aux)
  12856. basic_machine=m68k-apple
  12857. os=-aux
  12858. @@ -418,10 +462,26 @@
  12859. basic_machine=ns32k-sequent
  12860. os=-dynix
  12861. ;;
  12862. + blackfin)
  12863. + basic_machine=bfin-unknown
  12864. + os=-linux
  12865. + ;;
  12866. + blackfin-*)
  12867. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  12868. + os=-linux
  12869. + ;;
  12870. + bluegene*)
  12871. + basic_machine=powerpc-ibm
  12872. + os=-cnk
  12873. + ;;
  12874. c90)
  12875. basic_machine=c90-cray
  12876. os=-unicos
  12877. ;;
  12878. + cegcc)
  12879. + basic_machine=arm-unknown
  12880. + os=-cegcc
  12881. + ;;
  12882. convex-c1)
  12883. basic_machine=c1-convex
  12884. os=-bsd
  12885. @@ -450,13 +510,16 @@
  12886. basic_machine=craynv-cray
  12887. os=-unicosmp
  12888. ;;
  12889. - cr16c)
  12890. - basic_machine=cr16c-unknown
  12891. + cr16)
  12892. + basic_machine=cr16-unknown
  12893. os=-elf
  12894. ;;
  12895. crds | unos)
  12896. basic_machine=m68k-crds
  12897. ;;
  12898. + crisv32 | crisv32-* | etraxfs*)
  12899. + basic_machine=crisv32-axis
  12900. + ;;
  12901. cris | cris-* | etrax*)
  12902. basic_machine=cris-axis
  12903. ;;
  12904. @@ -486,6 +549,14 @@
  12905. basic_machine=m88k-motorola
  12906. os=-sysv3
  12907. ;;
  12908. + dicos)
  12909. + basic_machine=i686-pc
  12910. + os=-dicos
  12911. + ;;
  12912. + djgpp)
  12913. + basic_machine=i586-pc
  12914. + os=-msdosdjgpp
  12915. + ;;
  12916. dpx20 | dpx20-*)
  12917. basic_machine=rs6000-bull
  12918. os=-bosx
  12919. @@ -636,6 +707,14 @@
  12920. basic_machine=m68k-isi
  12921. os=-sysv
  12922. ;;
  12923. + m68knommu)
  12924. + basic_machine=m68k-unknown
  12925. + os=-linux
  12926. + ;;
  12927. + m68knommu-*)
  12928. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  12929. + os=-linux
  12930. + ;;
  12931. m88k-omron*)
  12932. basic_machine=m88k-omron
  12933. ;;
  12934. @@ -651,6 +730,10 @@
  12935. basic_machine=i386-pc
  12936. os=-mingw32
  12937. ;;
  12938. + mingw32ce)
  12939. + basic_machine=arm-unknown
  12940. + os=-mingw32ce
  12941. + ;;
  12942. miniframe)
  12943. basic_machine=m68000-convergent
  12944. ;;
  12945. @@ -676,6 +759,9 @@
  12946. basic_machine=i386-pc
  12947. os=-msdos
  12948. ;;
  12949. + ms1-*)
  12950. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  12951. + ;;
  12952. mvs)
  12953. basic_machine=i370-ibm
  12954. os=-mvs
  12955. @@ -751,9 +837,8 @@
  12956. basic_machine=hppa1.1-oki
  12957. os=-proelf
  12958. ;;
  12959. - or32 | or32-*)
  12960. + openrisc | openrisc-*)
  12961. basic_machine=or32-unknown
  12962. - os=-coff
  12963. ;;
  12964. os400)
  12965. basic_machine=powerpc-ibm
  12966. @@ -775,6 +860,14 @@
  12967. basic_machine=i860-intel
  12968. os=-osf
  12969. ;;
  12970. + parisc)
  12971. + basic_machine=hppa-unknown
  12972. + os=-linux
  12973. + ;;
  12974. + parisc-*)
  12975. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  12976. + os=-linux
  12977. + ;;
  12978. pbd)
  12979. basic_machine=sparc-tti
  12980. ;;
  12981. @@ -784,6 +877,12 @@
  12982. pc532 | pc532-*)
  12983. basic_machine=ns32k-pc532
  12984. ;;
  12985. + pc98)
  12986. + basic_machine=i386-pc
  12987. + ;;
  12988. + pc98-*)
  12989. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  12990. + ;;
  12991. pentium | p5 | k5 | k6 | nexgen | viac3)
  12992. basic_machine=i586-pc
  12993. ;;
  12994. @@ -840,6 +939,10 @@
  12995. basic_machine=i586-unknown
  12996. os=-pw32
  12997. ;;
  12998. + rdos)
  12999. + basic_machine=i386-pc
  13000. + os=-rdos
  13001. + ;;
  13002. rom68k)
  13003. basic_machine=m68k-rom68k
  13004. os=-coff
  13005. @@ -866,6 +969,10 @@
  13006. sb1el)
  13007. basic_machine=mipsisa64sb1el-unknown
  13008. ;;
  13009. + sde)
  13010. + basic_machine=mipsisa32-sde
  13011. + os=-elf
  13012. + ;;
  13013. sei)
  13014. basic_machine=mips-sei
  13015. os=-seiux
  13016. @@ -877,6 +984,9 @@
  13017. basic_machine=sh-hitachi
  13018. os=-hms
  13019. ;;
  13020. + sh5el)
  13021. + basic_machine=sh5le-unknown
  13022. + ;;
  13023. sh64)
  13024. basic_machine=sh64-unknown
  13025. ;;
  13026. @@ -966,6 +1076,10 @@
  13027. basic_machine=tic6x-unknown
  13028. os=-coff
  13029. ;;
  13030. + tile*)
  13031. + basic_machine=tile-unknown
  13032. + os=-linux-gnu
  13033. + ;;
  13034. tx39)
  13035. basic_machine=mipstx39-unknown
  13036. ;;
  13037. @@ -1026,6 +1140,10 @@
  13038. basic_machine=hppa1.1-winbond
  13039. os=-proelf
  13040. ;;
  13041. + xbox)
  13042. + basic_machine=i686-pc
  13043. + os=-mingw32
  13044. + ;;
  13045. xps | xps100)
  13046. basic_machine=xps100-honeywell
  13047. ;;
  13048. @@ -1037,6 +1155,10 @@
  13049. basic_machine=z8k-unknown
  13050. os=-sim
  13051. ;;
  13052. + z80-*-coff)
  13053. + basic_machine=z80-unknown
  13054. + os=-sim
  13055. + ;;
  13056. none)
  13057. basic_machine=none-none
  13058. os=-none
  13059. @@ -1075,13 +1197,10 @@
  13060. we32k)
  13061. basic_machine=we32k-att
  13062. ;;
  13063. - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  13064. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  13065. basic_machine=sh-unknown
  13066. ;;
  13067. - sh64)
  13068. - basic_machine=sh64-unknown
  13069. - ;;
  13070. - sparc | sparcv8 | sparcv9 | sparcv9b)
  13071. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  13072. basic_machine=sparc-sun
  13073. ;;
  13074. cydra)
  13075. @@ -1148,26 +1267,30 @@
  13076. # Each alternative MUST END IN A *, to match a version number.
  13077. # -sysv* is not here because it comes later, after sysvr4.
  13078. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  13079. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  13080. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  13081. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  13082. + | -kopensolaris* \
  13083. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  13084. - | -aos* \
  13085. + | -aos* | -aros* \
  13086. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  13087. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  13088. - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  13089. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  13090. + | -openbsd* | -solidbsd* \
  13091. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  13092. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  13093. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  13094. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  13095. - | -chorusos* | -chorusrdb* \
  13096. + | -chorusos* | -chorusrdb* | -cegcc* \
  13097. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  13098. - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  13099. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  13100. + | -uxpv* | -beos* | -mpeix* | -udk* \
  13101. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  13102. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  13103. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  13104. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  13105. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  13106. - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  13107. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  13108. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  13109. # Remember, each alternative MUST END IN *, to match a version number.
  13110. ;;
  13111. -qnx*)
  13112. @@ -1185,7 +1308,7 @@
  13113. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  13114. ;;
  13115. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  13116. - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  13117. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  13118. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  13119. ;;
  13120. -mac*)
  13121. @@ -1294,6 +1417,12 @@
  13122. -kaos*)
  13123. os=-kaos
  13124. ;;
  13125. + -zvmoe)
  13126. + os=-zvmoe
  13127. + ;;
  13128. + -dicos*)
  13129. + os=-dicos
  13130. + ;;
  13131. -none)
  13132. ;;
  13133. *)
  13134. @@ -1316,6 +1445,12 @@
  13135. # system, and we'll never get to this point.
  13136. case $basic_machine in
  13137. + score-*)
  13138. + os=-elf
  13139. + ;;
  13140. + spu-*)
  13141. + os=-elf
  13142. + ;;
  13143. *-acorn)
  13144. os=-riscix1.2
  13145. ;;
  13146. @@ -1325,9 +1460,9 @@
  13147. arm*-semi)
  13148. os=-aout
  13149. ;;
  13150. - c4x-* | tic4x-*)
  13151. - os=-coff
  13152. - ;;
  13153. + c4x-* | tic4x-*)
  13154. + os=-coff
  13155. + ;;
  13156. # This must come before the *-dec entry.
  13157. pdp10-*)
  13158. os=-tops20
  13159. @@ -1353,6 +1488,9 @@
  13160. m68*-cisco)
  13161. os=-aout
  13162. ;;
  13163. + mep-*)
  13164. + os=-elf
  13165. + ;;
  13166. mips*-cisco)
  13167. os=-elf
  13168. ;;
  13169. @@ -1371,6 +1509,9 @@
  13170. *-be)
  13171. os=-beos
  13172. ;;
  13173. + *-haiku)
  13174. + os=-haiku
  13175. + ;;
  13176. *-ibm)
  13177. os=-aix
  13178. ;;
  13179. @@ -1479,7 +1620,7 @@
  13180. -sunos*)
  13181. vendor=sun
  13182. ;;
  13183. - -aix*)
  13184. + -cnk*|-aix*)
  13185. vendor=ibm
  13186. ;;
  13187. -beos*)
  13188. @@ -1542,7 +1683,7 @@
  13189. esac
  13190. echo $basic_machine$os
  13191. -exit 0
  13192. +exit
  13193. # Local variables:
  13194. # eval: (add-hook 'write-file-hooks 'time-stamp)
  13195. diff -Nur librpcsecgss-0.19.orig/configure librpcsecgss-0.19/configure
  13196. --- librpcsecgss-0.19.orig/configure 2009-07-29 20:49:16.000000000 +0200
  13197. +++ librpcsecgss-0.19/configure 2011-02-17 18:22:25.333561781 +0100
  13198. @@ -1,20 +1,24 @@
  13199. #! /bin/sh
  13200. # Guess values for system-dependent variables and create Makefiles.
  13201. -# Generated by GNU Autoconf 2.63 for librpcsecgss 0.19.
  13202. +# Generated by GNU Autoconf 2.65 for librpcsecgss 0.19.
  13203. #
  13204. # Report bugs to <nfsv4-wg@citi.umich.edu>.
  13205. #
  13206. +#
  13207. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13208. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13209. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  13210. +# Inc.
  13211. +#
  13212. +#
  13213. # This configure script is free software; the Free Software Foundation
  13214. # gives unlimited permission to copy, distribute and modify it.
  13215. -## --------------------- ##
  13216. -## M4sh Initialization. ##
  13217. -## --------------------- ##
  13218. +## -------------------- ##
  13219. +## M4sh Initialization. ##
  13220. +## -------------------- ##
  13221. # Be more Bourne compatible
  13222. DUALCASE=1; export DUALCASE # for MKS sh
  13223. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13224. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13225. emulate sh
  13226. NULLCMD=:
  13227. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13228. @@ -22,23 +26,15 @@
  13229. alias -g '${1+"$@"}'='"$@"'
  13230. setopt NO_GLOB_SUBST
  13231. else
  13232. - case `(set -o) 2>/dev/null` in
  13233. - *posix*) set -o posix ;;
  13234. + case `(set -o) 2>/dev/null` in #(
  13235. + *posix*) :
  13236. + set -o posix ;; #(
  13237. + *) :
  13238. + ;;
  13239. esac
  13240. -
  13241. fi
  13242. -
  13243. -
  13244. -# PATH needs CR
  13245. -# Avoid depending upon Character Ranges.
  13246. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13247. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13248. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13249. -as_cr_digits='0123456789'
  13250. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  13251. -
  13252. as_nl='
  13253. '
  13254. export as_nl
  13255. @@ -46,7 +42,13 @@
  13256. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13257. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13258. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13259. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13260. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  13261. +# but without wasting forks for bash or zsh.
  13262. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  13263. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13264. + as_echo='print -r --'
  13265. + as_echo_n='print -rn --'
  13266. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13267. as_echo='printf %s\n'
  13268. as_echo_n='printf %s'
  13269. else
  13270. @@ -57,7 +59,7 @@
  13271. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13272. as_echo_n_body='eval
  13273. arg=$1;
  13274. - case $arg in
  13275. + case $arg in #(
  13276. *"$as_nl"*)
  13277. expr "X$arg" : "X\\(.*\\)$as_nl";
  13278. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13279. @@ -80,13 +82,6 @@
  13280. }
  13281. fi
  13282. -# Support unset when possible.
  13283. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  13284. - as_unset=unset
  13285. -else
  13286. - as_unset=false
  13287. -fi
  13288. -
  13289. # IFS
  13290. # We need space, tab and new line, in precisely that order. Quoting is
  13291. @@ -96,15 +91,15 @@
  13292. IFS=" "" $as_nl"
  13293. # Find who we are. Look in the path if we contain no directory separator.
  13294. -case $0 in
  13295. +case $0 in #((
  13296. *[\\/]* ) as_myself=$0 ;;
  13297. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13298. for as_dir in $PATH
  13299. do
  13300. IFS=$as_save_IFS
  13301. test -z "$as_dir" && as_dir=.
  13302. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13303. -done
  13304. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13305. + done
  13306. IFS=$as_save_IFS
  13307. ;;
  13308. @@ -116,12 +111,16 @@
  13309. fi
  13310. if test ! -f "$as_myself"; then
  13311. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13312. - { (exit 1); exit 1; }
  13313. + exit 1
  13314. fi
  13315. -# Work around bugs in pre-3.0 UWIN ksh.
  13316. -for as_var in ENV MAIL MAILPATH
  13317. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  13318. +# Unset variables that we do not need and which cause bugs (e.g. in
  13319. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13320. +# suppresses any "Segmentation fault" message there. '((' could
  13321. +# trigger a bug in pdksh 5.2.14.
  13322. +for as_var in BASH_ENV ENV MAIL MAILPATH
  13323. +do eval test x\${$as_var+set} = xset \
  13324. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13325. done
  13326. PS1='$ '
  13327. PS2='> '
  13328. @@ -133,330 +132,300 @@
  13329. LANGUAGE=C
  13330. export LANGUAGE
  13331. -# Required to use basename.
  13332. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  13333. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13334. - as_expr=expr
  13335. -else
  13336. - as_expr=false
  13337. -fi
  13338. -
  13339. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13340. - as_basename=basename
  13341. -else
  13342. - as_basename=false
  13343. -fi
  13344. -
  13345. -
  13346. -# Name of the executable.
  13347. -as_me=`$as_basename -- "$0" ||
  13348. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13349. - X"$0" : 'X\(//\)$' \| \
  13350. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13351. -$as_echo X/"$0" |
  13352. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  13353. - s//\1/
  13354. - q
  13355. - }
  13356. - /^X\/\(\/\/\)$/{
  13357. - s//\1/
  13358. - q
  13359. - }
  13360. - /^X\/\(\/\).*/{
  13361. - s//\1/
  13362. - q
  13363. - }
  13364. - s/.*/./; q'`
  13365. -
  13366. # CDPATH.
  13367. -$as_unset CDPATH
  13368. -
  13369. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13370. if test "x$CONFIG_SHELL" = x; then
  13371. - if (eval ":") 2>/dev/null; then
  13372. - as_have_required=yes
  13373. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  13374. + emulate sh
  13375. + NULLCMD=:
  13376. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  13377. + # is contrary to our usage. Disable this feature.
  13378. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  13379. + setopt NO_GLOB_SUBST
  13380. else
  13381. - as_have_required=no
  13382. + case \`(set -o) 2>/dev/null\` in #(
  13383. + *posix*) :
  13384. + set -o posix ;; #(
  13385. + *) :
  13386. + ;;
  13387. +esac
  13388. fi
  13389. -
  13390. - if test $as_have_required = yes && (eval ":
  13391. -(as_func_return () {
  13392. - (exit \$1)
  13393. -}
  13394. -as_func_success () {
  13395. - as_func_return 0
  13396. -}
  13397. -as_func_failure () {
  13398. - as_func_return 1
  13399. -}
  13400. -as_func_ret_success () {
  13401. - return 0
  13402. -}
  13403. -as_func_ret_failure () {
  13404. - return 1
  13405. -}
  13406. +"
  13407. + as_required="as_fn_return () { (exit \$1); }
  13408. +as_fn_success () { as_fn_return 0; }
  13409. +as_fn_failure () { as_fn_return 1; }
  13410. +as_fn_ret_success () { return 0; }
  13411. +as_fn_ret_failure () { return 1; }
  13412. exitcode=0
  13413. -if as_func_success; then
  13414. - :
  13415. -else
  13416. - exitcode=1
  13417. - echo as_func_success failed.
  13418. -fi
  13419. -
  13420. -if as_func_failure; then
  13421. - exitcode=1
  13422. - echo as_func_failure succeeded.
  13423. -fi
  13424. -
  13425. -if as_func_ret_success; then
  13426. - :
  13427. -else
  13428. - exitcode=1
  13429. - echo as_func_ret_success failed.
  13430. -fi
  13431. -
  13432. -if as_func_ret_failure; then
  13433. - exitcode=1
  13434. - echo as_func_ret_failure succeeded.
  13435. -fi
  13436. -
  13437. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  13438. - :
  13439. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  13440. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  13441. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  13442. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  13443. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  13444. +
  13445. +else
  13446. + exitcode=1; echo positional parameters were not saved.
  13447. +fi
  13448. +test x\$exitcode = x0 || exit 1"
  13449. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  13450. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  13451. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  13452. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  13453. +test \$(( 1 + 1 )) = 2 || exit 1"
  13454. + if (eval "$as_required") 2>/dev/null; then :
  13455. + as_have_required=yes
  13456. else
  13457. - exitcode=1
  13458. - echo positional parameters were not saved.
  13459. + as_have_required=no
  13460. fi
  13461. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  13462. -test \$exitcode = 0) || { (exit 1); exit 1; }
  13463. -
  13464. -(
  13465. - as_lineno_1=\$LINENO
  13466. - as_lineno_2=\$LINENO
  13467. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  13468. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  13469. -") 2> /dev/null; then
  13470. - :
  13471. else
  13472. - as_candidate_shells=
  13473. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13474. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13475. +as_found=false
  13476. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  13477. do
  13478. IFS=$as_save_IFS
  13479. test -z "$as_dir" && as_dir=.
  13480. - case $as_dir in
  13481. + as_found=:
  13482. + case $as_dir in #(
  13483. /*)
  13484. for as_base in sh bash ksh sh5; do
  13485. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  13486. + # Try only shells that exist, to save several forks.
  13487. + as_shell=$as_dir/$as_base
  13488. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  13489. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  13490. + CONFIG_SHELL=$as_shell as_have_required=yes
  13491. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  13492. + break 2
  13493. +fi
  13494. +fi
  13495. done;;
  13496. esac
  13497. + as_found=false
  13498. done
  13499. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  13500. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  13501. + CONFIG_SHELL=$SHELL as_have_required=yes
  13502. +fi; }
  13503. IFS=$as_save_IFS
  13504. - for as_shell in $as_candidate_shells $SHELL; do
  13505. - # Try only shells that exist, to save several forks.
  13506. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  13507. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  13508. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13509. - emulate sh
  13510. - NULLCMD=:
  13511. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13512. - # is contrary to our usage. Disable this feature.
  13513. - alias -g '${1+"$@"}'='"$@"'
  13514. - setopt NO_GLOB_SUBST
  13515. -else
  13516. - case `(set -o) 2>/dev/null` in
  13517. - *posix*) set -o posix ;;
  13518. -esac
  13519. -
  13520. -fi
  13521. -
  13522. -
  13523. -:
  13524. -_ASEOF
  13525. -}; then
  13526. - CONFIG_SHELL=$as_shell
  13527. - as_have_required=yes
  13528. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  13529. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13530. - emulate sh
  13531. - NULLCMD=:
  13532. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13533. - # is contrary to our usage. Disable this feature.
  13534. - alias -g '${1+"$@"}'='"$@"'
  13535. - setopt NO_GLOB_SUBST
  13536. -else
  13537. - case `(set -o) 2>/dev/null` in
  13538. - *posix*) set -o posix ;;
  13539. -esac
  13540. -
  13541. -fi
  13542. -
  13543. -
  13544. -:
  13545. -(as_func_return () {
  13546. - (exit $1)
  13547. -}
  13548. -as_func_success () {
  13549. - as_func_return 0
  13550. -}
  13551. -as_func_failure () {
  13552. - as_func_return 1
  13553. -}
  13554. -as_func_ret_success () {
  13555. - return 0
  13556. -}
  13557. -as_func_ret_failure () {
  13558. - return 1
  13559. -}
  13560. -
  13561. -exitcode=0
  13562. -if as_func_success; then
  13563. - :
  13564. -else
  13565. - exitcode=1
  13566. - echo as_func_success failed.
  13567. -fi
  13568. -
  13569. -if as_func_failure; then
  13570. - exitcode=1
  13571. - echo as_func_failure succeeded.
  13572. -fi
  13573. -
  13574. -if as_func_ret_success; then
  13575. - :
  13576. -else
  13577. - exitcode=1
  13578. - echo as_func_ret_success failed.
  13579. -fi
  13580. -
  13581. -if as_func_ret_failure; then
  13582. - exitcode=1
  13583. - echo as_func_ret_failure succeeded.
  13584. -fi
  13585. -
  13586. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  13587. - :
  13588. -else
  13589. - exitcode=1
  13590. - echo positional parameters were not saved.
  13591. -fi
  13592. -
  13593. -test $exitcode = 0) || { (exit 1); exit 1; }
  13594. -
  13595. -(
  13596. - as_lineno_1=$LINENO
  13597. - as_lineno_2=$LINENO
  13598. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  13599. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  13600. -
  13601. -_ASEOF
  13602. -}; then
  13603. - break
  13604. -fi
  13605. -
  13606. -fi
  13607. -
  13608. - done
  13609. -
  13610. - if test "x$CONFIG_SHELL" != x; then
  13611. - for as_var in BASH_ENV ENV
  13612. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  13613. - done
  13614. + if test "x$CONFIG_SHELL" != x; then :
  13615. + # We cannot yet assume a decent shell, so we have to provide a
  13616. + # neutralization value for shells without unset; and this also
  13617. + # works around shells that cannot unset nonexistent variables.
  13618. + BASH_ENV=/dev/null
  13619. + ENV=/dev/null
  13620. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  13621. export CONFIG_SHELL
  13622. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  13623. fi
  13624. -
  13625. - if test $as_have_required = no; then
  13626. - echo This script requires a shell more modern than all the
  13627. - echo shells that I found on your system. Please install a
  13628. - echo modern shell, or manually run the script under such a
  13629. - echo shell if you do have one.
  13630. - { (exit 1); exit 1; }
  13631. + if test x$as_have_required = xno; then :
  13632. + $as_echo "$0: This script requires a shell more modern than all"
  13633. + $as_echo "$0: the shells that I found on your system."
  13634. + if test x${ZSH_VERSION+set} = xset ; then
  13635. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  13636. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  13637. + else
  13638. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  13639. +$0: nfsv4-wg@citi.umich.edu about your system, including
  13640. +$0: any error possibly output before this message. Then
  13641. +$0: install a modern shell, or manually run the script
  13642. +$0: under such a shell if you do have one."
  13643. + fi
  13644. + exit 1
  13645. fi
  13646. -
  13647. -
  13648. fi
  13649. -
  13650. fi
  13651. +SHELL=${CONFIG_SHELL-/bin/sh}
  13652. +export SHELL
  13653. +# Unset more variables known to interfere with behavior of common tools.
  13654. +CLICOLOR_FORCE= GREP_OPTIONS=
  13655. +unset CLICOLOR_FORCE GREP_OPTIONS
  13656. +
  13657. +## --------------------- ##
  13658. +## M4sh Shell Functions. ##
  13659. +## --------------------- ##
  13660. +# as_fn_unset VAR
  13661. +# ---------------
  13662. +# Portably unset VAR.
  13663. +as_fn_unset ()
  13664. +{
  13665. + { eval $1=; unset $1;}
  13666. +}
  13667. +as_unset=as_fn_unset
  13668. +
  13669. +# as_fn_set_status STATUS
  13670. +# -----------------------
  13671. +# Set $? to STATUS, without forking.
  13672. +as_fn_set_status ()
  13673. +{
  13674. + return $1
  13675. +} # as_fn_set_status
  13676. +
  13677. +# as_fn_exit STATUS
  13678. +# -----------------
  13679. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13680. +as_fn_exit ()
  13681. +{
  13682. + set +e
  13683. + as_fn_set_status $1
  13684. + exit $1
  13685. +} # as_fn_exit
  13686. +
  13687. +# as_fn_mkdir_p
  13688. +# -------------
  13689. +# Create "$as_dir" as a directory, including parents if necessary.
  13690. +as_fn_mkdir_p ()
  13691. +{
  13692. + case $as_dir in #(
  13693. + -*) as_dir=./$as_dir;;
  13694. + esac
  13695. + test -d "$as_dir" || eval $as_mkdir_p || {
  13696. + as_dirs=
  13697. + while :; do
  13698. + case $as_dir in #(
  13699. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13700. + *) as_qdir=$as_dir;;
  13701. + esac
  13702. + as_dirs="'$as_qdir' $as_dirs"
  13703. + as_dir=`$as_dirname -- "$as_dir" ||
  13704. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13705. + X"$as_dir" : 'X\(//\)[^/]' \| \
  13706. + X"$as_dir" : 'X\(//\)$' \| \
  13707. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13708. +$as_echo X"$as_dir" |
  13709. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13710. + s//\1/
  13711. + q
  13712. + }
  13713. + /^X\(\/\/\)[^/].*/{
  13714. + s//\1/
  13715. + q
  13716. + }
  13717. + /^X\(\/\/\)$/{
  13718. + s//\1/
  13719. + q
  13720. + }
  13721. + /^X\(\/\).*/{
  13722. + s//\1/
  13723. + q
  13724. + }
  13725. + s/.*/./; q'`
  13726. + test -d "$as_dir" && break
  13727. + done
  13728. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  13729. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13730. -(eval "as_func_return () {
  13731. - (exit \$1)
  13732. -}
  13733. -as_func_success () {
  13734. - as_func_return 0
  13735. -}
  13736. -as_func_failure () {
  13737. - as_func_return 1
  13738. -}
  13739. -as_func_ret_success () {
  13740. - return 0
  13741. -}
  13742. -as_func_ret_failure () {
  13743. - return 1
  13744. -}
  13745. +} # as_fn_mkdir_p
  13746. +# as_fn_append VAR VALUE
  13747. +# ----------------------
  13748. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  13749. +# advantage of any shell optimizations that allow amortized linear growth over
  13750. +# repeated appends, instead of the typical quadratic growth present in naive
  13751. +# implementations.
  13752. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13753. + eval 'as_fn_append ()
  13754. + {
  13755. + eval $1+=\$2
  13756. + }'
  13757. +else
  13758. + as_fn_append ()
  13759. + {
  13760. + eval $1=\$$1\$2
  13761. + }
  13762. +fi # as_fn_append
  13763. -exitcode=0
  13764. -if as_func_success; then
  13765. - :
  13766. +# as_fn_arith ARG...
  13767. +# ------------------
  13768. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  13769. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  13770. +# must be portable across $(()) and expr.
  13771. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13772. + eval 'as_fn_arith ()
  13773. + {
  13774. + as_val=$(( $* ))
  13775. + }'
  13776. else
  13777. - exitcode=1
  13778. - echo as_func_success failed.
  13779. -fi
  13780. + as_fn_arith ()
  13781. + {
  13782. + as_val=`expr "$@" || test $? -eq 1`
  13783. + }
  13784. +fi # as_fn_arith
  13785. -if as_func_failure; then
  13786. - exitcode=1
  13787. - echo as_func_failure succeeded.
  13788. -fi
  13789. -if as_func_ret_success; then
  13790. - :
  13791. +# as_fn_error ERROR [LINENO LOG_FD]
  13792. +# ---------------------------------
  13793. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13794. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13795. +# script with status $?, using 1 if that was 0.
  13796. +as_fn_error ()
  13797. +{
  13798. + as_status=$?; test $as_status -eq 0 && as_status=1
  13799. + if test "$3"; then
  13800. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13801. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13802. + fi
  13803. + $as_echo "$as_me: error: $1" >&2
  13804. + as_fn_exit $as_status
  13805. +} # as_fn_error
  13806. +
  13807. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  13808. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13809. + as_expr=expr
  13810. else
  13811. - exitcode=1
  13812. - echo as_func_ret_success failed.
  13813. + as_expr=false
  13814. fi
  13815. -if as_func_ret_failure; then
  13816. - exitcode=1
  13817. - echo as_func_ret_failure succeeded.
  13818. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13819. + as_basename=basename
  13820. +else
  13821. + as_basename=false
  13822. fi
  13823. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  13824. - :
  13825. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13826. + as_dirname=dirname
  13827. else
  13828. - exitcode=1
  13829. - echo positional parameters were not saved.
  13830. + as_dirname=false
  13831. fi
  13832. -test \$exitcode = 0") || {
  13833. - echo No shell found that supports shell functions.
  13834. - echo Please tell bug-autoconf@gnu.org about your system,
  13835. - echo including any error possibly output before this message.
  13836. - echo This can help us improve future autoconf versions.
  13837. - echo Configuration will now proceed without shell functions.
  13838. -}
  13839. +as_me=`$as_basename -- "$0" ||
  13840. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13841. + X"$0" : 'X\(//\)$' \| \
  13842. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13843. +$as_echo X/"$0" |
  13844. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  13845. + s//\1/
  13846. + q
  13847. + }
  13848. + /^X\/\(\/\/\)$/{
  13849. + s//\1/
  13850. + q
  13851. + }
  13852. + /^X\/\(\/\).*/{
  13853. + s//\1/
  13854. + q
  13855. + }
  13856. + s/.*/./; q'`
  13857. +# Avoid depending upon Character Ranges.
  13858. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13859. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13860. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13861. +as_cr_digits='0123456789'
  13862. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  13863. - as_lineno_1=$LINENO
  13864. - as_lineno_2=$LINENO
  13865. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  13866. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  13867. -
  13868. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  13869. - # uniformly replaced by the line number. The first 'sed' inserts a
  13870. - # line-number line after each line using $LINENO; the second 'sed'
  13871. - # does the real work. The second script uses 'N' to pair each
  13872. - # line-number line with the line containing $LINENO, and appends
  13873. - # trailing '-' during substitution so that $LINENO is not a special
  13874. - # case at line end.
  13875. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  13876. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  13877. - # E. McMahon (1931-1989) for sed's syntax. :-)
  13878. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  13879. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  13880. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  13881. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  13882. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  13883. sed -n '
  13884. p
  13885. /[$]LINENO/=
  13886. @@ -473,8 +442,7 @@
  13887. s/-\n.*//
  13888. ' >$as_me.lineno &&
  13889. chmod +x "$as_me.lineno" ||
  13890. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  13891. - { (exit 1); exit 1; }; }
  13892. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  13893. # Don't try to exec as it changes $[0], causing all sort of problems
  13894. # (the dirname of $[0] is not the place where we might find the
  13895. @@ -484,29 +452,18 @@
  13896. exit
  13897. }
  13898. -
  13899. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13900. - as_dirname=dirname
  13901. -else
  13902. - as_dirname=false
  13903. -fi
  13904. -
  13905. ECHO_C= ECHO_N= ECHO_T=
  13906. -case `echo -n x` in
  13907. +case `echo -n x` in #(((((
  13908. -n*)
  13909. - case `echo 'x\c'` in
  13910. + case `echo 'xy\c'` in
  13911. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13912. - *) ECHO_C='\c';;
  13913. + xy) ECHO_C='\c';;
  13914. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13915. + ECHO_T=' ';;
  13916. esac;;
  13917. *)
  13918. ECHO_N='-n';;
  13919. esac
  13920. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  13921. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13922. - as_expr=expr
  13923. -else
  13924. - as_expr=false
  13925. -fi
  13926. rm -f conf$$ conf$$.exe conf$$.file
  13927. if test -d conf$$.dir; then
  13928. @@ -536,7 +493,7 @@
  13929. rmdir conf$$.dir 2>/dev/null
  13930. if mkdir -p . 2>/dev/null; then
  13931. - as_mkdir_p=:
  13932. + as_mkdir_p='mkdir -p "$as_dir"'
  13933. else
  13934. test -d ./-p && rmdir ./-p
  13935. as_mkdir_p=false
  13936. @@ -555,10 +512,10 @@
  13937. if test -d "$1"; then
  13938. test -d "$1/.";
  13939. else
  13940. - case $1 in
  13941. + case $1 in #(
  13942. -*)set "./$1";;
  13943. esac;
  13944. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  13945. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13946. ???[sx]*):;;*)false;;esac;fi
  13947. '\'' sh
  13948. '
  13949. @@ -573,26 +530,25 @@
  13950. -
  13951. # Check that we are running under the correct shell.
  13952. SHELL=${CONFIG_SHELL-/bin/sh}
  13953. -case X$ECHO in
  13954. +case X$lt_ECHO in
  13955. X*--fallback-echo)
  13956. # Remove one level of quotation (which was required for Make).
  13957. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13958. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13959. ;;
  13960. esac
  13961. -echo=${ECHO-echo}
  13962. +ECHO=${lt_ECHO-echo}
  13963. if test "X$1" = X--no-reexec; then
  13964. # Discard the --no-reexec flag, and continue.
  13965. shift
  13966. elif test "X$1" = X--fallback-echo; then
  13967. # Avoid inline document here, it may be left over
  13968. :
  13969. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  13970. - # Yippee, $echo works!
  13971. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  13972. + # Yippee, $ECHO works!
  13973. :
  13974. else
  13975. # Restart under the correct shell.
  13976. @@ -602,9 +558,9 @@
  13977. if test "X$1" = X--fallback-echo; then
  13978. # used as fallback echo
  13979. shift
  13980. - cat <<EOF
  13981. + cat <<_LT_EOF
  13982. $*
  13983. -EOF
  13984. +_LT_EOF
  13985. exit 0
  13986. fi
  13987. @@ -612,122 +568,118 @@
  13988. # if CDPATH is set.
  13989. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13990. -if test -z "$ECHO"; then
  13991. -if test "X${echo_test_string+set}" != Xset; then
  13992. -# find a string as large as possible, as long as the shell can cope with it
  13993. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13994. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13995. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  13996. - echo_test_string=`eval $cmd` &&
  13997. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  13998. - then
  13999. - break
  14000. - fi
  14001. - done
  14002. -fi
  14003. +if test -z "$lt_ECHO"; then
  14004. + if test "X${echo_test_string+set}" != Xset; then
  14005. + # find a string as large as possible, as long as the shell can cope with it
  14006. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  14007. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  14008. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  14009. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  14010. + then
  14011. + break
  14012. + fi
  14013. + done
  14014. + fi
  14015. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  14016. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  14017. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14018. - :
  14019. -else
  14020. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  14021. - # backslashes. This makes it impossible to quote backslashes using
  14022. - # echo "$something" | sed 's/\\/\\\\/g'
  14023. - #
  14024. - # So, first we look for a working echo in the user's PATH.
  14025. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14026. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14027. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14028. + :
  14029. + else
  14030. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  14031. + # backslashes. This makes it impossible to quote backslashes using
  14032. + # echo "$something" | sed 's/\\/\\\\/g'
  14033. + #
  14034. + # So, first we look for a working echo in the user's PATH.
  14035. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14036. - for dir in $PATH /usr/ucb; do
  14037. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14038. + for dir in $PATH /usr/ucb; do
  14039. + IFS="$lt_save_ifs"
  14040. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  14041. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  14042. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  14043. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14044. + ECHO="$dir/echo"
  14045. + break
  14046. + fi
  14047. + done
  14048. IFS="$lt_save_ifs"
  14049. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  14050. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  14051. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  14052. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14053. - echo="$dir/echo"
  14054. - break
  14055. - fi
  14056. - done
  14057. - IFS="$lt_save_ifs"
  14058. - if test "X$echo" = Xecho; then
  14059. - # We didn't find a better echo, so look for alternatives.
  14060. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  14061. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  14062. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14063. - # This shell has a builtin print -r that does the trick.
  14064. - echo='print -r'
  14065. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  14066. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  14067. - # If we have ksh, try running configure again with it.
  14068. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14069. - export ORIGINAL_CONFIG_SHELL
  14070. - CONFIG_SHELL=/bin/ksh
  14071. - export CONFIG_SHELL
  14072. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  14073. - else
  14074. - # Try using printf.
  14075. - echo='printf %s\n'
  14076. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  14077. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  14078. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14079. - # Cool, printf works
  14080. - :
  14081. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14082. - test "X$echo_testing_string" = 'X\t' &&
  14083. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14084. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14085. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  14086. - export CONFIG_SHELL
  14087. - SHELL="$CONFIG_SHELL"
  14088. - export SHELL
  14089. - echo="$CONFIG_SHELL $0 --fallback-echo"
  14090. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14091. - test "X$echo_testing_string" = 'X\t' &&
  14092. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14093. + if test "X$ECHO" = Xecho; then
  14094. + # We didn't find a better echo, so look for alternatives.
  14095. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  14096. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  14097. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14098. + # This shell has a builtin print -r that does the trick.
  14099. + ECHO='print -r'
  14100. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  14101. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  14102. + # If we have ksh, try running configure again with it.
  14103. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14104. + export ORIGINAL_CONFIG_SHELL
  14105. + CONFIG_SHELL=/bin/ksh
  14106. + export CONFIG_SHELL
  14107. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  14108. + else
  14109. + # Try using printf.
  14110. + ECHO='printf %s\n'
  14111. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14112. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14113. test "X$echo_testing_string" = "X$echo_test_string"; then
  14114. - echo="$CONFIG_SHELL $0 --fallback-echo"
  14115. - else
  14116. - # maybe with a smaller string...
  14117. - prev=:
  14118. + # Cool, printf works
  14119. + :
  14120. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14121. + test "X$echo_testing_string" = 'X\t' &&
  14122. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14123. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14124. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  14125. + export CONFIG_SHELL
  14126. + SHELL="$CONFIG_SHELL"
  14127. + export SHELL
  14128. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  14129. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14130. + test "X$echo_testing_string" = 'X\t' &&
  14131. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14132. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14133. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  14134. + else
  14135. + # maybe with a smaller string...
  14136. + prev=:
  14137. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  14138. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  14139. - then
  14140. - break
  14141. - fi
  14142. - prev="$cmd"
  14143. - done
  14144. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  14145. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  14146. + then
  14147. + break
  14148. + fi
  14149. + prev="$cmd"
  14150. + done
  14151. - if test "$prev" != 'sed 50q "$0"'; then
  14152. - echo_test_string=`eval $prev`
  14153. - export echo_test_string
  14154. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  14155. - else
  14156. - # Oops. We lost completely, so just stick with echo.
  14157. - echo=echo
  14158. - fi
  14159. + if test "$prev" != 'sed 50q "$0"'; then
  14160. + echo_test_string=`eval $prev`
  14161. + export echo_test_string
  14162. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  14163. + else
  14164. + # Oops. We lost completely, so just stick with echo.
  14165. + ECHO=echo
  14166. + fi
  14167. + fi
  14168. fi
  14169. fi
  14170. fi
  14171. fi
  14172. -fi
  14173. # Copy echo and quote the copy suitably for passing to libtool from
  14174. # the Makefile, instead of quoting the original, which is used later.
  14175. -ECHO=$echo
  14176. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  14177. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  14178. +lt_ECHO=$ECHO
  14179. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  14180. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  14181. fi
  14182. -tagnames=${tagnames+${tagnames},}CXX
  14183. -
  14184. -tagnames=${tagnames+${tagnames},}F77
  14185. -
  14186. -exec 7<&0 </dev/null 6>&1
  14187. +test -n "$DJDIR" || exec 7<&0 </dev/null
  14188. +exec 6>&1
  14189. # Name of the host.
  14190. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  14191. @@ -745,7 +697,6 @@
  14192. subdirs=
  14193. MFLAGS=
  14194. MAKEFLAGS=
  14195. -SHELL=${CONFIG_SHELL-/bin/sh}
  14196. # Identity of this package.
  14197. PACKAGE_NAME='librpcsecgss'
  14198. @@ -753,6 +704,7 @@
  14199. PACKAGE_VERSION='0.19'
  14200. PACKAGE_STRING='librpcsecgss 0.19'
  14201. PACKAGE_BUGREPORT='nfsv4-wg@citi.umich.edu'
  14202. +PACKAGE_URL=''
  14203. ac_unique_file="src/auth_gss.c"
  14204. # Factoring default headers for most tests.
  14205. @@ -798,24 +750,22 @@
  14206. GSSGLUE_LIBS
  14207. GSSGLUE_CFLAGS
  14208. PKG_CONFIG
  14209. -LIBTOOL
  14210. -ac_ct_F77
  14211. -FFLAGS
  14212. -F77
  14213. -CXXCPP
  14214. -am__fastdepCXX_FALSE
  14215. -am__fastdepCXX_TRUE
  14216. -CXXDEPMODE
  14217. -ac_ct_CXX
  14218. -CXXFLAGS
  14219. -CXX
  14220. CPP
  14221. +OTOOL64
  14222. +OTOOL
  14223. +LIPO
  14224. NMEDIT
  14225. DSYMUTIL
  14226. +lt_ECHO
  14227. RANLIB
  14228. AR
  14229. -ECHO
  14230. +OBJDUMP
  14231. LN_S
  14232. +NM
  14233. +ac_ct_DUMPBIN
  14234. +DUMPBIN
  14235. +LD
  14236. +FGREP
  14237. EGREP
  14238. GREP
  14239. SED
  14240. @@ -843,6 +793,7 @@
  14241. build_vendor
  14242. build_cpu
  14243. build
  14244. +LIBTOOL
  14245. am__untar
  14246. am__tar
  14247. AMTAR
  14248. @@ -896,6 +847,7 @@
  14249. program_transform_name
  14250. prefix
  14251. exec_prefix
  14252. +PACKAGE_URL
  14253. PACKAGE_BUGREPORT
  14254. PACKAGE_STRING
  14255. PACKAGE_VERSION
  14256. @@ -908,12 +860,11 @@
  14257. enable_option_checking
  14258. enable_shared
  14259. enable_static
  14260. +with_pic
  14261. enable_fast_install
  14262. enable_dependency_tracking
  14263. with_gnu_ld
  14264. enable_libtool_lock
  14265. -with_pic
  14266. -with_tags
  14267. '
  14268. ac_precious_vars='build_alias
  14269. host_alias
  14270. @@ -924,12 +875,6 @@
  14271. LIBS
  14272. CPPFLAGS
  14273. CPP
  14274. -CXX
  14275. -CXXFLAGS
  14276. -CCC
  14277. -CXXCPP
  14278. -F77
  14279. -FFLAGS
  14280. PKG_CONFIG
  14281. GSSGLUE_CFLAGS
  14282. GSSGLUE_LIBS'
  14283. @@ -1041,8 +986,7 @@
  14284. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  14285. # Reject names that are not valid shell variable names.
  14286. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14287. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  14288. - { (exit 1); exit 1; }; }
  14289. + as_fn_error "invalid feature name: $ac_useropt"
  14290. ac_useropt_orig=$ac_useropt
  14291. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14292. case $ac_user_opts in
  14293. @@ -1068,8 +1012,7 @@
  14294. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  14295. # Reject names that are not valid shell variable names.
  14296. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14297. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  14298. - { (exit 1); exit 1; }; }
  14299. + as_fn_error "invalid feature name: $ac_useropt"
  14300. ac_useropt_orig=$ac_useropt
  14301. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14302. case $ac_user_opts in
  14303. @@ -1273,8 +1216,7 @@
  14304. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  14305. # Reject names that are not valid shell variable names.
  14306. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14307. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  14308. - { (exit 1); exit 1; }; }
  14309. + as_fn_error "invalid package name: $ac_useropt"
  14310. ac_useropt_orig=$ac_useropt
  14311. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14312. case $ac_user_opts in
  14313. @@ -1290,8 +1232,7 @@
  14314. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  14315. # Reject names that are not valid shell variable names.
  14316. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14317. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  14318. - { (exit 1); exit 1; }; }
  14319. + as_fn_error "invalid package name: $ac_useropt"
  14320. ac_useropt_orig=$ac_useropt
  14321. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14322. case $ac_user_opts in
  14323. @@ -1321,17 +1262,17 @@
  14324. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  14325. x_libraries=$ac_optarg ;;
  14326. - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  14327. -Try \`$0 --help' for more information." >&2
  14328. - { (exit 1); exit 1; }; }
  14329. + -*) as_fn_error "unrecognized option: \`$ac_option'
  14330. +Try \`$0 --help' for more information."
  14331. ;;
  14332. *=*)
  14333. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  14334. # Reject names that are not valid shell variable names.
  14335. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  14336. - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  14337. - { (exit 1); exit 1; }; }
  14338. + case $ac_envvar in #(
  14339. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  14340. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  14341. + esac
  14342. eval $ac_envvar=\$ac_optarg
  14343. export $ac_envvar ;;
  14344. @@ -1348,15 +1289,13 @@
  14345. if test -n "$ac_prev"; then
  14346. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  14347. - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  14348. - { (exit 1); exit 1; }; }
  14349. + as_fn_error "missing argument to $ac_option"
  14350. fi
  14351. if test -n "$ac_unrecognized_opts"; then
  14352. case $enable_option_checking in
  14353. no) ;;
  14354. - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  14355. - { (exit 1); exit 1; }; } ;;
  14356. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  14357. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  14358. esac
  14359. fi
  14360. @@ -1379,8 +1318,7 @@
  14361. [\\/$]* | ?:[\\/]* ) continue;;
  14362. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  14363. esac
  14364. - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  14365. - { (exit 1); exit 1; }; }
  14366. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  14367. done
  14368. # There might be people who depend on the old broken behavior: `$host'
  14369. @@ -1410,11 +1348,9 @@
  14370. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  14371. ac_ls_di=`ls -di .` &&
  14372. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  14373. - { $as_echo "$as_me: error: working directory cannot be determined" >&2
  14374. - { (exit 1); exit 1; }; }
  14375. + as_fn_error "working directory cannot be determined"
  14376. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  14377. - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  14378. - { (exit 1); exit 1; }; }
  14379. + as_fn_error "pwd does not report name of working directory"
  14380. # Find the source files, if location was not specified.
  14381. @@ -1453,13 +1389,11 @@
  14382. fi
  14383. if test ! -r "$srcdir/$ac_unique_file"; then
  14384. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  14385. - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  14386. - { (exit 1); exit 1; }; }
  14387. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  14388. fi
  14389. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  14390. ac_abs_confdir=`(
  14391. - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  14392. - { (exit 1); exit 1; }; }
  14393. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  14394. pwd)`
  14395. # When building in place, set srcdir=.
  14396. if test "$ac_abs_confdir" = "$ac_pwd"; then
  14397. @@ -1574,10 +1508,9 @@
  14398. Optional Packages:
  14399. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  14400. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  14401. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  14402. --with-pic try to use only PIC/non-PIC objects [default=use
  14403. both]
  14404. - --with-tags[=TAGS] include additional configurations [automatic]
  14405. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  14406. Some influential environment variables:
  14407. CC C compiler command
  14408. @@ -1585,14 +1518,9 @@
  14409. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  14410. nonstandard directory <lib dir>
  14411. LIBS libraries to pass to the linker, e.g. -l<library>
  14412. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  14413. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  14414. you have headers in a nonstandard directory <include dir>
  14415. CPP C preprocessor
  14416. - CXX C++ compiler command
  14417. - CXXFLAGS C++ compiler flags
  14418. - CXXCPP C++ preprocessor
  14419. - F77 Fortran 77 compiler command
  14420. - FFLAGS Fortran 77 compiler flags
  14421. PKG_CONFIG path to pkg-config utility
  14422. GSSGLUE_CFLAGS
  14423. C compiler flags for GSSGLUE, overriding pkg-config
  14424. @@ -1666,150 +1594,561 @@
  14425. if $ac_init_version; then
  14426. cat <<\_ACEOF
  14427. librpcsecgss configure 0.19
  14428. -generated by GNU Autoconf 2.63
  14429. +generated by GNU Autoconf 2.65
  14430. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  14431. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14432. +Copyright (C) 2009 Free Software Foundation, Inc.
  14433. This configure script is free software; the Free Software Foundation
  14434. gives unlimited permission to copy, distribute and modify it.
  14435. _ACEOF
  14436. exit
  14437. fi
  14438. -cat >config.log <<_ACEOF
  14439. -This file contains any messages produced by compilers while
  14440. -running configure, to aid debugging if configure makes a mistake.
  14441. -It was created by librpcsecgss $as_me 0.19, which was
  14442. -generated by GNU Autoconf 2.63. Invocation command line was
  14443. +## ------------------------ ##
  14444. +## Autoconf initialization. ##
  14445. +## ------------------------ ##
  14446. +
  14447. +# ac_fn_c_try_compile LINENO
  14448. +# --------------------------
  14449. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  14450. +ac_fn_c_try_compile ()
  14451. +{
  14452. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14453. + rm -f conftest.$ac_objext
  14454. + if { { ac_try="$ac_compile"
  14455. +case "(($ac_try" in
  14456. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14457. + *) ac_try_echo=$ac_try;;
  14458. +esac
  14459. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14460. +$as_echo "$ac_try_echo"; } >&5
  14461. + (eval "$ac_compile") 2>conftest.err
  14462. + ac_status=$?
  14463. + if test -s conftest.err; then
  14464. + grep -v '^ *+' conftest.err >conftest.er1
  14465. + cat conftest.er1 >&5
  14466. + mv -f conftest.er1 conftest.err
  14467. + fi
  14468. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14469. + test $ac_status = 0; } && {
  14470. + test -z "$ac_c_werror_flag" ||
  14471. + test ! -s conftest.err
  14472. + } && test -s conftest.$ac_objext; then :
  14473. + ac_retval=0
  14474. +else
  14475. + $as_echo "$as_me: failed program was:" >&5
  14476. +sed 's/^/| /' conftest.$ac_ext >&5
  14477. - $ $0 $@
  14478. + ac_retval=1
  14479. +fi
  14480. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14481. + as_fn_set_status $ac_retval
  14482. -_ACEOF
  14483. -exec 5>>config.log
  14484. +} # ac_fn_c_try_compile
  14485. +
  14486. +# ac_fn_c_try_link LINENO
  14487. +# -----------------------
  14488. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  14489. +ac_fn_c_try_link ()
  14490. {
  14491. -cat <<_ASUNAME
  14492. -## --------- ##
  14493. -## Platform. ##
  14494. -## --------- ##
  14495. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14496. + rm -f conftest.$ac_objext conftest$ac_exeext
  14497. + if { { ac_try="$ac_link"
  14498. +case "(($ac_try" in
  14499. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14500. + *) ac_try_echo=$ac_try;;
  14501. +esac
  14502. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14503. +$as_echo "$ac_try_echo"; } >&5
  14504. + (eval "$ac_link") 2>conftest.err
  14505. + ac_status=$?
  14506. + if test -s conftest.err; then
  14507. + grep -v '^ *+' conftest.err >conftest.er1
  14508. + cat conftest.er1 >&5
  14509. + mv -f conftest.er1 conftest.err
  14510. + fi
  14511. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14512. + test $ac_status = 0; } && {
  14513. + test -z "$ac_c_werror_flag" ||
  14514. + test ! -s conftest.err
  14515. + } && test -s conftest$ac_exeext && {
  14516. + test "$cross_compiling" = yes ||
  14517. + $as_test_x conftest$ac_exeext
  14518. + }; then :
  14519. + ac_retval=0
  14520. +else
  14521. + $as_echo "$as_me: failed program was:" >&5
  14522. +sed 's/^/| /' conftest.$ac_ext >&5
  14523. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14524. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14525. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14526. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14527. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14528. + ac_retval=1
  14529. +fi
  14530. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  14531. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  14532. + # interfere with the next link command; also delete a directory that is
  14533. + # left behind by Apple's compiler. We do this before executing the actions.
  14534. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  14535. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14536. + as_fn_set_status $ac_retval
  14537. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14538. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14539. +} # ac_fn_c_try_link
  14540. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14541. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14542. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14543. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  14544. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  14545. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  14546. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  14547. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  14548. +# -------------------------------------------------------
  14549. +# Tests whether HEADER exists and can be compiled using the include files in
  14550. +# INCLUDES, setting the cache variable VAR accordingly.
  14551. +ac_fn_c_check_header_compile ()
  14552. +{
  14553. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14554. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14555. +$as_echo_n "checking for $2... " >&6; }
  14556. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14557. + $as_echo_n "(cached) " >&6
  14558. +else
  14559. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14560. +/* end confdefs.h. */
  14561. +$4
  14562. +#include <$2>
  14563. +_ACEOF
  14564. +if ac_fn_c_try_compile "$LINENO"; then :
  14565. + eval "$3=yes"
  14566. +else
  14567. + eval "$3=no"
  14568. +fi
  14569. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14570. +fi
  14571. +eval ac_res=\$$3
  14572. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14573. +$as_echo "$ac_res" >&6; }
  14574. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14575. -_ASUNAME
  14576. +} # ac_fn_c_check_header_compile
  14577. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14578. -for as_dir in $PATH
  14579. -do
  14580. - IFS=$as_save_IFS
  14581. - test -z "$as_dir" && as_dir=.
  14582. - $as_echo "PATH: $as_dir"
  14583. -done
  14584. -IFS=$as_save_IFS
  14585. +# ac_fn_c_try_cpp LINENO
  14586. +# ----------------------
  14587. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  14588. +ac_fn_c_try_cpp ()
  14589. +{
  14590. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14591. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  14592. +case "(($ac_try" in
  14593. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14594. + *) ac_try_echo=$ac_try;;
  14595. +esac
  14596. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14597. +$as_echo "$ac_try_echo"; } >&5
  14598. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  14599. + ac_status=$?
  14600. + if test -s conftest.err; then
  14601. + grep -v '^ *+' conftest.err >conftest.er1
  14602. + cat conftest.er1 >&5
  14603. + mv -f conftest.er1 conftest.err
  14604. + fi
  14605. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14606. + test $ac_status = 0; } >/dev/null && {
  14607. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14608. + test ! -s conftest.err
  14609. + }; then :
  14610. + ac_retval=0
  14611. +else
  14612. + $as_echo "$as_me: failed program was:" >&5
  14613. +sed 's/^/| /' conftest.$ac_ext >&5
  14614. -} >&5
  14615. + ac_retval=1
  14616. +fi
  14617. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14618. + as_fn_set_status $ac_retval
  14619. -cat >&5 <<_ACEOF
  14620. +} # ac_fn_c_try_cpp
  14621. +# ac_fn_c_try_run LINENO
  14622. +# ----------------------
  14623. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  14624. +# that executables *can* be run.
  14625. +ac_fn_c_try_run ()
  14626. +{
  14627. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14628. + if { { ac_try="$ac_link"
  14629. +case "(($ac_try" in
  14630. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14631. + *) ac_try_echo=$ac_try;;
  14632. +esac
  14633. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14634. +$as_echo "$ac_try_echo"; } >&5
  14635. + (eval "$ac_link") 2>&5
  14636. + ac_status=$?
  14637. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14638. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  14639. + { { case "(($ac_try" in
  14640. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14641. + *) ac_try_echo=$ac_try;;
  14642. +esac
  14643. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14644. +$as_echo "$ac_try_echo"; } >&5
  14645. + (eval "$ac_try") 2>&5
  14646. + ac_status=$?
  14647. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14648. + test $ac_status = 0; }; }; then :
  14649. + ac_retval=0
  14650. +else
  14651. + $as_echo "$as_me: program exited with status $ac_status" >&5
  14652. + $as_echo "$as_me: failed program was:" >&5
  14653. +sed 's/^/| /' conftest.$ac_ext >&5
  14654. -## ----------- ##
  14655. -## Core tests. ##
  14656. -## ----------- ##
  14657. + ac_retval=$ac_status
  14658. +fi
  14659. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  14660. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14661. + as_fn_set_status $ac_retval
  14662. -_ACEOF
  14663. +} # ac_fn_c_try_run
  14664. +# ac_fn_c_check_func LINENO FUNC VAR
  14665. +# ----------------------------------
  14666. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  14667. +ac_fn_c_check_func ()
  14668. +{
  14669. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14670. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14671. +$as_echo_n "checking for $2... " >&6; }
  14672. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14673. + $as_echo_n "(cached) " >&6
  14674. +else
  14675. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14676. +/* end confdefs.h. */
  14677. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  14678. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14679. +#define $2 innocuous_$2
  14680. -# Keep a trace of the command line.
  14681. -# Strip out --no-create and --no-recursion so they do not pile up.
  14682. -# Strip out --silent because we don't want to record it for future runs.
  14683. -# Also quote any args containing shell meta-characters.
  14684. -# Make two passes to allow for proper duplicate-argument suppression.
  14685. -ac_configure_args=
  14686. -ac_configure_args0=
  14687. -ac_configure_args1=
  14688. -ac_must_keep_next=false
  14689. -for ac_pass in 1 2
  14690. -do
  14691. - for ac_arg
  14692. - do
  14693. - case $ac_arg in
  14694. - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  14695. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14696. - | -silent | --silent | --silen | --sile | --sil)
  14697. - continue ;;
  14698. - *\'*)
  14699. - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14700. - esac
  14701. - case $ac_pass in
  14702. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  14703. - 2)
  14704. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  14705. - if test $ac_must_keep_next = true; then
  14706. - ac_must_keep_next=false # Got value, back to normal.
  14707. - else
  14708. - case $ac_arg in
  14709. - *=* | --config-cache | -C | -disable-* | --disable-* \
  14710. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  14711. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  14712. - | -with-* | --with-* | -without-* | --without-* | --x)
  14713. - case "$ac_configure_args0 " in
  14714. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  14715. - esac
  14716. - ;;
  14717. - -* ) ac_must_keep_next=true ;;
  14718. - esac
  14719. - fi
  14720. - ac_configure_args="$ac_configure_args '$ac_arg'"
  14721. - ;;
  14722. - esac
  14723. - done
  14724. -done
  14725. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  14726. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  14727. +/* System header to define __stub macros and hopefully few prototypes,
  14728. + which can conflict with char $2 (); below.
  14729. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14730. + <limits.h> exists even on freestanding compilers. */
  14731. -# When interrupted or exit'd, cleanup temporary files, and complete
  14732. -# config.log. We remove comments because anyway the quotes in there
  14733. -# would cause problems or look ugly.
  14734. -# WARNING: Use '\'' to represent an apostrophe within the trap.
  14735. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  14736. -trap 'exit_status=$?
  14737. - # Save into config.log some information that might help in debugging.
  14738. - {
  14739. - echo
  14740. +#ifdef __STDC__
  14741. +# include <limits.h>
  14742. +#else
  14743. +# include <assert.h>
  14744. +#endif
  14745. - cat <<\_ASBOX
  14746. -## ---------------- ##
  14747. -## Cache variables. ##
  14748. -## ---------------- ##
  14749. -_ASBOX
  14750. - echo
  14751. - # The following way of writing the cache mishandles newlines in values,
  14752. -(
  14753. - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  14754. - eval ac_val=\$$ac_var
  14755. - case $ac_val in #(
  14756. - *${as_nl}*)
  14757. - case $ac_var in #(
  14758. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  14759. -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14760. - esac
  14761. - case $ac_var in #(
  14762. - _ | IFS | as_nl) ;; #(
  14763. +#undef $2
  14764. +
  14765. +/* Override any GCC internal prototype to avoid an error.
  14766. + Use char because int might match the return type of a GCC
  14767. + builtin and then its argument prototype would still apply. */
  14768. +#ifdef __cplusplus
  14769. +extern "C"
  14770. +#endif
  14771. +char $2 ();
  14772. +/* The GNU C library defines this for functions which it implements
  14773. + to always fail with ENOSYS. Some functions are actually named
  14774. + something starting with __ and the normal name is an alias. */
  14775. +#if defined __stub_$2 || defined __stub___$2
  14776. +choke me
  14777. +#endif
  14778. +
  14779. +int
  14780. +main ()
  14781. +{
  14782. +return $2 ();
  14783. + ;
  14784. + return 0;
  14785. +}
  14786. +_ACEOF
  14787. +if ac_fn_c_try_link "$LINENO"; then :
  14788. + eval "$3=yes"
  14789. +else
  14790. + eval "$3=no"
  14791. +fi
  14792. +rm -f core conftest.err conftest.$ac_objext \
  14793. + conftest$ac_exeext conftest.$ac_ext
  14794. +fi
  14795. +eval ac_res=\$$3
  14796. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14797. +$as_echo "$ac_res" >&6; }
  14798. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14799. +
  14800. +} # ac_fn_c_check_func
  14801. +
  14802. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  14803. +# -------------------------------------------------------
  14804. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  14805. +# the include files in INCLUDES and setting the cache variable VAR
  14806. +# accordingly.
  14807. +ac_fn_c_check_header_mongrel ()
  14808. +{
  14809. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14810. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14811. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14812. +$as_echo_n "checking for $2... " >&6; }
  14813. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14814. + $as_echo_n "(cached) " >&6
  14815. +fi
  14816. +eval ac_res=\$$3
  14817. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14818. +$as_echo "$ac_res" >&6; }
  14819. +else
  14820. + # Is the header compilable?
  14821. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  14822. +$as_echo_n "checking $2 usability... " >&6; }
  14823. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14824. +/* end confdefs.h. */
  14825. +$4
  14826. +#include <$2>
  14827. +_ACEOF
  14828. +if ac_fn_c_try_compile "$LINENO"; then :
  14829. + ac_header_compiler=yes
  14830. +else
  14831. + ac_header_compiler=no
  14832. +fi
  14833. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  14835. +$as_echo "$ac_header_compiler" >&6; }
  14836. +
  14837. +# Is the header present?
  14838. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  14839. +$as_echo_n "checking $2 presence... " >&6; }
  14840. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14841. +/* end confdefs.h. */
  14842. +#include <$2>
  14843. +_ACEOF
  14844. +if ac_fn_c_try_cpp "$LINENO"; then :
  14845. + ac_header_preproc=yes
  14846. +else
  14847. + ac_header_preproc=no
  14848. +fi
  14849. +rm -f conftest.err conftest.$ac_ext
  14850. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  14851. +$as_echo "$ac_header_preproc" >&6; }
  14852. +
  14853. +# So? What about this header?
  14854. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  14855. + yes:no: )
  14856. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  14857. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14858. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14859. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14860. + ;;
  14861. + no:yes:* )
  14862. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  14863. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  14864. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  14865. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  14866. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  14867. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  14868. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  14869. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  14870. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14871. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14872. +( cat <<\_ASBOX
  14873. +## -------------------------------------- ##
  14874. +## Report this to nfsv4-wg@citi.umich.edu ##
  14875. +## -------------------------------------- ##
  14876. +_ASBOX
  14877. + ) | sed "s/^/$as_me: WARNING: /" >&2
  14878. + ;;
  14879. +esac
  14880. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14881. +$as_echo_n "checking for $2... " >&6; }
  14882. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14883. + $as_echo_n "(cached) " >&6
  14884. +else
  14885. + eval "$3=\$ac_header_compiler"
  14886. +fi
  14887. +eval ac_res=\$$3
  14888. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14889. +$as_echo "$ac_res" >&6; }
  14890. +fi
  14891. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14892. +
  14893. +} # ac_fn_c_check_header_mongrel
  14894. +
  14895. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  14896. +# -------------------------------------------
  14897. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  14898. +# variable VAR accordingly.
  14899. +ac_fn_c_check_type ()
  14900. +{
  14901. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14902. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14903. +$as_echo_n "checking for $2... " >&6; }
  14904. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14905. + $as_echo_n "(cached) " >&6
  14906. +else
  14907. + eval "$3=no"
  14908. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14909. +/* end confdefs.h. */
  14910. +$4
  14911. +int
  14912. +main ()
  14913. +{
  14914. +if (sizeof ($2))
  14915. + return 0;
  14916. + ;
  14917. + return 0;
  14918. +}
  14919. +_ACEOF
  14920. +if ac_fn_c_try_compile "$LINENO"; then :
  14921. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14922. +/* end confdefs.h. */
  14923. +$4
  14924. +int
  14925. +main ()
  14926. +{
  14927. +if (sizeof (($2)))
  14928. + return 0;
  14929. + ;
  14930. + return 0;
  14931. +}
  14932. +_ACEOF
  14933. +if ac_fn_c_try_compile "$LINENO"; then :
  14934. +
  14935. +else
  14936. + eval "$3=yes"
  14937. +fi
  14938. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14939. +fi
  14940. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14941. +fi
  14942. +eval ac_res=\$$3
  14943. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14944. +$as_echo "$ac_res" >&6; }
  14945. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14946. +
  14947. +} # ac_fn_c_check_type
  14948. +cat >config.log <<_ACEOF
  14949. +This file contains any messages produced by compilers while
  14950. +running configure, to aid debugging if configure makes a mistake.
  14951. +
  14952. +It was created by librpcsecgss $as_me 0.19, which was
  14953. +generated by GNU Autoconf 2.65. Invocation command line was
  14954. +
  14955. + $ $0 $@
  14956. +
  14957. +_ACEOF
  14958. +exec 5>>config.log
  14959. +{
  14960. +cat <<_ASUNAME
  14961. +## --------- ##
  14962. +## Platform. ##
  14963. +## --------- ##
  14964. +
  14965. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14966. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14967. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14968. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14969. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14970. +
  14971. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14972. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14973. +
  14974. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14975. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14976. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14977. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  14978. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  14979. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  14980. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  14981. +
  14982. +_ASUNAME
  14983. +
  14984. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14985. +for as_dir in $PATH
  14986. +do
  14987. + IFS=$as_save_IFS
  14988. + test -z "$as_dir" && as_dir=.
  14989. + $as_echo "PATH: $as_dir"
  14990. + done
  14991. +IFS=$as_save_IFS
  14992. +
  14993. +} >&5
  14994. +
  14995. +cat >&5 <<_ACEOF
  14996. +
  14997. +
  14998. +## ----------- ##
  14999. +## Core tests. ##
  15000. +## ----------- ##
  15001. +
  15002. +_ACEOF
  15003. +
  15004. +
  15005. +# Keep a trace of the command line.
  15006. +# Strip out --no-create and --no-recursion so they do not pile up.
  15007. +# Strip out --silent because we don't want to record it for future runs.
  15008. +# Also quote any args containing shell meta-characters.
  15009. +# Make two passes to allow for proper duplicate-argument suppression.
  15010. +ac_configure_args=
  15011. +ac_configure_args0=
  15012. +ac_configure_args1=
  15013. +ac_must_keep_next=false
  15014. +for ac_pass in 1 2
  15015. +do
  15016. + for ac_arg
  15017. + do
  15018. + case $ac_arg in
  15019. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  15020. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15021. + | -silent | --silent | --silen | --sile | --sil)
  15022. + continue ;;
  15023. + *\'*)
  15024. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15025. + esac
  15026. + case $ac_pass in
  15027. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  15028. + 2)
  15029. + as_fn_append ac_configure_args1 " '$ac_arg'"
  15030. + if test $ac_must_keep_next = true; then
  15031. + ac_must_keep_next=false # Got value, back to normal.
  15032. + else
  15033. + case $ac_arg in
  15034. + *=* | --config-cache | -C | -disable-* | --disable-* \
  15035. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  15036. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  15037. + | -with-* | --with-* | -without-* | --without-* | --x)
  15038. + case "$ac_configure_args0 " in
  15039. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  15040. + esac
  15041. + ;;
  15042. + -* ) ac_must_keep_next=true ;;
  15043. + esac
  15044. + fi
  15045. + as_fn_append ac_configure_args " '$ac_arg'"
  15046. + ;;
  15047. + esac
  15048. + done
  15049. +done
  15050. +{ ac_configure_args0=; unset ac_configure_args0;}
  15051. +{ ac_configure_args1=; unset ac_configure_args1;}
  15052. +
  15053. +# When interrupted or exit'd, cleanup temporary files, and complete
  15054. +# config.log. We remove comments because anyway the quotes in there
  15055. +# would cause problems or look ugly.
  15056. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  15057. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  15058. +trap 'exit_status=$?
  15059. + # Save into config.log some information that might help in debugging.
  15060. + {
  15061. + echo
  15062. +
  15063. + cat <<\_ASBOX
  15064. +## ---------------- ##
  15065. +## Cache variables. ##
  15066. +## ---------------- ##
  15067. +_ASBOX
  15068. + echo
  15069. + # The following way of writing the cache mishandles newlines in values,
  15070. +(
  15071. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  15072. + eval ac_val=\$$ac_var
  15073. + case $ac_val in #(
  15074. + *${as_nl}*)
  15075. + case $ac_var in #(
  15076. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15077. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15078. + esac
  15079. + case $ac_var in #(
  15080. + _ | IFS | as_nl) ;; #(
  15081. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15082. - *) $as_unset $ac_var ;;
  15083. + *) { eval $ac_var=; unset $ac_var;} ;;
  15084. esac ;;
  15085. esac
  15086. done
  15087. @@ -1881,39 +2220,41 @@
  15088. exit $exit_status
  15089. ' 0
  15090. for ac_signal in 1 2 13 15; do
  15091. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  15092. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  15093. done
  15094. ac_signal=0
  15095. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  15096. rm -f -r conftest* confdefs.h
  15097. +$as_echo "/* confdefs.h */" > confdefs.h
  15098. +
  15099. # Predefined preprocessor variables.
  15100. cat >>confdefs.h <<_ACEOF
  15101. #define PACKAGE_NAME "$PACKAGE_NAME"
  15102. _ACEOF
  15103. -
  15104. cat >>confdefs.h <<_ACEOF
  15105. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  15106. _ACEOF
  15107. -
  15108. cat >>confdefs.h <<_ACEOF
  15109. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  15110. _ACEOF
  15111. -
  15112. cat >>confdefs.h <<_ACEOF
  15113. #define PACKAGE_STRING "$PACKAGE_STRING"
  15114. _ACEOF
  15115. -
  15116. cat >>confdefs.h <<_ACEOF
  15117. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  15118. _ACEOF
  15119. +cat >>confdefs.h <<_ACEOF
  15120. +#define PACKAGE_URL "$PACKAGE_URL"
  15121. +_ACEOF
  15122. +
  15123. # Let the site file select an alternate cache file if it wants to.
  15124. # Prefer an explicitly selected file to automatically selected ones.
  15125. @@ -1931,8 +2272,8 @@
  15126. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  15127. do
  15128. test "x$ac_site_file" = xNONE && continue
  15129. - if test -r "$ac_site_file"; then
  15130. - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  15131. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  15132. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  15133. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  15134. sed 's/^/| /' "$ac_site_file" >&5
  15135. . "$ac_site_file"
  15136. @@ -1940,10 +2281,10 @@
  15137. done
  15138. if test -r "$cache_file"; then
  15139. - # Some versions of bash will fail to source /dev/null (special
  15140. - # files actually), so we avoid doing that.
  15141. - if test -f "$cache_file"; then
  15142. - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  15143. + # Some versions of bash will fail to source /dev/null (special files
  15144. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  15145. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  15146. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  15147. $as_echo "$as_me: loading cache $cache_file" >&6;}
  15148. case $cache_file in
  15149. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  15150. @@ -1951,7 +2292,7 @@
  15151. esac
  15152. fi
  15153. else
  15154. - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  15155. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  15156. $as_echo "$as_me: creating cache $cache_file" >&6;}
  15157. >$cache_file
  15158. fi
  15159. @@ -1966,11 +2307,11 @@
  15160. eval ac_new_val=\$ac_env_${ac_var}_value
  15161. case $ac_old_set,$ac_new_set in
  15162. set,)
  15163. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  15164. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  15165. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  15166. ac_cache_corrupted=: ;;
  15167. ,set)
  15168. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  15169. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  15170. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  15171. ac_cache_corrupted=: ;;
  15172. ,);;
  15173. @@ -1980,17 +2321,17 @@
  15174. ac_old_val_w=`echo x $ac_old_val`
  15175. ac_new_val_w=`echo x $ac_new_val`
  15176. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  15177. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  15178. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  15179. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  15180. ac_cache_corrupted=:
  15181. else
  15182. - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  15183. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  15184. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  15185. eval $ac_var=\$ac_old_val
  15186. fi
  15187. - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  15188. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  15189. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  15190. - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  15191. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  15192. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  15193. fi;;
  15194. esac
  15195. @@ -2002,43 +2343,20 @@
  15196. esac
  15197. case " $ac_configure_args " in
  15198. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  15199. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  15200. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  15201. esac
  15202. fi
  15203. done
  15204. if $ac_cache_corrupted; then
  15205. - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15206. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15208. - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  15209. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  15210. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  15211. - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  15212. -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  15213. - { (exit 1); exit 1; }; }
  15214. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  15215. fi
  15216. -
  15217. -
  15218. -
  15219. -
  15220. -
  15221. -
  15222. -
  15223. -
  15224. -
  15225. -
  15226. -
  15227. -
  15228. -
  15229. -
  15230. -
  15231. -
  15232. -
  15233. -
  15234. -
  15235. -
  15236. -
  15237. -
  15238. -
  15239. -
  15240. +## -------------------- ##
  15241. +## Main body of script. ##
  15242. +## -------------------- ##
  15243. ac_ext=c
  15244. ac_cpp='$CPP $CPPFLAGS'
  15245. @@ -2052,24 +2370,16 @@
  15246. ac_aux_dir=
  15247. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  15248. - if test -f "$ac_dir/install-sh"; then
  15249. - ac_aux_dir=$ac_dir
  15250. - ac_install_sh="$ac_aux_dir/install-sh -c"
  15251. - break
  15252. - elif test -f "$ac_dir/install.sh"; then
  15253. - ac_aux_dir=$ac_dir
  15254. - ac_install_sh="$ac_aux_dir/install.sh -c"
  15255. - break
  15256. - elif test -f "$ac_dir/shtool"; then
  15257. - ac_aux_dir=$ac_dir
  15258. - ac_install_sh="$ac_aux_dir/shtool install -c"
  15259. - break
  15260. - fi
  15261. + for ac_t in install-sh install.sh shtool; do
  15262. + if test -f "$ac_dir/$ac_t"; then
  15263. + ac_aux_dir=$ac_dir
  15264. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  15265. + break 2
  15266. + fi
  15267. + done
  15268. done
  15269. if test -z "$ac_aux_dir"; then
  15270. - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  15271. -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  15272. - { (exit 1); exit 1; }; }
  15273. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  15274. fi
  15275. # These three variables are undocumented and unsupported,
  15276. @@ -2095,10 +2405,10 @@
  15277. # OS/2's system install, which has a completely different semantic
  15278. # ./install, which can be erroneously created by make from ./install.sh.
  15279. # Reject install programs that cannot install multiple files.
  15280. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  15281. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15282. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  15283. if test -z "$INSTALL"; then
  15284. -if test "${ac_cv_path_install+set}" = set; then
  15285. +if test "${ac_cv_path_install+set}" = set; then :
  15286. $as_echo_n "(cached) " >&6
  15287. else
  15288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15289. @@ -2106,11 +2416,11 @@
  15290. do
  15291. IFS=$as_save_IFS
  15292. test -z "$as_dir" && as_dir=.
  15293. - # Account for people who put trailing slashes in PATH elements.
  15294. -case $as_dir/ in
  15295. - ./ | .// | /cC/* | \
  15296. + # Account for people who put trailing slashes in PATH elements.
  15297. +case $as_dir/ in #((
  15298. + ./ | .// | /[cC]/* | \
  15299. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15300. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  15301. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15302. /usr/ucb/* ) ;;
  15303. *)
  15304. # OSF1 and SCO ODT 3.0 have their own names for install.
  15305. @@ -2147,7 +2457,7 @@
  15306. ;;
  15307. esac
  15308. -done
  15309. + done
  15310. IFS=$as_save_IFS
  15311. rm -rf conftest.one conftest.two conftest.dir
  15312. @@ -2163,7 +2473,7 @@
  15313. INSTALL=$ac_install_sh
  15314. fi
  15315. fi
  15316. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  15317. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15318. $as_echo "$INSTALL" >&6; }
  15319. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15320. @@ -2174,7 +2484,7 @@
  15321. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15322. -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  15323. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  15324. $as_echo_n "checking whether build environment is sane... " >&6; }
  15325. # Just in case
  15326. sleep 1
  15327. @@ -2185,15 +2495,11 @@
  15328. '
  15329. case `pwd` in
  15330. *[\\\"\#\$\&\'\`$am_lf]*)
  15331. - { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  15332. -$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  15333. - { (exit 1); exit 1; }; };;
  15334. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  15335. esac
  15336. case $srcdir in
  15337. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  15338. - { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  15339. -$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  15340. - { (exit 1); exit 1; }; };;
  15341. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  15342. esac
  15343. # Do `set' in a subshell so we don't clobber the current shell's
  15344. @@ -2215,11 +2521,8 @@
  15345. # if, for instance, CONFIG_SHELL is bash and it inherits a
  15346. # broken ls alias from the environment. This has actually
  15347. # happened. Such a system could not be considered "sane".
  15348. - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  15349. -alias in your environment" >&5
  15350. -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  15351. -alias in your environment" >&2;}
  15352. - { (exit 1); exit 1; }; }
  15353. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  15354. +alias in your environment" "$LINENO" 5
  15355. fi
  15356. test "$2" = conftest.file
  15357. @@ -2228,13 +2531,10 @@
  15358. # Ok.
  15359. :
  15360. else
  15361. - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  15362. -Check your system clock" >&5
  15363. -$as_echo "$as_me: error: newly created file is older than distributed files!
  15364. -Check your system clock" >&2;}
  15365. - { (exit 1); exit 1; }; }
  15366. + as_fn_error "newly created file is older than distributed files!
  15367. +Check your system clock" "$LINENO" 5
  15368. fi
  15369. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  15370. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15371. $as_echo "yes" >&6; }
  15372. test "$program_prefix" != NONE &&
  15373. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  15374. @@ -2262,7 +2562,7 @@
  15375. am_missing_run="$MISSING --run "
  15376. else
  15377. am_missing_run=
  15378. - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  15379. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  15380. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  15381. fi
  15382. @@ -2283,9 +2583,9 @@
  15383. if test -n "$ac_tool_prefix"; then
  15384. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  15385. set dummy ${ac_tool_prefix}strip; ac_word=$2
  15386. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15387. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15388. $as_echo_n "checking for $ac_word... " >&6; }
  15389. -if test "${ac_cv_prog_STRIP+set}" = set; then
  15390. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  15391. $as_echo_n "(cached) " >&6
  15392. else
  15393. if test -n "$STRIP"; then
  15394. @@ -2296,24 +2596,24 @@
  15395. do
  15396. IFS=$as_save_IFS
  15397. test -z "$as_dir" && as_dir=.
  15398. - for ac_exec_ext in '' $ac_executable_extensions; do
  15399. + for ac_exec_ext in '' $ac_executable_extensions; do
  15400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15401. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  15402. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15403. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15404. break 2
  15405. fi
  15406. done
  15407. -done
  15408. + done
  15409. IFS=$as_save_IFS
  15410. fi
  15411. fi
  15412. STRIP=$ac_cv_prog_STRIP
  15413. if test -n "$STRIP"; then
  15414. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  15415. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  15416. $as_echo "$STRIP" >&6; }
  15417. else
  15418. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15420. $as_echo "no" >&6; }
  15421. fi
  15422. @@ -2323,9 +2623,9 @@
  15423. ac_ct_STRIP=$STRIP
  15424. # Extract the first word of "strip", so it can be a program name with args.
  15425. set dummy strip; ac_word=$2
  15426. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15427. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15428. $as_echo_n "checking for $ac_word... " >&6; }
  15429. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  15430. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  15431. $as_echo_n "(cached) " >&6
  15432. else
  15433. if test -n "$ac_ct_STRIP"; then
  15434. @@ -2336,24 +2636,24 @@
  15435. do
  15436. IFS=$as_save_IFS
  15437. test -z "$as_dir" && as_dir=.
  15438. - for ac_exec_ext in '' $ac_executable_extensions; do
  15439. + for ac_exec_ext in '' $ac_executable_extensions; do
  15440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15441. ac_cv_prog_ac_ct_STRIP="strip"
  15442. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15443. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15444. break 2
  15445. fi
  15446. done
  15447. -done
  15448. + done
  15449. IFS=$as_save_IFS
  15450. fi
  15451. fi
  15452. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  15453. if test -n "$ac_ct_STRIP"; then
  15454. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  15455. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  15456. $as_echo "$ac_ct_STRIP" >&6; }
  15457. else
  15458. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15459. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15460. $as_echo "no" >&6; }
  15461. fi
  15462. @@ -2362,7 +2662,7 @@
  15463. else
  15464. case $cross_compiling:$ac_tool_warned in
  15465. yes:)
  15466. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  15467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15469. ac_tool_warned=yes ;;
  15470. esac
  15471. @@ -2375,10 +2675,10 @@
  15472. fi
  15473. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  15474. -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  15475. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  15476. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  15477. if test -z "$MKDIR_P"; then
  15478. - if test "${ac_cv_path_mkdir+set}" = set; then
  15479. + if test "${ac_cv_path_mkdir+set}" = set; then :
  15480. $as_echo_n "(cached) " >&6
  15481. else
  15482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15483. @@ -2386,7 +2686,7 @@
  15484. do
  15485. IFS=$as_save_IFS
  15486. test -z "$as_dir" && as_dir=.
  15487. - for ac_prog in mkdir gmkdir; do
  15488. + for ac_prog in mkdir gmkdir; do
  15489. for ac_exec_ext in '' $ac_executable_extensions; do
  15490. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  15491. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  15492. @@ -2398,11 +2698,12 @@
  15493. esac
  15494. done
  15495. done
  15496. -done
  15497. + done
  15498. IFS=$as_save_IFS
  15499. fi
  15500. + test -d ./--version && rmdir ./--version
  15501. if test "${ac_cv_path_mkdir+set}" = set; then
  15502. MKDIR_P="$ac_cv_path_mkdir -p"
  15503. else
  15504. @@ -2410,11 +2711,10 @@
  15505. # value for MKDIR_P within a source directory, because that will
  15506. # break other packages using the cache if that directory is
  15507. # removed, or if the value is a relative name.
  15508. - test -d ./--version && rmdir ./--version
  15509. MKDIR_P="$ac_install_sh -d"
  15510. fi
  15511. fi
  15512. -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  15513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  15514. $as_echo "$MKDIR_P" >&6; }
  15515. mkdir_p="$MKDIR_P"
  15516. @@ -2427,9 +2727,9 @@
  15517. do
  15518. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15519. set dummy $ac_prog; ac_word=$2
  15520. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15521. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15522. $as_echo_n "checking for $ac_word... " >&6; }
  15523. -if test "${ac_cv_prog_AWK+set}" = set; then
  15524. +if test "${ac_cv_prog_AWK+set}" = set; then :
  15525. $as_echo_n "(cached) " >&6
  15526. else
  15527. if test -n "$AWK"; then
  15528. @@ -2440,24 +2740,24 @@
  15529. do
  15530. IFS=$as_save_IFS
  15531. test -z "$as_dir" && as_dir=.
  15532. - for ac_exec_ext in '' $ac_executable_extensions; do
  15533. + for ac_exec_ext in '' $ac_executable_extensions; do
  15534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15535. ac_cv_prog_AWK="$ac_prog"
  15536. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15537. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15538. break 2
  15539. fi
  15540. done
  15541. -done
  15542. + done
  15543. IFS=$as_save_IFS
  15544. fi
  15545. fi
  15546. AWK=$ac_cv_prog_AWK
  15547. if test -n "$AWK"; then
  15548. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  15549. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15550. $as_echo "$AWK" >&6; }
  15551. else
  15552. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15553. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15554. $as_echo "no" >&6; }
  15555. fi
  15556. @@ -2465,11 +2765,11 @@
  15557. test -n "$AWK" && break
  15558. done
  15559. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15560. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15561. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15562. set x ${MAKE-make}
  15563. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15564. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  15565. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  15566. $as_echo_n "(cached) " >&6
  15567. else
  15568. cat >conftest.make <<\_ACEOF
  15569. @@ -2487,11 +2787,11 @@
  15570. rm -f conftest.make
  15571. fi
  15572. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15573. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  15574. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15575. $as_echo "yes" >&6; }
  15576. SET_MAKE=
  15577. else
  15578. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15579. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15580. $as_echo "no" >&6; }
  15581. SET_MAKE="MAKE=${MAKE-make}"
  15582. fi
  15583. @@ -2511,9 +2811,7 @@
  15584. am__isrc=' -I$(srcdir)'
  15585. # test to see if srcdir already configured
  15586. if test -f $srcdir/config.status; then
  15587. - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  15588. -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  15589. - { (exit 1); exit 1; }; }
  15590. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  15591. fi
  15592. fi
  15593. @@ -2560,109 +2858,54 @@
  15594. -# Check whether --enable-shared was given.
  15595. -if test "${enable_shared+set}" = set; then
  15596. - enableval=$enable_shared; p=${PACKAGE-default}
  15597. - case $enableval in
  15598. - yes) enable_shared=yes ;;
  15599. - no) enable_shared=no ;;
  15600. - *)
  15601. - enable_shared=no
  15602. - # Look at the argument we got. We use all the common list separators.
  15603. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15604. - for pkg in $enableval; do
  15605. - IFS="$lt_save_ifs"
  15606. - if test "X$pkg" = "X$p"; then
  15607. - enable_shared=yes
  15608. - fi
  15609. - done
  15610. - IFS="$lt_save_ifs"
  15611. - ;;
  15612. - esac
  15613. -else
  15614. - enable_shared=yes
  15615. -fi
  15616. +case `pwd` in
  15617. + *\ * | *\ *)
  15618. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  15619. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  15620. +esac
  15621. -# Check whether --enable-static was given.
  15622. -if test "${enable_static+set}" = set; then
  15623. - enableval=$enable_static; p=${PACKAGE-default}
  15624. - case $enableval in
  15625. - yes) enable_static=yes ;;
  15626. - no) enable_static=no ;;
  15627. - *)
  15628. - enable_static=no
  15629. - # Look at the argument we got. We use all the common list separators.
  15630. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15631. - for pkg in $enableval; do
  15632. - IFS="$lt_save_ifs"
  15633. - if test "X$pkg" = "X$p"; then
  15634. - enable_static=yes
  15635. - fi
  15636. - done
  15637. - IFS="$lt_save_ifs"
  15638. - ;;
  15639. - esac
  15640. -else
  15641. - enable_static=yes
  15642. -fi
  15643. +
  15644. +macro_version='2.2.6b'
  15645. +macro_revision='1.3017'
  15646. -# Check whether --enable-fast-install was given.
  15647. -if test "${enable_fast_install+set}" = set; then
  15648. - enableval=$enable_fast_install; p=${PACKAGE-default}
  15649. - case $enableval in
  15650. - yes) enable_fast_install=yes ;;
  15651. - no) enable_fast_install=no ;;
  15652. - *)
  15653. - enable_fast_install=no
  15654. - # Look at the argument we got. We use all the common list separators.
  15655. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15656. - for pkg in $enableval; do
  15657. - IFS="$lt_save_ifs"
  15658. - if test "X$pkg" = "X$p"; then
  15659. - enable_fast_install=yes
  15660. - fi
  15661. - done
  15662. - IFS="$lt_save_ifs"
  15663. - ;;
  15664. - esac
  15665. -else
  15666. - enable_fast_install=yes
  15667. -fi
  15668. +
  15669. +
  15670. +
  15671. +
  15672. +
  15673. +
  15674. +
  15675. +
  15676. +
  15677. +ltmain="$ac_aux_dir/ltmain.sh"
  15678. +
  15679. # Make sure we can run config.sub.
  15680. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  15681. - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  15682. -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  15683. - { (exit 1); exit 1; }; }
  15684. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  15685. -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  15686. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  15687. $as_echo_n "checking build system type... " >&6; }
  15688. -if test "${ac_cv_build+set}" = set; then
  15689. +if test "${ac_cv_build+set}" = set; then :
  15690. $as_echo_n "(cached) " >&6
  15691. else
  15692. ac_build_alias=$build_alias
  15693. test "x$ac_build_alias" = x &&
  15694. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  15695. test "x$ac_build_alias" = x &&
  15696. - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  15697. -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  15698. - { (exit 1); exit 1; }; }
  15699. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  15700. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  15701. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  15702. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  15703. - { (exit 1); exit 1; }; }
  15704. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  15705. fi
  15706. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  15707. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  15708. $as_echo "$ac_cv_build" >&6; }
  15709. case $ac_cv_build in
  15710. *-*-*) ;;
  15711. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  15712. -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  15713. - { (exit 1); exit 1; }; };;
  15714. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  15715. esac
  15716. build=$ac_cv_build
  15717. ac_save_IFS=$IFS; IFS='-'
  15718. @@ -2678,28 +2921,24 @@
  15719. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  15720. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  15721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  15722. $as_echo_n "checking host system type... " >&6; }
  15723. -if test "${ac_cv_host+set}" = set; then
  15724. +if test "${ac_cv_host+set}" = set; then :
  15725. $as_echo_n "(cached) " >&6
  15726. else
  15727. if test "x$host_alias" = x; then
  15728. ac_cv_host=$ac_cv_build
  15729. else
  15730. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  15731. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  15732. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  15733. - { (exit 1); exit 1; }; }
  15734. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  15735. fi
  15736. fi
  15737. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  15738. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  15739. $as_echo "$ac_cv_host" >&6; }
  15740. case $ac_cv_host in
  15741. *-*-*) ;;
  15742. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  15743. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  15744. - { (exit 1); exit 1; }; };;
  15745. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  15746. esac
  15747. host=$ac_cv_host
  15748. ac_save_IFS=$IFS; IFS='-'
  15749. @@ -2727,7 +2966,7 @@
  15750. .PHONY: am__doit
  15751. END
  15752. # If we don't find an include directive, just comment out the code.
  15753. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  15754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  15755. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  15756. am__include="#"
  15757. am__quote=
  15758. @@ -2755,12 +2994,12 @@
  15759. fi
  15760. -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  15761. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  15762. $as_echo "$_am_result" >&6; }
  15763. rm -f confinc confmf
  15764. # Check whether --enable-dependency-tracking was given.
  15765. -if test "${enable_dependency_tracking+set}" = set; then
  15766. +if test "${enable_dependency_tracking+set}" = set; then :
  15767. enableval=$enable_dependency_tracking;
  15768. fi
  15769. @@ -2785,9 +3024,9 @@
  15770. if test -n "$ac_tool_prefix"; then
  15771. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  15772. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  15773. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15774. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15775. $as_echo_n "checking for $ac_word... " >&6; }
  15776. -if test "${ac_cv_prog_CC+set}" = set; then
  15777. +if test "${ac_cv_prog_CC+set}" = set; then :
  15778. $as_echo_n "(cached) " >&6
  15779. else
  15780. if test -n "$CC"; then
  15781. @@ -2798,24 +3037,24 @@
  15782. do
  15783. IFS=$as_save_IFS
  15784. test -z "$as_dir" && as_dir=.
  15785. - for ac_exec_ext in '' $ac_executable_extensions; do
  15786. + for ac_exec_ext in '' $ac_executable_extensions; do
  15787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15788. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  15789. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15790. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15791. break 2
  15792. fi
  15793. done
  15794. -done
  15795. + done
  15796. IFS=$as_save_IFS
  15797. fi
  15798. fi
  15799. CC=$ac_cv_prog_CC
  15800. if test -n "$CC"; then
  15801. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15802. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15803. $as_echo "$CC" >&6; }
  15804. else
  15805. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15806. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15807. $as_echo "no" >&6; }
  15808. fi
  15809. @@ -2825,9 +3064,9 @@
  15810. ac_ct_CC=$CC
  15811. # Extract the first word of "gcc", so it can be a program name with args.
  15812. set dummy gcc; ac_word=$2
  15813. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15814. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15815. $as_echo_n "checking for $ac_word... " >&6; }
  15816. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  15817. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15818. $as_echo_n "(cached) " >&6
  15819. else
  15820. if test -n "$ac_ct_CC"; then
  15821. @@ -2838,24 +3077,24 @@
  15822. do
  15823. IFS=$as_save_IFS
  15824. test -z "$as_dir" && as_dir=.
  15825. - for ac_exec_ext in '' $ac_executable_extensions; do
  15826. + for ac_exec_ext in '' $ac_executable_extensions; do
  15827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15828. ac_cv_prog_ac_ct_CC="gcc"
  15829. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15830. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15831. break 2
  15832. fi
  15833. done
  15834. -done
  15835. + done
  15836. IFS=$as_save_IFS
  15837. fi
  15838. fi
  15839. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  15840. if test -n "$ac_ct_CC"; then
  15841. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  15842. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  15843. $as_echo "$ac_ct_CC" >&6; }
  15844. else
  15845. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15846. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15847. $as_echo "no" >&6; }
  15848. fi
  15849. @@ -2864,7 +3103,7 @@
  15850. else
  15851. case $cross_compiling:$ac_tool_warned in
  15852. yes:)
  15853. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  15854. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15856. ac_tool_warned=yes ;;
  15857. esac
  15858. @@ -2878,9 +3117,9 @@
  15859. if test -n "$ac_tool_prefix"; then
  15860. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  15861. set dummy ${ac_tool_prefix}cc; ac_word=$2
  15862. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15863. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15864. $as_echo_n "checking for $ac_word... " >&6; }
  15865. -if test "${ac_cv_prog_CC+set}" = set; then
  15866. +if test "${ac_cv_prog_CC+set}" = set; then :
  15867. $as_echo_n "(cached) " >&6
  15868. else
  15869. if test -n "$CC"; then
  15870. @@ -2891,24 +3130,24 @@
  15871. do
  15872. IFS=$as_save_IFS
  15873. test -z "$as_dir" && as_dir=.
  15874. - for ac_exec_ext in '' $ac_executable_extensions; do
  15875. + for ac_exec_ext in '' $ac_executable_extensions; do
  15876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15877. ac_cv_prog_CC="${ac_tool_prefix}cc"
  15878. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15879. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15880. break 2
  15881. fi
  15882. done
  15883. -done
  15884. + done
  15885. IFS=$as_save_IFS
  15886. fi
  15887. fi
  15888. CC=$ac_cv_prog_CC
  15889. if test -n "$CC"; then
  15890. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15891. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15892. $as_echo "$CC" >&6; }
  15893. else
  15894. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15895. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15896. $as_echo "no" >&6; }
  15897. fi
  15898. @@ -2918,9 +3157,9 @@
  15899. if test -z "$CC"; then
  15900. # Extract the first word of "cc", so it can be a program name with args.
  15901. set dummy cc; ac_word=$2
  15902. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15904. $as_echo_n "checking for $ac_word... " >&6; }
  15905. -if test "${ac_cv_prog_CC+set}" = set; then
  15906. +if test "${ac_cv_prog_CC+set}" = set; then :
  15907. $as_echo_n "(cached) " >&6
  15908. else
  15909. if test -n "$CC"; then
  15910. @@ -2932,18 +3171,18 @@
  15911. do
  15912. IFS=$as_save_IFS
  15913. test -z "$as_dir" && as_dir=.
  15914. - for ac_exec_ext in '' $ac_executable_extensions; do
  15915. + for ac_exec_ext in '' $ac_executable_extensions; do
  15916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15917. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  15918. ac_prog_rejected=yes
  15919. continue
  15920. fi
  15921. ac_cv_prog_CC="cc"
  15922. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15923. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15924. break 2
  15925. fi
  15926. done
  15927. -done
  15928. + done
  15929. IFS=$as_save_IFS
  15930. if test $ac_prog_rejected = yes; then
  15931. @@ -2962,10 +3201,10 @@
  15932. fi
  15933. CC=$ac_cv_prog_CC
  15934. if test -n "$CC"; then
  15935. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15936. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15937. $as_echo "$CC" >&6; }
  15938. else
  15939. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15940. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15941. $as_echo "no" >&6; }
  15942. fi
  15943. @@ -2977,9 +3216,9 @@
  15944. do
  15945. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15946. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15947. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15948. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15949. $as_echo_n "checking for $ac_word... " >&6; }
  15950. -if test "${ac_cv_prog_CC+set}" = set; then
  15951. +if test "${ac_cv_prog_CC+set}" = set; then :
  15952. $as_echo_n "(cached) " >&6
  15953. else
  15954. if test -n "$CC"; then
  15955. @@ -2990,24 +3229,24 @@
  15956. do
  15957. IFS=$as_save_IFS
  15958. test -z "$as_dir" && as_dir=.
  15959. - for ac_exec_ext in '' $ac_executable_extensions; do
  15960. + for ac_exec_ext in '' $ac_executable_extensions; do
  15961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15962. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  15963. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15964. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15965. break 2
  15966. fi
  15967. done
  15968. -done
  15969. + done
  15970. IFS=$as_save_IFS
  15971. fi
  15972. fi
  15973. CC=$ac_cv_prog_CC
  15974. if test -n "$CC"; then
  15975. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15976. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15977. $as_echo "$CC" >&6; }
  15978. else
  15979. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15980. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15981. $as_echo "no" >&6; }
  15982. fi
  15983. @@ -3021,9 +3260,9 @@
  15984. do
  15985. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15986. set dummy $ac_prog; ac_word=$2
  15987. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15988. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15989. $as_echo_n "checking for $ac_word... " >&6; }
  15990. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  15991. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15992. $as_echo_n "(cached) " >&6
  15993. else
  15994. if test -n "$ac_ct_CC"; then
  15995. @@ -3034,24 +3273,24 @@
  15996. do
  15997. IFS=$as_save_IFS
  15998. test -z "$as_dir" && as_dir=.
  15999. - for ac_exec_ext in '' $ac_executable_extensions; do
  16000. + for ac_exec_ext in '' $ac_executable_extensions; do
  16001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16002. ac_cv_prog_ac_ct_CC="$ac_prog"
  16003. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16004. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16005. break 2
  16006. fi
  16007. done
  16008. -done
  16009. + done
  16010. IFS=$as_save_IFS
  16011. fi
  16012. fi
  16013. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16014. if test -n "$ac_ct_CC"; then
  16015. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16016. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  16017. $as_echo "$ac_ct_CC" >&6; }
  16018. else
  16019. - { $as_echo "$as_me:$LINENO: result: no" >&5
  16020. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16021. $as_echo "no" >&6; }
  16022. fi
  16023. @@ -3064,7 +3303,7 @@
  16024. else
  16025. case $cross_compiling:$ac_tool_warned in
  16026. yes:)
  16027. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16028. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16030. ac_tool_warned=yes ;;
  16031. esac
  16032. @@ -3075,57 +3314,37 @@
  16033. fi
  16034. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16035. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16037. -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  16038. -See \`config.log' for more details." >&5
  16039. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  16040. -See \`config.log' for more details." >&2;}
  16041. - { (exit 1); exit 1; }; }; }
  16042. +as_fn_error "no acceptable C compiler found in \$PATH
  16043. +See \`config.log' for more details." "$LINENO" 5; }
  16044. # Provide some information about the compiler.
  16045. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  16046. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  16047. set X $ac_compile
  16048. ac_compiler=$2
  16049. -{ (ac_try="$ac_compiler --version >&5"
  16050. -case "(($ac_try" in
  16051. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16052. - *) ac_try_echo=$ac_try;;
  16053. -esac
  16054. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16055. -$as_echo "$ac_try_echo") >&5
  16056. - (eval "$ac_compiler --version >&5") 2>&5
  16057. - ac_status=$?
  16058. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16059. - (exit $ac_status); }
  16060. -{ (ac_try="$ac_compiler -v >&5"
  16061. -case "(($ac_try" in
  16062. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16063. - *) ac_try_echo=$ac_try;;
  16064. -esac
  16065. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16066. -$as_echo "$ac_try_echo") >&5
  16067. - (eval "$ac_compiler -v >&5") 2>&5
  16068. - ac_status=$?
  16069. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16070. - (exit $ac_status); }
  16071. -{ (ac_try="$ac_compiler -V >&5"
  16072. +for ac_option in --version -v -V -qversion; do
  16073. + { { ac_try="$ac_compiler $ac_option >&5"
  16074. case "(($ac_try" in
  16075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16076. *) ac_try_echo=$ac_try;;
  16077. esac
  16078. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16079. -$as_echo "$ac_try_echo") >&5
  16080. - (eval "$ac_compiler -V >&5") 2>&5
  16081. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16082. +$as_echo "$ac_try_echo"; } >&5
  16083. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  16084. ac_status=$?
  16085. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16086. - (exit $ac_status); }
  16087. + if test -s conftest.err; then
  16088. + sed '10a\
  16089. +... rest of stderr output deleted ...
  16090. + 10q' conftest.err >conftest.er1
  16091. + cat conftest.er1 >&5
  16092. + fi
  16093. + rm -f conftest.er1 conftest.err
  16094. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16095. + test $ac_status = 0; }
  16096. +done
  16097. -cat >conftest.$ac_ext <<_ACEOF
  16098. -/* confdefs.h. */
  16099. -_ACEOF
  16100. -cat confdefs.h >>conftest.$ac_ext
  16101. -cat >>conftest.$ac_ext <<_ACEOF
  16102. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16103. /* end confdefs.h. */
  16104. int
  16105. @@ -3141,8 +3360,8 @@
  16106. # Try to create an executable without -o first, disregard a.out.
  16107. # It will help us diagnose broken compilers, and finding out an intuition
  16108. # of exeext.
  16109. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  16110. -$as_echo_n "checking for C compiler default output file name... " >&6; }
  16111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  16112. +$as_echo_n "checking whether the C compiler works... " >&6; }
  16113. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  16114. # The possible output files:
  16115. @@ -3158,17 +3377,17 @@
  16116. done
  16117. rm -f $ac_rmfiles
  16118. -if { (ac_try="$ac_link_default"
  16119. +if { { ac_try="$ac_link_default"
  16120. case "(($ac_try" in
  16121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16122. *) ac_try_echo=$ac_try;;
  16123. esac
  16124. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16125. -$as_echo "$ac_try_echo") >&5
  16126. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16127. +$as_echo "$ac_try_echo"; } >&5
  16128. (eval "$ac_link_default") 2>&5
  16129. ac_status=$?
  16130. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16131. - (exit $ac_status); }; then
  16132. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16133. + test $ac_status = 0; }; then :
  16134. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  16135. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  16136. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  16137. @@ -3185,7 +3404,7 @@
  16138. # certainly right.
  16139. break;;
  16140. *.* )
  16141. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  16142. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  16143. then :; else
  16144. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  16145. fi
  16146. @@ -3204,84 +3423,42 @@
  16147. else
  16148. ac_file=''
  16149. fi
  16150. -
  16151. -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  16152. -$as_echo "$ac_file" >&6; }
  16153. -if test -z "$ac_file"; then
  16154. - $as_echo "$as_me: failed program was:" >&5
  16155. +if test -z "$ac_file"; then :
  16156. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16157. +$as_echo "no" >&6; }
  16158. +$as_echo "$as_me: failed program was:" >&5
  16159. sed 's/^/| /' conftest.$ac_ext >&5
  16160. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16161. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16163. -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  16164. -See \`config.log' for more details." >&5
  16165. -$as_echo "$as_me: error: C compiler cannot create executables
  16166. -See \`config.log' for more details." >&2;}
  16167. - { (exit 77); exit 77; }; }; }
  16168. +{ as_fn_set_status 77
  16169. +as_fn_error "C compiler cannot create executables
  16170. +See \`config.log' for more details." "$LINENO" 5; }; }
  16171. +else
  16172. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16173. +$as_echo "yes" >&6; }
  16174. fi
  16175. -
  16176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  16177. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  16178. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  16179. +$as_echo "$ac_file" >&6; }
  16180. ac_exeext=$ac_cv_exeext
  16181. -# Check that the compiler produces executables we can run. If not, either
  16182. -# the compiler is broken, or we cross compile.
  16183. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  16184. -$as_echo_n "checking whether the C compiler works... " >&6; }
  16185. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  16186. -# If not cross compiling, check that we can run a simple program.
  16187. -if test "$cross_compiling" != yes; then
  16188. - if { ac_try='./$ac_file'
  16189. - { (case "(($ac_try" in
  16190. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16191. - *) ac_try_echo=$ac_try;;
  16192. -esac
  16193. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16194. -$as_echo "$ac_try_echo") >&5
  16195. - (eval "$ac_try") 2>&5
  16196. - ac_status=$?
  16197. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16198. - (exit $ac_status); }; }; then
  16199. - cross_compiling=no
  16200. - else
  16201. - if test "$cross_compiling" = maybe; then
  16202. - cross_compiling=yes
  16203. - else
  16204. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16205. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16206. -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  16207. -If you meant to cross compile, use \`--host'.
  16208. -See \`config.log' for more details." >&5
  16209. -$as_echo "$as_me: error: cannot run C compiled programs.
  16210. -If you meant to cross compile, use \`--host'.
  16211. -See \`config.log' for more details." >&2;}
  16212. - { (exit 1); exit 1; }; }; }
  16213. - fi
  16214. - fi
  16215. -fi
  16216. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  16217. -$as_echo "yes" >&6; }
  16218. -
  16219. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  16220. ac_clean_files=$ac_clean_files_save
  16221. -# Check that the compiler produces executables we can run. If not, either
  16222. -# the compiler is broken, or we cross compile.
  16223. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  16224. -$as_echo_n "checking whether we are cross compiling... " >&6; }
  16225. -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  16226. -$as_echo "$cross_compiling" >&6; }
  16227. -
  16228. -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  16229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  16230. $as_echo_n "checking for suffix of executables... " >&6; }
  16231. -if { (ac_try="$ac_link"
  16232. +if { { ac_try="$ac_link"
  16233. case "(($ac_try" in
  16234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16235. *) ac_try_echo=$ac_try;;
  16236. esac
  16237. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16238. -$as_echo "$ac_try_echo") >&5
  16239. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16240. +$as_echo "$ac_try_echo"; } >&5
  16241. (eval "$ac_link") 2>&5
  16242. ac_status=$?
  16243. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16244. - (exit $ac_status); }; then
  16245. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16246. + test $ac_status = 0; }; then :
  16247. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  16248. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  16249. # work properly (i.e., refer to `conftest.exe'), while it won't with
  16250. @@ -3296,32 +3473,83 @@
  16251. esac
  16252. done
  16253. else
  16254. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16255. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16256. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16257. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  16258. -See \`config.log' for more details." >&5
  16259. -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  16260. -See \`config.log' for more details." >&2;}
  16261. - { (exit 1); exit 1; }; }; }
  16262. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  16263. +See \`config.log' for more details." "$LINENO" 5; }
  16264. fi
  16265. -
  16266. -rm -f conftest$ac_cv_exeext
  16267. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  16268. +rm -f conftest conftest$ac_cv_exeext
  16269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  16270. $as_echo "$ac_cv_exeext" >&6; }
  16271. rm -f conftest.$ac_ext
  16272. EXEEXT=$ac_cv_exeext
  16273. ac_exeext=$EXEEXT
  16274. -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  16275. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16276. +/* end confdefs.h. */
  16277. +#include <stdio.h>
  16278. +int
  16279. +main ()
  16280. +{
  16281. +FILE *f = fopen ("conftest.out", "w");
  16282. + return ferror (f) || fclose (f) != 0;
  16283. +
  16284. + ;
  16285. + return 0;
  16286. +}
  16287. +_ACEOF
  16288. +ac_clean_files="$ac_clean_files conftest.out"
  16289. +# Check that the compiler produces executables we can run. If not, either
  16290. +# the compiler is broken, or we cross compile.
  16291. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  16292. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  16293. +if test "$cross_compiling" != yes; then
  16294. + { { ac_try="$ac_link"
  16295. +case "(($ac_try" in
  16296. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16297. + *) ac_try_echo=$ac_try;;
  16298. +esac
  16299. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16300. +$as_echo "$ac_try_echo"; } >&5
  16301. + (eval "$ac_link") 2>&5
  16302. + ac_status=$?
  16303. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16304. + test $ac_status = 0; }
  16305. + if { ac_try='./conftest$ac_cv_exeext'
  16306. + { { case "(($ac_try" in
  16307. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16308. + *) ac_try_echo=$ac_try;;
  16309. +esac
  16310. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16311. +$as_echo "$ac_try_echo"; } >&5
  16312. + (eval "$ac_try") 2>&5
  16313. + ac_status=$?
  16314. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16315. + test $ac_status = 0; }; }; then
  16316. + cross_compiling=no
  16317. + else
  16318. + if test "$cross_compiling" = maybe; then
  16319. + cross_compiling=yes
  16320. + else
  16321. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16322. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16323. +as_fn_error "cannot run C compiled programs.
  16324. +If you meant to cross compile, use \`--host'.
  16325. +See \`config.log' for more details." "$LINENO" 5; }
  16326. + fi
  16327. + fi
  16328. +fi
  16329. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  16330. +$as_echo "$cross_compiling" >&6; }
  16331. +
  16332. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  16333. +ac_clean_files=$ac_clean_files_save
  16334. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  16335. $as_echo_n "checking for suffix of object files... " >&6; }
  16336. -if test "${ac_cv_objext+set}" = set; then
  16337. +if test "${ac_cv_objext+set}" = set; then :
  16338. $as_echo_n "(cached) " >&6
  16339. else
  16340. - cat >conftest.$ac_ext <<_ACEOF
  16341. -/* confdefs.h. */
  16342. -_ACEOF
  16343. -cat confdefs.h >>conftest.$ac_ext
  16344. -cat >>conftest.$ac_ext <<_ACEOF
  16345. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16346. /* end confdefs.h. */
  16347. int
  16348. @@ -3333,17 +3561,17 @@
  16349. }
  16350. _ACEOF
  16351. rm -f conftest.o conftest.obj
  16352. -if { (ac_try="$ac_compile"
  16353. +if { { ac_try="$ac_compile"
  16354. case "(($ac_try" in
  16355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16356. *) ac_try_echo=$ac_try;;
  16357. esac
  16358. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16359. -$as_echo "$ac_try_echo") >&5
  16360. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16361. +$as_echo "$ac_try_echo"; } >&5
  16362. (eval "$ac_compile") 2>&5
  16363. ac_status=$?
  16364. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16365. - (exit $ac_status); }; then
  16366. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16367. + test $ac_status = 0; }; then :
  16368. for ac_file in conftest.o conftest.obj conftest.*; do
  16369. test -f "$ac_file" || continue;
  16370. case $ac_file in
  16371. @@ -3356,31 +3584,23 @@
  16372. $as_echo "$as_me: failed program was:" >&5
  16373. sed 's/^/| /' conftest.$ac_ext >&5
  16374. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16375. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16376. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16377. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  16378. -See \`config.log' for more details." >&5
  16379. -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  16380. -See \`config.log' for more details." >&2;}
  16381. - { (exit 1); exit 1; }; }; }
  16382. +as_fn_error "cannot compute suffix of object files: cannot compile
  16383. +See \`config.log' for more details." "$LINENO" 5; }
  16384. fi
  16385. -
  16386. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  16387. fi
  16388. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  16389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  16390. $as_echo "$ac_cv_objext" >&6; }
  16391. OBJEXT=$ac_cv_objext
  16392. ac_objext=$OBJEXT
  16393. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  16394. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  16395. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  16396. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  16397. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  16398. $as_echo_n "(cached) " >&6
  16399. else
  16400. - cat >conftest.$ac_ext <<_ACEOF
  16401. -/* confdefs.h. */
  16402. -_ACEOF
  16403. -cat confdefs.h >>conftest.$ac_ext
  16404. -cat >>conftest.$ac_ext <<_ACEOF
  16405. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16406. /* end confdefs.h. */
  16407. int
  16408. @@ -3394,37 +3614,16 @@
  16409. return 0;
  16410. }
  16411. _ACEOF
  16412. -rm -f conftest.$ac_objext
  16413. -if { (ac_try="$ac_compile"
  16414. -case "(($ac_try" in
  16415. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16416. - *) ac_try_echo=$ac_try;;
  16417. -esac
  16418. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16419. -$as_echo "$ac_try_echo") >&5
  16420. - (eval "$ac_compile") 2>conftest.er1
  16421. - ac_status=$?
  16422. - grep -v '^ *+' conftest.er1 >conftest.err
  16423. - rm -f conftest.er1
  16424. - cat conftest.err >&5
  16425. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16426. - (exit $ac_status); } && {
  16427. - test -z "$ac_c_werror_flag" ||
  16428. - test ! -s conftest.err
  16429. - } && test -s conftest.$ac_objext; then
  16430. +if ac_fn_c_try_compile "$LINENO"; then :
  16431. ac_compiler_gnu=yes
  16432. else
  16433. - $as_echo "$as_me: failed program was:" >&5
  16434. -sed 's/^/| /' conftest.$ac_ext >&5
  16435. -
  16436. - ac_compiler_gnu=no
  16437. + ac_compiler_gnu=no
  16438. fi
  16439. -
  16440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16441. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  16442. fi
  16443. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  16444. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  16445. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  16446. if test $ac_compiler_gnu = yes; then
  16447. GCC=yes
  16448. @@ -3433,20 +3632,16 @@
  16449. fi
  16450. ac_test_CFLAGS=${CFLAGS+set}
  16451. ac_save_CFLAGS=$CFLAGS
  16452. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  16453. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  16454. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  16455. -if test "${ac_cv_prog_cc_g+set}" = set; then
  16456. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  16457. $as_echo_n "(cached) " >&6
  16458. else
  16459. ac_save_c_werror_flag=$ac_c_werror_flag
  16460. ac_c_werror_flag=yes
  16461. ac_cv_prog_cc_g=no
  16462. CFLAGS="-g"
  16463. - cat >conftest.$ac_ext <<_ACEOF
  16464. -/* confdefs.h. */
  16465. -_ACEOF
  16466. -cat confdefs.h >>conftest.$ac_ext
  16467. -cat >>conftest.$ac_ext <<_ACEOF
  16468. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16469. /* end confdefs.h. */
  16470. int
  16471. @@ -3457,35 +3652,11 @@
  16472. return 0;
  16473. }
  16474. _ACEOF
  16475. -rm -f conftest.$ac_objext
  16476. -if { (ac_try="$ac_compile"
  16477. -case "(($ac_try" in
  16478. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16479. - *) ac_try_echo=$ac_try;;
  16480. -esac
  16481. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16482. -$as_echo "$ac_try_echo") >&5
  16483. - (eval "$ac_compile") 2>conftest.er1
  16484. - ac_status=$?
  16485. - grep -v '^ *+' conftest.er1 >conftest.err
  16486. - rm -f conftest.er1
  16487. - cat conftest.err >&5
  16488. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16489. - (exit $ac_status); } && {
  16490. - test -z "$ac_c_werror_flag" ||
  16491. - test ! -s conftest.err
  16492. - } && test -s conftest.$ac_objext; then
  16493. +if ac_fn_c_try_compile "$LINENO"; then :
  16494. ac_cv_prog_cc_g=yes
  16495. else
  16496. - $as_echo "$as_me: failed program was:" >&5
  16497. -sed 's/^/| /' conftest.$ac_ext >&5
  16498. -
  16499. - CFLAGS=""
  16500. - cat >conftest.$ac_ext <<_ACEOF
  16501. -/* confdefs.h. */
  16502. -_ACEOF
  16503. -cat confdefs.h >>conftest.$ac_ext
  16504. -cat >>conftest.$ac_ext <<_ACEOF
  16505. + CFLAGS=""
  16506. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16507. /* end confdefs.h. */
  16508. int
  16509. @@ -3496,36 +3667,12 @@
  16510. return 0;
  16511. }
  16512. _ACEOF
  16513. -rm -f conftest.$ac_objext
  16514. -if { (ac_try="$ac_compile"
  16515. -case "(($ac_try" in
  16516. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16517. - *) ac_try_echo=$ac_try;;
  16518. -esac
  16519. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16520. -$as_echo "$ac_try_echo") >&5
  16521. - (eval "$ac_compile") 2>conftest.er1
  16522. - ac_status=$?
  16523. - grep -v '^ *+' conftest.er1 >conftest.err
  16524. - rm -f conftest.er1
  16525. - cat conftest.err >&5
  16526. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16527. - (exit $ac_status); } && {
  16528. - test -z "$ac_c_werror_flag" ||
  16529. - test ! -s conftest.err
  16530. - } && test -s conftest.$ac_objext; then
  16531. - :
  16532. -else
  16533. - $as_echo "$as_me: failed program was:" >&5
  16534. -sed 's/^/| /' conftest.$ac_ext >&5
  16535. +if ac_fn_c_try_compile "$LINENO"; then :
  16536. - ac_c_werror_flag=$ac_save_c_werror_flag
  16537. +else
  16538. + ac_c_werror_flag=$ac_save_c_werror_flag
  16539. CFLAGS="-g"
  16540. - cat >conftest.$ac_ext <<_ACEOF
  16541. -/* confdefs.h. */
  16542. -_ACEOF
  16543. -cat confdefs.h >>conftest.$ac_ext
  16544. -cat >>conftest.$ac_ext <<_ACEOF
  16545. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16546. /* end confdefs.h. */
  16547. int
  16548. @@ -3536,42 +3683,17 @@
  16549. return 0;
  16550. }
  16551. _ACEOF
  16552. -rm -f conftest.$ac_objext
  16553. -if { (ac_try="$ac_compile"
  16554. -case "(($ac_try" in
  16555. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16556. - *) ac_try_echo=$ac_try;;
  16557. -esac
  16558. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16559. -$as_echo "$ac_try_echo") >&5
  16560. - (eval "$ac_compile") 2>conftest.er1
  16561. - ac_status=$?
  16562. - grep -v '^ *+' conftest.er1 >conftest.err
  16563. - rm -f conftest.er1
  16564. - cat conftest.err >&5
  16565. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16566. - (exit $ac_status); } && {
  16567. - test -z "$ac_c_werror_flag" ||
  16568. - test ! -s conftest.err
  16569. - } && test -s conftest.$ac_objext; then
  16570. +if ac_fn_c_try_compile "$LINENO"; then :
  16571. ac_cv_prog_cc_g=yes
  16572. -else
  16573. - $as_echo "$as_me: failed program was:" >&5
  16574. -sed 's/^/| /' conftest.$ac_ext >&5
  16575. -
  16576. -
  16577. fi
  16578. -
  16579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16580. fi
  16581. -
  16582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16583. fi
  16584. -
  16585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16586. ac_c_werror_flag=$ac_save_c_werror_flag
  16587. fi
  16588. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  16589. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  16590. $as_echo "$ac_cv_prog_cc_g" >&6; }
  16591. if test "$ac_test_CFLAGS" = set; then
  16592. CFLAGS=$ac_save_CFLAGS
  16593. @@ -3588,18 +3710,14 @@
  16594. CFLAGS=
  16595. fi
  16596. fi
  16597. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  16598. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  16599. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  16600. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  16601. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  16602. $as_echo_n "(cached) " >&6
  16603. else
  16604. ac_cv_prog_cc_c89=no
  16605. ac_save_CC=$CC
  16606. -cat >conftest.$ac_ext <<_ACEOF
  16607. -/* confdefs.h. */
  16608. -_ACEOF
  16609. -cat confdefs.h >>conftest.$ac_ext
  16610. -cat >>conftest.$ac_ext <<_ACEOF
  16611. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16612. /* end confdefs.h. */
  16613. #include <stdarg.h>
  16614. #include <stdio.h>
  16615. @@ -3656,32 +3774,9 @@
  16616. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  16617. do
  16618. CC="$ac_save_CC $ac_arg"
  16619. - rm -f conftest.$ac_objext
  16620. -if { (ac_try="$ac_compile"
  16621. -case "(($ac_try" in
  16622. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16623. - *) ac_try_echo=$ac_try;;
  16624. -esac
  16625. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16626. -$as_echo "$ac_try_echo") >&5
  16627. - (eval "$ac_compile") 2>conftest.er1
  16628. - ac_status=$?
  16629. - grep -v '^ *+' conftest.er1 >conftest.err
  16630. - rm -f conftest.er1
  16631. - cat conftest.err >&5
  16632. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16633. - (exit $ac_status); } && {
  16634. - test -z "$ac_c_werror_flag" ||
  16635. - test ! -s conftest.err
  16636. - } && test -s conftest.$ac_objext; then
  16637. + if ac_fn_c_try_compile "$LINENO"; then :
  16638. ac_cv_prog_cc_c89=$ac_arg
  16639. -else
  16640. - $as_echo "$as_me: failed program was:" >&5
  16641. -sed 's/^/| /' conftest.$ac_ext >&5
  16642. -
  16643. -
  16644. fi
  16645. -
  16646. rm -f core conftest.err conftest.$ac_objext
  16647. test "x$ac_cv_prog_cc_c89" != "xno" && break
  16648. done
  16649. @@ -3692,17 +3787,19 @@
  16650. # AC_CACHE_VAL
  16651. case "x$ac_cv_prog_cc_c89" in
  16652. x)
  16653. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  16654. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  16655. $as_echo "none needed" >&6; } ;;
  16656. xno)
  16657. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  16658. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  16659. $as_echo "unsupported" >&6; } ;;
  16660. *)
  16661. CC="$CC $ac_cv_prog_cc_c89"
  16662. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  16663. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  16664. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  16665. esac
  16666. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  16667. +fi
  16668. ac_ext=c
  16669. ac_cpp='$CPP $CPPFLAGS'
  16670. @@ -3712,9 +3809,9 @@
  16671. depcc="$CC" am_compiler_list=
  16672. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  16674. $as_echo_n "checking dependency style of $depcc... " >&6; }
  16675. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  16676. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  16677. $as_echo_n "(cached) " >&6
  16678. else
  16679. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16680. @@ -3822,7 +3919,7 @@
  16681. fi
  16682. fi
  16683. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  16684. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  16685. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  16686. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  16687. @@ -3837,68 +3934,91 @@
  16688. fi
  16689. -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  16690. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  16691. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  16692. -if test "${lt_cv_path_SED+set}" = set; then
  16693. +if test "${ac_cv_path_SED+set}" = set; then :
  16694. $as_echo_n "(cached) " >&6
  16695. else
  16696. - # Loop through the user's path and test for sed and gsed.
  16697. -# Then use that list of sed's as ones to test for truncation.
  16698. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16699. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  16700. + for ac_i in 1 2 3 4 5 6 7; do
  16701. + ac_script="$ac_script$as_nl$ac_script"
  16702. + done
  16703. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  16704. + { ac_script=; unset ac_script;}
  16705. + if test -z "$SED"; then
  16706. + ac_path_SED_found=false
  16707. + # Loop through the user's path and test for each of PROGNAME-LIST
  16708. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16709. for as_dir in $PATH
  16710. do
  16711. IFS=$as_save_IFS
  16712. test -z "$as_dir" && as_dir=.
  16713. - for lt_ac_prog in sed gsed; do
  16714. + for ac_prog in sed gsed; do
  16715. for ac_exec_ext in '' $ac_executable_extensions; do
  16716. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  16717. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  16718. - fi
  16719. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  16720. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  16721. +# Check for GNU ac_path_SED and select it if it is found.
  16722. + # Check for GNU $ac_path_SED
  16723. +case `"$ac_path_SED" --version 2>&1` in
  16724. +*GNU*)
  16725. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  16726. +*)
  16727. + ac_count=0
  16728. + $as_echo_n 0123456789 >"conftest.in"
  16729. + while :
  16730. + do
  16731. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16732. + mv "conftest.tmp" "conftest.in"
  16733. + cp "conftest.in" "conftest.nl"
  16734. + $as_echo '' >> "conftest.nl"
  16735. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16736. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16737. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16738. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  16739. + # Best one so far, save it but keep looking for a better one
  16740. + ac_cv_path_SED="$ac_path_SED"
  16741. + ac_path_SED_max=$ac_count
  16742. + fi
  16743. + # 10*(2^10) chars as input seems more than enough
  16744. + test $ac_count -gt 10 && break
  16745. + done
  16746. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16747. +esac
  16748. +
  16749. + $ac_path_SED_found && break 3
  16750. done
  16751. done
  16752. -done
  16753. + done
  16754. IFS=$as_save_IFS
  16755. -lt_ac_max=0
  16756. -lt_ac_count=0
  16757. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  16758. -# along with /bin/sed that truncates output.
  16759. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  16760. - test ! -f $lt_ac_sed && continue
  16761. - cat /dev/null > conftest.in
  16762. - lt_ac_count=0
  16763. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  16764. - # Check for GNU sed and select it if it is found.
  16765. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  16766. - lt_cv_path_SED=$lt_ac_sed
  16767. - break
  16768. + if test -z "$ac_cv_path_SED"; then
  16769. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  16770. fi
  16771. - while true; do
  16772. - cat conftest.in conftest.in >conftest.tmp
  16773. - mv conftest.tmp conftest.in
  16774. - cp conftest.in conftest.nl
  16775. - echo >>conftest.nl
  16776. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  16777. - cmp -s conftest.out conftest.nl || break
  16778. - # 10000 chars as input seems more than enough
  16779. - test $lt_ac_count -gt 10 && break
  16780. - lt_ac_count=`expr $lt_ac_count + 1`
  16781. - if test $lt_ac_count -gt $lt_ac_max; then
  16782. - lt_ac_max=$lt_ac_count
  16783. - lt_cv_path_SED=$lt_ac_sed
  16784. - fi
  16785. - done
  16786. -done
  16787. +else
  16788. + ac_cv_path_SED=$SED
  16789. +fi
  16790. fi
  16791. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  16792. +$as_echo "$ac_cv_path_SED" >&6; }
  16793. + SED="$ac_cv_path_SED"
  16794. + rm -f conftest.sed
  16795. +
  16796. +test -z "$SED" && SED=sed
  16797. +Xsed="$SED -e 1s/^X//"
  16798. +
  16799. +
  16800. +
  16801. +
  16802. -SED=$lt_cv_path_SED
  16803. -{ $as_echo "$as_me:$LINENO: result: $SED" >&5
  16804. -$as_echo "$SED" >&6; }
  16805. -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  16806. +
  16807. +
  16808. +
  16809. +
  16810. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  16811. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  16812. -if test "${ac_cv_path_GREP+set}" = set; then
  16813. +if test "${ac_cv_path_GREP+set}" = set; then :
  16814. $as_echo_n "(cached) " >&6
  16815. else
  16816. if test -z "$GREP"; then
  16817. @@ -3909,7 +4029,7 @@
  16818. do
  16819. IFS=$as_save_IFS
  16820. test -z "$as_dir" && as_dir=.
  16821. - for ac_prog in grep ggrep; do
  16822. + for ac_prog in grep ggrep; do
  16823. for ac_exec_ext in '' $ac_executable_extensions; do
  16824. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  16825. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  16826. @@ -3929,7 +4049,7 @@
  16827. $as_echo 'GREP' >> "conftest.nl"
  16828. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16829. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16830. - ac_count=`expr $ac_count + 1`
  16831. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16832. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  16833. # Best one so far, save it but keep looking for a better one
  16834. ac_cv_path_GREP="$ac_path_GREP"
  16835. @@ -3944,26 +4064,24 @@
  16836. $ac_path_GREP_found && break 3
  16837. done
  16838. done
  16839. -done
  16840. + done
  16841. IFS=$as_save_IFS
  16842. if test -z "$ac_cv_path_GREP"; then
  16843. - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16844. -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16845. - { (exit 1); exit 1; }; }
  16846. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16847. fi
  16848. else
  16849. ac_cv_path_GREP=$GREP
  16850. fi
  16851. fi
  16852. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  16853. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  16854. $as_echo "$ac_cv_path_GREP" >&6; }
  16855. GREP="$ac_cv_path_GREP"
  16856. -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  16857. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  16858. $as_echo_n "checking for egrep... " >&6; }
  16859. -if test "${ac_cv_path_EGREP+set}" = set; then
  16860. +if test "${ac_cv_path_EGREP+set}" = set; then :
  16861. $as_echo_n "(cached) " >&6
  16862. else
  16863. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  16864. @@ -3977,7 +4095,7 @@
  16865. do
  16866. IFS=$as_save_IFS
  16867. test -z "$as_dir" && as_dir=.
  16868. - for ac_prog in egrep; do
  16869. + for ac_prog in egrep; do
  16870. for ac_exec_ext in '' $ac_executable_extensions; do
  16871. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  16872. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  16873. @@ -3997,7 +4115,7 @@
  16874. $as_echo 'EGREP' >> "conftest.nl"
  16875. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16876. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16877. - ac_count=`expr $ac_count + 1`
  16878. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16879. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  16880. # Best one so far, save it but keep looking for a better one
  16881. ac_cv_path_EGREP="$ac_path_EGREP"
  16882. @@ -4012,12 +4130,10 @@
  16883. $ac_path_EGREP_found && break 3
  16884. done
  16885. done
  16886. -done
  16887. + done
  16888. IFS=$as_save_IFS
  16889. if test -z "$ac_cv_path_EGREP"; then
  16890. - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16891. -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16892. - { (exit 1); exit 1; }; }
  16893. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16894. fi
  16895. else
  16896. ac_cv_path_EGREP=$EGREP
  16897. @@ -4025,14 +4141,100 @@
  16898. fi
  16899. fi
  16900. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  16901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  16902. $as_echo "$ac_cv_path_EGREP" >&6; }
  16903. EGREP="$ac_cv_path_EGREP"
  16904. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  16905. +$as_echo_n "checking for fgrep... " >&6; }
  16906. +if test "${ac_cv_path_FGREP+set}" = set; then :
  16907. + $as_echo_n "(cached) " >&6
  16908. +else
  16909. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  16910. + then ac_cv_path_FGREP="$GREP -F"
  16911. + else
  16912. + if test -z "$FGREP"; then
  16913. + ac_path_FGREP_found=false
  16914. + # Loop through the user's path and test for each of PROGNAME-LIST
  16915. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16916. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16917. +do
  16918. + IFS=$as_save_IFS
  16919. + test -z "$as_dir" && as_dir=.
  16920. + for ac_prog in fgrep; do
  16921. + for ac_exec_ext in '' $ac_executable_extensions; do
  16922. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  16923. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  16924. +# Check for GNU ac_path_FGREP and select it if it is found.
  16925. + # Check for GNU $ac_path_FGREP
  16926. +case `"$ac_path_FGREP" --version 2>&1` in
  16927. +*GNU*)
  16928. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  16929. +*)
  16930. + ac_count=0
  16931. + $as_echo_n 0123456789 >"conftest.in"
  16932. + while :
  16933. + do
  16934. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16935. + mv "conftest.tmp" "conftest.in"
  16936. + cp "conftest.in" "conftest.nl"
  16937. + $as_echo 'FGREP' >> "conftest.nl"
  16938. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16939. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16940. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16941. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  16942. + # Best one so far, save it but keep looking for a better one
  16943. + ac_cv_path_FGREP="$ac_path_FGREP"
  16944. + ac_path_FGREP_max=$ac_count
  16945. + fi
  16946. + # 10*(2^10) chars as input seems more than enough
  16947. + test $ac_count -gt 10 && break
  16948. + done
  16949. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16950. +esac
  16951. +
  16952. + $ac_path_FGREP_found && break 3
  16953. + done
  16954. + done
  16955. + done
  16956. +IFS=$as_save_IFS
  16957. + if test -z "$ac_cv_path_FGREP"; then
  16958. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16959. + fi
  16960. +else
  16961. + ac_cv_path_FGREP=$FGREP
  16962. +fi
  16963. +
  16964. + fi
  16965. +fi
  16966. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  16967. +$as_echo "$ac_cv_path_FGREP" >&6; }
  16968. + FGREP="$ac_cv_path_FGREP"
  16969. +
  16970. +
  16971. +test -z "$GREP" && GREP=grep
  16972. +
  16973. +
  16974. +
  16975. +
  16976. +
  16977. +
  16978. +
  16979. +
  16980. +
  16981. +
  16982. +
  16983. +
  16984. +
  16985. +
  16986. +
  16987. +
  16988. +
  16989. +
  16990. # Check whether --with-gnu-ld was given.
  16991. -if test "${with_gnu_ld+set}" = set; then
  16992. +if test "${with_gnu_ld+set}" = set; then :
  16993. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16994. else
  16995. with_gnu_ld=no
  16996. @@ -4041,7 +4243,7 @@
  16997. ac_prog=ld
  16998. if test "$GCC" = yes; then
  16999. # Check if gcc -print-prog-name=ld gives a path.
  17000. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  17001. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  17002. $as_echo_n "checking for ld used by $CC... " >&6; }
  17003. case $host in
  17004. *-*-mingw*)
  17005. @@ -4055,9 +4257,9 @@
  17006. [\\/]* | ?:[\\/]*)
  17007. re_direlt='/[^/][^/]*/\.\./'
  17008. # Canonicalize the pathname of ld
  17009. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  17010. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  17011. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  17012. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  17013. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  17014. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  17015. done
  17016. test -z "$LD" && LD="$ac_prog"
  17017. ;;
  17018. @@ -4071,13 +4273,13 @@
  17019. ;;
  17020. esac
  17021. elif test "$with_gnu_ld" = yes; then
  17022. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  17023. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  17024. $as_echo_n "checking for GNU ld... " >&6; }
  17025. else
  17026. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  17027. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  17028. $as_echo_n "checking for non-GNU ld... " >&6; }
  17029. fi
  17030. -if test "${lt_cv_path_LD+set}" = set; then
  17031. +if test "${lt_cv_path_LD+set}" = set; then :
  17032. $as_echo_n "(cached) " >&6
  17033. else
  17034. if test -z "$LD"; then
  17035. @@ -4108,18 +4310,16 @@
  17036. LD="$lt_cv_path_LD"
  17037. if test -n "$LD"; then
  17038. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  17039. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  17040. $as_echo "$LD" >&6; }
  17041. else
  17042. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17044. $as_echo "no" >&6; }
  17045. fi
  17046. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  17047. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  17048. - { (exit 1); exit 1; }; }
  17049. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  17050. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  17051. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  17052. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  17053. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  17054. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  17055. $as_echo_n "(cached) " >&6
  17056. else
  17057. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  17058. @@ -4132,39 +4332,21 @@
  17059. ;;
  17060. esac
  17061. fi
  17062. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  17063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  17064. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  17065. with_gnu_ld=$lt_cv_prog_gnu_ld
  17066. -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  17067. -$as_echo_n "checking for $LD option to reload object files... " >&6; }
  17068. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  17069. - $as_echo_n "(cached) " >&6
  17070. -else
  17071. - lt_cv_ld_reload_flag='-r'
  17072. -fi
  17073. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  17074. -$as_echo "$lt_cv_ld_reload_flag" >&6; }
  17075. -reload_flag=$lt_cv_ld_reload_flag
  17076. -case $reload_flag in
  17077. -"" | " "*) ;;
  17078. -*) reload_flag=" $reload_flag" ;;
  17079. -esac
  17080. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17081. -case $host_os in
  17082. - darwin*)
  17083. - if test "$GCC" = yes; then
  17084. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  17085. - else
  17086. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17087. - fi
  17088. - ;;
  17089. -esac
  17090. -{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  17091. -$as_echo_n "checking for BSD-compatible nm... " >&6; }
  17092. -if test "${lt_cv_path_NM+set}" = set; then
  17093. +
  17094. +
  17095. +
  17096. +
  17097. +
  17098. +
  17099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  17100. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  17101. +if test "${lt_cv_path_NM+set}" = set; then :
  17102. $as_echo_n "(cached) " >&6
  17103. else
  17104. if test -n "$NM"; then
  17105. @@ -4208,2230 +4390,1069 @@
  17106. done
  17107. IFS="$lt_save_ifs"
  17108. done
  17109. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  17110. + : ${lt_cv_path_NM=no}
  17111. fi
  17112. fi
  17113. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  17114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  17115. $as_echo "$lt_cv_path_NM" >&6; }
  17116. -NM="$lt_cv_path_NM"
  17117. +if test "$lt_cv_path_NM" != "no"; then
  17118. + NM="$lt_cv_path_NM"
  17119. +else
  17120. + # Didn't find any BSD compatible name lister, look for dumpbin.
  17121. + if test -n "$ac_tool_prefix"; then
  17122. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  17123. + do
  17124. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17125. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17126. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17127. +$as_echo_n "checking for $ac_word... " >&6; }
  17128. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  17129. + $as_echo_n "(cached) " >&6
  17130. +else
  17131. + if test -n "$DUMPBIN"; then
  17132. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  17133. +else
  17134. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17135. +for as_dir in $PATH
  17136. +do
  17137. + IFS=$as_save_IFS
  17138. + test -z "$as_dir" && as_dir=.
  17139. + for ac_exec_ext in '' $ac_executable_extensions; do
  17140. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17141. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  17142. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17143. + break 2
  17144. + fi
  17145. +done
  17146. + done
  17147. +IFS=$as_save_IFS
  17148. -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  17149. -$as_echo_n "checking whether ln -s works... " >&6; }
  17150. -LN_S=$as_ln_s
  17151. -if test "$LN_S" = "ln -s"; then
  17152. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  17153. -$as_echo "yes" >&6; }
  17154. +fi
  17155. +fi
  17156. +DUMPBIN=$ac_cv_prog_DUMPBIN
  17157. +if test -n "$DUMPBIN"; then
  17158. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  17159. +$as_echo "$DUMPBIN" >&6; }
  17160. else
  17161. - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  17162. -$as_echo "no, using $LN_S" >&6; }
  17163. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17164. +$as_echo "no" >&6; }
  17165. fi
  17166. -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  17167. -$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  17168. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  17169. +
  17170. + test -n "$DUMPBIN" && break
  17171. + done
  17172. +fi
  17173. +if test -z "$DUMPBIN"; then
  17174. + ac_ct_DUMPBIN=$DUMPBIN
  17175. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  17176. +do
  17177. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  17178. +set dummy $ac_prog; ac_word=$2
  17179. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17180. +$as_echo_n "checking for $ac_word... " >&6; }
  17181. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  17182. $as_echo_n "(cached) " >&6
  17183. else
  17184. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  17185. -lt_cv_file_magic_test_file=
  17186. -lt_cv_deplibs_check_method='unknown'
  17187. -# Need to set the preceding variable on all platforms that support
  17188. -# interlibrary dependencies.
  17189. -# 'none' -- dependencies not supported.
  17190. -# `unknown' -- same as none, but documents that we really don't know.
  17191. -# 'pass_all' -- all dependencies passed with no checks.
  17192. -# 'test_compile' -- check by making test program.
  17193. -# 'file_magic [[regex]]' -- check by looking for files in library path
  17194. -# which responds to the $file_magic_cmd with a given extended regex.
  17195. -# If you have `file' or equivalent on your system and you're not sure
  17196. -# whether `pass_all' will *always* work, you probably want this one.
  17197. -
  17198. -case $host_os in
  17199. -aix[4-9]*)
  17200. - lt_cv_deplibs_check_method=pass_all
  17201. - ;;
  17202. + if test -n "$ac_ct_DUMPBIN"; then
  17203. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  17204. +else
  17205. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17206. +for as_dir in $PATH
  17207. +do
  17208. + IFS=$as_save_IFS
  17209. + test -z "$as_dir" && as_dir=.
  17210. + for ac_exec_ext in '' $ac_executable_extensions; do
  17211. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17212. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  17213. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17214. + break 2
  17215. + fi
  17216. +done
  17217. + done
  17218. +IFS=$as_save_IFS
  17219. -beos*)
  17220. - lt_cv_deplibs_check_method=pass_all
  17221. - ;;
  17222. +fi
  17223. +fi
  17224. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  17225. +if test -n "$ac_ct_DUMPBIN"; then
  17226. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  17227. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  17228. +else
  17229. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17230. +$as_echo "no" >&6; }
  17231. +fi
  17232. -bsdi[45]*)
  17233. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  17234. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  17235. - lt_cv_file_magic_test_file=/shlib/libc.so
  17236. - ;;
  17237. -cygwin*)
  17238. - # func_win32_libid is a shell function defined in ltmain.sh
  17239. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17240. - lt_cv_file_magic_cmd='func_win32_libid'
  17241. - ;;
  17242. + test -n "$ac_ct_DUMPBIN" && break
  17243. +done
  17244. -mingw* | pw32*)
  17245. - # Base MSYS/MinGW do not provide the 'file' command needed by
  17246. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  17247. - # unless we find 'file', for example because we are cross-compiling.
  17248. - if ( file / ) >/dev/null 2>&1; then
  17249. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17250. - lt_cv_file_magic_cmd='func_win32_libid'
  17251. + if test "x$ac_ct_DUMPBIN" = x; then
  17252. + DUMPBIN=":"
  17253. else
  17254. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  17255. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  17256. + case $cross_compiling:$ac_tool_warned in
  17257. +yes:)
  17258. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17259. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17260. +ac_tool_warned=yes ;;
  17261. +esac
  17262. + DUMPBIN=$ac_ct_DUMPBIN
  17263. fi
  17264. - ;;
  17265. +fi
  17266. -darwin* | rhapsody*)
  17267. - lt_cv_deplibs_check_method=pass_all
  17268. - ;;
  17269. -freebsd* | dragonfly*)
  17270. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  17271. - case $host_cpu in
  17272. - i*86 )
  17273. - # Not sure whether the presence of OpenBSD here was a mistake.
  17274. - # Let's accept both of them until this is cleared up.
  17275. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  17276. - lt_cv_file_magic_cmd=/usr/bin/file
  17277. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  17278. - ;;
  17279. - esac
  17280. - else
  17281. - lt_cv_deplibs_check_method=pass_all
  17282. + if test "$DUMPBIN" != ":"; then
  17283. + NM="$DUMPBIN"
  17284. fi
  17285. - ;;
  17286. +fi
  17287. +test -z "$NM" && NM=nm
  17288. -gnu*)
  17289. - lt_cv_deplibs_check_method=pass_all
  17290. - ;;
  17291. -hpux10.20* | hpux11*)
  17292. - lt_cv_file_magic_cmd=/usr/bin/file
  17293. - case $host_cpu in
  17294. - ia64*)
  17295. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  17296. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  17297. - ;;
  17298. - hppa*64*)
  17299. - 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]'
  17300. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  17301. - ;;
  17302. - *)
  17303. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  17304. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  17305. - ;;
  17306. - esac
  17307. - ;;
  17308. -interix[3-9]*)
  17309. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  17310. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  17311. - ;;
  17312. -irix5* | irix6* | nonstopux*)
  17313. - case $LD in
  17314. - *-32|*"-32 ") libmagic=32-bit;;
  17315. - *-n32|*"-n32 ") libmagic=N32;;
  17316. - *-64|*"-64 ") libmagic=64-bit;;
  17317. - *) libmagic=never-match;;
  17318. - esac
  17319. - lt_cv_deplibs_check_method=pass_all
  17320. - ;;
  17321. -# This must be Linux ELF.
  17322. -linux* | k*bsd*-gnu)
  17323. - lt_cv_deplibs_check_method=pass_all
  17324. - ;;
  17325. -netbsd*)
  17326. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  17327. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17328. - else
  17329. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  17330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  17331. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  17332. +if test "${lt_cv_nm_interface+set}" = set; then :
  17333. + $as_echo_n "(cached) " >&6
  17334. +else
  17335. + lt_cv_nm_interface="BSD nm"
  17336. + echo "int some_variable = 0;" > conftest.$ac_ext
  17337. + (eval echo "\"\$as_me:4521: $ac_compile\"" >&5)
  17338. + (eval "$ac_compile" 2>conftest.err)
  17339. + cat conftest.err >&5
  17340. + (eval echo "\"\$as_me:4524: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  17341. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  17342. + cat conftest.err >&5
  17343. + (eval echo "\"\$as_me:4527: output\"" >&5)
  17344. + cat conftest.out >&5
  17345. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  17346. + lt_cv_nm_interface="MS dumpbin"
  17347. fi
  17348. - ;;
  17349. + rm -f conftest*
  17350. +fi
  17351. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  17352. +$as_echo "$lt_cv_nm_interface" >&6; }
  17353. -newos6*)
  17354. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  17355. - lt_cv_file_magic_cmd=/usr/bin/file
  17356. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  17357. - ;;
  17358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  17359. +$as_echo_n "checking whether ln -s works... " >&6; }
  17360. +LN_S=$as_ln_s
  17361. +if test "$LN_S" = "ln -s"; then
  17362. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17363. +$as_echo "yes" >&6; }
  17364. +else
  17365. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  17366. +$as_echo "no, using $LN_S" >&6; }
  17367. +fi
  17368. -nto-qnx*)
  17369. - lt_cv_deplibs_check_method=unknown
  17370. - ;;
  17371. +# find the maximum length of command line arguments
  17372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  17373. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  17374. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  17375. + $as_echo_n "(cached) " >&6
  17376. +else
  17377. + i=0
  17378. + teststring="ABCD"
  17379. -openbsd*)
  17380. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17381. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  17382. - else
  17383. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17384. - fi
  17385. - ;;
  17386. + case $build_os in
  17387. + msdosdjgpp*)
  17388. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  17389. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  17390. + # during glob expansion). Even if it were fixed, the result of this
  17391. + # check would be larger than it should be.
  17392. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  17393. + ;;
  17394. -osf3* | osf4* | osf5*)
  17395. - lt_cv_deplibs_check_method=pass_all
  17396. - ;;
  17397. + gnu*)
  17398. + # Under GNU Hurd, this test is not required because there is
  17399. + # no limit to the length of command line arguments.
  17400. + # Libtool will interpret -1 as no limit whatsoever
  17401. + lt_cv_sys_max_cmd_len=-1;
  17402. + ;;
  17403. -rdos*)
  17404. - lt_cv_deplibs_check_method=pass_all
  17405. - ;;
  17406. + cygwin* | mingw* | cegcc*)
  17407. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  17408. + # about 5 minutes as the teststring grows exponentially.
  17409. + # Worse, since 9x/ME are not pre-emptively multitasking,
  17410. + # you end up with a "frozen" computer, even though with patience
  17411. + # the test eventually succeeds (with a max line length of 256k).
  17412. + # Instead, let's just punt: use the minimum linelength reported by
  17413. + # all of the supported platforms: 8192 (on NT/2K/XP).
  17414. + lt_cv_sys_max_cmd_len=8192;
  17415. + ;;
  17416. -solaris*)
  17417. - lt_cv_deplibs_check_method=pass_all
  17418. - ;;
  17419. + amigaos*)
  17420. + # On AmigaOS with pdksh, this test takes hours, literally.
  17421. + # So we just punt and use a minimum line length of 8192.
  17422. + lt_cv_sys_max_cmd_len=8192;
  17423. + ;;
  17424. -sysv4 | sysv4.3*)
  17425. - case $host_vendor in
  17426. - motorola)
  17427. - 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]'
  17428. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  17429. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  17430. + # This has been around since 386BSD, at least. Likely further.
  17431. + if test -x /sbin/sysctl; then
  17432. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  17433. + elif test -x /usr/sbin/sysctl; then
  17434. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  17435. + else
  17436. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  17437. + fi
  17438. + # And add a safety zone
  17439. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17440. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17441. ;;
  17442. - ncr)
  17443. - lt_cv_deplibs_check_method=pass_all
  17444. +
  17445. + interix*)
  17446. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  17447. + lt_cv_sys_max_cmd_len=196608
  17448. ;;
  17449. - sequent)
  17450. - lt_cv_file_magic_cmd='/bin/file'
  17451. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  17452. +
  17453. + osf*)
  17454. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  17455. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  17456. + # nice to cause kernel panics so lets avoid the loop below.
  17457. + # First set a reasonable default.
  17458. + lt_cv_sys_max_cmd_len=16384
  17459. + #
  17460. + if test -x /sbin/sysconfig; then
  17461. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  17462. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  17463. + esac
  17464. + fi
  17465. ;;
  17466. - sni)
  17467. - lt_cv_file_magic_cmd='/bin/file'
  17468. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  17469. - lt_cv_file_magic_test_file=/lib/libc.so
  17470. + sco3.2v5*)
  17471. + lt_cv_sys_max_cmd_len=102400
  17472. ;;
  17473. - siemens)
  17474. - lt_cv_deplibs_check_method=pass_all
  17475. + sysv5* | sco5v6* | sysv4.2uw2*)
  17476. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  17477. + if test -n "$kargmax"; then
  17478. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  17479. + else
  17480. + lt_cv_sys_max_cmd_len=32768
  17481. + fi
  17482. ;;
  17483. - pc)
  17484. - lt_cv_deplibs_check_method=pass_all
  17485. + *)
  17486. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  17487. + if test -n "$lt_cv_sys_max_cmd_len"; then
  17488. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17489. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17490. + else
  17491. + # Make teststring a little bigger before we do anything with it.
  17492. + # a 1K string should be a reasonable start.
  17493. + for i in 1 2 3 4 5 6 7 8 ; do
  17494. + teststring=$teststring$teststring
  17495. + done
  17496. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  17497. + # If test is not a shell built-in, we'll probably end up computing a
  17498. + # maximum length that is only half of the actual maximum length, but
  17499. + # we can't tell.
  17500. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  17501. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  17502. + test $i != 17 # 1/2 MB should be enough
  17503. + do
  17504. + i=`expr $i + 1`
  17505. + teststring=$teststring$teststring
  17506. + done
  17507. + # Only check the string length outside the loop.
  17508. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  17509. + teststring=
  17510. + # Add a significant safety factor because C++ compilers can tack on
  17511. + # massive amounts of additional arguments before passing them to the
  17512. + # linker. It appears as though 1/2 is a usable value.
  17513. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  17514. + fi
  17515. ;;
  17516. esac
  17517. - ;;
  17518. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17519. - lt_cv_deplibs_check_method=pass_all
  17520. - ;;
  17521. -esac
  17522. +fi
  17523. +if test -n $lt_cv_sys_max_cmd_len ; then
  17524. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  17525. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  17526. +else
  17527. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17528. +$as_echo "none" >&6; }
  17529. fi
  17530. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  17531. -$as_echo "$lt_cv_deplibs_check_method" >&6; }
  17532. -file_magic_cmd=$lt_cv_file_magic_cmd
  17533. -deplibs_check_method=$lt_cv_deplibs_check_method
  17534. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  17535. +max_cmd_len=$lt_cv_sys_max_cmd_len
  17536. -# If no C compiler was specified, use CC.
  17537. -LTCC=${LTCC-"$CC"}
  17538. -# If no C compiler flags were specified, use CFLAGS.
  17539. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17540. -# Allow CC to be a program name with arguments.
  17541. -compiler=$CC
  17542. +: ${CP="cp -f"}
  17543. +: ${MV="mv -f"}
  17544. +: ${RM="rm -f"}
  17545. +
  17546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  17547. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  17548. +# Try some XSI features
  17549. +xsi_shell=no
  17550. +( _lt_dummy="a/b/c"
  17551. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  17552. + = c,a/b,, \
  17553. + && eval 'test $(( 1 + 1 )) -eq 2 \
  17554. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  17555. + && xsi_shell=yes
  17556. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  17557. +$as_echo "$xsi_shell" >&6; }
  17558. +
  17559. +
  17560. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  17561. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  17562. +lt_shell_append=no
  17563. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  17564. + >/dev/null 2>&1 \
  17565. + && lt_shell_append=yes
  17566. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  17567. +$as_echo "$lt_shell_append" >&6; }
  17568. -# Check whether --enable-libtool-lock was given.
  17569. -if test "${enable_libtool_lock+set}" = set; then
  17570. - enableval=$enable_libtool_lock;
  17571. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17572. + lt_unset=unset
  17573. +else
  17574. + lt_unset=false
  17575. fi
  17576. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  17577. -# Some flags need to be propagated to the compiler or linker for good
  17578. -# libtool support.
  17579. -case $host in
  17580. -ia64-*-hpux*)
  17581. - # Find out which ABI we are using.
  17582. - echo 'int i;' > conftest.$ac_ext
  17583. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17584. - (eval $ac_compile) 2>&5
  17585. - ac_status=$?
  17586. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17587. - (exit $ac_status); }; then
  17588. - case `/usr/bin/file conftest.$ac_objext` in
  17589. - *ELF-32*)
  17590. - HPUX_IA64_MODE="32"
  17591. - ;;
  17592. - *ELF-64*)
  17593. - HPUX_IA64_MODE="64"
  17594. - ;;
  17595. - esac
  17596. - fi
  17597. - rm -rf conftest*
  17598. +
  17599. +
  17600. +
  17601. +# test EBCDIC or ASCII
  17602. +case `echo X|tr X '\101'` in
  17603. + A) # ASCII based system
  17604. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  17605. + lt_SP2NL='tr \040 \012'
  17606. + lt_NL2SP='tr \015\012 \040\040'
  17607. ;;
  17608. -*-*-irix6*)
  17609. - # Find out which ABI we are using.
  17610. - echo '#line 4465 "configure"' > conftest.$ac_ext
  17611. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17612. - (eval $ac_compile) 2>&5
  17613. - ac_status=$?
  17614. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17615. - (exit $ac_status); }; then
  17616. - if test "$lt_cv_prog_gnu_ld" = yes; then
  17617. - case `/usr/bin/file conftest.$ac_objext` in
  17618. - *32-bit*)
  17619. - LD="${LD-ld} -melf32bsmip"
  17620. - ;;
  17621. - *N32*)
  17622. - LD="${LD-ld} -melf32bmipn32"
  17623. - ;;
  17624. - *64-bit*)
  17625. - LD="${LD-ld} -melf64bmip"
  17626. - ;;
  17627. - esac
  17628. - else
  17629. - case `/usr/bin/file conftest.$ac_objext` in
  17630. - *32-bit*)
  17631. - LD="${LD-ld} -32"
  17632. - ;;
  17633. - *N32*)
  17634. - LD="${LD-ld} -n32"
  17635. - ;;
  17636. - *64-bit*)
  17637. - LD="${LD-ld} -64"
  17638. - ;;
  17639. - esac
  17640. - fi
  17641. - fi
  17642. - rm -rf conftest*
  17643. + *) # EBCDIC based system
  17644. + lt_SP2NL='tr \100 \n'
  17645. + lt_NL2SP='tr \r\n \100\100'
  17646. ;;
  17647. +esac
  17648. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  17649. -s390*-*linux*|sparc*-*linux*)
  17650. - # Find out which ABI we are using.
  17651. - echo 'int i;' > conftest.$ac_ext
  17652. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17653. - (eval $ac_compile) 2>&5
  17654. - ac_status=$?
  17655. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17656. - (exit $ac_status); }; then
  17657. - case `/usr/bin/file conftest.o` in
  17658. - *32-bit*)
  17659. - case $host in
  17660. - x86_64-*kfreebsd*-gnu)
  17661. - LD="${LD-ld} -m elf_i386_fbsd"
  17662. - ;;
  17663. - x86_64-*linux*)
  17664. - LD="${LD-ld} -m elf_i386"
  17665. - ;;
  17666. - ppc64-*linux*|powerpc64-*linux*)
  17667. - LD="${LD-ld} -m elf32ppclinux"
  17668. - ;;
  17669. - s390x-*linux*)
  17670. - LD="${LD-ld} -m elf_s390"
  17671. - ;;
  17672. - sparc64-*linux*)
  17673. - LD="${LD-ld} -m elf32_sparc"
  17674. - ;;
  17675. - esac
  17676. - ;;
  17677. - *64-bit*)
  17678. - libsuff=64
  17679. - case $host in
  17680. - x86_64-*kfreebsd*-gnu)
  17681. - LD="${LD-ld} -m elf_x86_64_fbsd"
  17682. - ;;
  17683. - x86_64-*linux*)
  17684. - LD="${LD-ld} -m elf_x86_64"
  17685. - ;;
  17686. - ppc*-*linux*|powerpc*-*linux*)
  17687. - LD="${LD-ld} -m elf64ppc"
  17688. - ;;
  17689. - s390*-*linux*)
  17690. - LD="${LD-ld} -m elf64_s390"
  17691. - ;;
  17692. - sparc*-*linux*)
  17693. - LD="${LD-ld} -m elf64_sparc"
  17694. - ;;
  17695. - esac
  17696. - ;;
  17697. - esac
  17698. - fi
  17699. - rm -rf conftest*
  17700. - ;;
  17701. -*-*-sco3.2v5*)
  17702. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  17703. - SAVE_CFLAGS="$CFLAGS"
  17704. - CFLAGS="$CFLAGS -belf"
  17705. - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  17706. -$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  17707. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  17708. - $as_echo_n "(cached) " >&6
  17709. -else
  17710. - ac_ext=c
  17711. -ac_cpp='$CPP $CPPFLAGS'
  17712. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17713. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17714. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17715. - cat >conftest.$ac_ext <<_ACEOF
  17716. -/* confdefs.h. */
  17717. -_ACEOF
  17718. -cat confdefs.h >>conftest.$ac_ext
  17719. -cat >>conftest.$ac_ext <<_ACEOF
  17720. -/* end confdefs.h. */
  17721. -int
  17722. -main ()
  17723. -{
  17724. - ;
  17725. - return 0;
  17726. -}
  17727. -_ACEOF
  17728. -rm -f conftest.$ac_objext conftest$ac_exeext
  17729. -if { (ac_try="$ac_link"
  17730. -case "(($ac_try" in
  17731. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17732. - *) ac_try_echo=$ac_try;;
  17733. -esac
  17734. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17735. -$as_echo "$ac_try_echo") >&5
  17736. - (eval "$ac_link") 2>conftest.er1
  17737. - ac_status=$?
  17738. - grep -v '^ *+' conftest.er1 >conftest.err
  17739. - rm -f conftest.er1
  17740. - cat conftest.err >&5
  17741. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17742. - (exit $ac_status); } && {
  17743. - test -z "$ac_c_werror_flag" ||
  17744. - test ! -s conftest.err
  17745. - } && test -s conftest$ac_exeext && {
  17746. - test "$cross_compiling" = yes ||
  17747. - $as_test_x conftest$ac_exeext
  17748. - }; then
  17749. - lt_cv_cc_needs_belf=yes
  17750. -else
  17751. - $as_echo "$as_me: failed program was:" >&5
  17752. -sed 's/^/| /' conftest.$ac_ext >&5
  17753. - lt_cv_cc_needs_belf=no
  17754. -fi
  17755. -rm -rf conftest.dSYM
  17756. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17757. - conftest$ac_exeext conftest.$ac_ext
  17758. - ac_ext=c
  17759. -ac_cpp='$CPP $CPPFLAGS'
  17760. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17761. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17762. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17763. +
  17764. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  17765. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  17766. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  17767. + $as_echo_n "(cached) " >&6
  17768. +else
  17769. + lt_cv_ld_reload_flag='-r'
  17770. fi
  17771. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  17772. -$as_echo "$lt_cv_cc_needs_belf" >&6; }
  17773. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  17774. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  17775. - CFLAGS="$SAVE_CFLAGS"
  17776. - fi
  17777. - ;;
  17778. -sparc*-*solaris*)
  17779. - # Find out which ABI we are using.
  17780. - echo 'int i;' > conftest.$ac_ext
  17781. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17782. - (eval $ac_compile) 2>&5
  17783. - ac_status=$?
  17784. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17785. - (exit $ac_status); }; then
  17786. - case `/usr/bin/file conftest.o` in
  17787. - *64-bit*)
  17788. - case $lt_cv_prog_gnu_ld in
  17789. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  17790. - *)
  17791. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  17792. - LD="${LD-ld} -64"
  17793. - fi
  17794. - ;;
  17795. - esac
  17796. - ;;
  17797. - esac
  17798. - fi
  17799. - rm -rf conftest*
  17800. - ;;
  17801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  17802. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  17803. +reload_flag=$lt_cv_ld_reload_flag
  17804. +case $reload_flag in
  17805. +"" | " "*) ;;
  17806. +*) reload_flag=" $reload_flag" ;;
  17807. +esac
  17808. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17809. +case $host_os in
  17810. + darwin*)
  17811. + if test "$GCC" = yes; then
  17812. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  17813. + else
  17814. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17815. + fi
  17816. + ;;
  17817. +esac
  17818. -esac
  17819. -need_locks="$enable_libtool_lock"
  17820. -ac_ext=c
  17821. -ac_cpp='$CPP $CPPFLAGS'
  17822. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17823. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17824. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17825. -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  17826. -$as_echo_n "checking how to run the C preprocessor... " >&6; }
  17827. -# On Suns, sometimes $CPP names a directory.
  17828. -if test -n "$CPP" && test -d "$CPP"; then
  17829. - CPP=
  17830. -fi
  17831. -if test -z "$CPP"; then
  17832. - if test "${ac_cv_prog_CPP+set}" = set; then
  17833. +
  17834. +
  17835. +
  17836. +
  17837. +if test -n "$ac_tool_prefix"; then
  17838. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  17839. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  17840. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17841. +$as_echo_n "checking for $ac_word... " >&6; }
  17842. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  17843. $as_echo_n "(cached) " >&6
  17844. else
  17845. - # Double quotes because CPP needs to be expanded
  17846. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17847. - do
  17848. - ac_preproc_ok=false
  17849. -for ac_c_preproc_warn_flag in '' yes
  17850. + if test -n "$OBJDUMP"; then
  17851. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  17852. +else
  17853. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17854. +for as_dir in $PATH
  17855. do
  17856. - # Use a header file that comes with gcc, so configuring glibc
  17857. - # with a fresh cross-compiler works.
  17858. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17859. - # <limits.h> exists even on freestanding compilers.
  17860. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17861. - # not just through cpp. "Syntax error" is here to catch this case.
  17862. - cat >conftest.$ac_ext <<_ACEOF
  17863. -/* confdefs.h. */
  17864. -_ACEOF
  17865. -cat confdefs.h >>conftest.$ac_ext
  17866. -cat >>conftest.$ac_ext <<_ACEOF
  17867. -/* end confdefs.h. */
  17868. -#ifdef __STDC__
  17869. -# include <limits.h>
  17870. -#else
  17871. -# include <assert.h>
  17872. -#endif
  17873. - Syntax error
  17874. -_ACEOF
  17875. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17876. -case "(($ac_try" in
  17877. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17878. - *) ac_try_echo=$ac_try;;
  17879. -esac
  17880. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17881. -$as_echo "$ac_try_echo") >&5
  17882. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17883. - ac_status=$?
  17884. - grep -v '^ *+' conftest.er1 >conftest.err
  17885. - rm -f conftest.er1
  17886. - cat conftest.err >&5
  17887. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17888. - (exit $ac_status); } >/dev/null && {
  17889. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17890. - test ! -s conftest.err
  17891. - }; then
  17892. - :
  17893. + IFS=$as_save_IFS
  17894. + test -z "$as_dir" && as_dir=.
  17895. + for ac_exec_ext in '' $ac_executable_extensions; do
  17896. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17897. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  17898. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17899. + break 2
  17900. + fi
  17901. +done
  17902. + done
  17903. +IFS=$as_save_IFS
  17904. +
  17905. +fi
  17906. +fi
  17907. +OBJDUMP=$ac_cv_prog_OBJDUMP
  17908. +if test -n "$OBJDUMP"; then
  17909. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  17910. +$as_echo "$OBJDUMP" >&6; }
  17911. else
  17912. - $as_echo "$as_me: failed program was:" >&5
  17913. -sed 's/^/| /' conftest.$ac_ext >&5
  17914. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17915. +$as_echo "no" >&6; }
  17916. +fi
  17917. +
  17918. - # Broken: fails on valid input.
  17919. -continue
  17920. fi
  17921. +if test -z "$ac_cv_prog_OBJDUMP"; then
  17922. + ac_ct_OBJDUMP=$OBJDUMP
  17923. + # Extract the first word of "objdump", so it can be a program name with args.
  17924. +set dummy objdump; ac_word=$2
  17925. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17926. +$as_echo_n "checking for $ac_word... " >&6; }
  17927. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  17928. + $as_echo_n "(cached) " >&6
  17929. +else
  17930. + if test -n "$ac_ct_OBJDUMP"; then
  17931. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  17932. +else
  17933. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17934. +for as_dir in $PATH
  17935. +do
  17936. + IFS=$as_save_IFS
  17937. + test -z "$as_dir" && as_dir=.
  17938. + for ac_exec_ext in '' $ac_executable_extensions; do
  17939. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17940. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  17941. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17942. + break 2
  17943. + fi
  17944. +done
  17945. + done
  17946. +IFS=$as_save_IFS
  17947. -rm -f conftest.err conftest.$ac_ext
  17948. +fi
  17949. +fi
  17950. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  17951. +if test -n "$ac_ct_OBJDUMP"; then
  17952. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  17953. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  17954. +else
  17955. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17956. +$as_echo "no" >&6; }
  17957. +fi
  17958. - # OK, works on sane cases. Now check whether nonexistent headers
  17959. - # can be detected and how.
  17960. - cat >conftest.$ac_ext <<_ACEOF
  17961. -/* confdefs.h. */
  17962. -_ACEOF
  17963. -cat confdefs.h >>conftest.$ac_ext
  17964. -cat >>conftest.$ac_ext <<_ACEOF
  17965. -/* end confdefs.h. */
  17966. -#include <ac_nonexistent.h>
  17967. -_ACEOF
  17968. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17969. -case "(($ac_try" in
  17970. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17971. - *) ac_try_echo=$ac_try;;
  17972. + if test "x$ac_ct_OBJDUMP" = x; then
  17973. + OBJDUMP="false"
  17974. + else
  17975. + case $cross_compiling:$ac_tool_warned in
  17976. +yes:)
  17977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17978. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17979. +ac_tool_warned=yes ;;
  17980. esac
  17981. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17982. -$as_echo "$ac_try_echo") >&5
  17983. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17984. - ac_status=$?
  17985. - grep -v '^ *+' conftest.er1 >conftest.err
  17986. - rm -f conftest.er1
  17987. - cat conftest.err >&5
  17988. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17989. - (exit $ac_status); } >/dev/null && {
  17990. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17991. - test ! -s conftest.err
  17992. - }; then
  17993. - # Broken: success on invalid input.
  17994. -continue
  17995. + OBJDUMP=$ac_ct_OBJDUMP
  17996. + fi
  17997. else
  17998. - $as_echo "$as_me: failed program was:" >&5
  17999. -sed 's/^/| /' conftest.$ac_ext >&5
  18000. -
  18001. - # Passes both tests.
  18002. -ac_preproc_ok=:
  18003. -break
  18004. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  18005. fi
  18006. -rm -f conftest.err conftest.$ac_ext
  18007. +test -z "$OBJDUMP" && OBJDUMP=objdump
  18008. -done
  18009. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18010. -rm -f conftest.err conftest.$ac_ext
  18011. -if $ac_preproc_ok; then
  18012. - break
  18013. -fi
  18014. - done
  18015. - ac_cv_prog_CPP=$CPP
  18016. -fi
  18017. - CPP=$ac_cv_prog_CPP
  18018. +
  18019. +
  18020. +
  18021. +
  18022. +
  18023. +
  18024. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  18025. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  18026. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  18027. + $as_echo_n "(cached) " >&6
  18028. else
  18029. - ac_cv_prog_CPP=$CPP
  18030. -fi
  18031. -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  18032. -$as_echo "$CPP" >&6; }
  18033. -ac_preproc_ok=false
  18034. -for ac_c_preproc_warn_flag in '' yes
  18035. -do
  18036. - # Use a header file that comes with gcc, so configuring glibc
  18037. - # with a fresh cross-compiler works.
  18038. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18039. - # <limits.h> exists even on freestanding compilers.
  18040. - # On the NeXT, cc -E runs the code through the compiler's parser,
  18041. - # not just through cpp. "Syntax error" is here to catch this case.
  18042. - cat >conftest.$ac_ext <<_ACEOF
  18043. -/* confdefs.h. */
  18044. -_ACEOF
  18045. -cat confdefs.h >>conftest.$ac_ext
  18046. -cat >>conftest.$ac_ext <<_ACEOF
  18047. -/* end confdefs.h. */
  18048. -#ifdef __STDC__
  18049. -# include <limits.h>
  18050. -#else
  18051. -# include <assert.h>
  18052. -#endif
  18053. - Syntax error
  18054. -_ACEOF
  18055. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18056. -case "(($ac_try" in
  18057. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18058. - *) ac_try_echo=$ac_try;;
  18059. -esac
  18060. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18061. -$as_echo "$ac_try_echo") >&5
  18062. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18063. - ac_status=$?
  18064. - grep -v '^ *+' conftest.er1 >conftest.err
  18065. - rm -f conftest.er1
  18066. - cat conftest.err >&5
  18067. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18068. - (exit $ac_status); } >/dev/null && {
  18069. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18070. - test ! -s conftest.err
  18071. - }; then
  18072. - :
  18073. -else
  18074. - $as_echo "$as_me: failed program was:" >&5
  18075. -sed 's/^/| /' conftest.$ac_ext >&5
  18076. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  18077. +lt_cv_file_magic_test_file=
  18078. +lt_cv_deplibs_check_method='unknown'
  18079. +# Need to set the preceding variable on all platforms that support
  18080. +# interlibrary dependencies.
  18081. +# 'none' -- dependencies not supported.
  18082. +# `unknown' -- same as none, but documents that we really don't know.
  18083. +# 'pass_all' -- all dependencies passed with no checks.
  18084. +# 'test_compile' -- check by making test program.
  18085. +# 'file_magic [[regex]]' -- check by looking for files in library path
  18086. +# which responds to the $file_magic_cmd with a given extended regex.
  18087. +# If you have `file' or equivalent on your system and you're not sure
  18088. +# whether `pass_all' will *always* work, you probably want this one.
  18089. - # Broken: fails on valid input.
  18090. -continue
  18091. -fi
  18092. +case $host_os in
  18093. +aix[4-9]*)
  18094. + lt_cv_deplibs_check_method=pass_all
  18095. + ;;
  18096. -rm -f conftest.err conftest.$ac_ext
  18097. +beos*)
  18098. + lt_cv_deplibs_check_method=pass_all
  18099. + ;;
  18100. - # OK, works on sane cases. Now check whether nonexistent headers
  18101. - # can be detected and how.
  18102. - cat >conftest.$ac_ext <<_ACEOF
  18103. -/* confdefs.h. */
  18104. -_ACEOF
  18105. -cat confdefs.h >>conftest.$ac_ext
  18106. -cat >>conftest.$ac_ext <<_ACEOF
  18107. -/* end confdefs.h. */
  18108. -#include <ac_nonexistent.h>
  18109. -_ACEOF
  18110. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18111. -case "(($ac_try" in
  18112. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18113. - *) ac_try_echo=$ac_try;;
  18114. -esac
  18115. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18116. -$as_echo "$ac_try_echo") >&5
  18117. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18118. - ac_status=$?
  18119. - grep -v '^ *+' conftest.er1 >conftest.err
  18120. - rm -f conftest.er1
  18121. - cat conftest.err >&5
  18122. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18123. - (exit $ac_status); } >/dev/null && {
  18124. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18125. - test ! -s conftest.err
  18126. - }; then
  18127. - # Broken: success on invalid input.
  18128. -continue
  18129. -else
  18130. - $as_echo "$as_me: failed program was:" >&5
  18131. -sed 's/^/| /' conftest.$ac_ext >&5
  18132. +bsdi[45]*)
  18133. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  18134. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  18135. + lt_cv_file_magic_test_file=/shlib/libc.so
  18136. + ;;
  18137. - # Passes both tests.
  18138. -ac_preproc_ok=:
  18139. -break
  18140. -fi
  18141. +cygwin*)
  18142. + # func_win32_libid is a shell function defined in ltmain.sh
  18143. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18144. + lt_cv_file_magic_cmd='func_win32_libid'
  18145. + ;;
  18146. -rm -f conftest.err conftest.$ac_ext
  18147. +mingw* | pw32*)
  18148. + # Base MSYS/MinGW do not provide the 'file' command needed by
  18149. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  18150. + # unless we find 'file', for example because we are cross-compiling.
  18151. + if ( file / ) >/dev/null 2>&1; then
  18152. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18153. + lt_cv_file_magic_cmd='func_win32_libid'
  18154. + else
  18155. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  18156. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  18157. + fi
  18158. + ;;
  18159. -done
  18160. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18161. -rm -f conftest.err conftest.$ac_ext
  18162. -if $ac_preproc_ok; then
  18163. - :
  18164. -else
  18165. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18166. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18167. -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  18168. -See \`config.log' for more details." >&5
  18169. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  18170. -See \`config.log' for more details." >&2;}
  18171. - { (exit 1); exit 1; }; }; }
  18172. -fi
  18173. +cegcc)
  18174. + # use the weaker test based on 'objdump'. See mingw*.
  18175. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  18176. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  18177. + ;;
  18178. -ac_ext=c
  18179. -ac_cpp='$CPP $CPPFLAGS'
  18180. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18181. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18182. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18183. +darwin* | rhapsody*)
  18184. + lt_cv_deplibs_check_method=pass_all
  18185. + ;;
  18186. +freebsd* | dragonfly*)
  18187. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  18188. + case $host_cpu in
  18189. + i*86 )
  18190. + # Not sure whether the presence of OpenBSD here was a mistake.
  18191. + # Let's accept both of them until this is cleared up.
  18192. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  18193. + lt_cv_file_magic_cmd=/usr/bin/file
  18194. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  18195. + ;;
  18196. + esac
  18197. + else
  18198. + lt_cv_deplibs_check_method=pass_all
  18199. + fi
  18200. + ;;
  18201. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18202. -$as_echo_n "checking for ANSI C header files... " >&6; }
  18203. -if test "${ac_cv_header_stdc+set}" = set; then
  18204. - $as_echo_n "(cached) " >&6
  18205. -else
  18206. - cat >conftest.$ac_ext <<_ACEOF
  18207. -/* confdefs.h. */
  18208. -_ACEOF
  18209. -cat confdefs.h >>conftest.$ac_ext
  18210. -cat >>conftest.$ac_ext <<_ACEOF
  18211. -/* end confdefs.h. */
  18212. -#include <stdlib.h>
  18213. -#include <stdarg.h>
  18214. -#include <string.h>
  18215. -#include <float.h>
  18216. +gnu*)
  18217. + lt_cv_deplibs_check_method=pass_all
  18218. + ;;
  18219. -int
  18220. -main ()
  18221. -{
  18222. +hpux10.20* | hpux11*)
  18223. + lt_cv_file_magic_cmd=/usr/bin/file
  18224. + case $host_cpu in
  18225. + ia64*)
  18226. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  18227. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  18228. + ;;
  18229. + hppa*64*)
  18230. + 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]'
  18231. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  18232. + ;;
  18233. + *)
  18234. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  18235. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  18236. + ;;
  18237. + esac
  18238. + ;;
  18239. - ;
  18240. - return 0;
  18241. -}
  18242. -_ACEOF
  18243. -rm -f conftest.$ac_objext
  18244. -if { (ac_try="$ac_compile"
  18245. -case "(($ac_try" in
  18246. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18247. - *) ac_try_echo=$ac_try;;
  18248. -esac
  18249. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18250. -$as_echo "$ac_try_echo") >&5
  18251. - (eval "$ac_compile") 2>conftest.er1
  18252. - ac_status=$?
  18253. - grep -v '^ *+' conftest.er1 >conftest.err
  18254. - rm -f conftest.er1
  18255. - cat conftest.err >&5
  18256. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18257. - (exit $ac_status); } && {
  18258. - test -z "$ac_c_werror_flag" ||
  18259. - test ! -s conftest.err
  18260. - } && test -s conftest.$ac_objext; then
  18261. - ac_cv_header_stdc=yes
  18262. -else
  18263. - $as_echo "$as_me: failed program was:" >&5
  18264. -sed 's/^/| /' conftest.$ac_ext >&5
  18265. +interix[3-9]*)
  18266. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  18267. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  18268. + ;;
  18269. - ac_cv_header_stdc=no
  18270. -fi
  18271. +irix5* | irix6* | nonstopux*)
  18272. + case $LD in
  18273. + *-32|*"-32 ") libmagic=32-bit;;
  18274. + *-n32|*"-n32 ") libmagic=N32;;
  18275. + *-64|*"-64 ") libmagic=64-bit;;
  18276. + *) libmagic=never-match;;
  18277. + esac
  18278. + lt_cv_deplibs_check_method=pass_all
  18279. + ;;
  18280. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18281. -
  18282. -if test $ac_cv_header_stdc = yes; then
  18283. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18284. - cat >conftest.$ac_ext <<_ACEOF
  18285. -/* confdefs.h. */
  18286. -_ACEOF
  18287. -cat confdefs.h >>conftest.$ac_ext
  18288. -cat >>conftest.$ac_ext <<_ACEOF
  18289. -/* end confdefs.h. */
  18290. -#include <string.h>
  18291. -
  18292. -_ACEOF
  18293. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18294. - $EGREP "memchr" >/dev/null 2>&1; then
  18295. - :
  18296. -else
  18297. - ac_cv_header_stdc=no
  18298. -fi
  18299. -rm -f conftest*
  18300. -
  18301. -fi
  18302. -
  18303. -if test $ac_cv_header_stdc = yes; then
  18304. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18305. - cat >conftest.$ac_ext <<_ACEOF
  18306. -/* confdefs.h. */
  18307. -_ACEOF
  18308. -cat confdefs.h >>conftest.$ac_ext
  18309. -cat >>conftest.$ac_ext <<_ACEOF
  18310. -/* end confdefs.h. */
  18311. -#include <stdlib.h>
  18312. -
  18313. -_ACEOF
  18314. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18315. - $EGREP "free" >/dev/null 2>&1; then
  18316. - :
  18317. -else
  18318. - ac_cv_header_stdc=no
  18319. -fi
  18320. -rm -f conftest*
  18321. -
  18322. -fi
  18323. -
  18324. -if test $ac_cv_header_stdc = yes; then
  18325. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18326. - if test "$cross_compiling" = yes; then
  18327. - :
  18328. -else
  18329. - cat >conftest.$ac_ext <<_ACEOF
  18330. -/* confdefs.h. */
  18331. -_ACEOF
  18332. -cat confdefs.h >>conftest.$ac_ext
  18333. -cat >>conftest.$ac_ext <<_ACEOF
  18334. -/* end confdefs.h. */
  18335. -#include <ctype.h>
  18336. -#include <stdlib.h>
  18337. -#if ((' ' & 0x0FF) == 0x020)
  18338. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18339. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18340. -#else
  18341. -# define ISLOWER(c) \
  18342. - (('a' <= (c) && (c) <= 'i') \
  18343. - || ('j' <= (c) && (c) <= 'r') \
  18344. - || ('s' <= (c) && (c) <= 'z'))
  18345. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18346. -#endif
  18347. -
  18348. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18349. -int
  18350. -main ()
  18351. -{
  18352. - int i;
  18353. - for (i = 0; i < 256; i++)
  18354. - if (XOR (islower (i), ISLOWER (i))
  18355. - || toupper (i) != TOUPPER (i))
  18356. - return 2;
  18357. - return 0;
  18358. -}
  18359. -_ACEOF
  18360. -rm -f conftest$ac_exeext
  18361. -if { (ac_try="$ac_link"
  18362. -case "(($ac_try" in
  18363. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18364. - *) ac_try_echo=$ac_try;;
  18365. -esac
  18366. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18367. -$as_echo "$ac_try_echo") >&5
  18368. - (eval "$ac_link") 2>&5
  18369. - ac_status=$?
  18370. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18371. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18372. - { (case "(($ac_try" in
  18373. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18374. - *) ac_try_echo=$ac_try;;
  18375. -esac
  18376. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18377. -$as_echo "$ac_try_echo") >&5
  18378. - (eval "$ac_try") 2>&5
  18379. - ac_status=$?
  18380. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18381. - (exit $ac_status); }; }; then
  18382. - :
  18383. -else
  18384. - $as_echo "$as_me: program exited with status $ac_status" >&5
  18385. -$as_echo "$as_me: failed program was:" >&5
  18386. -sed 's/^/| /' conftest.$ac_ext >&5
  18387. -
  18388. -( exit $ac_status )
  18389. -ac_cv_header_stdc=no
  18390. -fi
  18391. -rm -rf conftest.dSYM
  18392. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18393. -fi
  18394. -
  18395. -
  18396. -fi
  18397. -fi
  18398. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18399. -$as_echo "$ac_cv_header_stdc" >&6; }
  18400. -if test $ac_cv_header_stdc = yes; then
  18401. -
  18402. -cat >>confdefs.h <<\_ACEOF
  18403. -#define STDC_HEADERS 1
  18404. -_ACEOF
  18405. -
  18406. -fi
  18407. -
  18408. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  18409. +# This must be Linux ELF.
  18410. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  18411. + lt_cv_deplibs_check_method=pass_all
  18412. + ;;
  18413. +netbsd* | netbsdelf*-gnu)
  18414. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  18415. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  18416. + else
  18417. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  18418. + fi
  18419. + ;;
  18420. +newos6*)
  18421. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  18422. + lt_cv_file_magic_cmd=/usr/bin/file
  18423. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  18424. + ;;
  18425. +*nto* | *qnx*)
  18426. + lt_cv_deplibs_check_method=pass_all
  18427. + ;;
  18428. +openbsd*)
  18429. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18430. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  18431. + else
  18432. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  18433. + fi
  18434. + ;;
  18435. +osf3* | osf4* | osf5*)
  18436. + lt_cv_deplibs_check_method=pass_all
  18437. + ;;
  18438. +rdos*)
  18439. + lt_cv_deplibs_check_method=pass_all
  18440. + ;;
  18441. +solaris*)
  18442. + lt_cv_deplibs_check_method=pass_all
  18443. + ;;
  18444. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18445. + lt_cv_deplibs_check_method=pass_all
  18446. + ;;
  18447. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  18448. - inttypes.h stdint.h unistd.h
  18449. -do
  18450. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18451. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18452. -$as_echo_n "checking for $ac_header... " >&6; }
  18453. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18454. - $as_echo_n "(cached) " >&6
  18455. -else
  18456. - cat >conftest.$ac_ext <<_ACEOF
  18457. -/* confdefs.h. */
  18458. -_ACEOF
  18459. -cat confdefs.h >>conftest.$ac_ext
  18460. -cat >>conftest.$ac_ext <<_ACEOF
  18461. -/* end confdefs.h. */
  18462. -$ac_includes_default
  18463. +sysv4 | sysv4.3*)
  18464. + case $host_vendor in
  18465. + motorola)
  18466. + 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]'
  18467. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  18468. + ;;
  18469. + ncr)
  18470. + lt_cv_deplibs_check_method=pass_all
  18471. + ;;
  18472. + sequent)
  18473. + lt_cv_file_magic_cmd='/bin/file'
  18474. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  18475. + ;;
  18476. + sni)
  18477. + lt_cv_file_magic_cmd='/bin/file'
  18478. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  18479. + lt_cv_file_magic_test_file=/lib/libc.so
  18480. + ;;
  18481. + siemens)
  18482. + lt_cv_deplibs_check_method=pass_all
  18483. + ;;
  18484. + pc)
  18485. + lt_cv_deplibs_check_method=pass_all
  18486. + ;;
  18487. + esac
  18488. + ;;
  18489. -#include <$ac_header>
  18490. -_ACEOF
  18491. -rm -f conftest.$ac_objext
  18492. -if { (ac_try="$ac_compile"
  18493. -case "(($ac_try" in
  18494. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18495. - *) ac_try_echo=$ac_try;;
  18496. +tpf*)
  18497. + lt_cv_deplibs_check_method=pass_all
  18498. + ;;
  18499. esac
  18500. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18501. -$as_echo "$ac_try_echo") >&5
  18502. - (eval "$ac_compile") 2>conftest.er1
  18503. - ac_status=$?
  18504. - grep -v '^ *+' conftest.er1 >conftest.err
  18505. - rm -f conftest.er1
  18506. - cat conftest.err >&5
  18507. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18508. - (exit $ac_status); } && {
  18509. - test -z "$ac_c_werror_flag" ||
  18510. - test ! -s conftest.err
  18511. - } && test -s conftest.$ac_objext; then
  18512. - eval "$as_ac_Header=yes"
  18513. -else
  18514. - $as_echo "$as_me: failed program was:" >&5
  18515. -sed 's/^/| /' conftest.$ac_ext >&5
  18516. -
  18517. - eval "$as_ac_Header=no"
  18518. -fi
  18519. -
  18520. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18521. -fi
  18522. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  18523. - $as_echo "$as_val"'`
  18524. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18525. -$as_echo "$ac_res" >&6; }
  18526. -as_val=`eval 'as_val=${'$as_ac_Header'}
  18527. - $as_echo "$as_val"'`
  18528. - if test "x$as_val" = x""yes; then
  18529. - cat >>confdefs.h <<_ACEOF
  18530. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18531. -_ACEOF
  18532. fi
  18533. -
  18534. -done
  18535. -
  18536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  18537. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  18538. +file_magic_cmd=$lt_cv_file_magic_cmd
  18539. +deplibs_check_method=$lt_cv_deplibs_check_method
  18540. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  18541. -for ac_header in dlfcn.h
  18542. -do
  18543. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18544. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18545. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18546. -$as_echo_n "checking for $ac_header... " >&6; }
  18547. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18548. - $as_echo_n "(cached) " >&6
  18549. -fi
  18550. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  18551. - $as_echo "$as_val"'`
  18552. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18553. -$as_echo "$ac_res" >&6; }
  18554. -else
  18555. - # Is the header compilable?
  18556. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18557. -$as_echo_n "checking $ac_header usability... " >&6; }
  18558. -cat >conftest.$ac_ext <<_ACEOF
  18559. -/* confdefs.h. */
  18560. -_ACEOF
  18561. -cat confdefs.h >>conftest.$ac_ext
  18562. -cat >>conftest.$ac_ext <<_ACEOF
  18563. -/* end confdefs.h. */
  18564. -$ac_includes_default
  18565. -#include <$ac_header>
  18566. -_ACEOF
  18567. -rm -f conftest.$ac_objext
  18568. -if { (ac_try="$ac_compile"
  18569. -case "(($ac_try" in
  18570. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18571. - *) ac_try_echo=$ac_try;;
  18572. -esac
  18573. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18574. -$as_echo "$ac_try_echo") >&5
  18575. - (eval "$ac_compile") 2>conftest.er1
  18576. - ac_status=$?
  18577. - grep -v '^ *+' conftest.er1 >conftest.err
  18578. - rm -f conftest.er1
  18579. - cat conftest.err >&5
  18580. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18581. - (exit $ac_status); } && {
  18582. - test -z "$ac_c_werror_flag" ||
  18583. - test ! -s conftest.err
  18584. - } && test -s conftest.$ac_objext; then
  18585. - ac_header_compiler=yes
  18586. -else
  18587. - $as_echo "$as_me: failed program was:" >&5
  18588. -sed 's/^/| /' conftest.$ac_ext >&5
  18589. - ac_header_compiler=no
  18590. -fi
  18591. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18592. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18593. -$as_echo "$ac_header_compiler" >&6; }
  18594. -# Is the header present?
  18595. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18596. -$as_echo_n "checking $ac_header presence... " >&6; }
  18597. -cat >conftest.$ac_ext <<_ACEOF
  18598. -/* confdefs.h. */
  18599. -_ACEOF
  18600. -cat confdefs.h >>conftest.$ac_ext
  18601. -cat >>conftest.$ac_ext <<_ACEOF
  18602. -/* end confdefs.h. */
  18603. -#include <$ac_header>
  18604. -_ACEOF
  18605. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18606. -case "(($ac_try" in
  18607. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18608. - *) ac_try_echo=$ac_try;;
  18609. -esac
  18610. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18611. -$as_echo "$ac_try_echo") >&5
  18612. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18613. - ac_status=$?
  18614. - grep -v '^ *+' conftest.er1 >conftest.err
  18615. - rm -f conftest.er1
  18616. - cat conftest.err >&5
  18617. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18618. - (exit $ac_status); } >/dev/null && {
  18619. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18620. - test ! -s conftest.err
  18621. - }; then
  18622. - ac_header_preproc=yes
  18623. -else
  18624. - $as_echo "$as_me: failed program was:" >&5
  18625. -sed 's/^/| /' conftest.$ac_ext >&5
  18626. - ac_header_preproc=no
  18627. -fi
  18628. -rm -f conftest.err conftest.$ac_ext
  18629. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18630. -$as_echo "$ac_header_preproc" >&6; }
  18631. -# So? What about this header?
  18632. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18633. - yes:no: )
  18634. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18635. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18636. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18637. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18638. - ac_header_preproc=yes
  18639. - ;;
  18640. - no:yes:* )
  18641. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18642. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18643. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18644. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18645. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18646. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18647. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18648. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18649. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18650. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18651. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18652. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18653. - ( cat <<\_ASBOX
  18654. -## -------------------------------------- ##
  18655. -## Report this to nfsv4-wg@citi.umich.edu ##
  18656. -## -------------------------------------- ##
  18657. -_ASBOX
  18658. - ) | sed "s/^/$as_me: WARNING: /" >&2
  18659. - ;;
  18660. -esac
  18661. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18662. -$as_echo_n "checking for $ac_header... " >&6; }
  18663. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18664. - $as_echo_n "(cached) " >&6
  18665. -else
  18666. - eval "$as_ac_Header=\$ac_header_preproc"
  18667. -fi
  18668. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  18669. - $as_echo "$as_val"'`
  18670. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18671. -$as_echo "$ac_res" >&6; }
  18672. -fi
  18673. -as_val=`eval 'as_val=${'$as_ac_Header'}
  18674. - $as_echo "$as_val"'`
  18675. - if test "x$as_val" = x""yes; then
  18676. - cat >>confdefs.h <<_ACEOF
  18677. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18678. -_ACEOF
  18679. -fi
  18680. -done
  18681. -ac_ext=cpp
  18682. -ac_cpp='$CXXCPP $CPPFLAGS'
  18683. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18684. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18685. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18686. -if test -z "$CXX"; then
  18687. - if test -n "$CCC"; then
  18688. - CXX=$CCC
  18689. - else
  18690. - if test -n "$ac_tool_prefix"; then
  18691. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18692. - do
  18693. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18694. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18695. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18696. +if test -n "$ac_tool_prefix"; then
  18697. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  18698. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  18699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18700. $as_echo_n "checking for $ac_word... " >&6; }
  18701. -if test "${ac_cv_prog_CXX+set}" = set; then
  18702. +if test "${ac_cv_prog_AR+set}" = set; then :
  18703. $as_echo_n "(cached) " >&6
  18704. else
  18705. - if test -n "$CXX"; then
  18706. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18707. + if test -n "$AR"; then
  18708. + ac_cv_prog_AR="$AR" # Let the user override the test.
  18709. else
  18710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18711. for as_dir in $PATH
  18712. do
  18713. IFS=$as_save_IFS
  18714. test -z "$as_dir" && as_dir=.
  18715. - for ac_exec_ext in '' $ac_executable_extensions; do
  18716. + for ac_exec_ext in '' $ac_executable_extensions; do
  18717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18718. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18719. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18720. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  18721. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18722. break 2
  18723. fi
  18724. done
  18725. -done
  18726. + done
  18727. IFS=$as_save_IFS
  18728. fi
  18729. fi
  18730. -CXX=$ac_cv_prog_CXX
  18731. -if test -n "$CXX"; then
  18732. - { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  18733. -$as_echo "$CXX" >&6; }
  18734. +AR=$ac_cv_prog_AR
  18735. +if test -n "$AR"; then
  18736. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  18737. +$as_echo "$AR" >&6; }
  18738. else
  18739. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18740. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18741. $as_echo "no" >&6; }
  18742. fi
  18743. - test -n "$CXX" && break
  18744. - done
  18745. fi
  18746. -if test -z "$CXX"; then
  18747. - ac_ct_CXX=$CXX
  18748. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18749. -do
  18750. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  18751. -set dummy $ac_prog; ac_word=$2
  18752. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18753. +if test -z "$ac_cv_prog_AR"; then
  18754. + ac_ct_AR=$AR
  18755. + # Extract the first word of "ar", so it can be a program name with args.
  18756. +set dummy ar; ac_word=$2
  18757. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18758. $as_echo_n "checking for $ac_word... " >&6; }
  18759. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18760. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  18761. $as_echo_n "(cached) " >&6
  18762. else
  18763. - if test -n "$ac_ct_CXX"; then
  18764. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18765. + if test -n "$ac_ct_AR"; then
  18766. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  18767. else
  18768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18769. for as_dir in $PATH
  18770. do
  18771. IFS=$as_save_IFS
  18772. test -z "$as_dir" && as_dir=.
  18773. - for ac_exec_ext in '' $ac_executable_extensions; do
  18774. + for ac_exec_ext in '' $ac_executable_extensions; do
  18775. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18776. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  18777. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18778. + ac_cv_prog_ac_ct_AR="ar"
  18779. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18780. break 2
  18781. fi
  18782. done
  18783. -done
  18784. + done
  18785. IFS=$as_save_IFS
  18786. fi
  18787. fi
  18788. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18789. -if test -n "$ac_ct_CXX"; then
  18790. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18791. -$as_echo "$ac_ct_CXX" >&6; }
  18792. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  18793. +if test -n "$ac_ct_AR"; then
  18794. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  18795. +$as_echo "$ac_ct_AR" >&6; }
  18796. else
  18797. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18798. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18799. $as_echo "no" >&6; }
  18800. fi
  18801. -
  18802. - test -n "$ac_ct_CXX" && break
  18803. -done
  18804. -
  18805. - if test "x$ac_ct_CXX" = x; then
  18806. - CXX="g++"
  18807. + if test "x$ac_ct_AR" = x; then
  18808. + AR="false"
  18809. else
  18810. case $cross_compiling:$ac_tool_warned in
  18811. yes:)
  18812. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  18813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18815. ac_tool_warned=yes ;;
  18816. esac
  18817. - CXX=$ac_ct_CXX
  18818. + AR=$ac_ct_AR
  18819. fi
  18820. +else
  18821. + AR="$ac_cv_prog_AR"
  18822. fi
  18823. - fi
  18824. -fi
  18825. -# Provide some information about the compiler.
  18826. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18827. -set X $ac_compile
  18828. -ac_compiler=$2
  18829. -{ (ac_try="$ac_compiler --version >&5"
  18830. -case "(($ac_try" in
  18831. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18832. - *) ac_try_echo=$ac_try;;
  18833. -esac
  18834. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18835. -$as_echo "$ac_try_echo") >&5
  18836. - (eval "$ac_compiler --version >&5") 2>&5
  18837. - ac_status=$?
  18838. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18839. - (exit $ac_status); }
  18840. -{ (ac_try="$ac_compiler -v >&5"
  18841. -case "(($ac_try" in
  18842. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18843. - *) ac_try_echo=$ac_try;;
  18844. -esac
  18845. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18846. -$as_echo "$ac_try_echo") >&5
  18847. - (eval "$ac_compiler -v >&5") 2>&5
  18848. - ac_status=$?
  18849. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18850. - (exit $ac_status); }
  18851. -{ (ac_try="$ac_compiler -V >&5"
  18852. -case "(($ac_try" in
  18853. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18854. - *) ac_try_echo=$ac_try;;
  18855. -esac
  18856. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18857. -$as_echo "$ac_try_echo") >&5
  18858. - (eval "$ac_compiler -V >&5") 2>&5
  18859. - ac_status=$?
  18860. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18861. - (exit $ac_status); }
  18862. +test -z "$AR" && AR=ar
  18863. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  18864. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18865. -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  18866. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18867. - $as_echo_n "(cached) " >&6
  18868. -else
  18869. - cat >conftest.$ac_ext <<_ACEOF
  18870. -/* confdefs.h. */
  18871. -_ACEOF
  18872. -cat confdefs.h >>conftest.$ac_ext
  18873. -cat >>conftest.$ac_ext <<_ACEOF
  18874. -/* end confdefs.h. */
  18875. -int
  18876. -main ()
  18877. -{
  18878. -#ifndef __GNUC__
  18879. - choke me
  18880. -#endif
  18881. - ;
  18882. - return 0;
  18883. -}
  18884. -_ACEOF
  18885. -rm -f conftest.$ac_objext
  18886. -if { (ac_try="$ac_compile"
  18887. -case "(($ac_try" in
  18888. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18889. - *) ac_try_echo=$ac_try;;
  18890. -esac
  18891. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18892. -$as_echo "$ac_try_echo") >&5
  18893. - (eval "$ac_compile") 2>conftest.er1
  18894. - ac_status=$?
  18895. - grep -v '^ *+' conftest.er1 >conftest.err
  18896. - rm -f conftest.er1
  18897. - cat conftest.err >&5
  18898. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18899. - (exit $ac_status); } && {
  18900. - test -z "$ac_cxx_werror_flag" ||
  18901. - test ! -s conftest.err
  18902. - } && test -s conftest.$ac_objext; then
  18903. - ac_compiler_gnu=yes
  18904. +
  18905. +
  18906. +
  18907. +
  18908. +
  18909. +
  18910. +
  18911. +
  18912. +if test -n "$ac_tool_prefix"; then
  18913. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18914. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18915. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18916. +$as_echo_n "checking for $ac_word... " >&6; }
  18917. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18918. + $as_echo_n "(cached) " >&6
  18919. else
  18920. - $as_echo "$as_me: failed program was:" >&5
  18921. -sed 's/^/| /' conftest.$ac_ext >&5
  18922. + if test -n "$STRIP"; then
  18923. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18924. +else
  18925. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18926. +for as_dir in $PATH
  18927. +do
  18928. + IFS=$as_save_IFS
  18929. + test -z "$as_dir" && as_dir=.
  18930. + for ac_exec_ext in '' $ac_executable_extensions; do
  18931. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18932. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18933. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18934. + break 2
  18935. + fi
  18936. +done
  18937. + done
  18938. +IFS=$as_save_IFS
  18939. - ac_compiler_gnu=no
  18940. +fi
  18941. +fi
  18942. +STRIP=$ac_cv_prog_STRIP
  18943. +if test -n "$STRIP"; then
  18944. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  18945. +$as_echo "$STRIP" >&6; }
  18946. +else
  18947. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18948. +$as_echo "no" >&6; }
  18949. fi
  18950. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18951. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18952. fi
  18953. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18954. -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  18955. -if test $ac_compiler_gnu = yes; then
  18956. - GXX=yes
  18957. +if test -z "$ac_cv_prog_STRIP"; then
  18958. + ac_ct_STRIP=$STRIP
  18959. + # Extract the first word of "strip", so it can be a program name with args.
  18960. +set dummy strip; ac_word=$2
  18961. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18962. +$as_echo_n "checking for $ac_word... " >&6; }
  18963. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  18964. + $as_echo_n "(cached) " >&6
  18965. else
  18966. - GXX=
  18967. -fi
  18968. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  18969. -ac_save_CXXFLAGS=$CXXFLAGS
  18970. -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18971. -$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  18972. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  18973. - $as_echo_n "(cached) " >&6
  18974. -else
  18975. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18976. - ac_cxx_werror_flag=yes
  18977. - ac_cv_prog_cxx_g=no
  18978. - CXXFLAGS="-g"
  18979. - cat >conftest.$ac_ext <<_ACEOF
  18980. -/* confdefs.h. */
  18981. -_ACEOF
  18982. -cat confdefs.h >>conftest.$ac_ext
  18983. -cat >>conftest.$ac_ext <<_ACEOF
  18984. -/* end confdefs.h. */
  18985. + if test -n "$ac_ct_STRIP"; then
  18986. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18987. +else
  18988. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18989. +for as_dir in $PATH
  18990. +do
  18991. + IFS=$as_save_IFS
  18992. + test -z "$as_dir" && as_dir=.
  18993. + for ac_exec_ext in '' $ac_executable_extensions; do
  18994. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18995. + ac_cv_prog_ac_ct_STRIP="strip"
  18996. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18997. + break 2
  18998. + fi
  18999. +done
  19000. + done
  19001. +IFS=$as_save_IFS
  19002. -int
  19003. -main ()
  19004. -{
  19005. +fi
  19006. +fi
  19007. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19008. +if test -n "$ac_ct_STRIP"; then
  19009. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  19010. +$as_echo "$ac_ct_STRIP" >&6; }
  19011. +else
  19012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19013. +$as_echo "no" >&6; }
  19014. +fi
  19015. - ;
  19016. - return 0;
  19017. -}
  19018. -_ACEOF
  19019. -rm -f conftest.$ac_objext
  19020. -if { (ac_try="$ac_compile"
  19021. -case "(($ac_try" in
  19022. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19023. - *) ac_try_echo=$ac_try;;
  19024. + if test "x$ac_ct_STRIP" = x; then
  19025. + STRIP=":"
  19026. + else
  19027. + case $cross_compiling:$ac_tool_warned in
  19028. +yes:)
  19029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19030. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19031. +ac_tool_warned=yes ;;
  19032. esac
  19033. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19034. -$as_echo "$ac_try_echo") >&5
  19035. - (eval "$ac_compile") 2>conftest.er1
  19036. - ac_status=$?
  19037. - grep -v '^ *+' conftest.er1 >conftest.err
  19038. - rm -f conftest.er1
  19039. - cat conftest.err >&5
  19040. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19041. - (exit $ac_status); } && {
  19042. - test -z "$ac_cxx_werror_flag" ||
  19043. - test ! -s conftest.err
  19044. - } && test -s conftest.$ac_objext; then
  19045. - ac_cv_prog_cxx_g=yes
  19046. + STRIP=$ac_ct_STRIP
  19047. + fi
  19048. else
  19049. - $as_echo "$as_me: failed program was:" >&5
  19050. -sed 's/^/| /' conftest.$ac_ext >&5
  19051. + STRIP="$ac_cv_prog_STRIP"
  19052. +fi
  19053. - CXXFLAGS=""
  19054. - cat >conftest.$ac_ext <<_ACEOF
  19055. -/* confdefs.h. */
  19056. -_ACEOF
  19057. -cat confdefs.h >>conftest.$ac_ext
  19058. -cat >>conftest.$ac_ext <<_ACEOF
  19059. -/* end confdefs.h. */
  19060. +test -z "$STRIP" && STRIP=:
  19061. -int
  19062. -main ()
  19063. -{
  19064. - ;
  19065. - return 0;
  19066. -}
  19067. -_ACEOF
  19068. -rm -f conftest.$ac_objext
  19069. -if { (ac_try="$ac_compile"
  19070. -case "(($ac_try" in
  19071. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19072. - *) ac_try_echo=$ac_try;;
  19073. -esac
  19074. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19075. -$as_echo "$ac_try_echo") >&5
  19076. - (eval "$ac_compile") 2>conftest.er1
  19077. - ac_status=$?
  19078. - grep -v '^ *+' conftest.er1 >conftest.err
  19079. - rm -f conftest.er1
  19080. - cat conftest.err >&5
  19081. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19082. - (exit $ac_status); } && {
  19083. - test -z "$ac_cxx_werror_flag" ||
  19084. - test ! -s conftest.err
  19085. - } && test -s conftest.$ac_objext; then
  19086. - :
  19087. -else
  19088. - $as_echo "$as_me: failed program was:" >&5
  19089. -sed 's/^/| /' conftest.$ac_ext >&5
  19090. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  19091. - CXXFLAGS="-g"
  19092. - cat >conftest.$ac_ext <<_ACEOF
  19093. -/* confdefs.h. */
  19094. -_ACEOF
  19095. -cat confdefs.h >>conftest.$ac_ext
  19096. -cat >>conftest.$ac_ext <<_ACEOF
  19097. -/* end confdefs.h. */
  19098. -int
  19099. -main ()
  19100. -{
  19101. - ;
  19102. - return 0;
  19103. -}
  19104. -_ACEOF
  19105. -rm -f conftest.$ac_objext
  19106. -if { (ac_try="$ac_compile"
  19107. -case "(($ac_try" in
  19108. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19109. - *) ac_try_echo=$ac_try;;
  19110. -esac
  19111. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19112. -$as_echo "$ac_try_echo") >&5
  19113. - (eval "$ac_compile") 2>conftest.er1
  19114. - ac_status=$?
  19115. - grep -v '^ *+' conftest.er1 >conftest.err
  19116. - rm -f conftest.er1
  19117. - cat conftest.err >&5
  19118. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19119. - (exit $ac_status); } && {
  19120. - test -z "$ac_cxx_werror_flag" ||
  19121. - test ! -s conftest.err
  19122. - } && test -s conftest.$ac_objext; then
  19123. - ac_cv_prog_cxx_g=yes
  19124. -else
  19125. - $as_echo "$as_me: failed program was:" >&5
  19126. -sed 's/^/| /' conftest.$ac_ext >&5
  19127. +if test -n "$ac_tool_prefix"; then
  19128. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19129. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19130. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19131. +$as_echo_n "checking for $ac_word... " >&6; }
  19132. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  19133. + $as_echo_n "(cached) " >&6
  19134. +else
  19135. + if test -n "$RANLIB"; then
  19136. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19137. +else
  19138. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19139. +for as_dir in $PATH
  19140. +do
  19141. + IFS=$as_save_IFS
  19142. + test -z "$as_dir" && as_dir=.
  19143. + for ac_exec_ext in '' $ac_executable_extensions; do
  19144. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19145. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19146. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19147. + break 2
  19148. + fi
  19149. +done
  19150. + done
  19151. +IFS=$as_save_IFS
  19152. fi
  19153. -
  19154. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19155. fi
  19156. -
  19157. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19158. +RANLIB=$ac_cv_prog_RANLIB
  19159. +if test -n "$RANLIB"; then
  19160. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  19161. +$as_echo "$RANLIB" >&6; }
  19162. +else
  19163. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19164. +$as_echo "no" >&6; }
  19165. fi
  19166. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19167. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  19168. +
  19169. fi
  19170. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  19171. -$as_echo "$ac_cv_prog_cxx_g" >&6; }
  19172. -if test "$ac_test_CXXFLAGS" = set; then
  19173. - CXXFLAGS=$ac_save_CXXFLAGS
  19174. -elif test $ac_cv_prog_cxx_g = yes; then
  19175. - if test "$GXX" = yes; then
  19176. - CXXFLAGS="-g -O2"
  19177. - else
  19178. - CXXFLAGS="-g"
  19179. +if test -z "$ac_cv_prog_RANLIB"; then
  19180. + ac_ct_RANLIB=$RANLIB
  19181. + # Extract the first word of "ranlib", so it can be a program name with args.
  19182. +set dummy ranlib; ac_word=$2
  19183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19184. +$as_echo_n "checking for $ac_word... " >&6; }
  19185. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  19186. + $as_echo_n "(cached) " >&6
  19187. +else
  19188. + if test -n "$ac_ct_RANLIB"; then
  19189. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19190. +else
  19191. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19192. +for as_dir in $PATH
  19193. +do
  19194. + IFS=$as_save_IFS
  19195. + test -z "$as_dir" && as_dir=.
  19196. + for ac_exec_ext in '' $ac_executable_extensions; do
  19197. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19198. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  19199. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19200. + break 2
  19201. fi
  19202. +done
  19203. + done
  19204. +IFS=$as_save_IFS
  19205. +
  19206. +fi
  19207. +fi
  19208. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19209. +if test -n "$ac_ct_RANLIB"; then
  19210. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  19211. +$as_echo "$ac_ct_RANLIB" >&6; }
  19212. else
  19213. - if test "$GXX" = yes; then
  19214. - CXXFLAGS="-O2"
  19215. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19216. +$as_echo "no" >&6; }
  19217. +fi
  19218. +
  19219. + if test "x$ac_ct_RANLIB" = x; then
  19220. + RANLIB=":"
  19221. else
  19222. - CXXFLAGS=
  19223. + case $cross_compiling:$ac_tool_warned in
  19224. +yes:)
  19225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19226. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19227. +ac_tool_warned=yes ;;
  19228. +esac
  19229. + RANLIB=$ac_ct_RANLIB
  19230. fi
  19231. +else
  19232. + RANLIB="$ac_cv_prog_RANLIB"
  19233. fi
  19234. -ac_ext=cpp
  19235. -ac_cpp='$CXXCPP $CPPFLAGS'
  19236. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19237. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19238. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19239. -depcc="$CXX" am_compiler_list=
  19240. +test -z "$RANLIB" && RANLIB=:
  19241. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  19242. -$as_echo_n "checking dependency style of $depcc... " >&6; }
  19243. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  19244. - $as_echo_n "(cached) " >&6
  19245. -else
  19246. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  19247. - # We make a subdir and do the tests there. Otherwise we can end up
  19248. - # making bogus files that we don't know about and never remove. For
  19249. - # instance it was reported that on HP-UX the gcc test will end up
  19250. - # making a dummy file named `D' -- because `-MD' means `put the output
  19251. - # in D'.
  19252. - mkdir conftest.dir
  19253. - # Copy depcomp to subdir because otherwise we won't find it if we're
  19254. - # using a relative directory.
  19255. - cp "$am_depcomp" conftest.dir
  19256. - cd conftest.dir
  19257. - # We will build objects and dependencies in a subdirectory because
  19258. - # it helps to detect inapplicable dependency modes. For instance
  19259. - # both Tru64's cc and ICC support -MD to output dependencies as a
  19260. - # side effect of compilation, but ICC will put the dependencies in
  19261. - # the current directory while Tru64 will put them in the object
  19262. - # directory.
  19263. - mkdir sub
  19264. - am_cv_CXX_dependencies_compiler_type=none
  19265. - if test "$am_compiler_list" = ""; then
  19266. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  19267. - fi
  19268. - am__universal=false
  19269. - case " $depcc " in #(
  19270. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  19271. - esac
  19272. - for depmode in $am_compiler_list; do
  19273. - # Setup a source with many dependencies, because some compilers
  19274. - # like to wrap large dependency lists on column 80 (with \), and
  19275. - # we should not choose a depcomp mode which is confused by this.
  19276. - #
  19277. - # We need to recreate these files for each test, as the compiler may
  19278. - # overwrite some of them when testing with obscure command lines.
  19279. - # This happens at least with the AIX C compiler.
  19280. - : > sub/conftest.c
  19281. - for i in 1 2 3 4 5 6; do
  19282. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  19283. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  19284. - # Solaris 8's {/usr,}/bin/sh.
  19285. - touch sub/conftst$i.h
  19286. - done
  19287. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  19288. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19289. - # mode. It turns out that the SunPro C++ compiler does not properly
  19290. - # handle `-M -o', and we need to detect this. Also, some Intel
  19291. - # versions had trouble with output in subdirs
  19292. - am__obj=sub/conftest.${OBJEXT-o}
  19293. - am__minus_obj="-o $am__obj"
  19294. - case $depmode in
  19295. - gcc)
  19296. - # This depmode causes a compiler race in universal mode.
  19297. - test "$am__universal" = false || continue
  19298. - ;;
  19299. - nosideeffect)
  19300. - # after this tag, mechanisms are not by side-effect, so they'll
  19301. - # only be used when explicitly requested
  19302. - if test "x$enable_dependency_tracking" = xyes; then
  19303. - continue
  19304. - else
  19305. - break
  19306. - fi
  19307. - ;;
  19308. - msvisualcpp | msvcmsys)
  19309. - # This compiler won't grok `-c -o', but also, the minuso test has
  19310. - # not run yet. These depmodes are late enough in the game, and
  19311. - # so weak that their functioning should not be impacted.
  19312. - am__obj=conftest.${OBJEXT-o}
  19313. - am__minus_obj=
  19314. - ;;
  19315. - none) break ;;
  19316. - esac
  19317. - if depmode=$depmode \
  19318. - source=sub/conftest.c object=$am__obj \
  19319. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  19320. - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  19321. - >/dev/null 2>conftest.err &&
  19322. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  19323. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  19324. - grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  19325. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  19326. - # icc doesn't choke on unknown options, it will just issue warnings
  19327. - # or remarks (even with -Werror). So we grep stderr for any message
  19328. - # that says an option was ignored or not supported.
  19329. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  19330. - # icc: Command line warning: ignoring option '-M'; no argument required
  19331. - # The diagnosis changed in icc 8.0:
  19332. - # icc: Command line remark: option '-MP' not supported
  19333. - if (grep 'ignoring option' conftest.err ||
  19334. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  19335. - am_cv_CXX_dependencies_compiler_type=$depmode
  19336. - break
  19337. - fi
  19338. - fi
  19339. - done
  19340. - cd ..
  19341. - rm -rf conftest.dir
  19342. -else
  19343. - am_cv_CXX_dependencies_compiler_type=none
  19344. -fi
  19345. -fi
  19346. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  19347. -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  19348. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  19349. +# Determine commands to create old-style static archives.
  19350. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  19351. +old_postinstall_cmds='chmod 644 $oldlib'
  19352. +old_postuninstall_cmds=
  19353. - if
  19354. - test "x$enable_dependency_tracking" != xno \
  19355. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  19356. - am__fastdepCXX_TRUE=
  19357. - am__fastdepCXX_FALSE='#'
  19358. -else
  19359. - am__fastdepCXX_TRUE='#'
  19360. - am__fastdepCXX_FALSE=
  19361. +if test -n "$RANLIB"; then
  19362. + case $host_os in
  19363. + openbsd*)
  19364. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  19365. + ;;
  19366. + *)
  19367. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  19368. + ;;
  19369. + esac
  19370. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  19371. fi
  19372. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  19373. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  19374. - (test "X$CXX" != "Xg++"))) ; then
  19375. - ac_ext=cpp
  19376. -ac_cpp='$CXXCPP $CPPFLAGS'
  19377. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19378. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19379. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19380. -{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  19381. -$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  19382. -if test -z "$CXXCPP"; then
  19383. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  19384. - $as_echo_n "(cached) " >&6
  19385. -else
  19386. - # Double quotes because CXXCPP needs to be expanded
  19387. - for CXXCPP in "$CXX -E" "/lib/cpp"
  19388. - do
  19389. - ac_preproc_ok=false
  19390. -for ac_cxx_preproc_warn_flag in '' yes
  19391. -do
  19392. - # Use a header file that comes with gcc, so configuring glibc
  19393. - # with a fresh cross-compiler works.
  19394. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19395. - # <limits.h> exists even on freestanding compilers.
  19396. - # On the NeXT, cc -E runs the code through the compiler's parser,
  19397. - # not just through cpp. "Syntax error" is here to catch this case.
  19398. - cat >conftest.$ac_ext <<_ACEOF
  19399. -/* confdefs.h. */
  19400. -_ACEOF
  19401. -cat confdefs.h >>conftest.$ac_ext
  19402. -cat >>conftest.$ac_ext <<_ACEOF
  19403. -/* end confdefs.h. */
  19404. -#ifdef __STDC__
  19405. -# include <limits.h>
  19406. -#else
  19407. -# include <assert.h>
  19408. -#endif
  19409. - Syntax error
  19410. -_ACEOF
  19411. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19412. -case "(($ac_try" in
  19413. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19414. - *) ac_try_echo=$ac_try;;
  19415. -esac
  19416. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19417. -$as_echo "$ac_try_echo") >&5
  19418. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19419. - ac_status=$?
  19420. - grep -v '^ *+' conftest.er1 >conftest.err
  19421. - rm -f conftest.er1
  19422. - cat conftest.err >&5
  19423. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19424. - (exit $ac_status); } >/dev/null && {
  19425. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19426. - test ! -s conftest.err
  19427. - }; then
  19428. - :
  19429. -else
  19430. - $as_echo "$as_me: failed program was:" >&5
  19431. -sed 's/^/| /' conftest.$ac_ext >&5
  19432. - # Broken: fails on valid input.
  19433. -continue
  19434. -fi
  19435. -rm -f conftest.err conftest.$ac_ext
  19436. - # OK, works on sane cases. Now check whether nonexistent headers
  19437. - # can be detected and how.
  19438. - cat >conftest.$ac_ext <<_ACEOF
  19439. -/* confdefs.h. */
  19440. -_ACEOF
  19441. -cat confdefs.h >>conftest.$ac_ext
  19442. -cat >>conftest.$ac_ext <<_ACEOF
  19443. -/* end confdefs.h. */
  19444. -#include <ac_nonexistent.h>
  19445. -_ACEOF
  19446. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19447. -case "(($ac_try" in
  19448. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19449. - *) ac_try_echo=$ac_try;;
  19450. -esac
  19451. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19452. -$as_echo "$ac_try_echo") >&5
  19453. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19454. - ac_status=$?
  19455. - grep -v '^ *+' conftest.er1 >conftest.err
  19456. - rm -f conftest.er1
  19457. - cat conftest.err >&5
  19458. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19459. - (exit $ac_status); } >/dev/null && {
  19460. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19461. - test ! -s conftest.err
  19462. - }; then
  19463. - # Broken: success on invalid input.
  19464. -continue
  19465. -else
  19466. - $as_echo "$as_me: failed program was:" >&5
  19467. -sed 's/^/| /' conftest.$ac_ext >&5
  19468. - # Passes both tests.
  19469. -ac_preproc_ok=:
  19470. -break
  19471. -fi
  19472. -rm -f conftest.err conftest.$ac_ext
  19473. -done
  19474. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19475. -rm -f conftest.err conftest.$ac_ext
  19476. -if $ac_preproc_ok; then
  19477. - break
  19478. -fi
  19479. - done
  19480. - ac_cv_prog_CXXCPP=$CXXCPP
  19481. -fi
  19482. - CXXCPP=$ac_cv_prog_CXXCPP
  19483. -else
  19484. - ac_cv_prog_CXXCPP=$CXXCPP
  19485. -fi
  19486. -{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  19487. -$as_echo "$CXXCPP" >&6; }
  19488. -ac_preproc_ok=false
  19489. -for ac_cxx_preproc_warn_flag in '' yes
  19490. -do
  19491. - # Use a header file that comes with gcc, so configuring glibc
  19492. - # with a fresh cross-compiler works.
  19493. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19494. - # <limits.h> exists even on freestanding compilers.
  19495. - # On the NeXT, cc -E runs the code through the compiler's parser,
  19496. - # not just through cpp. "Syntax error" is here to catch this case.
  19497. - cat >conftest.$ac_ext <<_ACEOF
  19498. -/* confdefs.h. */
  19499. -_ACEOF
  19500. -cat confdefs.h >>conftest.$ac_ext
  19501. -cat >>conftest.$ac_ext <<_ACEOF
  19502. -/* end confdefs.h. */
  19503. -#ifdef __STDC__
  19504. -# include <limits.h>
  19505. -#else
  19506. -# include <assert.h>
  19507. -#endif
  19508. - Syntax error
  19509. -_ACEOF
  19510. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19511. -case "(($ac_try" in
  19512. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19513. - *) ac_try_echo=$ac_try;;
  19514. -esac
  19515. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19516. -$as_echo "$ac_try_echo") >&5
  19517. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19518. - ac_status=$?
  19519. - grep -v '^ *+' conftest.er1 >conftest.err
  19520. - rm -f conftest.er1
  19521. - cat conftest.err >&5
  19522. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19523. - (exit $ac_status); } >/dev/null && {
  19524. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19525. - test ! -s conftest.err
  19526. - }; then
  19527. - :
  19528. -else
  19529. - $as_echo "$as_me: failed program was:" >&5
  19530. -sed 's/^/| /' conftest.$ac_ext >&5
  19531. - # Broken: fails on valid input.
  19532. -continue
  19533. -fi
  19534. -rm -f conftest.err conftest.$ac_ext
  19535. - # OK, works on sane cases. Now check whether nonexistent headers
  19536. - # can be detected and how.
  19537. - cat >conftest.$ac_ext <<_ACEOF
  19538. -/* confdefs.h. */
  19539. -_ACEOF
  19540. -cat confdefs.h >>conftest.$ac_ext
  19541. -cat >>conftest.$ac_ext <<_ACEOF
  19542. -/* end confdefs.h. */
  19543. -#include <ac_nonexistent.h>
  19544. -_ACEOF
  19545. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19546. -case "(($ac_try" in
  19547. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19548. - *) ac_try_echo=$ac_try;;
  19549. -esac
  19550. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19551. -$as_echo "$ac_try_echo") >&5
  19552. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19553. - ac_status=$?
  19554. - grep -v '^ *+' conftest.er1 >conftest.err
  19555. - rm -f conftest.er1
  19556. - cat conftest.err >&5
  19557. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19558. - (exit $ac_status); } >/dev/null && {
  19559. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19560. - test ! -s conftest.err
  19561. - }; then
  19562. - # Broken: success on invalid input.
  19563. -continue
  19564. -else
  19565. - $as_echo "$as_me: failed program was:" >&5
  19566. -sed 's/^/| /' conftest.$ac_ext >&5
  19567. - # Passes both tests.
  19568. -ac_preproc_ok=:
  19569. -break
  19570. -fi
  19571. -rm -f conftest.err conftest.$ac_ext
  19572. -done
  19573. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19574. -rm -f conftest.err conftest.$ac_ext
  19575. -if $ac_preproc_ok; then
  19576. - :
  19577. -else
  19578. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19579. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19580. -{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  19581. -See \`config.log' for more details." >&5
  19582. -$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  19583. -See \`config.log' for more details." >&2;}
  19584. - { (exit 1); exit 1; }; }; }
  19585. -fi
  19586. -ac_ext=cpp
  19587. -ac_cpp='$CXXCPP $CPPFLAGS'
  19588. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19589. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19590. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19591. -fi
  19592. -ac_ext=f
  19593. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  19594. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19595. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  19596. -if test -n "$ac_tool_prefix"; then
  19597. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  19598. - do
  19599. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19600. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19601. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19602. -$as_echo_n "checking for $ac_word... " >&6; }
  19603. -if test "${ac_cv_prog_F77+set}" = set; then
  19604. - $as_echo_n "(cached) " >&6
  19605. -else
  19606. - if test -n "$F77"; then
  19607. - ac_cv_prog_F77="$F77" # Let the user override the test.
  19608. -else
  19609. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19610. -for as_dir in $PATH
  19611. -do
  19612. - IFS=$as_save_IFS
  19613. - test -z "$as_dir" && as_dir=.
  19614. - for ac_exec_ext in '' $ac_executable_extensions; do
  19615. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19616. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  19617. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19618. - break 2
  19619. - fi
  19620. -done
  19621. -done
  19622. -IFS=$as_save_IFS
  19623. -fi
  19624. -fi
  19625. -F77=$ac_cv_prog_F77
  19626. -if test -n "$F77"; then
  19627. - { $as_echo "$as_me:$LINENO: result: $F77" >&5
  19628. -$as_echo "$F77" >&6; }
  19629. -else
  19630. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19631. -$as_echo "no" >&6; }
  19632. -fi
  19633. - test -n "$F77" && break
  19634. - done
  19635. -fi
  19636. -if test -z "$F77"; then
  19637. - ac_ct_F77=$F77
  19638. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  19639. -do
  19640. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  19641. -set dummy $ac_prog; ac_word=$2
  19642. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19643. -$as_echo_n "checking for $ac_word... " >&6; }
  19644. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  19645. - $as_echo_n "(cached) " >&6
  19646. -else
  19647. - if test -n "$ac_ct_F77"; then
  19648. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  19649. -else
  19650. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19651. -for as_dir in $PATH
  19652. -do
  19653. - IFS=$as_save_IFS
  19654. - test -z "$as_dir" && as_dir=.
  19655. - for ac_exec_ext in '' $ac_executable_extensions; do
  19656. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19657. - ac_cv_prog_ac_ct_F77="$ac_prog"
  19658. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19659. - break 2
  19660. - fi
  19661. -done
  19662. -done
  19663. -IFS=$as_save_IFS
  19664. -
  19665. -fi
  19666. -fi
  19667. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  19668. -if test -n "$ac_ct_F77"; then
  19669. - { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  19670. -$as_echo "$ac_ct_F77" >&6; }
  19671. -else
  19672. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19673. -$as_echo "no" >&6; }
  19674. -fi
  19675. -
  19676. -
  19677. - test -n "$ac_ct_F77" && break
  19678. -done
  19679. -
  19680. - if test "x$ac_ct_F77" = x; then
  19681. - F77=""
  19682. - else
  19683. - case $cross_compiling:$ac_tool_warned in
  19684. -yes:)
  19685. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19686. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19687. -ac_tool_warned=yes ;;
  19688. -esac
  19689. - F77=$ac_ct_F77
  19690. - fi
  19691. -fi
  19692. -
  19693. -
  19694. -# Provide some information about the compiler.
  19695. -$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  19696. -set X $ac_compile
  19697. -ac_compiler=$2
  19698. -{ (ac_try="$ac_compiler --version >&5"
  19699. -case "(($ac_try" in
  19700. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19701. - *) ac_try_echo=$ac_try;;
  19702. -esac
  19703. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19704. -$as_echo "$ac_try_echo") >&5
  19705. - (eval "$ac_compiler --version >&5") 2>&5
  19706. - ac_status=$?
  19707. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19708. - (exit $ac_status); }
  19709. -{ (ac_try="$ac_compiler -v >&5"
  19710. -case "(($ac_try" in
  19711. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19712. - *) ac_try_echo=$ac_try;;
  19713. -esac
  19714. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19715. -$as_echo "$ac_try_echo") >&5
  19716. - (eval "$ac_compiler -v >&5") 2>&5
  19717. - ac_status=$?
  19718. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19719. - (exit $ac_status); }
  19720. -{ (ac_try="$ac_compiler -V >&5"
  19721. -case "(($ac_try" in
  19722. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19723. - *) ac_try_echo=$ac_try;;
  19724. -esac
  19725. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19726. -$as_echo "$ac_try_echo") >&5
  19727. - (eval "$ac_compiler -V >&5") 2>&5
  19728. - ac_status=$?
  19729. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19730. - (exit $ac_status); }
  19731. -rm -f a.out
  19732. -
  19733. -# If we don't use `.F' as extension, the preprocessor is not run on the
  19734. -# input file. (Note that this only needs to work for GNU compilers.)
  19735. -ac_save_ext=$ac_ext
  19736. -ac_ext=F
  19737. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  19738. -$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  19739. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  19740. - $as_echo_n "(cached) " >&6
  19741. -else
  19742. - cat >conftest.$ac_ext <<_ACEOF
  19743. - program main
  19744. -#ifndef __GNUC__
  19745. - choke me
  19746. -#endif
  19747. -
  19748. - end
  19749. -_ACEOF
  19750. -rm -f conftest.$ac_objext
  19751. -if { (ac_try="$ac_compile"
  19752. -case "(($ac_try" in
  19753. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19754. - *) ac_try_echo=$ac_try;;
  19755. -esac
  19756. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19757. -$as_echo "$ac_try_echo") >&5
  19758. - (eval "$ac_compile") 2>conftest.er1
  19759. - ac_status=$?
  19760. - grep -v '^ *+' conftest.er1 >conftest.err
  19761. - rm -f conftest.er1
  19762. - cat conftest.err >&5
  19763. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19764. - (exit $ac_status); } && {
  19765. - test -z "$ac_f77_werror_flag" ||
  19766. - test ! -s conftest.err
  19767. - } && test -s conftest.$ac_objext; then
  19768. - ac_compiler_gnu=yes
  19769. -else
  19770. - $as_echo "$as_me: failed program was:" >&5
  19771. -sed 's/^/| /' conftest.$ac_ext >&5
  19772. - ac_compiler_gnu=no
  19773. -fi
  19774. -
  19775. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19776. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  19777. -
  19778. -fi
  19779. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  19780. -$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  19781. -ac_ext=$ac_save_ext
  19782. -ac_test_FFLAGS=${FFLAGS+set}
  19783. -ac_save_FFLAGS=$FFLAGS
  19784. -FFLAGS=
  19785. -{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  19786. -$as_echo_n "checking whether $F77 accepts -g... " >&6; }
  19787. -if test "${ac_cv_prog_f77_g+set}" = set; then
  19788. - $as_echo_n "(cached) " >&6
  19789. -else
  19790. - FFLAGS=-g
  19791. -cat >conftest.$ac_ext <<_ACEOF
  19792. - program main
  19793. -
  19794. - end
  19795. -_ACEOF
  19796. -rm -f conftest.$ac_objext
  19797. -if { (ac_try="$ac_compile"
  19798. -case "(($ac_try" in
  19799. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19800. - *) ac_try_echo=$ac_try;;
  19801. -esac
  19802. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19803. -$as_echo "$ac_try_echo") >&5
  19804. - (eval "$ac_compile") 2>conftest.er1
  19805. - ac_status=$?
  19806. - grep -v '^ *+' conftest.er1 >conftest.err
  19807. - rm -f conftest.er1
  19808. - cat conftest.err >&5
  19809. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19810. - (exit $ac_status); } && {
  19811. - test -z "$ac_f77_werror_flag" ||
  19812. - test ! -s conftest.err
  19813. - } && test -s conftest.$ac_objext; then
  19814. - ac_cv_prog_f77_g=yes
  19815. -else
  19816. - $as_echo "$as_me: failed program was:" >&5
  19817. -sed 's/^/| /' conftest.$ac_ext >&5
  19818. -
  19819. - ac_cv_prog_f77_g=no
  19820. -fi
  19821. -
  19822. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19823. -
  19824. -fi
  19825. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  19826. -$as_echo "$ac_cv_prog_f77_g" >&6; }
  19827. -if test "$ac_test_FFLAGS" = set; then
  19828. - FFLAGS=$ac_save_FFLAGS
  19829. -elif test $ac_cv_prog_f77_g = yes; then
  19830. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19831. - FFLAGS="-g -O2"
  19832. - else
  19833. - FFLAGS="-g"
  19834. - fi
  19835. -else
  19836. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19837. - FFLAGS="-O2"
  19838. - else
  19839. - FFLAGS=
  19840. - fi
  19841. -fi
  19842. -
  19843. -if test $ac_compiler_gnu = yes; then
  19844. - G77=yes
  19845. -else
  19846. - G77=
  19847. -fi
  19848. -ac_ext=c
  19849. -ac_cpp='$CPP $CPPFLAGS'
  19850. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19851. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19852. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19853. -
  19854. -
  19855. -
  19856. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  19857. -# find the maximum length of command line arguments
  19858. -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  19859. -$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  19860. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  19861. - $as_echo_n "(cached) " >&6
  19862. -else
  19863. - i=0
  19864. - teststring="ABCD"
  19865. -
  19866. - case $build_os in
  19867. - msdosdjgpp*)
  19868. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  19869. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  19870. - # during glob expansion). Even if it were fixed, the result of this
  19871. - # check would be larger than it should be.
  19872. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  19873. - ;;
  19874. -
  19875. - gnu*)
  19876. - # Under GNU Hurd, this test is not required because there is
  19877. - # no limit to the length of command line arguments.
  19878. - # Libtool will interpret -1 as no limit whatsoever
  19879. - lt_cv_sys_max_cmd_len=-1;
  19880. - ;;
  19881. - cygwin* | mingw*)
  19882. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  19883. - # about 5 minutes as the teststring grows exponentially.
  19884. - # Worse, since 9x/ME are not pre-emptively multitasking,
  19885. - # you end up with a "frozen" computer, even though with patience
  19886. - # the test eventually succeeds (with a max line length of 256k).
  19887. - # Instead, let's just punt: use the minimum linelength reported by
  19888. - # all of the supported platforms: 8192 (on NT/2K/XP).
  19889. - lt_cv_sys_max_cmd_len=8192;
  19890. - ;;
  19891. - amigaos*)
  19892. - # On AmigaOS with pdksh, this test takes hours, literally.
  19893. - # So we just punt and use a minimum line length of 8192.
  19894. - lt_cv_sys_max_cmd_len=8192;
  19895. - ;;
  19896. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  19897. - # This has been around since 386BSD, at least. Likely further.
  19898. - if test -x /sbin/sysctl; then
  19899. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  19900. - elif test -x /usr/sbin/sysctl; then
  19901. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  19902. - else
  19903. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  19904. - fi
  19905. - # And add a safety zone
  19906. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19907. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19908. - ;;
  19909. - interix*)
  19910. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  19911. - lt_cv_sys_max_cmd_len=196608
  19912. - ;;
  19913. - osf*)
  19914. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  19915. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  19916. - # nice to cause kernel panics so lets avoid the loop below.
  19917. - # First set a reasonable default.
  19918. - lt_cv_sys_max_cmd_len=16384
  19919. - #
  19920. - if test -x /sbin/sysconfig; then
  19921. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  19922. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  19923. - esac
  19924. - fi
  19925. - ;;
  19926. - sco3.2v5*)
  19927. - lt_cv_sys_max_cmd_len=102400
  19928. - ;;
  19929. - sysv5* | sco5v6* | sysv4.2uw2*)
  19930. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  19931. - if test -n "$kargmax"; then
  19932. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  19933. - else
  19934. - lt_cv_sys_max_cmd_len=32768
  19935. - fi
  19936. - ;;
  19937. - *)
  19938. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  19939. - if test -n "$lt_cv_sys_max_cmd_len"; then
  19940. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19941. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19942. - else
  19943. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  19944. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  19945. - = "XX$teststring") >/dev/null 2>&1 &&
  19946. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  19947. - lt_cv_sys_max_cmd_len=$new_result &&
  19948. - test $i != 17 # 1/2 MB should be enough
  19949. - do
  19950. - i=`expr $i + 1`
  19951. - teststring=$teststring$teststring
  19952. - done
  19953. - teststring=
  19954. - # Add a significant safety factor because C++ compilers can tack on massive
  19955. - # amounts of additional arguments before passing them to the linker.
  19956. - # It appears as though 1/2 is a usable value.
  19957. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  19958. - fi
  19959. - ;;
  19960. - esac
  19961. -fi
  19962. -if test -n $lt_cv_sys_max_cmd_len ; then
  19963. - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  19964. -$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  19965. -else
  19966. - { $as_echo "$as_me:$LINENO: result: none" >&5
  19967. -$as_echo "none" >&6; }
  19968. -fi
  19969. +# If no C compiler was specified, use CC.
  19970. +LTCC=${LTCC-"$CC"}
  19971. +# If no C compiler flags were specified, use CFLAGS.
  19972. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19973. +# Allow CC to be a program name with arguments.
  19974. +compiler=$CC
  19975. # Check for command to grab the raw symbol name followed by C symbol from nm.
  19976. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  19977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  19978. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  19979. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  19980. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  19981. $as_echo_n "(cached) " >&6
  19982. else
  19983. @@ -6444,33 +5465,18 @@
  19984. # Regexp to match symbols that can be accessed directly from C.
  19985. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  19986. -# Transform an extracted symbol line into a proper C declaration
  19987. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  19988. -
  19989. -# Transform an extracted symbol line into symbol name and symbol address
  19990. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  19991. -
  19992. # Define system-specific variables.
  19993. case $host_os in
  19994. aix*)
  19995. symcode='[BCDT]'
  19996. ;;
  19997. -cygwin* | mingw* | pw32*)
  19998. +cygwin* | mingw* | pw32* | cegcc*)
  19999. symcode='[ABCDGISTW]'
  20000. ;;
  20001. -hpux*) # Its linker distinguishes data from code symbols
  20002. +hpux*)
  20003. if test "$host_cpu" = ia64; then
  20004. symcode='[ABCDEGRST]'
  20005. fi
  20006. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  20007. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  20008. - ;;
  20009. -linux* | k*bsd*-gnu)
  20010. - if test "$host_cpu" = ia64; then
  20011. - symcode='[ABCDGIRSTW]'
  20012. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  20013. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  20014. - fi
  20015. ;;
  20016. irix* | nonstopux*)
  20017. symcode='[BCDEGRST]'
  20018. @@ -6495,57 +5501,85 @@
  20019. ;;
  20020. esac
  20021. +# If we're using GNU nm, then use its standard symbol codes.
  20022. +case `$NM -V 2>&1` in
  20023. +*GNU* | *'with BFD'*)
  20024. + symcode='[ABCDGIRSTW]' ;;
  20025. +esac
  20026. +
  20027. +# Transform an extracted symbol line into a proper C declaration.
  20028. +# Some systems (esp. on ia64) link data and code symbols differently,
  20029. +# so use this general approach.
  20030. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  20031. +
  20032. +# Transform an extracted symbol line into symbol name and symbol address
  20033. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  20034. +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'"
  20035. +
  20036. # Handle CRLF in mingw tool chain
  20037. opt_cr=
  20038. case $build_os in
  20039. mingw*)
  20040. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  20041. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  20042. ;;
  20043. esac
  20044. -# If we're using GNU nm, then use its standard symbol codes.
  20045. -case `$NM -V 2>&1` in
  20046. -*GNU* | *'with BFD'*)
  20047. - symcode='[ABCDGIRSTW]' ;;
  20048. -esac
  20049. -
  20050. -# Try without a prefix undercore, then with it.
  20051. +# Try without a prefix underscore, then with it.
  20052. for ac_symprfx in "" "_"; do
  20053. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  20054. symxfrm="\\1 $ac_symprfx\\2 \\2"
  20055. # Write the raw and C identifiers.
  20056. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  20057. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  20058. + # Fake it for dumpbin and say T for any non-static function
  20059. + # and D for any global variable.
  20060. + # Also find C++ and __fastcall symbols from MSVC++,
  20061. + # which start with @ or ?.
  20062. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  20063. +" {last_section=section; section=\$ 3};"\
  20064. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  20065. +" \$ 0!~/External *\|/{next};"\
  20066. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  20067. +" {if(hide[section]) next};"\
  20068. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  20069. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  20070. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  20071. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  20072. +" ' prfx=^$ac_symprfx"
  20073. + else
  20074. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  20075. + fi
  20076. # Check to see that the pipe works correctly.
  20077. pipe_works=no
  20078. rm -f conftest*
  20079. - cat > conftest.$ac_ext <<EOF
  20080. + cat > conftest.$ac_ext <<_LT_EOF
  20081. #ifdef __cplusplus
  20082. extern "C" {
  20083. #endif
  20084. char nm_test_var;
  20085. -void nm_test_func(){}
  20086. +void nm_test_func(void);
  20087. +void nm_test_func(void){}
  20088. #ifdef __cplusplus
  20089. }
  20090. #endif
  20091. int main(){nm_test_var='a';nm_test_func();return(0);}
  20092. -EOF
  20093. +_LT_EOF
  20094. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20095. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20096. (eval $ac_compile) 2>&5
  20097. ac_status=$?
  20098. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20099. - (exit $ac_status); }; then
  20100. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20101. + test $ac_status = 0; }; then
  20102. # Now try to grab the symbols.
  20103. nlist=conftest.nm
  20104. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  20105. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  20106. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  20107. ac_status=$?
  20108. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20109. - (exit $ac_status); } && test -s "$nlist"; then
  20110. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20111. + test $ac_status = 0; } && test -s "$nlist"; then
  20112. # Try sorting and uniquifying the output.
  20113. if sort "$nlist" | uniq > "$nlist"T; then
  20114. mv -f "$nlist"T "$nlist"
  20115. @@ -6554,53 +5588,55 @@
  20116. fi
  20117. # Make sure that we snagged all the symbols we need.
  20118. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  20119. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  20120. - cat <<EOF > conftest.$ac_ext
  20121. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  20122. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  20123. + cat <<_LT_EOF > conftest.$ac_ext
  20124. #ifdef __cplusplus
  20125. extern "C" {
  20126. #endif
  20127. -EOF
  20128. +_LT_EOF
  20129. # Now generate the symbol file.
  20130. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  20131. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  20132. - cat <<EOF >> conftest.$ac_ext
  20133. -#if defined (__STDC__) && __STDC__
  20134. -# define lt_ptr_t void *
  20135. -#else
  20136. -# define lt_ptr_t char *
  20137. -# define const
  20138. -#endif
  20139. + cat <<_LT_EOF >> conftest.$ac_ext
  20140. -/* The mapping between symbol names and symbols. */
  20141. +/* The mapping between symbol names and symbols. */
  20142. const struct {
  20143. const char *name;
  20144. - lt_ptr_t address;
  20145. + void *address;
  20146. }
  20147. -lt_preloaded_symbols[] =
  20148. +lt__PROGRAM__LTX_preloaded_symbols[] =
  20149. {
  20150. -EOF
  20151. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  20152. - cat <<\EOF >> conftest.$ac_ext
  20153. - {0, (lt_ptr_t) 0}
  20154. + { "@PROGRAM@", (void *) 0 },
  20155. +_LT_EOF
  20156. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  20157. + cat <<\_LT_EOF >> conftest.$ac_ext
  20158. + {0, (void *) 0}
  20159. };
  20160. +/* This works around a problem in FreeBSD linker */
  20161. +#ifdef FREEBSD_WORKAROUND
  20162. +static const void *lt_preloaded_setup() {
  20163. + return lt__PROGRAM__LTX_preloaded_symbols;
  20164. +}
  20165. +#endif
  20166. +
  20167. #ifdef __cplusplus
  20168. }
  20169. #endif
  20170. -EOF
  20171. +_LT_EOF
  20172. # Now try linking the two files.
  20173. mv conftest.$ac_objext conftstm.$ac_objext
  20174. lt_save_LIBS="$LIBS"
  20175. lt_save_CFLAGS="$CFLAGS"
  20176. LIBS="conftstm.$ac_objext"
  20177. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  20178. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20179. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  20180. (eval $ac_link) 2>&5
  20181. ac_status=$?
  20182. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20183. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  20184. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20185. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  20186. pipe_works=yes
  20187. fi
  20188. LIBS="$lt_save_LIBS"
  20189. @@ -6634,763 +5670,756 @@
  20190. lt_cv_sys_global_symbol_to_cdecl=
  20191. fi
  20192. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  20193. - { $as_echo "$as_me:$LINENO: result: failed" >&5
  20194. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  20195. $as_echo "failed" >&6; }
  20196. else
  20197. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  20198. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  20199. $as_echo "ok" >&6; }
  20200. fi
  20201. -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  20202. -$as_echo_n "checking for objdir... " >&6; }
  20203. -if test "${lt_cv_objdir+set}" = set; then
  20204. - $as_echo_n "(cached) " >&6
  20205. -else
  20206. - rm -f .libs 2>/dev/null
  20207. -mkdir .libs 2>/dev/null
  20208. -if test -d .libs; then
  20209. - lt_cv_objdir=.libs
  20210. -else
  20211. - # MS-DOS does not allow filenames that begin with a dot.
  20212. - lt_cv_objdir=_libs
  20213. -fi
  20214. -rmdir .libs 2>/dev/null
  20215. -fi
  20216. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  20217. -$as_echo "$lt_cv_objdir" >&6; }
  20218. -objdir=$lt_cv_objdir
  20219. -case $host_os in
  20220. -aix3*)
  20221. - # AIX sometimes has problems with the GCC collect2 program. For some
  20222. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  20223. - # vanish in a puff of smoke.
  20224. - if test "X${COLLECT_NAMES+set}" != Xset; then
  20225. - COLLECT_NAMES=
  20226. - export COLLECT_NAMES
  20227. +
  20228. +
  20229. +
  20230. +
  20231. +
  20232. +
  20233. +
  20234. +
  20235. +
  20236. +
  20237. +
  20238. +
  20239. +
  20240. +
  20241. +
  20242. +
  20243. +
  20244. +# Check whether --enable-libtool-lock was given.
  20245. +if test "${enable_libtool_lock+set}" = set; then :
  20246. + enableval=$enable_libtool_lock;
  20247. +fi
  20248. +
  20249. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20250. +
  20251. +# Some flags need to be propagated to the compiler or linker for good
  20252. +# libtool support.
  20253. +case $host in
  20254. +ia64-*-hpux*)
  20255. + # Find out which ABI we are using.
  20256. + echo 'int i;' > conftest.$ac_ext
  20257. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20258. + (eval $ac_compile) 2>&5
  20259. + ac_status=$?
  20260. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20261. + test $ac_status = 0; }; then
  20262. + case `/usr/bin/file conftest.$ac_objext` in
  20263. + *ELF-32*)
  20264. + HPUX_IA64_MODE="32"
  20265. + ;;
  20266. + *ELF-64*)
  20267. + HPUX_IA64_MODE="64"
  20268. + ;;
  20269. + esac
  20270. fi
  20271. + rm -rf conftest*
  20272. + ;;
  20273. +*-*-irix6*)
  20274. + # Find out which ABI we are using.
  20275. + echo '#line 5733 "configure"' > conftest.$ac_ext
  20276. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20277. + (eval $ac_compile) 2>&5
  20278. + ac_status=$?
  20279. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20280. + test $ac_status = 0; }; then
  20281. + if test "$lt_cv_prog_gnu_ld" = yes; then
  20282. + case `/usr/bin/file conftest.$ac_objext` in
  20283. + *32-bit*)
  20284. + LD="${LD-ld} -melf32bsmip"
  20285. + ;;
  20286. + *N32*)
  20287. + LD="${LD-ld} -melf32bmipn32"
  20288. + ;;
  20289. + *64-bit*)
  20290. + LD="${LD-ld} -melf64bmip"
  20291. + ;;
  20292. + esac
  20293. + else
  20294. + case `/usr/bin/file conftest.$ac_objext` in
  20295. + *32-bit*)
  20296. + LD="${LD-ld} -32"
  20297. + ;;
  20298. + *N32*)
  20299. + LD="${LD-ld} -n32"
  20300. + ;;
  20301. + *64-bit*)
  20302. + LD="${LD-ld} -64"
  20303. + ;;
  20304. + esac
  20305. + fi
  20306. + fi
  20307. + rm -rf conftest*
  20308. ;;
  20309. -esac
  20310. -# Sed substitution that helps us do robust quoting. It backslashifies
  20311. -# metacharacters that are still active within double-quoted strings.
  20312. -Xsed='sed -e 1s/^X//'
  20313. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  20314. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  20315. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  20316. + # Find out which ABI we are using.
  20317. + echo 'int i;' > conftest.$ac_ext
  20318. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20319. + (eval $ac_compile) 2>&5
  20320. + ac_status=$?
  20321. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20322. + test $ac_status = 0; }; then
  20323. + case `/usr/bin/file conftest.o` in
  20324. + *32-bit*)
  20325. + case $host in
  20326. + x86_64-*kfreebsd*-gnu)
  20327. + LD="${LD-ld} -m elf_i386_fbsd"
  20328. + ;;
  20329. + x86_64-*linux*)
  20330. + LD="${LD-ld} -m elf_i386"
  20331. + ;;
  20332. + ppc64-*linux*|powerpc64-*linux*)
  20333. + LD="${LD-ld} -m elf32ppclinux"
  20334. + ;;
  20335. + s390x-*linux*)
  20336. + LD="${LD-ld} -m elf_s390"
  20337. + ;;
  20338. + sparc64-*linux*)
  20339. + LD="${LD-ld} -m elf32_sparc"
  20340. + ;;
  20341. + esac
  20342. + ;;
  20343. + *64-bit*)
  20344. + case $host in
  20345. + x86_64-*kfreebsd*-gnu)
  20346. + LD="${LD-ld} -m elf_x86_64_fbsd"
  20347. + ;;
  20348. + x86_64-*linux*)
  20349. + LD="${LD-ld} -m elf_x86_64"
  20350. + ;;
  20351. + ppc*-*linux*|powerpc*-*linux*)
  20352. + LD="${LD-ld} -m elf64ppc"
  20353. + ;;
  20354. + s390*-*linux*|s390*-*tpf*)
  20355. + LD="${LD-ld} -m elf64_s390"
  20356. + ;;
  20357. + sparc*-*linux*)
  20358. + LD="${LD-ld} -m elf64_sparc"
  20359. + ;;
  20360. + esac
  20361. + ;;
  20362. + esac
  20363. + fi
  20364. + rm -rf conftest*
  20365. + ;;
  20366. -# Same as above, but do not quote variable references.
  20367. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  20368. +*-*-sco3.2v5*)
  20369. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20370. + SAVE_CFLAGS="$CFLAGS"
  20371. + CFLAGS="$CFLAGS -belf"
  20372. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  20373. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  20374. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  20375. + $as_echo_n "(cached) " >&6
  20376. +else
  20377. + ac_ext=c
  20378. +ac_cpp='$CPP $CPPFLAGS'
  20379. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20380. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20381. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20382. -# Sed substitution to delay expansion of an escaped shell variable in a
  20383. -# double_quote_subst'ed string.
  20384. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  20385. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20386. +/* end confdefs.h. */
  20387. -# Sed substitution to avoid accidental globbing in evaled expressions
  20388. -no_glob_subst='s/\*/\\\*/g'
  20389. +int
  20390. +main ()
  20391. +{
  20392. -# Constants:
  20393. -rm="rm -f"
  20394. + ;
  20395. + return 0;
  20396. +}
  20397. +_ACEOF
  20398. +if ac_fn_c_try_link "$LINENO"; then :
  20399. + lt_cv_cc_needs_belf=yes
  20400. +else
  20401. + lt_cv_cc_needs_belf=no
  20402. +fi
  20403. +rm -f core conftest.err conftest.$ac_objext \
  20404. + conftest$ac_exeext conftest.$ac_ext
  20405. + ac_ext=c
  20406. +ac_cpp='$CPP $CPPFLAGS'
  20407. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20408. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20409. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20410. -# Global variables:
  20411. -default_ofile=libtool
  20412. -can_build_shared=yes
  20413. +fi
  20414. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  20415. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  20416. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  20417. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  20418. + CFLAGS="$SAVE_CFLAGS"
  20419. + fi
  20420. + ;;
  20421. +sparc*-*solaris*)
  20422. + # Find out which ABI we are using.
  20423. + echo 'int i;' > conftest.$ac_ext
  20424. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20425. + (eval $ac_compile) 2>&5
  20426. + ac_status=$?
  20427. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20428. + test $ac_status = 0; }; then
  20429. + case `/usr/bin/file conftest.o` in
  20430. + *64-bit*)
  20431. + case $lt_cv_prog_gnu_ld in
  20432. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  20433. + *)
  20434. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  20435. + LD="${LD-ld} -64"
  20436. + fi
  20437. + ;;
  20438. + esac
  20439. + ;;
  20440. + esac
  20441. + fi
  20442. + rm -rf conftest*
  20443. + ;;
  20444. +esac
  20445. -# All known linkers require a `.a' archive for static linking (except MSVC,
  20446. -# which needs '.lib').
  20447. -libext=a
  20448. -ltmain="$ac_aux_dir/ltmain.sh"
  20449. -ofile="$default_ofile"
  20450. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  20451. +need_locks="$enable_libtool_lock"
  20452. -if test -n "$ac_tool_prefix"; then
  20453. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  20454. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  20455. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20456. +
  20457. + case $host_os in
  20458. + rhapsody* | darwin*)
  20459. + if test -n "$ac_tool_prefix"; then
  20460. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  20461. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  20462. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20463. $as_echo_n "checking for $ac_word... " >&6; }
  20464. -if test "${ac_cv_prog_AR+set}" = set; then
  20465. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  20466. $as_echo_n "(cached) " >&6
  20467. else
  20468. - if test -n "$AR"; then
  20469. - ac_cv_prog_AR="$AR" # Let the user override the test.
  20470. + if test -n "$DSYMUTIL"; then
  20471. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  20472. else
  20473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20474. for as_dir in $PATH
  20475. do
  20476. IFS=$as_save_IFS
  20477. test -z "$as_dir" && as_dir=.
  20478. - for ac_exec_ext in '' $ac_executable_extensions; do
  20479. + for ac_exec_ext in '' $ac_executable_extensions; do
  20480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20481. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  20482. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20483. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  20484. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20485. break 2
  20486. fi
  20487. done
  20488. -done
  20489. + done
  20490. IFS=$as_save_IFS
  20491. fi
  20492. fi
  20493. -AR=$ac_cv_prog_AR
  20494. -if test -n "$AR"; then
  20495. - { $as_echo "$as_me:$LINENO: result: $AR" >&5
  20496. -$as_echo "$AR" >&6; }
  20497. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  20498. +if test -n "$DSYMUTIL"; then
  20499. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  20500. +$as_echo "$DSYMUTIL" >&6; }
  20501. else
  20502. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20504. $as_echo "no" >&6; }
  20505. fi
  20506. fi
  20507. -if test -z "$ac_cv_prog_AR"; then
  20508. - ac_ct_AR=$AR
  20509. - # Extract the first word of "ar", so it can be a program name with args.
  20510. -set dummy ar; ac_word=$2
  20511. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20512. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  20513. + ac_ct_DSYMUTIL=$DSYMUTIL
  20514. + # Extract the first word of "dsymutil", so it can be a program name with args.
  20515. +set dummy dsymutil; ac_word=$2
  20516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20517. $as_echo_n "checking for $ac_word... " >&6; }
  20518. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  20519. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  20520. $as_echo_n "(cached) " >&6
  20521. else
  20522. - if test -n "$ac_ct_AR"; then
  20523. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  20524. + if test -n "$ac_ct_DSYMUTIL"; then
  20525. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  20526. else
  20527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20528. for as_dir in $PATH
  20529. do
  20530. IFS=$as_save_IFS
  20531. test -z "$as_dir" && as_dir=.
  20532. - for ac_exec_ext in '' $ac_executable_extensions; do
  20533. + for ac_exec_ext in '' $ac_executable_extensions; do
  20534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20535. - ac_cv_prog_ac_ct_AR="ar"
  20536. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20537. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  20538. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20539. break 2
  20540. fi
  20541. done
  20542. -done
  20543. + done
  20544. IFS=$as_save_IFS
  20545. fi
  20546. fi
  20547. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  20548. -if test -n "$ac_ct_AR"; then
  20549. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  20550. -$as_echo "$ac_ct_AR" >&6; }
  20551. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  20552. +if test -n "$ac_ct_DSYMUTIL"; then
  20553. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  20554. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  20555. else
  20556. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20558. $as_echo "no" >&6; }
  20559. fi
  20560. - if test "x$ac_ct_AR" = x; then
  20561. - AR="false"
  20562. + if test "x$ac_ct_DSYMUTIL" = x; then
  20563. + DSYMUTIL=":"
  20564. else
  20565. case $cross_compiling:$ac_tool_warned in
  20566. yes:)
  20567. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20568. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20570. ac_tool_warned=yes ;;
  20571. esac
  20572. - AR=$ac_ct_AR
  20573. + DSYMUTIL=$ac_ct_DSYMUTIL
  20574. fi
  20575. else
  20576. - AR="$ac_cv_prog_AR"
  20577. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  20578. fi
  20579. -if test -n "$ac_tool_prefix"; then
  20580. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  20581. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  20582. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20583. + if test -n "$ac_tool_prefix"; then
  20584. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  20585. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  20586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20587. $as_echo_n "checking for $ac_word... " >&6; }
  20588. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  20589. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  20590. $as_echo_n "(cached) " >&6
  20591. else
  20592. - if test -n "$RANLIB"; then
  20593. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  20594. + if test -n "$NMEDIT"; then
  20595. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  20596. else
  20597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20598. for as_dir in $PATH
  20599. do
  20600. IFS=$as_save_IFS
  20601. test -z "$as_dir" && as_dir=.
  20602. - for ac_exec_ext in '' $ac_executable_extensions; do
  20603. + for ac_exec_ext in '' $ac_executable_extensions; do
  20604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20605. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  20606. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20607. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  20608. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20609. break 2
  20610. fi
  20611. done
  20612. -done
  20613. + done
  20614. IFS=$as_save_IFS
  20615. fi
  20616. fi
  20617. -RANLIB=$ac_cv_prog_RANLIB
  20618. -if test -n "$RANLIB"; then
  20619. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  20620. -$as_echo "$RANLIB" >&6; }
  20621. +NMEDIT=$ac_cv_prog_NMEDIT
  20622. +if test -n "$NMEDIT"; then
  20623. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  20624. +$as_echo "$NMEDIT" >&6; }
  20625. else
  20626. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20627. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20628. $as_echo "no" >&6; }
  20629. fi
  20630. fi
  20631. -if test -z "$ac_cv_prog_RANLIB"; then
  20632. - ac_ct_RANLIB=$RANLIB
  20633. - # Extract the first word of "ranlib", so it can be a program name with args.
  20634. -set dummy ranlib; ac_word=$2
  20635. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20636. +if test -z "$ac_cv_prog_NMEDIT"; then
  20637. + ac_ct_NMEDIT=$NMEDIT
  20638. + # Extract the first word of "nmedit", so it can be a program name with args.
  20639. +set dummy nmedit; ac_word=$2
  20640. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20641. $as_echo_n "checking for $ac_word... " >&6; }
  20642. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  20643. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  20644. $as_echo_n "(cached) " >&6
  20645. else
  20646. - if test -n "$ac_ct_RANLIB"; then
  20647. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  20648. + if test -n "$ac_ct_NMEDIT"; then
  20649. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  20650. else
  20651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20652. for as_dir in $PATH
  20653. do
  20654. IFS=$as_save_IFS
  20655. test -z "$as_dir" && as_dir=.
  20656. - for ac_exec_ext in '' $ac_executable_extensions; do
  20657. + for ac_exec_ext in '' $ac_executable_extensions; do
  20658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20659. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  20660. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20661. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  20662. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20663. break 2
  20664. fi
  20665. done
  20666. -done
  20667. + done
  20668. IFS=$as_save_IFS
  20669. fi
  20670. fi
  20671. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  20672. -if test -n "$ac_ct_RANLIB"; then
  20673. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  20674. -$as_echo "$ac_ct_RANLIB" >&6; }
  20675. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  20676. +if test -n "$ac_ct_NMEDIT"; then
  20677. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  20678. +$as_echo "$ac_ct_NMEDIT" >&6; }
  20679. else
  20680. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20681. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20682. $as_echo "no" >&6; }
  20683. fi
  20684. - if test "x$ac_ct_RANLIB" = x; then
  20685. - RANLIB=":"
  20686. + if test "x$ac_ct_NMEDIT" = x; then
  20687. + NMEDIT=":"
  20688. else
  20689. case $cross_compiling:$ac_tool_warned in
  20690. yes:)
  20691. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20694. ac_tool_warned=yes ;;
  20695. esac
  20696. - RANLIB=$ac_ct_RANLIB
  20697. + NMEDIT=$ac_ct_NMEDIT
  20698. fi
  20699. else
  20700. - RANLIB="$ac_cv_prog_RANLIB"
  20701. + NMEDIT="$ac_cv_prog_NMEDIT"
  20702. fi
  20703. -if test -n "$ac_tool_prefix"; then
  20704. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  20705. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  20706. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20707. + if test -n "$ac_tool_prefix"; then
  20708. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  20709. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  20710. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20711. $as_echo_n "checking for $ac_word... " >&6; }
  20712. -if test "${ac_cv_prog_STRIP+set}" = set; then
  20713. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  20714. $as_echo_n "(cached) " >&6
  20715. else
  20716. - if test -n "$STRIP"; then
  20717. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  20718. + if test -n "$LIPO"; then
  20719. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  20720. else
  20721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20722. for as_dir in $PATH
  20723. do
  20724. IFS=$as_save_IFS
  20725. test -z "$as_dir" && as_dir=.
  20726. - for ac_exec_ext in '' $ac_executable_extensions; do
  20727. + for ac_exec_ext in '' $ac_executable_extensions; do
  20728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20729. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  20730. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20731. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  20732. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20733. break 2
  20734. fi
  20735. done
  20736. -done
  20737. + done
  20738. IFS=$as_save_IFS
  20739. fi
  20740. fi
  20741. -STRIP=$ac_cv_prog_STRIP
  20742. -if test -n "$STRIP"; then
  20743. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  20744. -$as_echo "$STRIP" >&6; }
  20745. +LIPO=$ac_cv_prog_LIPO
  20746. +if test -n "$LIPO"; then
  20747. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  20748. +$as_echo "$LIPO" >&6; }
  20749. else
  20750. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20751. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20752. $as_echo "no" >&6; }
  20753. fi
  20754. fi
  20755. -if test -z "$ac_cv_prog_STRIP"; then
  20756. - ac_ct_STRIP=$STRIP
  20757. - # Extract the first word of "strip", so it can be a program name with args.
  20758. -set dummy strip; ac_word=$2
  20759. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20760. +if test -z "$ac_cv_prog_LIPO"; then
  20761. + ac_ct_LIPO=$LIPO
  20762. + # Extract the first word of "lipo", so it can be a program name with args.
  20763. +set dummy lipo; ac_word=$2
  20764. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20765. $as_echo_n "checking for $ac_word... " >&6; }
  20766. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  20767. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  20768. $as_echo_n "(cached) " >&6
  20769. else
  20770. - if test -n "$ac_ct_STRIP"; then
  20771. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  20772. + if test -n "$ac_ct_LIPO"; then
  20773. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  20774. else
  20775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20776. for as_dir in $PATH
  20777. do
  20778. IFS=$as_save_IFS
  20779. test -z "$as_dir" && as_dir=.
  20780. - for ac_exec_ext in '' $ac_executable_extensions; do
  20781. + for ac_exec_ext in '' $ac_executable_extensions; do
  20782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20783. - ac_cv_prog_ac_ct_STRIP="strip"
  20784. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20785. + ac_cv_prog_ac_ct_LIPO="lipo"
  20786. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20787. break 2
  20788. fi
  20789. done
  20790. -done
  20791. + done
  20792. IFS=$as_save_IFS
  20793. fi
  20794. fi
  20795. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  20796. -if test -n "$ac_ct_STRIP"; then
  20797. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  20798. -$as_echo "$ac_ct_STRIP" >&6; }
  20799. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  20800. +if test -n "$ac_ct_LIPO"; then
  20801. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  20802. +$as_echo "$ac_ct_LIPO" >&6; }
  20803. else
  20804. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20805. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20806. $as_echo "no" >&6; }
  20807. fi
  20808. - if test "x$ac_ct_STRIP" = x; then
  20809. - STRIP=":"
  20810. + if test "x$ac_ct_LIPO" = x; then
  20811. + LIPO=":"
  20812. else
  20813. case $cross_compiling:$ac_tool_warned in
  20814. yes:)
  20815. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20816. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20818. ac_tool_warned=yes ;;
  20819. esac
  20820. - STRIP=$ac_ct_STRIP
  20821. + LIPO=$ac_ct_LIPO
  20822. fi
  20823. else
  20824. - STRIP="$ac_cv_prog_STRIP"
  20825. -fi
  20826. -
  20827. -
  20828. -old_CC="$CC"
  20829. -old_CFLAGS="$CFLAGS"
  20830. -
  20831. -# Set sane defaults for various variables
  20832. -test -z "$AR" && AR=ar
  20833. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  20834. -test -z "$AS" && AS=as
  20835. -test -z "$CC" && CC=cc
  20836. -test -z "$LTCC" && LTCC=$CC
  20837. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  20838. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  20839. -test -z "$LD" && LD=ld
  20840. -test -z "$LN_S" && LN_S="ln -s"
  20841. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  20842. -test -z "$NM" && NM=nm
  20843. -test -z "$SED" && SED=sed
  20844. -test -z "$OBJDUMP" && OBJDUMP=objdump
  20845. -test -z "$RANLIB" && RANLIB=:
  20846. -test -z "$STRIP" && STRIP=:
  20847. -test -z "$ac_objext" && ac_objext=o
  20848. -
  20849. -# Determine commands to create old-style static archives.
  20850. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  20851. -old_postinstall_cmds='chmod 644 $oldlib'
  20852. -old_postuninstall_cmds=
  20853. -
  20854. -if test -n "$RANLIB"; then
  20855. - case $host_os in
  20856. - openbsd*)
  20857. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  20858. - ;;
  20859. - *)
  20860. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  20861. - ;;
  20862. - esac
  20863. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  20864. -fi
  20865. -
  20866. -for cc_temp in $compiler""; do
  20867. - case $cc_temp in
  20868. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20869. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20870. - \-*) ;;
  20871. - *) break;;
  20872. - esac
  20873. -done
  20874. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  20875. -
  20876. -
  20877. -# Only perform the check for file, if the check method requires it
  20878. -case $deplibs_check_method in
  20879. -file_magic*)
  20880. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  20881. - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  20882. -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  20883. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20884. - $as_echo_n "(cached) " >&6
  20885. -else
  20886. - case $MAGIC_CMD in
  20887. -[\\/*] | ?:[\\/]*)
  20888. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20889. - ;;
  20890. -*)
  20891. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  20892. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20893. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20894. - for ac_dir in $ac_dummy; do
  20895. - IFS="$lt_save_ifs"
  20896. - test -z "$ac_dir" && ac_dir=.
  20897. - if test -f $ac_dir/${ac_tool_prefix}file; then
  20898. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  20899. - if test -n "$file_magic_test_file"; then
  20900. - case $deplibs_check_method in
  20901. - "file_magic "*)
  20902. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20903. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20904. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20905. - $EGREP "$file_magic_regex" > /dev/null; then
  20906. - :
  20907. - else
  20908. - cat <<EOF 1>&2
  20909. -
  20910. -*** Warning: the command libtool uses to detect shared libraries,
  20911. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  20912. -*** The result is that libtool may fail to recognize shared libraries
  20913. -*** as such. This will affect the creation of libtool libraries that
  20914. -*** depend on shared libraries, but programs linked with such libtool
  20915. -*** libraries will work regardless of this problem. Nevertheless, you
  20916. -*** may want to report the problem to your system manager and/or to
  20917. -*** bug-libtool@gnu.org
  20918. -
  20919. -EOF
  20920. - fi ;;
  20921. - esac
  20922. - fi
  20923. - break
  20924. - fi
  20925. - done
  20926. - IFS="$lt_save_ifs"
  20927. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  20928. - ;;
  20929. -esac
  20930. -fi
  20931. -
  20932. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20933. -if test -n "$MAGIC_CMD"; then
  20934. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20935. -$as_echo "$MAGIC_CMD" >&6; }
  20936. -else
  20937. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20938. -$as_echo "no" >&6; }
  20939. -fi
  20940. -
  20941. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  20942. - if test -n "$ac_tool_prefix"; then
  20943. - { $as_echo "$as_me:$LINENO: checking for file" >&5
  20944. -$as_echo_n "checking for file... " >&6; }
  20945. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20946. - $as_echo_n "(cached) " >&6
  20947. -else
  20948. - case $MAGIC_CMD in
  20949. -[\\/*] | ?:[\\/]*)
  20950. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20951. - ;;
  20952. -*)
  20953. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  20954. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20955. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20956. - for ac_dir in $ac_dummy; do
  20957. - IFS="$lt_save_ifs"
  20958. - test -z "$ac_dir" && ac_dir=.
  20959. - if test -f $ac_dir/file; then
  20960. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  20961. - if test -n "$file_magic_test_file"; then
  20962. - case $deplibs_check_method in
  20963. - "file_magic "*)
  20964. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20965. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20966. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20967. - $EGREP "$file_magic_regex" > /dev/null; then
  20968. - :
  20969. - else
  20970. - cat <<EOF 1>&2
  20971. -
  20972. -*** Warning: the command libtool uses to detect shared libraries,
  20973. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  20974. -*** The result is that libtool may fail to recognize shared libraries
  20975. -*** as such. This will affect the creation of libtool libraries that
  20976. -*** depend on shared libraries, but programs linked with such libtool
  20977. -*** libraries will work regardless of this problem. Nevertheless, you
  20978. -*** may want to report the problem to your system manager and/or to
  20979. -*** bug-libtool@gnu.org
  20980. -
  20981. -EOF
  20982. - fi ;;
  20983. - esac
  20984. - fi
  20985. - break
  20986. - fi
  20987. - done
  20988. - IFS="$lt_save_ifs"
  20989. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  20990. - ;;
  20991. -esac
  20992. -fi
  20993. -
  20994. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20995. -if test -n "$MAGIC_CMD"; then
  20996. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20997. -$as_echo "$MAGIC_CMD" >&6; }
  20998. -else
  20999. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21000. -$as_echo "no" >&6; }
  21001. -fi
  21002. -
  21003. - else
  21004. - MAGIC_CMD=:
  21005. - fi
  21006. + LIPO="$ac_cv_prog_LIPO"
  21007. fi
  21008. - fi
  21009. - ;;
  21010. -esac
  21011. -
  21012. -
  21013. - case $host_os in
  21014. - rhapsody* | darwin*)
  21015. if test -n "$ac_tool_prefix"; then
  21016. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  21017. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  21018. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21019. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  21020. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  21021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21022. $as_echo_n "checking for $ac_word... " >&6; }
  21023. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  21024. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  21025. $as_echo_n "(cached) " >&6
  21026. else
  21027. - if test -n "$DSYMUTIL"; then
  21028. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  21029. + if test -n "$OTOOL"; then
  21030. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  21031. else
  21032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21033. for as_dir in $PATH
  21034. do
  21035. IFS=$as_save_IFS
  21036. test -z "$as_dir" && as_dir=.
  21037. - for ac_exec_ext in '' $ac_executable_extensions; do
  21038. + for ac_exec_ext in '' $ac_executable_extensions; do
  21039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21040. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  21041. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21042. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  21043. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21044. break 2
  21045. fi
  21046. done
  21047. -done
  21048. + done
  21049. IFS=$as_save_IFS
  21050. fi
  21051. fi
  21052. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  21053. -if test -n "$DSYMUTIL"; then
  21054. - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  21055. -$as_echo "$DSYMUTIL" >&6; }
  21056. +OTOOL=$ac_cv_prog_OTOOL
  21057. +if test -n "$OTOOL"; then
  21058. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  21059. +$as_echo "$OTOOL" >&6; }
  21060. else
  21061. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21062. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21063. $as_echo "no" >&6; }
  21064. fi
  21065. fi
  21066. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  21067. - ac_ct_DSYMUTIL=$DSYMUTIL
  21068. - # Extract the first word of "dsymutil", so it can be a program name with args.
  21069. -set dummy dsymutil; ac_word=$2
  21070. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21071. +if test -z "$ac_cv_prog_OTOOL"; then
  21072. + ac_ct_OTOOL=$OTOOL
  21073. + # Extract the first word of "otool", so it can be a program name with args.
  21074. +set dummy otool; ac_word=$2
  21075. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21076. $as_echo_n "checking for $ac_word... " >&6; }
  21077. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  21078. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  21079. $as_echo_n "(cached) " >&6
  21080. else
  21081. - if test -n "$ac_ct_DSYMUTIL"; then
  21082. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  21083. + if test -n "$ac_ct_OTOOL"; then
  21084. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  21085. else
  21086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21087. for as_dir in $PATH
  21088. do
  21089. IFS=$as_save_IFS
  21090. test -z "$as_dir" && as_dir=.
  21091. - for ac_exec_ext in '' $ac_executable_extensions; do
  21092. + for ac_exec_ext in '' $ac_executable_extensions; do
  21093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21094. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  21095. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21096. + ac_cv_prog_ac_ct_OTOOL="otool"
  21097. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21098. break 2
  21099. fi
  21100. done
  21101. -done
  21102. + done
  21103. IFS=$as_save_IFS
  21104. fi
  21105. fi
  21106. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  21107. -if test -n "$ac_ct_DSYMUTIL"; then
  21108. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  21109. -$as_echo "$ac_ct_DSYMUTIL" >&6; }
  21110. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  21111. +if test -n "$ac_ct_OTOOL"; then
  21112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  21113. +$as_echo "$ac_ct_OTOOL" >&6; }
  21114. else
  21115. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21116. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21117. $as_echo "no" >&6; }
  21118. fi
  21119. - if test "x$ac_ct_DSYMUTIL" = x; then
  21120. - DSYMUTIL=":"
  21121. + if test "x$ac_ct_OTOOL" = x; then
  21122. + OTOOL=":"
  21123. else
  21124. case $cross_compiling:$ac_tool_warned in
  21125. yes:)
  21126. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  21127. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21129. ac_tool_warned=yes ;;
  21130. esac
  21131. - DSYMUTIL=$ac_ct_DSYMUTIL
  21132. + OTOOL=$ac_ct_OTOOL
  21133. fi
  21134. else
  21135. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  21136. + OTOOL="$ac_cv_prog_OTOOL"
  21137. fi
  21138. if test -n "$ac_tool_prefix"; then
  21139. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  21140. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  21141. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21142. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  21143. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  21144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21145. $as_echo_n "checking for $ac_word... " >&6; }
  21146. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  21147. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  21148. $as_echo_n "(cached) " >&6
  21149. else
  21150. - if test -n "$NMEDIT"; then
  21151. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  21152. + if test -n "$OTOOL64"; then
  21153. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  21154. else
  21155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21156. for as_dir in $PATH
  21157. do
  21158. IFS=$as_save_IFS
  21159. test -z "$as_dir" && as_dir=.
  21160. - for ac_exec_ext in '' $ac_executable_extensions; do
  21161. + for ac_exec_ext in '' $ac_executable_extensions; do
  21162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21163. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  21164. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21165. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  21166. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21167. break 2
  21168. fi
  21169. done
  21170. -done
  21171. + done
  21172. IFS=$as_save_IFS
  21173. fi
  21174. fi
  21175. -NMEDIT=$ac_cv_prog_NMEDIT
  21176. -if test -n "$NMEDIT"; then
  21177. - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  21178. -$as_echo "$NMEDIT" >&6; }
  21179. +OTOOL64=$ac_cv_prog_OTOOL64
  21180. +if test -n "$OTOOL64"; then
  21181. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  21182. +$as_echo "$OTOOL64" >&6; }
  21183. else
  21184. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21185. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21186. $as_echo "no" >&6; }
  21187. fi
  21188. fi
  21189. -if test -z "$ac_cv_prog_NMEDIT"; then
  21190. - ac_ct_NMEDIT=$NMEDIT
  21191. - # Extract the first word of "nmedit", so it can be a program name with args.
  21192. -set dummy nmedit; ac_word=$2
  21193. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21194. +if test -z "$ac_cv_prog_OTOOL64"; then
  21195. + ac_ct_OTOOL64=$OTOOL64
  21196. + # Extract the first word of "otool64", so it can be a program name with args.
  21197. +set dummy otool64; ac_word=$2
  21198. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21199. $as_echo_n "checking for $ac_word... " >&6; }
  21200. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  21201. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  21202. $as_echo_n "(cached) " >&6
  21203. else
  21204. - if test -n "$ac_ct_NMEDIT"; then
  21205. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  21206. + if test -n "$ac_ct_OTOOL64"; then
  21207. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  21208. else
  21209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21210. for as_dir in $PATH
  21211. do
  21212. IFS=$as_save_IFS
  21213. test -z "$as_dir" && as_dir=.
  21214. - for ac_exec_ext in '' $ac_executable_extensions; do
  21215. + for ac_exec_ext in '' $ac_executable_extensions; do
  21216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21217. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  21218. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21219. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  21220. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21221. break 2
  21222. fi
  21223. done
  21224. -done
  21225. + done
  21226. IFS=$as_save_IFS
  21227. fi
  21228. fi
  21229. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  21230. -if test -n "$ac_ct_NMEDIT"; then
  21231. - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  21232. -$as_echo "$ac_ct_NMEDIT" >&6; }
  21233. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  21234. +if test -n "$ac_ct_OTOOL64"; then
  21235. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  21236. +$as_echo "$ac_ct_OTOOL64" >&6; }
  21237. else
  21238. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21239. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21240. $as_echo "no" >&6; }
  21241. fi
  21242. - if test "x$ac_ct_NMEDIT" = x; then
  21243. - NMEDIT=":"
  21244. + if test "x$ac_ct_OTOOL64" = x; then
  21245. + OTOOL64=":"
  21246. else
  21247. case $cross_compiling:$ac_tool_warned in
  21248. yes:)
  21249. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  21250. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21252. ac_tool_warned=yes ;;
  21253. esac
  21254. - NMEDIT=$ac_ct_NMEDIT
  21255. + OTOOL64=$ac_ct_OTOOL64
  21256. fi
  21257. else
  21258. - NMEDIT="$ac_cv_prog_NMEDIT"
  21259. + OTOOL64="$ac_cv_prog_OTOOL64"
  21260. fi
  21261. - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  21262. +
  21263. +
  21264. +
  21265. +
  21266. +
  21267. +
  21268. +
  21269. +
  21270. +
  21271. +
  21272. +
  21273. +
  21274. +
  21275. +
  21276. +
  21277. +
  21278. +
  21279. +
  21280. +
  21281. +
  21282. +
  21283. +
  21284. +
  21285. +
  21286. +
  21287. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  21288. $as_echo_n "checking for -single_module linker flag... " >&6; }
  21289. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  21290. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  21291. $as_echo_n "(cached) " >&6
  21292. else
  21293. lt_cv_apple_cc_single_mod=no
  21294. if test -z "${LT_MULTI_MODULE}"; then
  21295. - # By default we will add the -single_module flag. You can override
  21296. - # by either setting the environment variable LT_MULTI_MODULE
  21297. - # non-empty at configure time, or by adding -multi_module to the
  21298. - # link flags.
  21299. - echo "int foo(void){return 1;}" > conftest.c
  21300. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21301. - -dynamiclib ${wl}-single_module conftest.c
  21302. - if test -f libconftest.dylib; then
  21303. - lt_cv_apple_cc_single_mod=yes
  21304. - rm -rf libconftest.dylib*
  21305. - fi
  21306. - rm conftest.c
  21307. + # By default we will add the -single_module flag. You can override
  21308. + # by either setting the environment variable LT_MULTI_MODULE
  21309. + # non-empty at configure time, or by adding -multi_module to the
  21310. + # link flags.
  21311. + rm -rf libconftest.dylib*
  21312. + echo "int foo(void){return 1;}" > conftest.c
  21313. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21314. +-dynamiclib -Wl,-single_module conftest.c" >&5
  21315. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21316. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  21317. + _lt_result=$?
  21318. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  21319. + lt_cv_apple_cc_single_mod=yes
  21320. + else
  21321. + cat conftest.err >&5
  21322. + fi
  21323. + rm -rf libconftest.dylib*
  21324. + rm -f conftest.*
  21325. fi
  21326. fi
  21327. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  21328. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  21329. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  21330. - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  21331. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  21332. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  21333. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  21334. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  21335. $as_echo_n "(cached) " >&6
  21336. else
  21337. lt_cv_ld_exported_symbols_list=no
  21338. save_LDFLAGS=$LDFLAGS
  21339. echo "_main" > conftest.sym
  21340. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  21341. - cat >conftest.$ac_ext <<_ACEOF
  21342. -/* confdefs.h. */
  21343. -_ACEOF
  21344. -cat confdefs.h >>conftest.$ac_ext
  21345. -cat >>conftest.$ac_ext <<_ACEOF
  21346. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21347. /* end confdefs.h. */
  21348. int
  21349. @@ -7401,59 +6430,34 @@
  21350. return 0;
  21351. }
  21352. _ACEOF
  21353. -rm -f conftest.$ac_objext conftest$ac_exeext
  21354. -if { (ac_try="$ac_link"
  21355. -case "(($ac_try" in
  21356. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21357. - *) ac_try_echo=$ac_try;;
  21358. -esac
  21359. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21360. -$as_echo "$ac_try_echo") >&5
  21361. - (eval "$ac_link") 2>conftest.er1
  21362. - ac_status=$?
  21363. - grep -v '^ *+' conftest.er1 >conftest.err
  21364. - rm -f conftest.er1
  21365. - cat conftest.err >&5
  21366. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21367. - (exit $ac_status); } && {
  21368. - test -z "$ac_c_werror_flag" ||
  21369. - test ! -s conftest.err
  21370. - } && test -s conftest$ac_exeext && {
  21371. - test "$cross_compiling" = yes ||
  21372. - $as_test_x conftest$ac_exeext
  21373. - }; then
  21374. +if ac_fn_c_try_link "$LINENO"; then :
  21375. lt_cv_ld_exported_symbols_list=yes
  21376. else
  21377. - $as_echo "$as_me: failed program was:" >&5
  21378. -sed 's/^/| /' conftest.$ac_ext >&5
  21379. -
  21380. - lt_cv_ld_exported_symbols_list=no
  21381. + lt_cv_ld_exported_symbols_list=no
  21382. fi
  21383. -
  21384. -rm -rf conftest.dSYM
  21385. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21386. - conftest$ac_exeext conftest.$ac_ext
  21387. - LDFLAGS="$save_LDFLAGS"
  21388. +rm -f core conftest.err conftest.$ac_objext \
  21389. + conftest$ac_exeext conftest.$ac_ext
  21390. + LDFLAGS="$save_LDFLAGS"
  21391. fi
  21392. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  21393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  21394. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  21395. case $host_os in
  21396. - rhapsody* | darwin1.[0123])
  21397. + rhapsody* | darwin1.[012])
  21398. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  21399. darwin1.*)
  21400. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21401. - darwin*)
  21402. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21403. + darwin*) # darwin 5.x on
  21404. # if running on 10.5 or later, the deployment target defaults
  21405. # to the OS version, if on x86, and 10.4, the deployment
  21406. # target defaults to 10.4. Don't you love it?
  21407. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  21408. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  21409. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21410. - 10.[012]*)
  21411. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21412. - 10.*)
  21413. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21414. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  21415. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21416. + 10.[012]*)
  21417. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21418. + 10.*)
  21419. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21420. esac
  21421. ;;
  21422. esac
  21423. @@ -7463,40 +6467,147 @@
  21424. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  21425. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  21426. else
  21427. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  21428. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  21429. fi
  21430. if test "$DSYMUTIL" != ":"; then
  21431. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  21432. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  21433. else
  21434. _lt_dsymutil=
  21435. fi
  21436. ;;
  21437. esac
  21438. +ac_ext=c
  21439. +ac_cpp='$CPP $CPPFLAGS'
  21440. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21441. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21442. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21443. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  21444. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  21445. +# On Suns, sometimes $CPP names a directory.
  21446. +if test -n "$CPP" && test -d "$CPP"; then
  21447. + CPP=
  21448. +fi
  21449. +if test -z "$CPP"; then
  21450. + if test "${ac_cv_prog_CPP+set}" = set; then :
  21451. + $as_echo_n "(cached) " >&6
  21452. +else
  21453. + # Double quotes because CPP needs to be expanded
  21454. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  21455. + do
  21456. + ac_preproc_ok=false
  21457. +for ac_c_preproc_warn_flag in '' yes
  21458. +do
  21459. + # Use a header file that comes with gcc, so configuring glibc
  21460. + # with a fresh cross-compiler works.
  21461. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21462. + # <limits.h> exists even on freestanding compilers.
  21463. + # On the NeXT, cc -E runs the code through the compiler's parser,
  21464. + # not just through cpp. "Syntax error" is here to catch this case.
  21465. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21466. +/* end confdefs.h. */
  21467. +#ifdef __STDC__
  21468. +# include <limits.h>
  21469. +#else
  21470. +# include <assert.h>
  21471. +#endif
  21472. + Syntax error
  21473. +_ACEOF
  21474. +if ac_fn_c_try_cpp "$LINENO"; then :
  21475. -enable_dlopen=no
  21476. -enable_win32_dll=no
  21477. +else
  21478. + # Broken: fails on valid input.
  21479. +continue
  21480. +fi
  21481. +rm -f conftest.err conftest.$ac_ext
  21482. -# Check whether --enable-libtool-lock was given.
  21483. -if test "${enable_libtool_lock+set}" = set; then
  21484. - enableval=$enable_libtool_lock;
  21485. + # OK, works on sane cases. Now check whether nonexistent headers
  21486. + # can be detected and how.
  21487. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21488. +/* end confdefs.h. */
  21489. +#include <ac_nonexistent.h>
  21490. +_ACEOF
  21491. +if ac_fn_c_try_cpp "$LINENO"; then :
  21492. + # Broken: success on invalid input.
  21493. +continue
  21494. +else
  21495. + # Passes both tests.
  21496. +ac_preproc_ok=:
  21497. +break
  21498. fi
  21499. +rm -f conftest.err conftest.$ac_ext
  21500. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21501. +done
  21502. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21503. +rm -f conftest.err conftest.$ac_ext
  21504. +if $ac_preproc_ok; then :
  21505. + break
  21506. +fi
  21507. + done
  21508. + ac_cv_prog_CPP=$CPP
  21509. -# Check whether --with-pic was given.
  21510. -if test "${with_pic+set}" = set; then
  21511. - withval=$with_pic; pic_mode="$withval"
  21512. +fi
  21513. + CPP=$ac_cv_prog_CPP
  21514. else
  21515. - pic_mode=default
  21516. + ac_cv_prog_CPP=$CPP
  21517. +fi
  21518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  21519. +$as_echo "$CPP" >&6; }
  21520. +ac_preproc_ok=false
  21521. +for ac_c_preproc_warn_flag in '' yes
  21522. +do
  21523. + # Use a header file that comes with gcc, so configuring glibc
  21524. + # with a fresh cross-compiler works.
  21525. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21526. + # <limits.h> exists even on freestanding compilers.
  21527. + # On the NeXT, cc -E runs the code through the compiler's parser,
  21528. + # not just through cpp. "Syntax error" is here to catch this case.
  21529. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21530. +/* end confdefs.h. */
  21531. +#ifdef __STDC__
  21532. +# include <limits.h>
  21533. +#else
  21534. +# include <assert.h>
  21535. +#endif
  21536. + Syntax error
  21537. +_ACEOF
  21538. +if ac_fn_c_try_cpp "$LINENO"; then :
  21539. +
  21540. +else
  21541. + # Broken: fails on valid input.
  21542. +continue
  21543. fi
  21544. +rm -f conftest.err conftest.$ac_ext
  21545. -test -z "$pic_mode" && pic_mode=default
  21546. + # OK, works on sane cases. Now check whether nonexistent headers
  21547. + # can be detected and how.
  21548. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21549. +/* end confdefs.h. */
  21550. +#include <ac_nonexistent.h>
  21551. +_ACEOF
  21552. +if ac_fn_c_try_cpp "$LINENO"; then :
  21553. + # Broken: success on invalid input.
  21554. +continue
  21555. +else
  21556. + # Passes both tests.
  21557. +ac_preproc_ok=:
  21558. +break
  21559. +fi
  21560. +rm -f conftest.err conftest.$ac_ext
  21561. +
  21562. +done
  21563. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21564. +rm -f conftest.err conftest.$ac_ext
  21565. +if $ac_preproc_ok; then :
  21566. +
  21567. +else
  21568. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21569. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21570. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  21571. +See \`config.log' for more details." "$LINENO" 5; }
  21572. +fi
  21573. -# Use C for the default configuration in the libtool script
  21574. -tagname=
  21575. -lt_save_CC="$CC"
  21576. ac_ext=c
  21577. ac_cpp='$CPP $CPPFLAGS'
  21578. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21579. @@ -7504,11034 +6615,2647 @@
  21580. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21581. -# Source file extension for C test sources.
  21582. -ac_ext=c
  21583. -
  21584. -# Object file extension for compiled C test sources.
  21585. -objext=o
  21586. -objext=$objext
  21587. -
  21588. -# Code to be used in simple compile tests
  21589. -lt_simple_compile_test_code="int some_variable = 0;"
  21590. -
  21591. -# Code to be used in simple link tests
  21592. -lt_simple_link_test_code='int main(){return(0);}'
  21593. -
  21594. -
  21595. -# If no C compiler was specified, use CC.
  21596. -LTCC=${LTCC-"$CC"}
  21597. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  21598. +$as_echo_n "checking for ANSI C header files... " >&6; }
  21599. +if test "${ac_cv_header_stdc+set}" = set; then :
  21600. + $as_echo_n "(cached) " >&6
  21601. +else
  21602. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21603. +/* end confdefs.h. */
  21604. +#include <stdlib.h>
  21605. +#include <stdarg.h>
  21606. +#include <string.h>
  21607. +#include <float.h>
  21608. -# If no C compiler flags were specified, use CFLAGS.
  21609. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21610. +int
  21611. +main ()
  21612. +{
  21613. -# Allow CC to be a program name with arguments.
  21614. -compiler=$CC
  21615. + ;
  21616. + return 0;
  21617. +}
  21618. +_ACEOF
  21619. +if ac_fn_c_try_compile "$LINENO"; then :
  21620. + ac_cv_header_stdc=yes
  21621. +else
  21622. + ac_cv_header_stdc=no
  21623. +fi
  21624. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21625. +if test $ac_cv_header_stdc = yes; then
  21626. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21627. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21628. +/* end confdefs.h. */
  21629. +#include <string.h>
  21630. -# save warnings/boilerplate of simple test code
  21631. -ac_outfile=conftest.$ac_objext
  21632. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  21633. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21634. -_lt_compiler_boilerplate=`cat conftest.err`
  21635. -$rm conftest*
  21636. +_ACEOF
  21637. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21638. + $EGREP "memchr" >/dev/null 2>&1; then :
  21639. -ac_outfile=conftest.$ac_objext
  21640. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  21641. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21642. -_lt_linker_boilerplate=`cat conftest.err`
  21643. -$rm -r conftest*
  21644. +else
  21645. + ac_cv_header_stdc=no
  21646. +fi
  21647. +rm -f conftest*
  21648. +fi
  21649. +if test $ac_cv_header_stdc = yes; then
  21650. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21651. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21652. +/* end confdefs.h. */
  21653. +#include <stdlib.h>
  21654. -lt_prog_compiler_no_builtin_flag=
  21655. +_ACEOF
  21656. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21657. + $EGREP "free" >/dev/null 2>&1; then :
  21658. -if test "$GCC" = yes; then
  21659. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  21660. +else
  21661. + ac_cv_header_stdc=no
  21662. +fi
  21663. +rm -f conftest*
  21664. +fi
  21665. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  21666. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  21667. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  21668. - $as_echo_n "(cached) " >&6
  21669. +if test $ac_cv_header_stdc = yes; then
  21670. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21671. + if test "$cross_compiling" = yes; then :
  21672. + :
  21673. else
  21674. - lt_cv_prog_compiler_rtti_exceptions=no
  21675. - ac_outfile=conftest.$ac_objext
  21676. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21677. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  21678. - # Insert the option either (1) after the last *FLAGS variable, or
  21679. - # (2) before a word containing "conftest.", or (3) at the end.
  21680. - # Note that $ac_compile itself does not contain backslashes and begins
  21681. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  21682. - # The option is referenced via a variable to avoid confusing sed.
  21683. - lt_compile=`echo "$ac_compile" | $SED \
  21684. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21685. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21686. - -e 's:$: $lt_compiler_flag:'`
  21687. - (eval echo "\"\$as_me:7570: $lt_compile\"" >&5)
  21688. - (eval "$lt_compile" 2>conftest.err)
  21689. - ac_status=$?
  21690. - cat conftest.err >&5
  21691. - echo "$as_me:7574: \$? = $ac_status" >&5
  21692. - if (exit $ac_status) && test -s "$ac_outfile"; then
  21693. - # The compiler can only warn and ignore the option if not recognized
  21694. - # So say no if there are warnings other than the usual output.
  21695. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21696. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21697. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21698. - lt_cv_prog_compiler_rtti_exceptions=yes
  21699. - fi
  21700. - fi
  21701. - $rm conftest*
  21702. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21703. +/* end confdefs.h. */
  21704. +#include <ctype.h>
  21705. +#include <stdlib.h>
  21706. +#if ((' ' & 0x0FF) == 0x020)
  21707. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21708. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21709. +#else
  21710. +# define ISLOWER(c) \
  21711. + (('a' <= (c) && (c) <= 'i') \
  21712. + || ('j' <= (c) && (c) <= 'r') \
  21713. + || ('s' <= (c) && (c) <= 'z'))
  21714. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21715. +#endif
  21716. -fi
  21717. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  21718. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  21719. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21720. +int
  21721. +main ()
  21722. +{
  21723. + int i;
  21724. + for (i = 0; i < 256; i++)
  21725. + if (XOR (islower (i), ISLOWER (i))
  21726. + || toupper (i) != TOUPPER (i))
  21727. + return 2;
  21728. + return 0;
  21729. +}
  21730. +_ACEOF
  21731. +if ac_fn_c_try_run "$LINENO"; then :
  21732. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  21733. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  21734. else
  21735. - :
  21736. + ac_cv_header_stdc=no
  21737. +fi
  21738. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21739. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  21740. fi
  21741. fi
  21742. +fi
  21743. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  21744. +$as_echo "$ac_cv_header_stdc" >&6; }
  21745. +if test $ac_cv_header_stdc = yes; then
  21746. -lt_prog_compiler_wl=
  21747. -lt_prog_compiler_pic=
  21748. -lt_prog_compiler_static=
  21749. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  21750. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  21751. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  21752. +fi
  21753. - if test "$GCC" = yes; then
  21754. - lt_prog_compiler_wl='-Wl,'
  21755. - lt_prog_compiler_static='-static'
  21756. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  21757. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  21758. + inttypes.h stdint.h unistd.h
  21759. +do :
  21760. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21761. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  21762. +"
  21763. +eval as_val=\$$as_ac_Header
  21764. + if test "x$as_val" = x""yes; then :
  21765. + cat >>confdefs.h <<_ACEOF
  21766. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21767. +_ACEOF
  21768. - case $host_os in
  21769. - aix*)
  21770. - # All AIX code is PIC.
  21771. - if test "$host_cpu" = ia64; then
  21772. - # AIX 5 now supports IA64 processor
  21773. - lt_prog_compiler_static='-Bstatic'
  21774. - fi
  21775. - ;;
  21776. +fi
  21777. - amigaos*)
  21778. - # FIXME: we need at least 68020 code to build shared libraries, but
  21779. - # adding the `-m68020' flag to GCC prevents building anything better,
  21780. - # like `-m68040'.
  21781. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  21782. - ;;
  21783. +done
  21784. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21785. - # PIC is the default for these OSes.
  21786. - ;;
  21787. - mingw* | cygwin* | pw32* | os2*)
  21788. - # This hack is so that the source file can tell whether it is being
  21789. - # built for inclusion in a dll (and should export symbols for example).
  21790. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  21791. - # (--disable-auto-import) libraries
  21792. - lt_prog_compiler_pic='-DDLL_EXPORT'
  21793. - ;;
  21794. +for ac_header in dlfcn.h
  21795. +do :
  21796. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  21797. +"
  21798. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  21799. + cat >>confdefs.h <<_ACEOF
  21800. +#define HAVE_DLFCN_H 1
  21801. +_ACEOF
  21802. - darwin* | rhapsody*)
  21803. - # PIC is the default on this platform
  21804. - # Common symbols not allowed in MH_DYLIB files
  21805. - lt_prog_compiler_pic='-fno-common'
  21806. - ;;
  21807. +fi
  21808. - interix[3-9]*)
  21809. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  21810. - # Instead, we relocate shared libraries at runtime.
  21811. - ;;
  21812. +done
  21813. - msdosdjgpp*)
  21814. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  21815. - # on systems that don't support them.
  21816. - lt_prog_compiler_can_build_shared=no
  21817. - enable_shared=no
  21818. - ;;
  21819. - sysv4*MP*)
  21820. - if test -d /usr/nec; then
  21821. - lt_prog_compiler_pic=-Kconform_pic
  21822. - fi
  21823. - ;;
  21824. - hpux*)
  21825. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21826. - # not for PA HP-UX.
  21827. - case $host_cpu in
  21828. - hppa*64*|ia64*)
  21829. - # +Z the default
  21830. - ;;
  21831. - *)
  21832. - lt_prog_compiler_pic='-fPIC'
  21833. - ;;
  21834. - esac
  21835. - ;;
  21836. +# Set options
  21837. - *)
  21838. - lt_prog_compiler_pic='-fPIC'
  21839. - ;;
  21840. - esac
  21841. - else
  21842. - # PORTME Check for flag to pass linker flags through the system compiler.
  21843. - case $host_os in
  21844. - aix*)
  21845. - lt_prog_compiler_wl='-Wl,'
  21846. - if test "$host_cpu" = ia64; then
  21847. - # AIX 5 now supports IA64 processor
  21848. - lt_prog_compiler_static='-Bstatic'
  21849. - else
  21850. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  21851. - fi
  21852. - ;;
  21853. - darwin*)
  21854. - # PIC is the default on this platform
  21855. - # Common symbols not allowed in MH_DYLIB files
  21856. - case $cc_basename in
  21857. - xlc*)
  21858. - lt_prog_compiler_pic='-qnocommon'
  21859. - lt_prog_compiler_wl='-Wl,'
  21860. - ;;
  21861. - esac
  21862. - ;;
  21863. - mingw* | cygwin* | pw32* | os2*)
  21864. - # This hack is so that the source file can tell whether it is being
  21865. - # built for inclusion in a dll (and should export symbols for example).
  21866. - lt_prog_compiler_pic='-DDLL_EXPORT'
  21867. - ;;
  21868. - hpux9* | hpux10* | hpux11*)
  21869. - lt_prog_compiler_wl='-Wl,'
  21870. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21871. - # not for PA HP-UX.
  21872. - case $host_cpu in
  21873. - hppa*64*|ia64*)
  21874. - # +Z the default
  21875. - ;;
  21876. - *)
  21877. - lt_prog_compiler_pic='+Z'
  21878. - ;;
  21879. - esac
  21880. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  21881. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  21882. - ;;
  21883. + enable_dlopen=no
  21884. - irix5* | irix6* | nonstopux*)
  21885. - lt_prog_compiler_wl='-Wl,'
  21886. - # PIC (with -KPIC) is the default.
  21887. - lt_prog_compiler_static='-non_shared'
  21888. - ;;
  21889. - newsos6)
  21890. - lt_prog_compiler_pic='-KPIC'
  21891. - lt_prog_compiler_static='-Bstatic'
  21892. - ;;
  21893. + enable_win32_dll=no
  21894. - linux* | k*bsd*-gnu)
  21895. - case $cc_basename in
  21896. - icc* | ecc*)
  21897. - lt_prog_compiler_wl='-Wl,'
  21898. - lt_prog_compiler_pic='-KPIC'
  21899. - lt_prog_compiler_static='-static'
  21900. - ;;
  21901. - pgcc* | pgf77* | pgf90* | pgf95*)
  21902. - # Portland Group compilers (*not* the Pentium gcc compiler,
  21903. - # which looks to be a dead project)
  21904. - lt_prog_compiler_wl='-Wl,'
  21905. - lt_prog_compiler_pic='-fpic'
  21906. - lt_prog_compiler_static='-Bstatic'
  21907. - ;;
  21908. - ccc*)
  21909. - lt_prog_compiler_wl='-Wl,'
  21910. - # All Alpha code is PIC.
  21911. - lt_prog_compiler_static='-non_shared'
  21912. - ;;
  21913. - *)
  21914. - case `$CC -V 2>&1 | sed 5q` in
  21915. - *Sun\ C*)
  21916. - # Sun C 5.9
  21917. - lt_prog_compiler_pic='-KPIC'
  21918. - lt_prog_compiler_static='-Bstatic'
  21919. - lt_prog_compiler_wl='-Wl,'
  21920. - ;;
  21921. - *Sun\ F*)
  21922. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  21923. - lt_prog_compiler_pic='-KPIC'
  21924. - lt_prog_compiler_static='-Bstatic'
  21925. - lt_prog_compiler_wl=''
  21926. - ;;
  21927. - esac
  21928. - ;;
  21929. - esac
  21930. - ;;
  21931. - osf3* | osf4* | osf5*)
  21932. - lt_prog_compiler_wl='-Wl,'
  21933. - # All OSF/1 code is PIC.
  21934. - lt_prog_compiler_static='-non_shared'
  21935. + # Check whether --enable-shared was given.
  21936. +if test "${enable_shared+set}" = set; then :
  21937. + enableval=$enable_shared; p=${PACKAGE-default}
  21938. + case $enableval in
  21939. + yes) enable_shared=yes ;;
  21940. + no) enable_shared=no ;;
  21941. + *)
  21942. + enable_shared=no
  21943. + # Look at the argument we got. We use all the common list separators.
  21944. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21945. + for pkg in $enableval; do
  21946. + IFS="$lt_save_ifs"
  21947. + if test "X$pkg" = "X$p"; then
  21948. + enable_shared=yes
  21949. + fi
  21950. + done
  21951. + IFS="$lt_save_ifs"
  21952. ;;
  21953. + esac
  21954. +else
  21955. + enable_shared=yes
  21956. +fi
  21957. - rdos*)
  21958. - lt_prog_compiler_static='-non_shared'
  21959. - ;;
  21960. - solaris*)
  21961. - lt_prog_compiler_pic='-KPIC'
  21962. - lt_prog_compiler_static='-Bstatic'
  21963. - case $cc_basename in
  21964. - f77* | f90* | f95*)
  21965. - lt_prog_compiler_wl='-Qoption ld ';;
  21966. - *)
  21967. - lt_prog_compiler_wl='-Wl,';;
  21968. - esac
  21969. - ;;
  21970. - sunos4*)
  21971. - lt_prog_compiler_wl='-Qoption ld '
  21972. - lt_prog_compiler_pic='-PIC'
  21973. - lt_prog_compiler_static='-Bstatic'
  21974. - ;;
  21975. - sysv4 | sysv4.2uw2* | sysv4.3*)
  21976. - lt_prog_compiler_wl='-Wl,'
  21977. - lt_prog_compiler_pic='-KPIC'
  21978. - lt_prog_compiler_static='-Bstatic'
  21979. - ;;
  21980. - sysv4*MP*)
  21981. - if test -d /usr/nec ;then
  21982. - lt_prog_compiler_pic='-Kconform_pic'
  21983. - lt_prog_compiler_static='-Bstatic'
  21984. - fi
  21985. - ;;
  21986. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  21987. - lt_prog_compiler_wl='-Wl,'
  21988. - lt_prog_compiler_pic='-KPIC'
  21989. - lt_prog_compiler_static='-Bstatic'
  21990. - ;;
  21991. - unicos*)
  21992. - lt_prog_compiler_wl='-Wl,'
  21993. - lt_prog_compiler_can_build_shared=no
  21994. - ;;
  21995. - uts4*)
  21996. - lt_prog_compiler_pic='-pic'
  21997. - lt_prog_compiler_static='-Bstatic'
  21998. - ;;
  21999. + # Check whether --enable-static was given.
  22000. +if test "${enable_static+set}" = set; then :
  22001. + enableval=$enable_static; p=${PACKAGE-default}
  22002. + case $enableval in
  22003. + yes) enable_static=yes ;;
  22004. + no) enable_static=no ;;
  22005. *)
  22006. - lt_prog_compiler_can_build_shared=no
  22007. + enable_static=no
  22008. + # Look at the argument we got. We use all the common list separators.
  22009. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22010. + for pkg in $enableval; do
  22011. + IFS="$lt_save_ifs"
  22012. + if test "X$pkg" = "X$p"; then
  22013. + enable_static=yes
  22014. + fi
  22015. + done
  22016. + IFS="$lt_save_ifs"
  22017. ;;
  22018. esac
  22019. - fi
  22020. +else
  22021. + enable_static=yes
  22022. +fi
  22023. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  22024. -$as_echo "$lt_prog_compiler_pic" >&6; }
  22025. -#
  22026. -# Check to make sure the PIC flag actually works.
  22027. -#
  22028. -if test -n "$lt_prog_compiler_pic"; then
  22029. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  22030. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  22031. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  22032. - $as_echo_n "(cached) " >&6
  22033. -else
  22034. - lt_cv_prog_compiler_pic_works=no
  22035. - ac_outfile=conftest.$ac_objext
  22036. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22037. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  22038. - # Insert the option either (1) after the last *FLAGS variable, or
  22039. - # (2) before a word containing "conftest.", or (3) at the end.
  22040. - # Note that $ac_compile itself does not contain backslashes and begins
  22041. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  22042. - # The option is referenced via a variable to avoid confusing sed.
  22043. - lt_compile=`echo "$ac_compile" | $SED \
  22044. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22045. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22046. - -e 's:$: $lt_compiler_flag:'`
  22047. - (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
  22048. - (eval "$lt_compile" 2>conftest.err)
  22049. - ac_status=$?
  22050. - cat conftest.err >&5
  22051. - echo "$as_me:7864: \$? = $ac_status" >&5
  22052. - if (exit $ac_status) && test -s "$ac_outfile"; then
  22053. - # The compiler can only warn and ignore the option if not recognized
  22054. - # So say no if there are warnings other than the usual output.
  22055. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  22056. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22057. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  22058. - lt_cv_prog_compiler_pic_works=yes
  22059. - fi
  22060. - fi
  22061. - $rm conftest*
  22062. -fi
  22063. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  22064. -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  22065. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  22066. - case $lt_prog_compiler_pic in
  22067. - "" | " "*) ;;
  22068. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  22069. - esac
  22070. -else
  22071. - lt_prog_compiler_pic=
  22072. - lt_prog_compiler_can_build_shared=no
  22073. -fi
  22074. -fi
  22075. -case $host_os in
  22076. - # For platforms which do not support PIC, -DPIC is meaningless:
  22077. - *djgpp*)
  22078. - lt_prog_compiler_pic=
  22079. - ;;
  22080. - *)
  22081. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  22082. - ;;
  22083. -esac
  22084. -#
  22085. -# Check to make sure the static flag actually works.
  22086. -#
  22087. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  22088. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  22089. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  22090. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  22091. - $as_echo_n "(cached) " >&6
  22092. -else
  22093. - lt_cv_prog_compiler_static_works=no
  22094. - save_LDFLAGS="$LDFLAGS"
  22095. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  22096. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  22097. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  22098. - # The linker can only warn and ignore the option if not recognized
  22099. - # So say no if there are warnings
  22100. - if test -s conftest.err; then
  22101. - # Append any errors to the config.log.
  22102. - cat conftest.err 1>&5
  22103. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  22104. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22105. - if diff conftest.exp conftest.er2 >/dev/null; then
  22106. - lt_cv_prog_compiler_static_works=yes
  22107. - fi
  22108. - else
  22109. - lt_cv_prog_compiler_static_works=yes
  22110. - fi
  22111. - fi
  22112. - $rm -r conftest*
  22113. - LDFLAGS="$save_LDFLAGS"
  22114. -fi
  22115. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  22116. -$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  22117. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  22118. - :
  22119. +
  22120. +# Check whether --with-pic was given.
  22121. +if test "${with_pic+set}" = set; then :
  22122. + withval=$with_pic; pic_mode="$withval"
  22123. else
  22124. - lt_prog_compiler_static=
  22125. + pic_mode=default
  22126. fi
  22127. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  22128. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  22129. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  22130. - $as_echo_n "(cached) " >&6
  22131. -else
  22132. - lt_cv_prog_compiler_c_o=no
  22133. - $rm -r conftest 2>/dev/null
  22134. - mkdir conftest
  22135. - cd conftest
  22136. - mkdir out
  22137. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22138. +test -z "$pic_mode" && pic_mode=default
  22139. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  22140. - # Insert the option either (1) after the last *FLAGS variable, or
  22141. - # (2) before a word containing "conftest.", or (3) at the end.
  22142. - # Note that $ac_compile itself does not contain backslashes and begins
  22143. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  22144. - lt_compile=`echo "$ac_compile" | $SED \
  22145. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22146. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22147. - -e 's:$: $lt_compiler_flag:'`
  22148. - (eval echo "\"\$as_me:7964: $lt_compile\"" >&5)
  22149. - (eval "$lt_compile" 2>out/conftest.err)
  22150. - ac_status=$?
  22151. - cat out/conftest.err >&5
  22152. - echo "$as_me:7968: \$? = $ac_status" >&5
  22153. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  22154. - then
  22155. - # The compiler can only warn and ignore the option if not recognized
  22156. - # So say no if there are warnings
  22157. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  22158. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  22159. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  22160. - lt_cv_prog_compiler_c_o=yes
  22161. - fi
  22162. - fi
  22163. - chmod u+w . 2>&5
  22164. - $rm conftest*
  22165. - # SGI C++ compiler will create directory out/ii_files/ for
  22166. - # template instantiation
  22167. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  22168. - $rm out/* && rmdir out
  22169. - cd ..
  22170. - rmdir conftest
  22171. - $rm conftest*
  22172. -fi
  22173. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  22174. -$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  22175. -hard_links="nottested"
  22176. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  22177. - # do not overwrite the value of need_locks provided by the user
  22178. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  22179. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  22180. - hard_links=yes
  22181. - $rm conftest*
  22182. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22183. - touch conftest.a
  22184. - ln conftest.a conftest.b 2>&5 || hard_links=no
  22185. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22186. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  22187. -$as_echo "$hard_links" >&6; }
  22188. - if test "$hard_links" = no; then
  22189. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  22190. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  22191. - need_locks=warn
  22192. - fi
  22193. +
  22194. +
  22195. +
  22196. + # Check whether --enable-fast-install was given.
  22197. +if test "${enable_fast_install+set}" = set; then :
  22198. + enableval=$enable_fast_install; p=${PACKAGE-default}
  22199. + case $enableval in
  22200. + yes) enable_fast_install=yes ;;
  22201. + no) enable_fast_install=no ;;
  22202. + *)
  22203. + enable_fast_install=no
  22204. + # Look at the argument we got. We use all the common list separators.
  22205. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22206. + for pkg in $enableval; do
  22207. + IFS="$lt_save_ifs"
  22208. + if test "X$pkg" = "X$p"; then
  22209. + enable_fast_install=yes
  22210. + fi
  22211. + done
  22212. + IFS="$lt_save_ifs"
  22213. + ;;
  22214. + esac
  22215. else
  22216. - need_locks=no
  22217. + enable_fast_install=yes
  22218. fi
  22219. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22220. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  22221. - runpath_var=
  22222. - allow_undefined_flag=
  22223. - enable_shared_with_static_runtimes=no
  22224. - archive_cmds=
  22225. - archive_expsym_cmds=
  22226. - old_archive_From_new_cmds=
  22227. - old_archive_from_expsyms_cmds=
  22228. - export_dynamic_flag_spec=
  22229. - whole_archive_flag_spec=
  22230. - thread_safe_flag_spec=
  22231. - hardcode_libdir_flag_spec=
  22232. - hardcode_libdir_flag_spec_ld=
  22233. - hardcode_libdir_separator=
  22234. - hardcode_direct=no
  22235. - hardcode_minus_L=no
  22236. - hardcode_shlibpath_var=unsupported
  22237. - link_all_deplibs=unknown
  22238. - hardcode_automatic=no
  22239. - module_cmds=
  22240. - module_expsym_cmds=
  22241. - always_export_symbols=no
  22242. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  22243. - # include_expsyms should be a list of space-separated symbols to be *always*
  22244. - # included in the symbol list
  22245. - include_expsyms=
  22246. - # exclude_expsyms can be an extended regexp of symbols to exclude
  22247. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  22248. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  22249. - # as well as any symbol that contains `d'.
  22250. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  22251. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  22252. - # platforms (ab)use it in PIC code, but their linkers get confused if
  22253. - # the symbol is explicitly referenced. Since portable code cannot
  22254. - # rely on this symbol name, it's probably fine to never include it in
  22255. - # preloaded symbol tables.
  22256. - # Exclude shared library initialization/finalization symbols.
  22257. - extract_expsyms_cmds=
  22258. - # Just being paranoid about ensuring that cc_basename is set.
  22259. - for cc_temp in $compiler""; do
  22260. - case $cc_temp in
  22261. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22262. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22263. - \-*) ;;
  22264. - *) break;;
  22265. - esac
  22266. -done
  22267. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22268. - case $host_os in
  22269. - cygwin* | mingw* | pw32*)
  22270. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  22271. - # When not using gcc, we currently assume that we are using
  22272. - # Microsoft Visual C++.
  22273. - if test "$GCC" != yes; then
  22274. - with_gnu_ld=no
  22275. - fi
  22276. - ;;
  22277. - interix*)
  22278. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  22279. - with_gnu_ld=yes
  22280. - ;;
  22281. - openbsd*)
  22282. - with_gnu_ld=no
  22283. - ;;
  22284. - esac
  22285. - ld_shlibs=yes
  22286. - if test "$with_gnu_ld" = yes; then
  22287. - # If archive_cmds runs LD, not CC, wlarc should be empty
  22288. - wlarc='${wl}'
  22289. - # Set some defaults for GNU ld with shared library support. These
  22290. - # are reset later if shared libraries are not supported. Putting them
  22291. - # here allows them to be overridden if necessary.
  22292. - runpath_var=LD_RUN_PATH
  22293. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  22294. - export_dynamic_flag_spec='${wl}--export-dynamic'
  22295. - # ancient GNU ld didn't support --whole-archive et. al.
  22296. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  22297. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22298. - else
  22299. - whole_archive_flag_spec=
  22300. - fi
  22301. - supports_anon_versioning=no
  22302. - case `$LD -v 2>/dev/null` in
  22303. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  22304. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  22305. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  22306. - *\ 2.11.*) ;; # other 2.11 versions
  22307. - *) supports_anon_versioning=yes ;;
  22308. - esac
  22309. - # See if GNU ld supports shared libraries.
  22310. - case $host_os in
  22311. - aix[3-9]*)
  22312. - # On AIX/PPC, the GNU linker is very broken
  22313. - if test "$host_cpu" != ia64; then
  22314. - ld_shlibs=no
  22315. - cat <<EOF 1>&2
  22316. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  22317. -*** to be unable to reliably create shared libraries on AIX.
  22318. -*** Therefore, libtool is disabling shared libraries support. If you
  22319. -*** really care for shared libraries, you may want to modify your PATH
  22320. -*** so that a non-GNU linker is found, and then restart.
  22321. -EOF
  22322. - fi
  22323. - ;;
  22324. - amigaos*)
  22325. - 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)'
  22326. - hardcode_libdir_flag_spec='-L$libdir'
  22327. - hardcode_minus_L=yes
  22328. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  22329. - # that the semantics of dynamic libraries on AmigaOS, at least up
  22330. - # to version 4, is to share data among multiple programs linked
  22331. - # with the same dynamic library. Since this doesn't match the
  22332. - # behavior of shared libraries on other platforms, we can't use
  22333. - # them.
  22334. - ld_shlibs=no
  22335. - ;;
  22336. - beos*)
  22337. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22338. - allow_undefined_flag=unsupported
  22339. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22340. - # support --undefined. This deserves some investigation. FIXME
  22341. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22342. - else
  22343. - ld_shlibs=no
  22344. - fi
  22345. - ;;
  22346. +# This can be used to rebuild libtool when needed
  22347. +LIBTOOL_DEPS="$ltmain"
  22348. - cygwin* | mingw* | pw32*)
  22349. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  22350. - # as there is no search path for DLLs.
  22351. - hardcode_libdir_flag_spec='-L$libdir'
  22352. - allow_undefined_flag=unsupported
  22353. - always_export_symbols=no
  22354. - enable_shared_with_static_runtimes=yes
  22355. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  22356. +# Always use our own libtool.
  22357. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  22358. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  22359. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22360. - # If the export-symbols file already is a .def file (1st line
  22361. - # is EXPORTS), use it as is; otherwise, prepend...
  22362. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22363. - cp $export_symbols $output_objdir/$soname.def;
  22364. - else
  22365. - echo EXPORTS > $output_objdir/$soname.def;
  22366. - cat $export_symbols >> $output_objdir/$soname.def;
  22367. - fi~
  22368. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22369. - else
  22370. - ld_shlibs=no
  22371. - fi
  22372. - ;;
  22373. - interix[3-9]*)
  22374. - hardcode_direct=no
  22375. - hardcode_shlibpath_var=no
  22376. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22377. - export_dynamic_flag_spec='${wl}-E'
  22378. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22379. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  22380. - # default) and relocated if they conflict, which is a slow very memory
  22381. - # consuming and fragmenting process. To avoid this, we pick a random,
  22382. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22383. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22384. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  22385. - 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'
  22386. - ;;
  22387. - gnu* | linux* | k*bsd*-gnu)
  22388. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22389. - tmp_addflag=
  22390. - case $cc_basename,$host_cpu in
  22391. - pgcc*) # Portland Group C compiler
  22392. - 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'
  22393. - tmp_addflag=' $pic_flag'
  22394. - ;;
  22395. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  22396. - 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'
  22397. - tmp_addflag=' $pic_flag -Mnomain' ;;
  22398. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  22399. - tmp_addflag=' -i_dynamic' ;;
  22400. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  22401. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  22402. - ifc* | ifort*) # Intel Fortran compiler
  22403. - tmp_addflag=' -nofor_main' ;;
  22404. - esac
  22405. - case `$CC -V 2>&1 | sed 5q` in
  22406. - *Sun\ C*) # Sun C 5.9
  22407. - 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'
  22408. - tmp_sharedflag='-G' ;;
  22409. - *Sun\ F*) # Sun Fortran 8.3
  22410. - tmp_sharedflag='-G' ;;
  22411. - *)
  22412. - tmp_sharedflag='-shared' ;;
  22413. - esac
  22414. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22415. - if test $supports_anon_versioning = yes; then
  22416. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  22417. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22418. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  22419. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  22420. - fi
  22421. - else
  22422. - ld_shlibs=no
  22423. - fi
  22424. - ;;
  22425. - netbsd*)
  22426. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22427. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  22428. - wlarc=
  22429. - else
  22430. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22431. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22432. - fi
  22433. - ;;
  22434. - solaris*)
  22435. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  22436. - ld_shlibs=no
  22437. - cat <<EOF 1>&2
  22438. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  22439. -*** create shared libraries on Solaris systems. Therefore, libtool
  22440. -*** is disabling shared libraries support. We urge you to upgrade GNU
  22441. -*** binutils to release 2.9.1 or newer. Another option is to modify
  22442. -*** your PATH or compiler configuration so that the native linker is
  22443. -*** used, and then restart.
  22444. -EOF
  22445. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22446. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22447. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22448. - else
  22449. - ld_shlibs=no
  22450. - fi
  22451. - ;;
  22452. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  22453. - case `$LD -v 2>&1` in
  22454. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  22455. - ld_shlibs=no
  22456. - cat <<_LT_EOF 1>&2
  22457. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  22458. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  22459. -*** is disabling shared libraries support. We urge you to upgrade GNU
  22460. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  22461. -*** your PATH or compiler configuration so that the native linker is
  22462. -*** used, and then restart.
  22463. -_LT_EOF
  22464. - ;;
  22465. - *)
  22466. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22467. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  22468. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  22469. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  22470. - else
  22471. - ld_shlibs=no
  22472. - fi
  22473. - ;;
  22474. - esac
  22475. - ;;
  22476. - sunos4*)
  22477. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22478. - wlarc=
  22479. - hardcode_direct=yes
  22480. - hardcode_shlibpath_var=no
  22481. - ;;
  22482. - *)
  22483. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22484. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22485. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22486. - else
  22487. - ld_shlibs=no
  22488. - fi
  22489. - ;;
  22490. - esac
  22491. - if test "$ld_shlibs" = no; then
  22492. - runpath_var=
  22493. - hardcode_libdir_flag_spec=
  22494. - export_dynamic_flag_spec=
  22495. - whole_archive_flag_spec=
  22496. - fi
  22497. - else
  22498. - # PORTME fill in a description of your system's linker (not GNU ld)
  22499. - case $host_os in
  22500. - aix3*)
  22501. - allow_undefined_flag=unsupported
  22502. - always_export_symbols=yes
  22503. - 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'
  22504. - # Note: this linker hardcodes the directories in LIBPATH if there
  22505. - # are no directories specified by -L.
  22506. - hardcode_minus_L=yes
  22507. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  22508. - # Neither direct hardcoding nor static linking is supported with a
  22509. - # broken collect2.
  22510. - hardcode_direct=unsupported
  22511. - fi
  22512. - ;;
  22513. - aix[4-9]*)
  22514. - if test "$host_cpu" = ia64; then
  22515. - # On IA64, the linker does run time linking by default, so we don't
  22516. - # have to do anything special.
  22517. - aix_use_runtimelinking=no
  22518. - exp_sym_flag='-Bexport'
  22519. - no_entry_flag=""
  22520. - else
  22521. - # If we're using GNU nm, then we don't want the "-C" option.
  22522. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  22523. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  22524. - 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'
  22525. - else
  22526. - 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'
  22527. - fi
  22528. - aix_use_runtimelinking=no
  22529. - # Test if we are trying to use run time linking or normal
  22530. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22531. - # need to do runtime linking.
  22532. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  22533. - for ld_flag in $LDFLAGS; do
  22534. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  22535. - aix_use_runtimelinking=yes
  22536. - break
  22537. - fi
  22538. - done
  22539. - ;;
  22540. - esac
  22541. - exp_sym_flag='-bexport'
  22542. - no_entry_flag='-bnoentry'
  22543. - fi
  22544. - # When large executables or shared objects are built, AIX ld can
  22545. - # have problems creating the table of contents. If linking a library
  22546. - # or program results in "error TOC overflow" add -mminimal-toc to
  22547. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22548. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22549. - archive_cmds=''
  22550. - hardcode_direct=yes
  22551. - hardcode_libdir_separator=':'
  22552. - link_all_deplibs=yes
  22553. - if test "$GCC" = yes; then
  22554. - case $host_os in aix4.[012]|aix4.[012].*)
  22555. - # We only want to do this on AIX 4.2 and lower, the check
  22556. - # below for broken collect2 doesn't work under 4.3+
  22557. - collect2name=`${CC} -print-prog-name=collect2`
  22558. - if test -f "$collect2name" && \
  22559. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  22560. - then
  22561. - # We have reworked collect2
  22562. - :
  22563. - else
  22564. - # We have old collect2
  22565. - hardcode_direct=unsupported
  22566. - # It fails to find uninstalled libraries when the uninstalled
  22567. - # path is not listed in the libpath. Setting hardcode_minus_L
  22568. - # to unsupported forces relinking
  22569. - hardcode_minus_L=yes
  22570. - hardcode_libdir_flag_spec='-L$libdir'
  22571. - hardcode_libdir_separator=
  22572. - fi
  22573. - ;;
  22574. - esac
  22575. - shared_flag='-shared'
  22576. - if test "$aix_use_runtimelinking" = yes; then
  22577. - shared_flag="$shared_flag "'${wl}-G'
  22578. - fi
  22579. - else
  22580. - # not using gcc
  22581. - if test "$host_cpu" = ia64; then
  22582. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22583. - # chokes on -Wl,-G. The following line is correct:
  22584. - shared_flag='-G'
  22585. - else
  22586. - if test "$aix_use_runtimelinking" = yes; then
  22587. - shared_flag='${wl}-G'
  22588. - else
  22589. - shared_flag='${wl}-bM:SRE'
  22590. - fi
  22591. - fi
  22592. - fi
  22593. - # It seems that -bexpall does not export symbols beginning with
  22594. - # underscore (_), so it is better to generate a list of symbols to export.
  22595. - always_export_symbols=yes
  22596. - if test "$aix_use_runtimelinking" = yes; then
  22597. - # Warning - without using the other runtime loading flags (-brtl),
  22598. - # -berok will link without error, but may produce a broken library.
  22599. - allow_undefined_flag='-berok'
  22600. - # Determine the default libpath from the value encoded in an empty executable.
  22601. - cat >conftest.$ac_ext <<_ACEOF
  22602. -/* confdefs.h. */
  22603. -_ACEOF
  22604. -cat confdefs.h >>conftest.$ac_ext
  22605. -cat >>conftest.$ac_ext <<_ACEOF
  22606. -/* end confdefs.h. */
  22607. -int
  22608. -main ()
  22609. -{
  22610. - ;
  22611. - return 0;
  22612. -}
  22613. -_ACEOF
  22614. -rm -f conftest.$ac_objext conftest$ac_exeext
  22615. -if { (ac_try="$ac_link"
  22616. -case "(($ac_try" in
  22617. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22618. - *) ac_try_echo=$ac_try;;
  22619. -esac
  22620. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22621. -$as_echo "$ac_try_echo") >&5
  22622. - (eval "$ac_link") 2>conftest.er1
  22623. - ac_status=$?
  22624. - grep -v '^ *+' conftest.er1 >conftest.err
  22625. - rm -f conftest.er1
  22626. - cat conftest.err >&5
  22627. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22628. - (exit $ac_status); } && {
  22629. - test -z "$ac_c_werror_flag" ||
  22630. - test ! -s conftest.err
  22631. - } && test -s conftest$ac_exeext && {
  22632. - test "$cross_compiling" = yes ||
  22633. - $as_test_x conftest$ac_exeext
  22634. - }; then
  22635. -lt_aix_libpath_sed='
  22636. - /Import File Strings/,/^$/ {
  22637. - /^0/ {
  22638. - s/^0 *\(.*\)$/\1/
  22639. - p
  22640. - }
  22641. - }'
  22642. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22643. -# Check for a 64-bit object if we didn't find anything.
  22644. -if test -z "$aix_libpath"; then
  22645. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22646. -fi
  22647. -else
  22648. - $as_echo "$as_me: failed program was:" >&5
  22649. -sed 's/^/| /' conftest.$ac_ext >&5
  22650. +
  22651. +test -z "$LN_S" && LN_S="ln -s"
  22652. -fi
  22653. -rm -rf conftest.dSYM
  22654. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22655. - conftest$ac_exeext conftest.$ac_ext
  22656. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22657. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  22658. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  22659. - else
  22660. - if test "$host_cpu" = ia64; then
  22661. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  22662. - allow_undefined_flag="-z nodefs"
  22663. - 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"
  22664. - else
  22665. - # Determine the default libpath from the value encoded in an empty executable.
  22666. - cat >conftest.$ac_ext <<_ACEOF
  22667. -/* confdefs.h. */
  22668. -_ACEOF
  22669. -cat confdefs.h >>conftest.$ac_ext
  22670. -cat >>conftest.$ac_ext <<_ACEOF
  22671. -/* end confdefs.h. */
  22672. -int
  22673. -main ()
  22674. -{
  22675. - ;
  22676. - return 0;
  22677. -}
  22678. -_ACEOF
  22679. -rm -f conftest.$ac_objext conftest$ac_exeext
  22680. -if { (ac_try="$ac_link"
  22681. -case "(($ac_try" in
  22682. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22683. - *) ac_try_echo=$ac_try;;
  22684. -esac
  22685. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22686. -$as_echo "$ac_try_echo") >&5
  22687. - (eval "$ac_link") 2>conftest.er1
  22688. - ac_status=$?
  22689. - grep -v '^ *+' conftest.er1 >conftest.err
  22690. - rm -f conftest.er1
  22691. - cat conftest.err >&5
  22692. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22693. - (exit $ac_status); } && {
  22694. - test -z "$ac_c_werror_flag" ||
  22695. - test ! -s conftest.err
  22696. - } && test -s conftest$ac_exeext && {
  22697. - test "$cross_compiling" = yes ||
  22698. - $as_test_x conftest$ac_exeext
  22699. - }; then
  22700. -lt_aix_libpath_sed='
  22701. - /Import File Strings/,/^$/ {
  22702. - /^0/ {
  22703. - s/^0 *\(.*\)$/\1/
  22704. - p
  22705. - }
  22706. - }'
  22707. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22708. -# Check for a 64-bit object if we didn't find anything.
  22709. -if test -z "$aix_libpath"; then
  22710. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22711. -fi
  22712. -else
  22713. - $as_echo "$as_me: failed program was:" >&5
  22714. -sed 's/^/| /' conftest.$ac_ext >&5
  22715. +
  22716. +
  22717. +
  22718. +
  22719. +
  22720. +if test -n "${ZSH_VERSION+set}" ; then
  22721. + setopt NO_GLOB_SUBST
  22722. fi
  22723. -rm -rf conftest.dSYM
  22724. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22725. - conftest$ac_exeext conftest.$ac_ext
  22726. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22727. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  22728. +$as_echo_n "checking for objdir... " >&6; }
  22729. +if test "${lt_cv_objdir+set}" = set; then :
  22730. + $as_echo_n "(cached) " >&6
  22731. +else
  22732. + rm -f .libs 2>/dev/null
  22733. +mkdir .libs 2>/dev/null
  22734. +if test -d .libs; then
  22735. + lt_cv_objdir=.libs
  22736. +else
  22737. + # MS-DOS does not allow filenames that begin with a dot.
  22738. + lt_cv_objdir=_libs
  22739. +fi
  22740. +rmdir .libs 2>/dev/null
  22741. +fi
  22742. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  22743. +$as_echo "$lt_cv_objdir" >&6; }
  22744. +objdir=$lt_cv_objdir
  22745. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  22746. - # Warning - without using the other run time loading flags,
  22747. - # -berok will link without error, but may produce a broken library.
  22748. - no_undefined_flag=' ${wl}-bernotok'
  22749. - allow_undefined_flag=' ${wl}-berok'
  22750. - # Exported symbols can be pulled into shared objects from archives
  22751. - whole_archive_flag_spec='$convenience'
  22752. - archive_cmds_need_lc=yes
  22753. - # This is similar to how AIX traditionally builds its shared libraries.
  22754. - 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'
  22755. - fi
  22756. - fi
  22757. - ;;
  22758. - amigaos*)
  22759. - 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)'
  22760. - hardcode_libdir_flag_spec='-L$libdir'
  22761. - hardcode_minus_L=yes
  22762. - # see comment about different semantics on the GNU ld section
  22763. - ld_shlibs=no
  22764. - ;;
  22765. - bsdi[45]*)
  22766. - export_dynamic_flag_spec=-rdynamic
  22767. - ;;
  22768. - cygwin* | mingw* | pw32*)
  22769. - # When not using gcc, we currently assume that we are using
  22770. - # Microsoft Visual C++.
  22771. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  22772. - # no search path for DLLs.
  22773. - hardcode_libdir_flag_spec=' '
  22774. - allow_undefined_flag=unsupported
  22775. - # Tell ltmain to make .lib files, not .a files.
  22776. - libext=lib
  22777. - # Tell ltmain to make .dll files, not .so files.
  22778. - shrext_cmds=".dll"
  22779. - # FIXME: Setting linknames here is a bad hack.
  22780. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  22781. - # The linker will automatically build a .lib file if we build a DLL.
  22782. - old_archive_From_new_cmds='true'
  22783. - # FIXME: Should let the user specify the lib program.
  22784. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  22785. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  22786. - enable_shared_with_static_runtimes=yes
  22787. - ;;
  22788. - darwin* | rhapsody*)
  22789. - case $host_os in
  22790. - rhapsody* | darwin1.[012])
  22791. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  22792. - ;;
  22793. - *) # Darwin 1.3 on
  22794. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  22795. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22796. - else
  22797. - case ${MACOSX_DEPLOYMENT_TARGET} in
  22798. - 10.[012])
  22799. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22800. - ;;
  22801. - 10.*)
  22802. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  22803. - ;;
  22804. - esac
  22805. - fi
  22806. - ;;
  22807. - esac
  22808. - archive_cmds_need_lc=no
  22809. - hardcode_direct=no
  22810. - hardcode_automatic=yes
  22811. - hardcode_shlibpath_var=unsupported
  22812. - whole_archive_flag_spec=''
  22813. - link_all_deplibs=yes
  22814. - if test "$GCC" = yes ; then
  22815. - output_verbose_link_cmd='echo'
  22816. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  22817. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  22818. - 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}"
  22819. - 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}"
  22820. - else
  22821. - case $cc_basename in
  22822. - xlc*)
  22823. - output_verbose_link_cmd='echo'
  22824. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  22825. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22826. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22827. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22828. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22829. - ;;
  22830. - *)
  22831. - ld_shlibs=no
  22832. - ;;
  22833. - esac
  22834. - fi
  22835. - ;;
  22836. +cat >>confdefs.h <<_ACEOF
  22837. +#define LT_OBJDIR "$lt_cv_objdir/"
  22838. +_ACEOF
  22839. - dgux*)
  22840. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22841. - hardcode_libdir_flag_spec='-L$libdir'
  22842. - hardcode_shlibpath_var=no
  22843. - ;;
  22844. - freebsd1*)
  22845. - ld_shlibs=no
  22846. - ;;
  22847. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  22848. - # support. Future versions do this automatically, but an explicit c++rt0.o
  22849. - # does not break anything, and helps significantly (at the cost of a little
  22850. - # extra space).
  22851. - freebsd2.2*)
  22852. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  22853. - hardcode_libdir_flag_spec='-R$libdir'
  22854. - hardcode_direct=yes
  22855. - hardcode_shlibpath_var=no
  22856. - ;;
  22857. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  22858. - freebsd2*)
  22859. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22860. - hardcode_direct=yes
  22861. - hardcode_minus_L=yes
  22862. - hardcode_shlibpath_var=no
  22863. - ;;
  22864. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  22865. - freebsd* | dragonfly*)
  22866. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  22867. - hardcode_libdir_flag_spec='-R$libdir'
  22868. - hardcode_direct=yes
  22869. - hardcode_shlibpath_var=no
  22870. - ;;
  22871. - hpux9*)
  22872. - if test "$GCC" = yes; then
  22873. - 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'
  22874. - else
  22875. - 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'
  22876. - fi
  22877. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22878. - hardcode_libdir_separator=:
  22879. - hardcode_direct=yes
  22880. - # hardcode_minus_L: Not really in the search PATH,
  22881. - # but as the default location of the library.
  22882. - hardcode_minus_L=yes
  22883. - export_dynamic_flag_spec='${wl}-E'
  22884. - ;;
  22885. - hpux10*)
  22886. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22887. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22888. - else
  22889. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  22890. - fi
  22891. - if test "$with_gnu_ld" = no; then
  22892. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22893. - hardcode_libdir_separator=:
  22894. - hardcode_direct=yes
  22895. - export_dynamic_flag_spec='${wl}-E'
  22896. - # hardcode_minus_L: Not really in the search PATH,
  22897. - # but as the default location of the library.
  22898. - hardcode_minus_L=yes
  22899. - fi
  22900. - ;;
  22901. - hpux11*)
  22902. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22903. - case $host_cpu in
  22904. - hppa*64*)
  22905. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22906. - ;;
  22907. - ia64*)
  22908. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22909. - ;;
  22910. - *)
  22911. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22912. - ;;
  22913. - esac
  22914. - else
  22915. - case $host_cpu in
  22916. - hppa*64*)
  22917. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22918. - ;;
  22919. - ia64*)
  22920. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22921. - ;;
  22922. - *)
  22923. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22924. - ;;
  22925. - esac
  22926. - fi
  22927. - if test "$with_gnu_ld" = no; then
  22928. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22929. - hardcode_libdir_separator=:
  22930. - case $host_cpu in
  22931. - hppa*64*|ia64*)
  22932. - hardcode_libdir_flag_spec_ld='+b $libdir'
  22933. - hardcode_direct=no
  22934. - hardcode_shlibpath_var=no
  22935. - ;;
  22936. - *)
  22937. - hardcode_direct=yes
  22938. - export_dynamic_flag_spec='${wl}-E'
  22939. - # hardcode_minus_L: Not really in the search PATH,
  22940. - # but as the default location of the library.
  22941. - hardcode_minus_L=yes
  22942. - ;;
  22943. - esac
  22944. - fi
  22945. - ;;
  22946. - irix5* | irix6* | nonstopux*)
  22947. - if test "$GCC" = yes; then
  22948. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  22949. - else
  22950. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  22951. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  22952. - fi
  22953. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22954. - hardcode_libdir_separator=:
  22955. - link_all_deplibs=yes
  22956. - ;;
  22957. - netbsd*)
  22958. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22959. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  22960. - else
  22961. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  22962. - fi
  22963. - hardcode_libdir_flag_spec='-R$libdir'
  22964. - hardcode_direct=yes
  22965. - hardcode_shlibpath_var=no
  22966. - ;;
  22967. -
  22968. - newsos6)
  22969. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22970. - hardcode_direct=yes
  22971. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22972. - hardcode_libdir_separator=:
  22973. - hardcode_shlibpath_var=no
  22974. - ;;
  22975. - openbsd*)
  22976. - if test -f /usr/libexec/ld.so; then
  22977. - hardcode_direct=yes
  22978. - hardcode_shlibpath_var=no
  22979. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22980. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22981. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  22982. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22983. - export_dynamic_flag_spec='${wl}-E'
  22984. - else
  22985. - case $host_os in
  22986. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  22987. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22988. - hardcode_libdir_flag_spec='-R$libdir'
  22989. - ;;
  22990. - *)
  22991. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22992. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22993. - ;;
  22994. - esac
  22995. - fi
  22996. - else
  22997. - ld_shlibs=no
  22998. - fi
  22999. - ;;
  23000. - os2*)
  23001. - hardcode_libdir_flag_spec='-L$libdir'
  23002. - hardcode_minus_L=yes
  23003. - allow_undefined_flag=unsupported
  23004. - 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'
  23005. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  23006. - ;;
  23007. +case $host_os in
  23008. +aix3*)
  23009. + # AIX sometimes has problems with the GCC collect2 program. For some
  23010. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  23011. + # vanish in a puff of smoke.
  23012. + if test "X${COLLECT_NAMES+set}" != Xset; then
  23013. + COLLECT_NAMES=
  23014. + export COLLECT_NAMES
  23015. + fi
  23016. + ;;
  23017. +esac
  23018. - osf3*)
  23019. - if test "$GCC" = yes; then
  23020. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  23021. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  23022. - else
  23023. - allow_undefined_flag=' -expect_unresolved \*'
  23024. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  23025. - fi
  23026. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23027. - hardcode_libdir_separator=:
  23028. - ;;
  23029. +# Sed substitution that helps us do robust quoting. It backslashifies
  23030. +# metacharacters that are still active within double-quoted strings.
  23031. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  23032. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  23033. - if test "$GCC" = yes; then
  23034. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  23035. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  23036. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23037. - else
  23038. - allow_undefined_flag=' -expect_unresolved \*'
  23039. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  23040. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  23041. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  23042. +# Same as above, but do not quote variable references.
  23043. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  23044. - # Both c and cxx compiler support -rpath directly
  23045. - hardcode_libdir_flag_spec='-rpath $libdir'
  23046. - fi
  23047. - hardcode_libdir_separator=:
  23048. - ;;
  23049. +# Sed substitution to delay expansion of an escaped shell variable in a
  23050. +# double_quote_subst'ed string.
  23051. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  23052. - solaris*)
  23053. - no_undefined_flag=' -z text'
  23054. - if test "$GCC" = yes; then
  23055. - wlarc='${wl}'
  23056. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23057. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23058. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  23059. - else
  23060. - wlarc=''
  23061. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23062. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23063. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  23064. - fi
  23065. - hardcode_libdir_flag_spec='-R$libdir'
  23066. - hardcode_shlibpath_var=no
  23067. - case $host_os in
  23068. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  23069. - *)
  23070. - # The compiler driver will combine and reorder linker options,
  23071. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  23072. - # but is careful enough not to reorder.
  23073. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  23074. - if test "$GCC" = yes; then
  23075. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  23076. - else
  23077. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  23078. - fi
  23079. - ;;
  23080. - esac
  23081. - link_all_deplibs=yes
  23082. - ;;
  23083. +# Sed substitution to delay expansion of an escaped single quote.
  23084. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  23085. - sunos4*)
  23086. - if test "x$host_vendor" = xsequent; then
  23087. - # Use $CC to link under sequent, because it throws in some extra .o
  23088. - # files that make .init and .fini sections work.
  23089. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  23090. - else
  23091. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  23092. - fi
  23093. - hardcode_libdir_flag_spec='-L$libdir'
  23094. - hardcode_direct=yes
  23095. - hardcode_minus_L=yes
  23096. - hardcode_shlibpath_var=no
  23097. - ;;
  23098. +# Sed substitution to avoid accidental globbing in evaled expressions
  23099. +no_glob_subst='s/\*/\\\*/g'
  23100. - sysv4)
  23101. - case $host_vendor in
  23102. - sni)
  23103. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23104. - hardcode_direct=yes # is this really true???
  23105. - ;;
  23106. - siemens)
  23107. - ## LD is ld it makes a PLAMLIB
  23108. - ## CC just makes a GrossModule.
  23109. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  23110. - reload_cmds='$CC -r -o $output$reload_objs'
  23111. - hardcode_direct=no
  23112. - ;;
  23113. - motorola)
  23114. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23115. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  23116. - ;;
  23117. - esac
  23118. - runpath_var='LD_RUN_PATH'
  23119. - hardcode_shlibpath_var=no
  23120. - ;;
  23121. +# Global variables:
  23122. +ofile=libtool
  23123. +can_build_shared=yes
  23124. - sysv4.3*)
  23125. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23126. - hardcode_shlibpath_var=no
  23127. - export_dynamic_flag_spec='-Bexport'
  23128. - ;;
  23129. +# All known linkers require a `.a' archive for static linking (except MSVC,
  23130. +# which needs '.lib').
  23131. +libext=a
  23132. - sysv4*MP*)
  23133. - if test -d /usr/nec; then
  23134. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23135. - hardcode_shlibpath_var=no
  23136. - runpath_var=LD_RUN_PATH
  23137. - hardcode_runpath_var=yes
  23138. - ld_shlibs=yes
  23139. - fi
  23140. - ;;
  23141. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  23142. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  23143. - no_undefined_flag='${wl}-z,text'
  23144. - archive_cmds_need_lc=no
  23145. - hardcode_shlibpath_var=no
  23146. - runpath_var='LD_RUN_PATH'
  23147. +old_CC="$CC"
  23148. +old_CFLAGS="$CFLAGS"
  23149. - if test "$GCC" = yes; then
  23150. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23151. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23152. - else
  23153. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23154. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23155. - fi
  23156. - ;;
  23157. +# Set sane defaults for various variables
  23158. +test -z "$CC" && CC=cc
  23159. +test -z "$LTCC" && LTCC=$CC
  23160. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  23161. +test -z "$LD" && LD=ld
  23162. +test -z "$ac_objext" && ac_objext=o
  23163. - sysv5* | sco3.2v5* | sco5v6*)
  23164. - # Note: We can NOT use -z defs as we might desire, because we do not
  23165. - # link with -lc, and that would cause any symbols used from libc to
  23166. - # always be unresolved, which means just about no library would
  23167. - # ever link correctly. If we're not using GNU ld we use -z text
  23168. - # though, which does catch some bad symbols but isn't as heavy-handed
  23169. - # as -z defs.
  23170. - no_undefined_flag='${wl}-z,text'
  23171. - allow_undefined_flag='${wl}-z,nodefs'
  23172. - archive_cmds_need_lc=no
  23173. - hardcode_shlibpath_var=no
  23174. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  23175. - hardcode_libdir_separator=':'
  23176. - link_all_deplibs=yes
  23177. - export_dynamic_flag_spec='${wl}-Bexport'
  23178. - runpath_var='LD_RUN_PATH'
  23179. +for cc_temp in $compiler""; do
  23180. + case $cc_temp in
  23181. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23182. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23183. + \-*) ;;
  23184. + *) break;;
  23185. + esac
  23186. +done
  23187. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  23188. - if test "$GCC" = yes; then
  23189. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23190. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23191. - else
  23192. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23193. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23194. - fi
  23195. - ;;
  23196. - uts4*)
  23197. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23198. - hardcode_libdir_flag_spec='-L$libdir'
  23199. - hardcode_shlibpath_var=no
  23200. - ;;
  23201. +# Only perform the check for file, if the check method requires it
  23202. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  23203. +case $deplibs_check_method in
  23204. +file_magic*)
  23205. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  23206. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  23207. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  23208. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  23209. + $as_echo_n "(cached) " >&6
  23210. +else
  23211. + case $MAGIC_CMD in
  23212. +[\\/*] | ?:[\\/]*)
  23213. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23214. + ;;
  23215. +*)
  23216. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  23217. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23218. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23219. + for ac_dir in $ac_dummy; do
  23220. + IFS="$lt_save_ifs"
  23221. + test -z "$ac_dir" && ac_dir=.
  23222. + if test -f $ac_dir/${ac_tool_prefix}file; then
  23223. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  23224. + if test -n "$file_magic_test_file"; then
  23225. + case $deplibs_check_method in
  23226. + "file_magic "*)
  23227. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23228. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23229. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23230. + $EGREP "$file_magic_regex" > /dev/null; then
  23231. + :
  23232. + else
  23233. + cat <<_LT_EOF 1>&2
  23234. - *)
  23235. - ld_shlibs=no
  23236. - ;;
  23237. - esac
  23238. - fi
  23239. +*** Warning: the command libtool uses to detect shared libraries,
  23240. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  23241. +*** The result is that libtool may fail to recognize shared libraries
  23242. +*** as such. This will affect the creation of libtool libraries that
  23243. +*** depend on shared libraries, but programs linked with such libtool
  23244. +*** libraries will work regardless of this problem. Nevertheless, you
  23245. +*** may want to report the problem to your system manager and/or to
  23246. +*** bug-libtool@gnu.org
  23247. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  23248. -$as_echo "$ld_shlibs" >&6; }
  23249. -test "$ld_shlibs" = no && can_build_shared=no
  23250. -
  23251. -#
  23252. -# Do we need to explicitly link libc?
  23253. -#
  23254. -case "x$archive_cmds_need_lc" in
  23255. -x|xyes)
  23256. - # Assume -lc should be added
  23257. - archive_cmds_need_lc=yes
  23258. -
  23259. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  23260. - case $archive_cmds in
  23261. - *'~'*)
  23262. - # FIXME: we may have to deal with multi-command sequences.
  23263. - ;;
  23264. - '$CC '*)
  23265. - # Test whether the compiler implicitly links with -lc since on some
  23266. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  23267. - # to ld, don't add -lc before -lgcc.
  23268. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  23269. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  23270. - $rm conftest*
  23271. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23272. -
  23273. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23274. - (eval $ac_compile) 2>&5
  23275. - ac_status=$?
  23276. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23277. - (exit $ac_status); } 2>conftest.err; then
  23278. - soname=conftest
  23279. - lib=conftest
  23280. - libobjs=conftest.$ac_objext
  23281. - deplibs=
  23282. - wl=$lt_prog_compiler_wl
  23283. - pic_flag=$lt_prog_compiler_pic
  23284. - compiler_flags=-v
  23285. - linker_flags=-v
  23286. - verstring=
  23287. - output_objdir=.
  23288. - libname=conftest
  23289. - lt_save_allow_undefined_flag=$allow_undefined_flag
  23290. - allow_undefined_flag=
  23291. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  23292. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  23293. - ac_status=$?
  23294. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23295. - (exit $ac_status); }
  23296. - then
  23297. - archive_cmds_need_lc=no
  23298. - else
  23299. - archive_cmds_need_lc=yes
  23300. - fi
  23301. - allow_undefined_flag=$lt_save_allow_undefined_flag
  23302. - else
  23303. - cat conftest.err 1>&5
  23304. +_LT_EOF
  23305. + fi ;;
  23306. + esac
  23307. fi
  23308. - $rm conftest*
  23309. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  23310. -$as_echo "$archive_cmds_need_lc" >&6; }
  23311. - ;;
  23312. - esac
  23313. - fi
  23314. + break
  23315. + fi
  23316. + done
  23317. + IFS="$lt_save_ifs"
  23318. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  23319. ;;
  23320. esac
  23321. +fi
  23322. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  23323. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  23324. -library_names_spec=
  23325. -libname_spec='lib$name'
  23326. -soname_spec=
  23327. -shrext_cmds=".so"
  23328. -postinstall_cmds=
  23329. -postuninstall_cmds=
  23330. -finish_cmds=
  23331. -finish_eval=
  23332. -shlibpath_var=
  23333. -shlibpath_overrides_runpath=unknown
  23334. -version_type=none
  23335. -dynamic_linker="$host_os ld.so"
  23336. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  23337. -
  23338. -if test "$GCC" = yes; then
  23339. - case $host_os in
  23340. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  23341. - *) lt_awk_arg="/^libraries:/" ;;
  23342. - esac
  23343. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23344. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  23345. - # if the path contains ";" then we assume it to be the separator
  23346. - # otherwise default to the standard path separator (i.e. ":") - it is
  23347. - # assumed that no part of a normal pathname contains ";" but that should
  23348. - # okay in the real world where ";" in dirpaths is itself problematic.
  23349. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  23350. - else
  23351. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23352. - fi
  23353. - # Ok, now we have the path, separated by spaces, we can step through it
  23354. - # and add multilib dir if necessary.
  23355. - lt_tmp_lt_search_path_spec=
  23356. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  23357. - for lt_sys_path in $lt_search_path_spec; do
  23358. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  23359. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  23360. - else
  23361. - test -d "$lt_sys_path" && \
  23362. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  23363. - fi
  23364. - done
  23365. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  23366. -BEGIN {RS=" "; FS="/|\n";} {
  23367. - lt_foo="";
  23368. - lt_count=0;
  23369. - for (lt_i = NF; lt_i > 0; lt_i--) {
  23370. - if ($lt_i != "" && $lt_i != ".") {
  23371. - if ($lt_i == "..") {
  23372. - lt_count++;
  23373. - } else {
  23374. - if (lt_count == 0) {
  23375. - lt_foo="/" $lt_i lt_foo;
  23376. - } else {
  23377. - lt_count--;
  23378. - }
  23379. - }
  23380. - }
  23381. - }
  23382. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  23383. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  23384. -}'`
  23385. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  23386. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23387. +if test -n "$MAGIC_CMD"; then
  23388. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  23389. +$as_echo "$MAGIC_CMD" >&6; }
  23390. else
  23391. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  23392. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23393. +$as_echo "no" >&6; }
  23394. fi
  23395. -need_lib_prefix=unknown
  23396. -hardcode_into_libs=no
  23397. -# when you set need_version to no, make sure it does not cause -set_version
  23398. -# flags to be left without arguments
  23399. -need_version=unknown
  23400. -case $host_os in
  23401. -aix3*)
  23402. - version_type=linux
  23403. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  23404. - shlibpath_var=LIBPATH
  23405. - # AIX 3 has no versioning support, so we append a major version to the name.
  23406. - soname_spec='${libname}${release}${shared_ext}$major'
  23407. +
  23408. +
  23409. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  23410. + if test -n "$ac_tool_prefix"; then
  23411. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  23412. +$as_echo_n "checking for file... " >&6; }
  23413. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  23414. + $as_echo_n "(cached) " >&6
  23415. +else
  23416. + case $MAGIC_CMD in
  23417. +[\\/*] | ?:[\\/]*)
  23418. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23419. ;;
  23420. +*)
  23421. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  23422. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23423. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23424. + for ac_dir in $ac_dummy; do
  23425. + IFS="$lt_save_ifs"
  23426. + test -z "$ac_dir" && ac_dir=.
  23427. + if test -f $ac_dir/file; then
  23428. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  23429. + if test -n "$file_magic_test_file"; then
  23430. + case $deplibs_check_method in
  23431. + "file_magic "*)
  23432. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23433. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23434. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23435. + $EGREP "$file_magic_regex" > /dev/null; then
  23436. + :
  23437. + else
  23438. + cat <<_LT_EOF 1>&2
  23439. -aix[4-9]*)
  23440. - version_type=linux
  23441. - need_lib_prefix=no
  23442. - need_version=no
  23443. - hardcode_into_libs=yes
  23444. - if test "$host_cpu" = ia64; then
  23445. - # AIX 5 supports IA64
  23446. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  23447. - shlibpath_var=LD_LIBRARY_PATH
  23448. - else
  23449. - # With GCC up to 2.95.x, collect2 would create an import file
  23450. - # for dependence libraries. The import file would start with
  23451. - # the line `#! .'. This would cause the generated library to
  23452. - # depend on `.', always an invalid library. This was fixed in
  23453. - # development snapshots of GCC prior to 3.0.
  23454. - case $host_os in
  23455. - aix4 | aix4.[01] | aix4.[01].*)
  23456. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  23457. - echo ' yes '
  23458. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  23459. - :
  23460. - else
  23461. - can_build_shared=no
  23462. +*** Warning: the command libtool uses to detect shared libraries,
  23463. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  23464. +*** The result is that libtool may fail to recognize shared libraries
  23465. +*** as such. This will affect the creation of libtool libraries that
  23466. +*** depend on shared libraries, but programs linked with such libtool
  23467. +*** libraries will work regardless of this problem. Nevertheless, you
  23468. +*** may want to report the problem to your system manager and/or to
  23469. +*** bug-libtool@gnu.org
  23470. +
  23471. +_LT_EOF
  23472. + fi ;;
  23473. + esac
  23474. fi
  23475. - ;;
  23476. - esac
  23477. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  23478. - # soname into executable. Probably we can add versioning support to
  23479. - # collect2, so additional links can be useful in future.
  23480. - if test "$aix_use_runtimelinking" = yes; then
  23481. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  23482. - # instead of lib<name>.a to let people know that these are not
  23483. - # typical AIX shared libraries.
  23484. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23485. - else
  23486. - # We preserve .a as extension for shared libraries through AIX4.2
  23487. - # and later when we are not doing run time linking.
  23488. - library_names_spec='${libname}${release}.a $libname.a'
  23489. - soname_spec='${libname}${release}${shared_ext}$major'
  23490. + break
  23491. fi
  23492. - shlibpath_var=LIBPATH
  23493. - fi
  23494. + done
  23495. + IFS="$lt_save_ifs"
  23496. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  23497. ;;
  23498. +esac
  23499. +fi
  23500. -amigaos*)
  23501. - library_names_spec='$libname.ixlibrary $libname.a'
  23502. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  23503. - 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'
  23504. - ;;
  23505. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23506. +if test -n "$MAGIC_CMD"; then
  23507. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  23508. +$as_echo "$MAGIC_CMD" >&6; }
  23509. +else
  23510. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23511. +$as_echo "no" >&6; }
  23512. +fi
  23513. -beos*)
  23514. - library_names_spec='${libname}${shared_ext}'
  23515. - dynamic_linker="$host_os ld.so"
  23516. - shlibpath_var=LIBRARY_PATH
  23517. - ;;
  23518. -bsdi[45]*)
  23519. - version_type=linux
  23520. - need_version=no
  23521. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23522. - soname_spec='${libname}${release}${shared_ext}$major'
  23523. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  23524. - shlibpath_var=LD_LIBRARY_PATH
  23525. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  23526. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  23527. - # the default ld.so.conf also contains /usr/contrib/lib and
  23528. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  23529. - # libtool to hard-code these into programs
  23530. + else
  23531. + MAGIC_CMD=:
  23532. + fi
  23533. +fi
  23534. +
  23535. + fi
  23536. ;;
  23537. +esac
  23538. -cygwin* | mingw* | pw32*)
  23539. - version_type=windows
  23540. - shrext_cmds=".dll"
  23541. - need_version=no
  23542. - need_lib_prefix=no
  23543. +# Use C for the default configuration in the libtool script
  23544. - case $GCC,$host_os in
  23545. - yes,cygwin* | yes,mingw* | yes,pw32*)
  23546. - library_names_spec='$libname.dll.a'
  23547. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  23548. - postinstall_cmds='base_file=`basename \${file}`~
  23549. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  23550. - dldir=$destdir/`dirname \$dlpath`~
  23551. - test -d \$dldir || mkdir -p \$dldir~
  23552. - $install_prog $dir/$dlname \$dldir/$dlname~
  23553. - chmod a+x \$dldir/$dlname'
  23554. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  23555. - dlpath=$dir/\$dldll~
  23556. - $rm \$dlpath'
  23557. - shlibpath_overrides_runpath=yes
  23558. +lt_save_CC="$CC"
  23559. +ac_ext=c
  23560. +ac_cpp='$CPP $CPPFLAGS'
  23561. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23562. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23563. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23564. - case $host_os in
  23565. - cygwin*)
  23566. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  23567. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23568. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  23569. - ;;
  23570. - mingw*)
  23571. - # MinGW DLLs use traditional 'lib' prefix
  23572. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23573. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23574. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  23575. - # It is most probably a Windows format PATH printed by
  23576. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  23577. - # path with ; separators, and with drive letters. We can handle the
  23578. - # drive letters (cygwin fileutils understands them), so leave them,
  23579. - # especially as we might pass files found there to a mingw objdump,
  23580. - # which wouldn't understand a cygwinified path. Ahh.
  23581. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23582. - else
  23583. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23584. - fi
  23585. - ;;
  23586. - pw32*)
  23587. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  23588. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23589. - ;;
  23590. - esac
  23591. - ;;
  23592. - *)
  23593. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  23594. - ;;
  23595. - esac
  23596. - dynamic_linker='Win32 ld.exe'
  23597. - # FIXME: first we should search . and the directory the executable is in
  23598. - shlibpath_var=PATH
  23599. - ;;
  23600. +# Source file extension for C test sources.
  23601. +ac_ext=c
  23602. -darwin* | rhapsody*)
  23603. - dynamic_linker="$host_os dyld"
  23604. - version_type=darwin
  23605. - need_lib_prefix=no
  23606. - need_version=no
  23607. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  23608. - soname_spec='${libname}${release}${major}$shared_ext'
  23609. - shlibpath_overrides_runpath=yes
  23610. - shlibpath_var=DYLD_LIBRARY_PATH
  23611. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  23612. +# Object file extension for compiled C test sources.
  23613. +objext=o
  23614. +objext=$objext
  23615. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  23616. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  23617. - ;;
  23618. +# Code to be used in simple compile tests
  23619. +lt_simple_compile_test_code="int some_variable = 0;"
  23620. -dgux*)
  23621. - version_type=linux
  23622. - need_lib_prefix=no
  23623. - need_version=no
  23624. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  23625. - soname_spec='${libname}${release}${shared_ext}$major'
  23626. - shlibpath_var=LD_LIBRARY_PATH
  23627. - ;;
  23628. +# Code to be used in simple link tests
  23629. +lt_simple_link_test_code='int main(){return(0);}'
  23630. -freebsd1*)
  23631. - dynamic_linker=no
  23632. - ;;
  23633. -freebsd* | dragonfly*)
  23634. - # DragonFly does not have aout. When/if they implement a new
  23635. - # versioning mechanism, adjust this.
  23636. - if test -x /usr/bin/objformat; then
  23637. - objformat=`/usr/bin/objformat`
  23638. - else
  23639. - case $host_os in
  23640. - freebsd[123]*) objformat=aout ;;
  23641. - *) objformat=elf ;;
  23642. - esac
  23643. - fi
  23644. - version_type=freebsd-$objformat
  23645. - case $version_type in
  23646. - freebsd-elf*)
  23647. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23648. - need_version=no
  23649. - need_lib_prefix=no
  23650. - ;;
  23651. - freebsd-*)
  23652. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  23653. - need_version=yes
  23654. - ;;
  23655. - esac
  23656. - shlibpath_var=LD_LIBRARY_PATH
  23657. - case $host_os in
  23658. - freebsd2*)
  23659. - shlibpath_overrides_runpath=yes
  23660. - ;;
  23661. - freebsd3.[01]* | freebsdelf3.[01]*)
  23662. - shlibpath_overrides_runpath=yes
  23663. - hardcode_into_libs=yes
  23664. - ;;
  23665. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  23666. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  23667. - shlibpath_overrides_runpath=no
  23668. - hardcode_into_libs=yes
  23669. - ;;
  23670. - *) # from 4.6 on, and DragonFly
  23671. - shlibpath_overrides_runpath=yes
  23672. - hardcode_into_libs=yes
  23673. - ;;
  23674. - esac
  23675. - ;;
  23676. -gnu*)
  23677. - version_type=linux
  23678. - need_lib_prefix=no
  23679. - need_version=no
  23680. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  23681. - soname_spec='${libname}${release}${shared_ext}$major'
  23682. - shlibpath_var=LD_LIBRARY_PATH
  23683. - hardcode_into_libs=yes
  23684. - ;;
  23685. -hpux9* | hpux10* | hpux11*)
  23686. - # Give a soname corresponding to the major version so that dld.sl refuses to
  23687. - # link against other versions.
  23688. - version_type=sunos
  23689. - need_lib_prefix=no
  23690. - need_version=no
  23691. - case $host_cpu in
  23692. - ia64*)
  23693. - shrext_cmds='.so'
  23694. - hardcode_into_libs=yes
  23695. - dynamic_linker="$host_os dld.so"
  23696. - shlibpath_var=LD_LIBRARY_PATH
  23697. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23698. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23699. - soname_spec='${libname}${release}${shared_ext}$major'
  23700. - if test "X$HPUX_IA64_MODE" = X32; then
  23701. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  23702. - else
  23703. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  23704. - fi
  23705. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23706. - ;;
  23707. - hppa*64*)
  23708. - shrext_cmds='.sl'
  23709. - hardcode_into_libs=yes
  23710. - dynamic_linker="$host_os dld.sl"
  23711. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  23712. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23713. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23714. - soname_spec='${libname}${release}${shared_ext}$major'
  23715. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  23716. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23717. - ;;
  23718. - *)
  23719. - shrext_cmds='.sl'
  23720. - dynamic_linker="$host_os dld.sl"
  23721. - shlibpath_var=SHLIB_PATH
  23722. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  23723. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23724. - soname_spec='${libname}${release}${shared_ext}$major'
  23725. - ;;
  23726. - esac
  23727. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  23728. - postinstall_cmds='chmod 555 $lib'
  23729. - ;;
  23730. -interix[3-9]*)
  23731. - version_type=linux
  23732. - need_lib_prefix=no
  23733. - need_version=no
  23734. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23735. - soname_spec='${libname}${release}${shared_ext}$major'
  23736. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  23737. - shlibpath_var=LD_LIBRARY_PATH
  23738. - shlibpath_overrides_runpath=no
  23739. - hardcode_into_libs=yes
  23740. - ;;
  23741. -irix5* | irix6* | nonstopux*)
  23742. - case $host_os in
  23743. - nonstopux*) version_type=nonstopux ;;
  23744. - *)
  23745. - if test "$lt_cv_prog_gnu_ld" = yes; then
  23746. - version_type=linux
  23747. - else
  23748. - version_type=irix
  23749. - fi ;;
  23750. - esac
  23751. - need_lib_prefix=no
  23752. - need_version=no
  23753. - soname_spec='${libname}${release}${shared_ext}$major'
  23754. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  23755. - case $host_os in
  23756. - irix5* | nonstopux*)
  23757. - libsuff= shlibsuff=
  23758. - ;;
  23759. - *)
  23760. - case $LD in # libtool.m4 will add one of these switches to LD
  23761. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  23762. - libsuff= shlibsuff= libmagic=32-bit;;
  23763. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  23764. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  23765. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  23766. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  23767. - *) libsuff= shlibsuff= libmagic=never-match;;
  23768. - esac
  23769. - ;;
  23770. - esac
  23771. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  23772. - shlibpath_overrides_runpath=no
  23773. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23774. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23775. - hardcode_into_libs=yes
  23776. - ;;
  23777. -# No shared lib support for Linux oldld, aout, or coff.
  23778. -linux*oldld* | linux*aout* | linux*coff*)
  23779. - dynamic_linker=no
  23780. - ;;
  23781. +# If no C compiler was specified, use CC.
  23782. +LTCC=${LTCC-"$CC"}
  23783. -# This must be Linux ELF.
  23784. -linux* | k*bsd*-gnu)
  23785. - version_type=linux
  23786. - need_lib_prefix=no
  23787. - need_version=no
  23788. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23789. - soname_spec='${libname}${release}${shared_ext}$major'
  23790. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  23791. - shlibpath_var=LD_LIBRARY_PATH
  23792. - shlibpath_overrides_runpath=no
  23793. - # This implies no fast_install, which is unacceptable.
  23794. - # Some rework will be needed to allow for fast_install
  23795. - # before this can be enabled.
  23796. - hardcode_into_libs=yes
  23797. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23798. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23799. +# If no C compiler flags were specified, use CFLAGS.
  23800. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23801. - # Append ld.so.conf contents to the search path
  23802. - if test -f /etc/ld.so.conf; then
  23803. - 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' ' '`
  23804. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  23805. - fi
  23806. +# Allow CC to be a program name with arguments.
  23807. +compiler=$CC
  23808. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  23809. - # powerpc, because MkLinux only supported shared libraries with the
  23810. - # GNU dynamic linker. Since this was broken with cross compilers,
  23811. - # most powerpc-linux boxes support dynamic linking these days and
  23812. - # people can always --disable-shared, the test was removed, and we
  23813. - # assume the GNU/Linux dynamic linker is in use.
  23814. - dynamic_linker='GNU/Linux ld.so'
  23815. - ;;
  23816. +# Save the default compiler, since it gets overwritten when the other
  23817. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  23818. +compiler_DEFAULT=$CC
  23819. -netbsd*)
  23820. - version_type=sunos
  23821. - need_lib_prefix=no
  23822. - need_version=no
  23823. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23824. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23825. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23826. - dynamic_linker='NetBSD (a.out) ld.so'
  23827. - else
  23828. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23829. - soname_spec='${libname}${release}${shared_ext}$major'
  23830. - dynamic_linker='NetBSD ld.elf_so'
  23831. - fi
  23832. - shlibpath_var=LD_LIBRARY_PATH
  23833. - shlibpath_overrides_runpath=yes
  23834. - hardcode_into_libs=yes
  23835. - ;;
  23836. +# save warnings/boilerplate of simple test code
  23837. +ac_outfile=conftest.$ac_objext
  23838. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  23839. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23840. +_lt_compiler_boilerplate=`cat conftest.err`
  23841. +$RM conftest*
  23842. -newsos6)
  23843. - version_type=linux
  23844. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23845. - shlibpath_var=LD_LIBRARY_PATH
  23846. - shlibpath_overrides_runpath=yes
  23847. - ;;
  23848. +ac_outfile=conftest.$ac_objext
  23849. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  23850. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23851. +_lt_linker_boilerplate=`cat conftest.err`
  23852. +$RM -r conftest*
  23853. -nto-qnx*)
  23854. - version_type=linux
  23855. - need_lib_prefix=no
  23856. - need_version=no
  23857. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23858. - soname_spec='${libname}${release}${shared_ext}$major'
  23859. - shlibpath_var=LD_LIBRARY_PATH
  23860. - shlibpath_overrides_runpath=yes
  23861. - ;;
  23862. -openbsd*)
  23863. - version_type=sunos
  23864. - sys_lib_dlsearch_path_spec="/usr/lib"
  23865. - need_lib_prefix=no
  23866. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  23867. - case $host_os in
  23868. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  23869. - *) need_version=no ;;
  23870. - esac
  23871. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23872. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23873. - shlibpath_var=LD_LIBRARY_PATH
  23874. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23875. - case $host_os in
  23876. - openbsd2.[89] | openbsd2.[89].*)
  23877. - shlibpath_overrides_runpath=no
  23878. - ;;
  23879. - *)
  23880. - shlibpath_overrides_runpath=yes
  23881. - ;;
  23882. - esac
  23883. - else
  23884. - shlibpath_overrides_runpath=yes
  23885. - fi
  23886. - ;;
  23887. +if test -n "$compiler"; then
  23888. -os2*)
  23889. - libname_spec='$name'
  23890. - shrext_cmds=".dll"
  23891. - need_lib_prefix=no
  23892. - library_names_spec='$libname${shared_ext} $libname.a'
  23893. - dynamic_linker='OS/2 ld.exe'
  23894. - shlibpath_var=LIBPATH
  23895. - ;;
  23896. +lt_prog_compiler_no_builtin_flag=
  23897. -osf3* | osf4* | osf5*)
  23898. - version_type=osf
  23899. - need_lib_prefix=no
  23900. - need_version=no
  23901. - soname_spec='${libname}${release}${shared_ext}$major'
  23902. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23903. - shlibpath_var=LD_LIBRARY_PATH
  23904. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  23905. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  23906. - ;;
  23907. +if test "$GCC" = yes; then
  23908. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  23909. -rdos*)
  23910. - dynamic_linker=no
  23911. - ;;
  23912. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  23913. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  23914. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  23915. + $as_echo_n "(cached) " >&6
  23916. +else
  23917. + lt_cv_prog_compiler_rtti_exceptions=no
  23918. + ac_outfile=conftest.$ac_objext
  23919. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23920. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  23921. + # Insert the option either (1) after the last *FLAGS variable, or
  23922. + # (2) before a word containing "conftest.", or (3) at the end.
  23923. + # Note that $ac_compile itself does not contain backslashes and begins
  23924. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  23925. + # The option is referenced via a variable to avoid confusing sed.
  23926. + lt_compile=`echo "$ac_compile" | $SED \
  23927. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23928. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23929. + -e 's:$: $lt_compiler_flag:'`
  23930. + (eval echo "\"\$as_me:7259: $lt_compile\"" >&5)
  23931. + (eval "$lt_compile" 2>conftest.err)
  23932. + ac_status=$?
  23933. + cat conftest.err >&5
  23934. + echo "$as_me:7263: \$? = $ac_status" >&5
  23935. + if (exit $ac_status) && test -s "$ac_outfile"; then
  23936. + # The compiler can only warn and ignore the option if not recognized
  23937. + # So say no if there are warnings other than the usual output.
  23938. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23939. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23940. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23941. + lt_cv_prog_compiler_rtti_exceptions=yes
  23942. + fi
  23943. + fi
  23944. + $RM conftest*
  23945. -solaris*)
  23946. - version_type=linux
  23947. - need_lib_prefix=no
  23948. - need_version=no
  23949. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23950. - soname_spec='${libname}${release}${shared_ext}$major'
  23951. - shlibpath_var=LD_LIBRARY_PATH
  23952. - shlibpath_overrides_runpath=yes
  23953. - hardcode_into_libs=yes
  23954. - # ldd complains unless libraries are executable
  23955. - postinstall_cmds='chmod +x $lib'
  23956. - ;;
  23957. +fi
  23958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  23959. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  23960. -sunos4*)
  23961. - version_type=sunos
  23962. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23963. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  23964. - shlibpath_var=LD_LIBRARY_PATH
  23965. - shlibpath_overrides_runpath=yes
  23966. - if test "$with_gnu_ld" = yes; then
  23967. - need_lib_prefix=no
  23968. - fi
  23969. - need_version=yes
  23970. - ;;
  23971. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  23972. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  23973. +else
  23974. + :
  23975. +fi
  23976. -sysv4 | sysv4.3*)
  23977. - version_type=linux
  23978. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23979. - soname_spec='${libname}${release}${shared_ext}$major'
  23980. - shlibpath_var=LD_LIBRARY_PATH
  23981. - case $host_vendor in
  23982. - sni)
  23983. - shlibpath_overrides_runpath=no
  23984. - need_lib_prefix=no
  23985. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  23986. - runpath_var=LD_RUN_PATH
  23987. - ;;
  23988. - siemens)
  23989. - need_lib_prefix=no
  23990. - ;;
  23991. - motorola)
  23992. - need_lib_prefix=no
  23993. - need_version=no
  23994. - shlibpath_overrides_runpath=no
  23995. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  23996. - ;;
  23997. - esac
  23998. - ;;
  23999. +fi
  24000. -sysv4*MP*)
  24001. - if test -d /usr/nec ;then
  24002. - version_type=linux
  24003. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  24004. - soname_spec='$libname${shared_ext}.$major'
  24005. - shlibpath_var=LD_LIBRARY_PATH
  24006. - fi
  24007. - ;;
  24008. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  24009. - version_type=freebsd-elf
  24010. - need_lib_prefix=no
  24011. - need_version=no
  24012. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  24013. - soname_spec='${libname}${release}${shared_ext}$major'
  24014. - shlibpath_var=LD_LIBRARY_PATH
  24015. - hardcode_into_libs=yes
  24016. - if test "$with_gnu_ld" = yes; then
  24017. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  24018. - shlibpath_overrides_runpath=no
  24019. - else
  24020. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  24021. - shlibpath_overrides_runpath=yes
  24022. - case $host_os in
  24023. - sco3.2v5*)
  24024. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  24025. - ;;
  24026. - esac
  24027. - fi
  24028. - sys_lib_dlsearch_path_spec='/usr/lib'
  24029. - ;;
  24030. -uts4*)
  24031. - version_type=linux
  24032. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24033. - soname_spec='${libname}${release}${shared_ext}$major'
  24034. - shlibpath_var=LD_LIBRARY_PATH
  24035. - ;;
  24036. -*)
  24037. - dynamic_linker=no
  24038. - ;;
  24039. -esac
  24040. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  24041. -$as_echo "$dynamic_linker" >&6; }
  24042. -test "$dynamic_linker" = no && can_build_shared=no
  24043. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  24044. - $as_echo_n "(cached) " >&6
  24045. -else
  24046. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  24047. -fi
  24048. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  24049. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  24050. - $as_echo_n "(cached) " >&6
  24051. -else
  24052. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  24053. -fi
  24054. + lt_prog_compiler_wl=
  24055. +lt_prog_compiler_pic=
  24056. +lt_prog_compiler_static=
  24057. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  24058. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  24059. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  24060. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  24061. -if test "$GCC" = yes; then
  24062. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  24063. -fi
  24064. + if test "$GCC" = yes; then
  24065. + lt_prog_compiler_wl='-Wl,'
  24066. + lt_prog_compiler_static='-static'
  24067. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  24068. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  24069. -hardcode_action=
  24070. -if test -n "$hardcode_libdir_flag_spec" || \
  24071. - test -n "$runpath_var" || \
  24072. - test "X$hardcode_automatic" = "Xyes" ; then
  24073. + case $host_os in
  24074. + aix*)
  24075. + # All AIX code is PIC.
  24076. + if test "$host_cpu" = ia64; then
  24077. + # AIX 5 now supports IA64 processor
  24078. + lt_prog_compiler_static='-Bstatic'
  24079. + fi
  24080. + ;;
  24081. - # We can hardcode non-existant directories.
  24082. - if test "$hardcode_direct" != no &&
  24083. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  24084. - # have to relink, otherwise we might link with an installed library
  24085. - # when we should be linking with a yet-to-be-installed one
  24086. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  24087. - test "$hardcode_minus_L" != no; then
  24088. - # Linking always hardcodes the temporary library directory.
  24089. - hardcode_action=relink
  24090. - else
  24091. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  24092. - hardcode_action=immediate
  24093. - fi
  24094. -else
  24095. - # We cannot hardcode anything, or else we can only hardcode existing
  24096. - # directories.
  24097. - hardcode_action=unsupported
  24098. -fi
  24099. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  24100. -$as_echo "$hardcode_action" >&6; }
  24101. + amigaos*)
  24102. + case $host_cpu in
  24103. + powerpc)
  24104. + # see comment about AmigaOS4 .so support
  24105. + lt_prog_compiler_pic='-fPIC'
  24106. + ;;
  24107. + m68k)
  24108. + # FIXME: we need at least 68020 code to build shared libraries, but
  24109. + # adding the `-m68020' flag to GCC prevents building anything better,
  24110. + # like `-m68040'.
  24111. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  24112. + ;;
  24113. + esac
  24114. + ;;
  24115. -if test "$hardcode_action" = relink; then
  24116. - # Fast installation is not supported
  24117. - enable_fast_install=no
  24118. -elif test "$shlibpath_overrides_runpath" = yes ||
  24119. - test "$enable_shared" = no; then
  24120. - # Fast installation is not necessary
  24121. - enable_fast_install=needless
  24122. -fi
  24123. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  24124. + # PIC is the default for these OSes.
  24125. + ;;
  24126. -striplib=
  24127. -old_striplib=
  24128. -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  24129. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  24130. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  24131. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  24132. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  24133. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  24134. -$as_echo "yes" >&6; }
  24135. -else
  24136. -# FIXME - insert some real tests, host_os isn't really good enough
  24137. - case $host_os in
  24138. - darwin*)
  24139. - if test -n "$STRIP" ; then
  24140. - striplib="$STRIP -x"
  24141. - old_striplib="$STRIP -S"
  24142. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  24143. -$as_echo "yes" >&6; }
  24144. - else
  24145. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24146. -$as_echo "no" >&6; }
  24147. -fi
  24148. - ;;
  24149. - *)
  24150. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24151. -$as_echo "no" >&6; }
  24152. - ;;
  24153. - esac
  24154. -fi
  24155. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  24156. + # This hack is so that the source file can tell whether it is being
  24157. + # built for inclusion in a dll (and should export symbols for example).
  24158. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  24159. + # (--disable-auto-import) libraries
  24160. + lt_prog_compiler_pic='-DDLL_EXPORT'
  24161. + ;;
  24162. -if test "x$enable_dlopen" != xyes; then
  24163. - enable_dlopen=unknown
  24164. - enable_dlopen_self=unknown
  24165. - enable_dlopen_self_static=unknown
  24166. -else
  24167. - lt_cv_dlopen=no
  24168. - lt_cv_dlopen_libs=
  24169. + darwin* | rhapsody*)
  24170. + # PIC is the default on this platform
  24171. + # Common symbols not allowed in MH_DYLIB files
  24172. + lt_prog_compiler_pic='-fno-common'
  24173. + ;;
  24174. - case $host_os in
  24175. - beos*)
  24176. - lt_cv_dlopen="load_add_on"
  24177. - lt_cv_dlopen_libs=
  24178. - lt_cv_dlopen_self=yes
  24179. - ;;
  24180. + hpux*)
  24181. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  24182. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  24183. + # sets the default TLS model and affects inlining.
  24184. + case $host_cpu in
  24185. + hppa*64*)
  24186. + # +Z the default
  24187. + ;;
  24188. + *)
  24189. + lt_prog_compiler_pic='-fPIC'
  24190. + ;;
  24191. + esac
  24192. + ;;
  24193. - mingw* | pw32*)
  24194. - lt_cv_dlopen="LoadLibrary"
  24195. - lt_cv_dlopen_libs=
  24196. - ;;
  24197. + interix[3-9]*)
  24198. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  24199. + # Instead, we relocate shared libraries at runtime.
  24200. + ;;
  24201. - cygwin*)
  24202. - lt_cv_dlopen="dlopen"
  24203. - lt_cv_dlopen_libs=
  24204. - ;;
  24205. + msdosdjgpp*)
  24206. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  24207. + # on systems that don't support them.
  24208. + lt_prog_compiler_can_build_shared=no
  24209. + enable_shared=no
  24210. + ;;
  24211. - darwin*)
  24212. - # if libdl is installed we need to link against it
  24213. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  24214. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  24215. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  24216. - $as_echo_n "(cached) " >&6
  24217. -else
  24218. - ac_check_lib_save_LIBS=$LIBS
  24219. -LIBS="-ldl $LIBS"
  24220. -cat >conftest.$ac_ext <<_ACEOF
  24221. -/* confdefs.h. */
  24222. -_ACEOF
  24223. -cat confdefs.h >>conftest.$ac_ext
  24224. -cat >>conftest.$ac_ext <<_ACEOF
  24225. -/* end confdefs.h. */
  24226. + *nto* | *qnx*)
  24227. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  24228. + # it will coredump.
  24229. + lt_prog_compiler_pic='-fPIC -shared'
  24230. + ;;
  24231. -/* Override any GCC internal prototype to avoid an error.
  24232. - Use char because int might match the return type of a GCC
  24233. - builtin and then its argument prototype would still apply. */
  24234. -#ifdef __cplusplus
  24235. -extern "C"
  24236. -#endif
  24237. -char dlopen ();
  24238. -int
  24239. -main ()
  24240. -{
  24241. -return dlopen ();
  24242. - ;
  24243. - return 0;
  24244. -}
  24245. -_ACEOF
  24246. -rm -f conftest.$ac_objext conftest$ac_exeext
  24247. -if { (ac_try="$ac_link"
  24248. -case "(($ac_try" in
  24249. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24250. - *) ac_try_echo=$ac_try;;
  24251. -esac
  24252. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24253. -$as_echo "$ac_try_echo") >&5
  24254. - (eval "$ac_link") 2>conftest.er1
  24255. - ac_status=$?
  24256. - grep -v '^ *+' conftest.er1 >conftest.err
  24257. - rm -f conftest.er1
  24258. - cat conftest.err >&5
  24259. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24260. - (exit $ac_status); } && {
  24261. - test -z "$ac_c_werror_flag" ||
  24262. - test ! -s conftest.err
  24263. - } && test -s conftest$ac_exeext && {
  24264. - test "$cross_compiling" = yes ||
  24265. - $as_test_x conftest$ac_exeext
  24266. - }; then
  24267. - ac_cv_lib_dl_dlopen=yes
  24268. -else
  24269. - $as_echo "$as_me: failed program was:" >&5
  24270. -sed 's/^/| /' conftest.$ac_ext >&5
  24271. + sysv4*MP*)
  24272. + if test -d /usr/nec; then
  24273. + lt_prog_compiler_pic=-Kconform_pic
  24274. + fi
  24275. + ;;
  24276. - ac_cv_lib_dl_dlopen=no
  24277. -fi
  24278. + *)
  24279. + lt_prog_compiler_pic='-fPIC'
  24280. + ;;
  24281. + esac
  24282. + else
  24283. + # PORTME Check for flag to pass linker flags through the system compiler.
  24284. + case $host_os in
  24285. + aix*)
  24286. + lt_prog_compiler_wl='-Wl,'
  24287. + if test "$host_cpu" = ia64; then
  24288. + # AIX 5 now supports IA64 processor
  24289. + lt_prog_compiler_static='-Bstatic'
  24290. + else
  24291. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  24292. + fi
  24293. + ;;
  24294. -rm -rf conftest.dSYM
  24295. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24296. - conftest$ac_exeext conftest.$ac_ext
  24297. -LIBS=$ac_check_lib_save_LIBS
  24298. -fi
  24299. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  24300. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  24301. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  24302. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  24303. -else
  24304. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  24305. + # This hack is so that the source file can tell whether it is being
  24306. + # built for inclusion in a dll (and should export symbols for example).
  24307. + lt_prog_compiler_pic='-DDLL_EXPORT'
  24308. + ;;
  24309. - lt_cv_dlopen="dyld"
  24310. - lt_cv_dlopen_libs=
  24311. - lt_cv_dlopen_self=yes
  24312. + hpux9* | hpux10* | hpux11*)
  24313. + lt_prog_compiler_wl='-Wl,'
  24314. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24315. + # not for PA HP-UX.
  24316. + case $host_cpu in
  24317. + hppa*64*|ia64*)
  24318. + # +Z the default
  24319. + ;;
  24320. + *)
  24321. + lt_prog_compiler_pic='+Z'
  24322. + ;;
  24323. + esac
  24324. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  24325. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  24326. + ;;
  24327. -fi
  24328. + irix5* | irix6* | nonstopux*)
  24329. + lt_prog_compiler_wl='-Wl,'
  24330. + # PIC (with -KPIC) is the default.
  24331. + lt_prog_compiler_static='-non_shared'
  24332. + ;;
  24333. - ;;
  24334. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  24335. + case $cc_basename in
  24336. + # old Intel for x86_64 which still supported -KPIC.
  24337. + ecc*)
  24338. + lt_prog_compiler_wl='-Wl,'
  24339. + lt_prog_compiler_pic='-KPIC'
  24340. + lt_prog_compiler_static='-static'
  24341. + ;;
  24342. + # icc used to be incompatible with GCC.
  24343. + # ICC 10 doesn't accept -KPIC any more.
  24344. + icc* | ifort*)
  24345. + lt_prog_compiler_wl='-Wl,'
  24346. + lt_prog_compiler_pic='-fPIC'
  24347. + lt_prog_compiler_static='-static'
  24348. + ;;
  24349. + # Lahey Fortran 8.1.
  24350. + lf95*)
  24351. + lt_prog_compiler_wl='-Wl,'
  24352. + lt_prog_compiler_pic='--shared'
  24353. + lt_prog_compiler_static='--static'
  24354. + ;;
  24355. + pgcc* | pgf77* | pgf90* | pgf95*)
  24356. + # Portland Group compilers (*not* the Pentium gcc compiler,
  24357. + # which looks to be a dead project)
  24358. + lt_prog_compiler_wl='-Wl,'
  24359. + lt_prog_compiler_pic='-fpic'
  24360. + lt_prog_compiler_static='-Bstatic'
  24361. + ;;
  24362. + ccc*)
  24363. + lt_prog_compiler_wl='-Wl,'
  24364. + # All Alpha code is PIC.
  24365. + lt_prog_compiler_static='-non_shared'
  24366. + ;;
  24367. + xl*)
  24368. + # IBM XL C 8.0/Fortran 10.1 on PPC
  24369. + lt_prog_compiler_wl='-Wl,'
  24370. + lt_prog_compiler_pic='-qpic'
  24371. + lt_prog_compiler_static='-qstaticlink'
  24372. + ;;
  24373. + *)
  24374. + case `$CC -V 2>&1 | sed 5q` in
  24375. + *Sun\ C*)
  24376. + # Sun C 5.9
  24377. + lt_prog_compiler_pic='-KPIC'
  24378. + lt_prog_compiler_static='-Bstatic'
  24379. + lt_prog_compiler_wl='-Wl,'
  24380. + ;;
  24381. + *Sun\ F*)
  24382. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  24383. + lt_prog_compiler_pic='-KPIC'
  24384. + lt_prog_compiler_static='-Bstatic'
  24385. + lt_prog_compiler_wl=''
  24386. + ;;
  24387. + esac
  24388. + ;;
  24389. + esac
  24390. + ;;
  24391. - *)
  24392. - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  24393. -$as_echo_n "checking for shl_load... " >&6; }
  24394. -if test "${ac_cv_func_shl_load+set}" = set; then
  24395. - $as_echo_n "(cached) " >&6
  24396. -else
  24397. - cat >conftest.$ac_ext <<_ACEOF
  24398. -/* confdefs.h. */
  24399. -_ACEOF
  24400. -cat confdefs.h >>conftest.$ac_ext
  24401. -cat >>conftest.$ac_ext <<_ACEOF
  24402. -/* end confdefs.h. */
  24403. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  24404. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24405. -#define shl_load innocuous_shl_load
  24406. + newsos6)
  24407. + lt_prog_compiler_pic='-KPIC'
  24408. + lt_prog_compiler_static='-Bstatic'
  24409. + ;;
  24410. -/* System header to define __stub macros and hopefully few prototypes,
  24411. - which can conflict with char shl_load (); below.
  24412. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24413. - <limits.h> exists even on freestanding compilers. */
  24414. + *nto* | *qnx*)
  24415. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  24416. + # it will coredump.
  24417. + lt_prog_compiler_pic='-fPIC -shared'
  24418. + ;;
  24419. -#ifdef __STDC__
  24420. -# include <limits.h>
  24421. -#else
  24422. -# include <assert.h>
  24423. -#endif
  24424. + osf3* | osf4* | osf5*)
  24425. + lt_prog_compiler_wl='-Wl,'
  24426. + # All OSF/1 code is PIC.
  24427. + lt_prog_compiler_static='-non_shared'
  24428. + ;;
  24429. -#undef shl_load
  24430. + rdos*)
  24431. + lt_prog_compiler_static='-non_shared'
  24432. + ;;
  24433. -/* Override any GCC internal prototype to avoid an error.
  24434. - Use char because int might match the return type of a GCC
  24435. - builtin and then its argument prototype would still apply. */
  24436. -#ifdef __cplusplus
  24437. -extern "C"
  24438. -#endif
  24439. -char shl_load ();
  24440. -/* The GNU C library defines this for functions which it implements
  24441. - to always fail with ENOSYS. Some functions are actually named
  24442. - something starting with __ and the normal name is an alias. */
  24443. -#if defined __stub_shl_load || defined __stub___shl_load
  24444. -choke me
  24445. -#endif
  24446. + solaris*)
  24447. + lt_prog_compiler_pic='-KPIC'
  24448. + lt_prog_compiler_static='-Bstatic'
  24449. + case $cc_basename in
  24450. + f77* | f90* | f95*)
  24451. + lt_prog_compiler_wl='-Qoption ld ';;
  24452. + *)
  24453. + lt_prog_compiler_wl='-Wl,';;
  24454. + esac
  24455. + ;;
  24456. -int
  24457. -main ()
  24458. -{
  24459. -return shl_load ();
  24460. - ;
  24461. - return 0;
  24462. -}
  24463. -_ACEOF
  24464. -rm -f conftest.$ac_objext conftest$ac_exeext
  24465. -if { (ac_try="$ac_link"
  24466. -case "(($ac_try" in
  24467. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24468. - *) ac_try_echo=$ac_try;;
  24469. + sunos4*)
  24470. + lt_prog_compiler_wl='-Qoption ld '
  24471. + lt_prog_compiler_pic='-PIC'
  24472. + lt_prog_compiler_static='-Bstatic'
  24473. + ;;
  24474. +
  24475. + sysv4 | sysv4.2uw2* | sysv4.3*)
  24476. + lt_prog_compiler_wl='-Wl,'
  24477. + lt_prog_compiler_pic='-KPIC'
  24478. + lt_prog_compiler_static='-Bstatic'
  24479. + ;;
  24480. +
  24481. + sysv4*MP*)
  24482. + if test -d /usr/nec ;then
  24483. + lt_prog_compiler_pic='-Kconform_pic'
  24484. + lt_prog_compiler_static='-Bstatic'
  24485. + fi
  24486. + ;;
  24487. +
  24488. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  24489. + lt_prog_compiler_wl='-Wl,'
  24490. + lt_prog_compiler_pic='-KPIC'
  24491. + lt_prog_compiler_static='-Bstatic'
  24492. + ;;
  24493. +
  24494. + unicos*)
  24495. + lt_prog_compiler_wl='-Wl,'
  24496. + lt_prog_compiler_can_build_shared=no
  24497. + ;;
  24498. +
  24499. + uts4*)
  24500. + lt_prog_compiler_pic='-pic'
  24501. + lt_prog_compiler_static='-Bstatic'
  24502. + ;;
  24503. +
  24504. + *)
  24505. + lt_prog_compiler_can_build_shared=no
  24506. + ;;
  24507. + esac
  24508. + fi
  24509. +
  24510. +case $host_os in
  24511. + # For platforms which do not support PIC, -DPIC is meaningless:
  24512. + *djgpp*)
  24513. + lt_prog_compiler_pic=
  24514. + ;;
  24515. + *)
  24516. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  24517. + ;;
  24518. esac
  24519. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24520. -$as_echo "$ac_try_echo") >&5
  24521. - (eval "$ac_link") 2>conftest.er1
  24522. - ac_status=$?
  24523. - grep -v '^ *+' conftest.er1 >conftest.err
  24524. - rm -f conftest.er1
  24525. - cat conftest.err >&5
  24526. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24527. - (exit $ac_status); } && {
  24528. - test -z "$ac_c_werror_flag" ||
  24529. - test ! -s conftest.err
  24530. - } && test -s conftest$ac_exeext && {
  24531. - test "$cross_compiling" = yes ||
  24532. - $as_test_x conftest$ac_exeext
  24533. - }; then
  24534. - ac_cv_func_shl_load=yes
  24535. -else
  24536. - $as_echo "$as_me: failed program was:" >&5
  24537. -sed 's/^/| /' conftest.$ac_ext >&5
  24538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  24539. +$as_echo "$lt_prog_compiler_pic" >&6; }
  24540. - ac_cv_func_shl_load=no
  24541. -fi
  24542. -rm -rf conftest.dSYM
  24543. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24544. - conftest$ac_exeext conftest.$ac_ext
  24545. -fi
  24546. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  24547. -$as_echo "$ac_cv_func_shl_load" >&6; }
  24548. -if test "x$ac_cv_func_shl_load" = x""yes; then
  24549. - lt_cv_dlopen="shl_load"
  24550. -else
  24551. - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  24552. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  24553. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  24554. +
  24555. +
  24556. +
  24557. +
  24558. +#
  24559. +# Check to make sure the PIC flag actually works.
  24560. +#
  24561. +if test -n "$lt_prog_compiler_pic"; then
  24562. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  24563. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  24564. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  24565. $as_echo_n "(cached) " >&6
  24566. else
  24567. - ac_check_lib_save_LIBS=$LIBS
  24568. -LIBS="-ldld $LIBS"
  24569. -cat >conftest.$ac_ext <<_ACEOF
  24570. -/* confdefs.h. */
  24571. -_ACEOF
  24572. -cat confdefs.h >>conftest.$ac_ext
  24573. -cat >>conftest.$ac_ext <<_ACEOF
  24574. -/* end confdefs.h. */
  24575. + lt_cv_prog_compiler_pic_works=no
  24576. + ac_outfile=conftest.$ac_objext
  24577. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24578. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  24579. + # Insert the option either (1) after the last *FLAGS variable, or
  24580. + # (2) before a word containing "conftest.", or (3) at the end.
  24581. + # Note that $ac_compile itself does not contain backslashes and begins
  24582. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24583. + # The option is referenced via a variable to avoid confusing sed.
  24584. + lt_compile=`echo "$ac_compile" | $SED \
  24585. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24586. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24587. + -e 's:$: $lt_compiler_flag:'`
  24588. + (eval echo "\"\$as_me:7598: $lt_compile\"" >&5)
  24589. + (eval "$lt_compile" 2>conftest.err)
  24590. + ac_status=$?
  24591. + cat conftest.err >&5
  24592. + echo "$as_me:7602: \$? = $ac_status" >&5
  24593. + if (exit $ac_status) && test -s "$ac_outfile"; then
  24594. + # The compiler can only warn and ignore the option if not recognized
  24595. + # So say no if there are warnings other than the usual output.
  24596. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24597. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24598. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24599. + lt_cv_prog_compiler_pic_works=yes
  24600. + fi
  24601. + fi
  24602. + $RM conftest*
  24603. -/* Override any GCC internal prototype to avoid an error.
  24604. - Use char because int might match the return type of a GCC
  24605. - builtin and then its argument prototype would still apply. */
  24606. -#ifdef __cplusplus
  24607. -extern "C"
  24608. -#endif
  24609. -char shl_load ();
  24610. -int
  24611. -main ()
  24612. -{
  24613. -return shl_load ();
  24614. - ;
  24615. - return 0;
  24616. -}
  24617. -_ACEOF
  24618. -rm -f conftest.$ac_objext conftest$ac_exeext
  24619. -if { (ac_try="$ac_link"
  24620. -case "(($ac_try" in
  24621. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24622. - *) ac_try_echo=$ac_try;;
  24623. -esac
  24624. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24625. -$as_echo "$ac_try_echo") >&5
  24626. - (eval "$ac_link") 2>conftest.er1
  24627. - ac_status=$?
  24628. - grep -v '^ *+' conftest.er1 >conftest.err
  24629. - rm -f conftest.er1
  24630. - cat conftest.err >&5
  24631. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24632. - (exit $ac_status); } && {
  24633. - test -z "$ac_c_werror_flag" ||
  24634. - test ! -s conftest.err
  24635. - } && test -s conftest$ac_exeext && {
  24636. - test "$cross_compiling" = yes ||
  24637. - $as_test_x conftest$ac_exeext
  24638. - }; then
  24639. - ac_cv_lib_dld_shl_load=yes
  24640. -else
  24641. - $as_echo "$as_me: failed program was:" >&5
  24642. -sed 's/^/| /' conftest.$ac_ext >&5
  24643. +fi
  24644. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  24645. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  24646. - ac_cv_lib_dld_shl_load=no
  24647. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  24648. + case $lt_prog_compiler_pic in
  24649. + "" | " "*) ;;
  24650. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  24651. + esac
  24652. +else
  24653. + lt_prog_compiler_pic=
  24654. + lt_prog_compiler_can_build_shared=no
  24655. fi
  24656. -rm -rf conftest.dSYM
  24657. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24658. - conftest$ac_exeext conftest.$ac_ext
  24659. -LIBS=$ac_check_lib_save_LIBS
  24660. fi
  24661. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  24662. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  24663. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  24664. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  24665. -else
  24666. - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  24667. -$as_echo_n "checking for dlopen... " >&6; }
  24668. -if test "${ac_cv_func_dlopen+set}" = set; then
  24669. - $as_echo_n "(cached) " >&6
  24670. -else
  24671. - cat >conftest.$ac_ext <<_ACEOF
  24672. -/* confdefs.h. */
  24673. -_ACEOF
  24674. -cat confdefs.h >>conftest.$ac_ext
  24675. -cat >>conftest.$ac_ext <<_ACEOF
  24676. -/* end confdefs.h. */
  24677. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  24678. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24679. -#define dlopen innocuous_dlopen
  24680. -/* System header to define __stub macros and hopefully few prototypes,
  24681. - which can conflict with char dlopen (); below.
  24682. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24683. - <limits.h> exists even on freestanding compilers. */
  24684. -#ifdef __STDC__
  24685. -# include <limits.h>
  24686. -#else
  24687. -# include <assert.h>
  24688. -#endif
  24689. -#undef dlopen
  24690. -/* Override any GCC internal prototype to avoid an error.
  24691. - Use char because int might match the return type of a GCC
  24692. - builtin and then its argument prototype would still apply. */
  24693. -#ifdef __cplusplus
  24694. -extern "C"
  24695. -#endif
  24696. -char dlopen ();
  24697. -/* The GNU C library defines this for functions which it implements
  24698. - to always fail with ENOSYS. Some functions are actually named
  24699. - something starting with __ and the normal name is an alias. */
  24700. -#if defined __stub_dlopen || defined __stub___dlopen
  24701. -choke me
  24702. -#endif
  24703. -int
  24704. -main ()
  24705. -{
  24706. -return dlopen ();
  24707. - ;
  24708. - return 0;
  24709. -}
  24710. -_ACEOF
  24711. -rm -f conftest.$ac_objext conftest$ac_exeext
  24712. -if { (ac_try="$ac_link"
  24713. -case "(($ac_try" in
  24714. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24715. - *) ac_try_echo=$ac_try;;
  24716. -esac
  24717. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24718. -$as_echo "$ac_try_echo") >&5
  24719. - (eval "$ac_link") 2>conftest.er1
  24720. - ac_status=$?
  24721. - grep -v '^ *+' conftest.er1 >conftest.err
  24722. - rm -f conftest.er1
  24723. - cat conftest.err >&5
  24724. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24725. - (exit $ac_status); } && {
  24726. - test -z "$ac_c_werror_flag" ||
  24727. - test ! -s conftest.err
  24728. - } && test -s conftest$ac_exeext && {
  24729. - test "$cross_compiling" = yes ||
  24730. - $as_test_x conftest$ac_exeext
  24731. - }; then
  24732. - ac_cv_func_dlopen=yes
  24733. +
  24734. +#
  24735. +# Check to make sure the static flag actually works.
  24736. +#
  24737. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24738. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24739. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  24740. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  24741. + $as_echo_n "(cached) " >&6
  24742. else
  24743. - $as_echo "$as_me: failed program was:" >&5
  24744. -sed 's/^/| /' conftest.$ac_ext >&5
  24745. + lt_cv_prog_compiler_static_works=no
  24746. + save_LDFLAGS="$LDFLAGS"
  24747. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24748. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  24749. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24750. + # The linker can only warn and ignore the option if not recognized
  24751. + # So say no if there are warnings
  24752. + if test -s conftest.err; then
  24753. + # Append any errors to the config.log.
  24754. + cat conftest.err 1>&5
  24755. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24756. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24757. + if diff conftest.exp conftest.er2 >/dev/null; then
  24758. + lt_cv_prog_compiler_static_works=yes
  24759. + fi
  24760. + else
  24761. + lt_cv_prog_compiler_static_works=yes
  24762. + fi
  24763. + fi
  24764. + $RM -r conftest*
  24765. + LDFLAGS="$save_LDFLAGS"
  24766. - ac_cv_func_dlopen=no
  24767. fi
  24768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  24769. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  24770. -rm -rf conftest.dSYM
  24771. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24772. - conftest$ac_exeext conftest.$ac_ext
  24773. -fi
  24774. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  24775. -$as_echo "$ac_cv_func_dlopen" >&6; }
  24776. -if test "x$ac_cv_func_dlopen" = x""yes; then
  24777. - lt_cv_dlopen="dlopen"
  24778. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  24779. + :
  24780. else
  24781. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  24782. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  24783. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  24784. + lt_prog_compiler_static=
  24785. +fi
  24786. +
  24787. +
  24788. +
  24789. +
  24790. +
  24791. +
  24792. +
  24793. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  24794. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  24795. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  24796. $as_echo_n "(cached) " >&6
  24797. else
  24798. - ac_check_lib_save_LIBS=$LIBS
  24799. -LIBS="-ldl $LIBS"
  24800. -cat >conftest.$ac_ext <<_ACEOF
  24801. -/* confdefs.h. */
  24802. -_ACEOF
  24803. -cat confdefs.h >>conftest.$ac_ext
  24804. -cat >>conftest.$ac_ext <<_ACEOF
  24805. -/* end confdefs.h. */
  24806. + lt_cv_prog_compiler_c_o=no
  24807. + $RM -r conftest 2>/dev/null
  24808. + mkdir conftest
  24809. + cd conftest
  24810. + mkdir out
  24811. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24812. -/* Override any GCC internal prototype to avoid an error.
  24813. - Use char because int might match the return type of a GCC
  24814. - builtin and then its argument prototype would still apply. */
  24815. -#ifdef __cplusplus
  24816. -extern "C"
  24817. -#endif
  24818. -char dlopen ();
  24819. -int
  24820. -main ()
  24821. -{
  24822. -return dlopen ();
  24823. - ;
  24824. - return 0;
  24825. -}
  24826. -_ACEOF
  24827. -rm -f conftest.$ac_objext conftest$ac_exeext
  24828. -if { (ac_try="$ac_link"
  24829. -case "(($ac_try" in
  24830. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24831. - *) ac_try_echo=$ac_try;;
  24832. -esac
  24833. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24834. -$as_echo "$ac_try_echo") >&5
  24835. - (eval "$ac_link") 2>conftest.er1
  24836. - ac_status=$?
  24837. - grep -v '^ *+' conftest.er1 >conftest.err
  24838. - rm -f conftest.er1
  24839. - cat conftest.err >&5
  24840. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24841. - (exit $ac_status); } && {
  24842. - test -z "$ac_c_werror_flag" ||
  24843. - test ! -s conftest.err
  24844. - } && test -s conftest$ac_exeext && {
  24845. - test "$cross_compiling" = yes ||
  24846. - $as_test_x conftest$ac_exeext
  24847. - }; then
  24848. - ac_cv_lib_dl_dlopen=yes
  24849. -else
  24850. - $as_echo "$as_me: failed program was:" >&5
  24851. -sed 's/^/| /' conftest.$ac_ext >&5
  24852. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  24853. + # Insert the option either (1) after the last *FLAGS variable, or
  24854. + # (2) before a word containing "conftest.", or (3) at the end.
  24855. + # Note that $ac_compile itself does not contain backslashes and begins
  24856. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24857. + lt_compile=`echo "$ac_compile" | $SED \
  24858. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24859. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24860. + -e 's:$: $lt_compiler_flag:'`
  24861. + (eval echo "\"\$as_me:7703: $lt_compile\"" >&5)
  24862. + (eval "$lt_compile" 2>out/conftest.err)
  24863. + ac_status=$?
  24864. + cat out/conftest.err >&5
  24865. + echo "$as_me:7707: \$? = $ac_status" >&5
  24866. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24867. + then
  24868. + # The compiler can only warn and ignore the option if not recognized
  24869. + # So say no if there are warnings
  24870. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24871. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24872. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24873. + lt_cv_prog_compiler_c_o=yes
  24874. + fi
  24875. + fi
  24876. + chmod u+w . 2>&5
  24877. + $RM conftest*
  24878. + # SGI C++ compiler will create directory out/ii_files/ for
  24879. + # template instantiation
  24880. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  24881. + $RM out/* && rmdir out
  24882. + cd ..
  24883. + $RM -r conftest
  24884. + $RM conftest*
  24885. - ac_cv_lib_dl_dlopen=no
  24886. fi
  24887. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  24888. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  24889. -rm -rf conftest.dSYM
  24890. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24891. - conftest$ac_exeext conftest.$ac_ext
  24892. -LIBS=$ac_check_lib_save_LIBS
  24893. -fi
  24894. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  24895. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  24896. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  24897. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  24898. -else
  24899. - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  24900. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  24901. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  24902. - $as_echo_n "(cached) " >&6
  24903. -else
  24904. - ac_check_lib_save_LIBS=$LIBS
  24905. -LIBS="-lsvld $LIBS"
  24906. -cat >conftest.$ac_ext <<_ACEOF
  24907. -/* confdefs.h. */
  24908. -_ACEOF
  24909. -cat confdefs.h >>conftest.$ac_ext
  24910. -cat >>conftest.$ac_ext <<_ACEOF
  24911. -/* end confdefs.h. */
  24912. -/* Override any GCC internal prototype to avoid an error.
  24913. - Use char because int might match the return type of a GCC
  24914. - builtin and then its argument prototype would still apply. */
  24915. -#ifdef __cplusplus
  24916. -extern "C"
  24917. -#endif
  24918. -char dlopen ();
  24919. -int
  24920. -main ()
  24921. -{
  24922. -return dlopen ();
  24923. - ;
  24924. - return 0;
  24925. -}
  24926. -_ACEOF
  24927. -rm -f conftest.$ac_objext conftest$ac_exeext
  24928. -if { (ac_try="$ac_link"
  24929. -case "(($ac_try" in
  24930. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24931. - *) ac_try_echo=$ac_try;;
  24932. -esac
  24933. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24934. -$as_echo "$ac_try_echo") >&5
  24935. - (eval "$ac_link") 2>conftest.er1
  24936. - ac_status=$?
  24937. - grep -v '^ *+' conftest.er1 >conftest.err
  24938. - rm -f conftest.er1
  24939. - cat conftest.err >&5
  24940. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24941. - (exit $ac_status); } && {
  24942. - test -z "$ac_c_werror_flag" ||
  24943. - test ! -s conftest.err
  24944. - } && test -s conftest$ac_exeext && {
  24945. - test "$cross_compiling" = yes ||
  24946. - $as_test_x conftest$ac_exeext
  24947. - }; then
  24948. - ac_cv_lib_svld_dlopen=yes
  24949. -else
  24950. - $as_echo "$as_me: failed program was:" >&5
  24951. -sed 's/^/| /' conftest.$ac_ext >&5
  24952. - ac_cv_lib_svld_dlopen=no
  24953. -fi
  24954. -rm -rf conftest.dSYM
  24955. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24956. - conftest$ac_exeext conftest.$ac_ext
  24957. -LIBS=$ac_check_lib_save_LIBS
  24958. -fi
  24959. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  24960. -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  24961. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  24962. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  24963. -else
  24964. - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  24965. -$as_echo_n "checking for dld_link in -ldld... " >&6; }
  24966. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  24967. - $as_echo_n "(cached) " >&6
  24968. -else
  24969. - ac_check_lib_save_LIBS=$LIBS
  24970. -LIBS="-ldld $LIBS"
  24971. -cat >conftest.$ac_ext <<_ACEOF
  24972. -/* confdefs.h. */
  24973. -_ACEOF
  24974. -cat confdefs.h >>conftest.$ac_ext
  24975. -cat >>conftest.$ac_ext <<_ACEOF
  24976. -/* end confdefs.h. */
  24977. -/* Override any GCC internal prototype to avoid an error.
  24978. - Use char because int might match the return type of a GCC
  24979. - builtin and then its argument prototype would still apply. */
  24980. -#ifdef __cplusplus
  24981. -extern "C"
  24982. -#endif
  24983. -char dld_link ();
  24984. -int
  24985. -main ()
  24986. -{
  24987. -return dld_link ();
  24988. - ;
  24989. - return 0;
  24990. -}
  24991. -_ACEOF
  24992. -rm -f conftest.$ac_objext conftest$ac_exeext
  24993. -if { (ac_try="$ac_link"
  24994. -case "(($ac_try" in
  24995. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24996. - *) ac_try_echo=$ac_try;;
  24997. -esac
  24998. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24999. -$as_echo "$ac_try_echo") >&5
  25000. - (eval "$ac_link") 2>conftest.er1
  25001. - ac_status=$?
  25002. - grep -v '^ *+' conftest.er1 >conftest.err
  25003. - rm -f conftest.er1
  25004. - cat conftest.err >&5
  25005. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25006. - (exit $ac_status); } && {
  25007. - test -z "$ac_c_werror_flag" ||
  25008. - test ! -s conftest.err
  25009. - } && test -s conftest$ac_exeext && {
  25010. - test "$cross_compiling" = yes ||
  25011. - $as_test_x conftest$ac_exeext
  25012. - }; then
  25013. - ac_cv_lib_dld_dld_link=yes
  25014. +
  25015. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  25016. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  25017. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  25018. + $as_echo_n "(cached) " >&6
  25019. else
  25020. - $as_echo "$as_me: failed program was:" >&5
  25021. -sed 's/^/| /' conftest.$ac_ext >&5
  25022. + lt_cv_prog_compiler_c_o=no
  25023. + $RM -r conftest 2>/dev/null
  25024. + mkdir conftest
  25025. + cd conftest
  25026. + mkdir out
  25027. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25028. - ac_cv_lib_dld_dld_link=no
  25029. -fi
  25030. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  25031. + # Insert the option either (1) after the last *FLAGS variable, or
  25032. + # (2) before a word containing "conftest.", or (3) at the end.
  25033. + # Note that $ac_compile itself does not contain backslashes and begins
  25034. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25035. + lt_compile=`echo "$ac_compile" | $SED \
  25036. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25037. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25038. + -e 's:$: $lt_compiler_flag:'`
  25039. + (eval echo "\"\$as_me:7758: $lt_compile\"" >&5)
  25040. + (eval "$lt_compile" 2>out/conftest.err)
  25041. + ac_status=$?
  25042. + cat out/conftest.err >&5
  25043. + echo "$as_me:7762: \$? = $ac_status" >&5
  25044. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25045. + then
  25046. + # The compiler can only warn and ignore the option if not recognized
  25047. + # So say no if there are warnings
  25048. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25049. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25050. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25051. + lt_cv_prog_compiler_c_o=yes
  25052. + fi
  25053. + fi
  25054. + chmod u+w . 2>&5
  25055. + $RM conftest*
  25056. + # SGI C++ compiler will create directory out/ii_files/ for
  25057. + # template instantiation
  25058. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  25059. + $RM out/* && rmdir out
  25060. + cd ..
  25061. + $RM -r conftest
  25062. + $RM conftest*
  25063. -rm -rf conftest.dSYM
  25064. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25065. - conftest$ac_exeext conftest.$ac_ext
  25066. -LIBS=$ac_check_lib_save_LIBS
  25067. -fi
  25068. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  25069. -$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  25070. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  25071. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  25072. fi
  25073. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  25074. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  25075. -fi
  25076. +hard_links="nottested"
  25077. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  25078. + # do not overwrite the value of need_locks provided by the user
  25079. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  25080. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  25081. + hard_links=yes
  25082. + $RM conftest*
  25083. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25084. + touch conftest.a
  25085. + ln conftest.a conftest.b 2>&5 || hard_links=no
  25086. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25087. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  25088. +$as_echo "$hard_links" >&6; }
  25089. + if test "$hard_links" = no; then
  25090. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  25091. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  25092. + need_locks=warn
  25093. + fi
  25094. +else
  25095. + need_locks=no
  25096. fi
  25097. -fi
  25098. -fi
  25099. -fi
  25100. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25101. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  25102. +
  25103. + runpath_var=
  25104. + allow_undefined_flag=
  25105. + always_export_symbols=no
  25106. + archive_cmds=
  25107. + archive_expsym_cmds=
  25108. + compiler_needs_object=no
  25109. + enable_shared_with_static_runtimes=no
  25110. + export_dynamic_flag_spec=
  25111. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  25112. + hardcode_automatic=no
  25113. + hardcode_direct=no
  25114. + hardcode_direct_absolute=no
  25115. + hardcode_libdir_flag_spec=
  25116. + hardcode_libdir_flag_spec_ld=
  25117. + hardcode_libdir_separator=
  25118. + hardcode_minus_L=no
  25119. + hardcode_shlibpath_var=unsupported
  25120. + inherit_rpath=no
  25121. + link_all_deplibs=unknown
  25122. + module_cmds=
  25123. + module_expsym_cmds=
  25124. + old_archive_from_new_cmds=
  25125. + old_archive_from_expsyms_cmds=
  25126. + thread_safe_flag_spec=
  25127. + whole_archive_flag_spec=
  25128. + # include_expsyms should be a list of space-separated symbols to be *always*
  25129. + # included in the symbol list
  25130. + include_expsyms=
  25131. + # exclude_expsyms can be an extended regexp of symbols to exclude
  25132. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  25133. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  25134. + # as well as any symbol that contains `d'.
  25135. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  25136. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  25137. + # platforms (ab)use it in PIC code, but their linkers get confused if
  25138. + # the symbol is explicitly referenced. Since portable code cannot
  25139. + # rely on this symbol name, it's probably fine to never include it in
  25140. + # preloaded symbol tables.
  25141. + # Exclude shared library initialization/finalization symbols.
  25142. + extract_expsyms_cmds=
  25143. + case $host_os in
  25144. + cygwin* | mingw* | pw32* | cegcc*)
  25145. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  25146. + # When not using gcc, we currently assume that we are using
  25147. + # Microsoft Visual C++.
  25148. + if test "$GCC" != yes; then
  25149. + with_gnu_ld=no
  25150. + fi
  25151. + ;;
  25152. + interix*)
  25153. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  25154. + with_gnu_ld=yes
  25155. + ;;
  25156. + openbsd*)
  25157. + with_gnu_ld=no
  25158. + ;;
  25159. + linux* | k*bsd*-gnu)
  25160. + link_all_deplibs=no
  25161. ;;
  25162. esac
  25163. - if test "x$lt_cv_dlopen" != xno; then
  25164. - enable_dlopen=yes
  25165. - else
  25166. - enable_dlopen=no
  25167. - fi
  25168. -
  25169. - case $lt_cv_dlopen in
  25170. - dlopen)
  25171. - save_CPPFLAGS="$CPPFLAGS"
  25172. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  25173. + ld_shlibs=yes
  25174. + if test "$with_gnu_ld" = yes; then
  25175. + # If archive_cmds runs LD, not CC, wlarc should be empty
  25176. + wlarc='${wl}'
  25177. - save_LDFLAGS="$LDFLAGS"
  25178. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  25179. + # Set some defaults for GNU ld with shared library support. These
  25180. + # are reset later if shared libraries are not supported. Putting them
  25181. + # here allows them to be overridden if necessary.
  25182. + runpath_var=LD_RUN_PATH
  25183. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25184. + export_dynamic_flag_spec='${wl}--export-dynamic'
  25185. + # ancient GNU ld didn't support --whole-archive et. al.
  25186. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  25187. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25188. + else
  25189. + whole_archive_flag_spec=
  25190. + fi
  25191. + supports_anon_versioning=no
  25192. + case `$LD -v 2>&1` in
  25193. + *GNU\ gold*) supports_anon_versioning=yes ;;
  25194. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  25195. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  25196. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  25197. + *\ 2.11.*) ;; # other 2.11 versions
  25198. + *) supports_anon_versioning=yes ;;
  25199. + esac
  25200. - save_LIBS="$LIBS"
  25201. - LIBS="$lt_cv_dlopen_libs $LIBS"
  25202. + # See if GNU ld supports shared libraries.
  25203. + case $host_os in
  25204. + aix[3-9]*)
  25205. + # On AIX/PPC, the GNU linker is very broken
  25206. + if test "$host_cpu" != ia64; then
  25207. + ld_shlibs=no
  25208. + cat <<_LT_EOF 1>&2
  25209. - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  25210. -$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  25211. -if test "${lt_cv_dlopen_self+set}" = set; then
  25212. - $as_echo_n "(cached) " >&6
  25213. -else
  25214. - if test "$cross_compiling" = yes; then :
  25215. - lt_cv_dlopen_self=cross
  25216. -else
  25217. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  25218. - lt_status=$lt_dlunknown
  25219. - cat > conftest.$ac_ext <<EOF
  25220. -#line 10366 "configure"
  25221. -#include "confdefs.h"
  25222. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  25223. +*** to be unable to reliably create shared libraries on AIX.
  25224. +*** Therefore, libtool is disabling shared libraries support. If you
  25225. +*** really care for shared libraries, you may want to modify your PATH
  25226. +*** so that a non-GNU linker is found, and then restart.
  25227. -#if HAVE_DLFCN_H
  25228. -#include <dlfcn.h>
  25229. -#endif
  25230. +_LT_EOF
  25231. + fi
  25232. + ;;
  25233. -#include <stdio.h>
  25234. + amigaos*)
  25235. + case $host_cpu in
  25236. + powerpc)
  25237. + # see comment about AmigaOS4 .so support
  25238. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25239. + archive_expsym_cmds=''
  25240. + ;;
  25241. + m68k)
  25242. + 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)'
  25243. + hardcode_libdir_flag_spec='-L$libdir'
  25244. + hardcode_minus_L=yes
  25245. + ;;
  25246. + esac
  25247. + ;;
  25248. -#ifdef RTLD_GLOBAL
  25249. -# define LT_DLGLOBAL RTLD_GLOBAL
  25250. -#else
  25251. -# ifdef DL_GLOBAL
  25252. -# define LT_DLGLOBAL DL_GLOBAL
  25253. -# else
  25254. -# define LT_DLGLOBAL 0
  25255. -# endif
  25256. -#endif
  25257. + beos*)
  25258. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25259. + allow_undefined_flag=unsupported
  25260. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25261. + # support --undefined. This deserves some investigation. FIXME
  25262. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25263. + else
  25264. + ld_shlibs=no
  25265. + fi
  25266. + ;;
  25267. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  25268. - find out it does not work in some platform. */
  25269. -#ifndef LT_DLLAZY_OR_NOW
  25270. -# ifdef RTLD_LAZY
  25271. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  25272. -# else
  25273. -# ifdef DL_LAZY
  25274. -# define LT_DLLAZY_OR_NOW DL_LAZY
  25275. -# else
  25276. -# ifdef RTLD_NOW
  25277. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  25278. -# else
  25279. -# ifdef DL_NOW
  25280. -# define LT_DLLAZY_OR_NOW DL_NOW
  25281. -# else
  25282. -# define LT_DLLAZY_OR_NOW 0
  25283. -# endif
  25284. -# endif
  25285. -# endif
  25286. -# endif
  25287. -#endif
  25288. + cygwin* | mingw* | pw32* | cegcc*)
  25289. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  25290. + # as there is no search path for DLLs.
  25291. + hardcode_libdir_flag_spec='-L$libdir'
  25292. + allow_undefined_flag=unsupported
  25293. + always_export_symbols=no
  25294. + enable_shared_with_static_runtimes=yes
  25295. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  25296. -#ifdef __cplusplus
  25297. -extern "C" void exit (int);
  25298. -#endif
  25299. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  25300. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25301. + # If the export-symbols file already is a .def file (1st line
  25302. + # is EXPORTS), use it as is; otherwise, prepend...
  25303. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25304. + cp $export_symbols $output_objdir/$soname.def;
  25305. + else
  25306. + echo EXPORTS > $output_objdir/$soname.def;
  25307. + cat $export_symbols >> $output_objdir/$soname.def;
  25308. + fi~
  25309. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25310. + else
  25311. + ld_shlibs=no
  25312. + fi
  25313. + ;;
  25314. -void fnord() { int i=42;}
  25315. -int main ()
  25316. -{
  25317. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  25318. - int status = $lt_dlunknown;
  25319. + interix[3-9]*)
  25320. + hardcode_direct=no
  25321. + hardcode_shlibpath_var=no
  25322. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25323. + export_dynamic_flag_spec='${wl}-E'
  25324. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25325. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  25326. + # default) and relocated if they conflict, which is a slow very memory
  25327. + # consuming and fragmenting process. To avoid this, we pick a random,
  25328. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25329. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25330. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  25331. + 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'
  25332. + ;;
  25333. - if (self)
  25334. - {
  25335. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  25336. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  25337. - /* dlclose (self); */
  25338. - }
  25339. - else
  25340. - puts (dlerror ());
  25341. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  25342. + tmp_diet=no
  25343. + if test "$host_os" = linux-dietlibc; then
  25344. + case $cc_basename in
  25345. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  25346. + esac
  25347. + fi
  25348. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  25349. + && test "$tmp_diet" = no
  25350. + then
  25351. + tmp_addflag=
  25352. + tmp_sharedflag='-shared'
  25353. + case $cc_basename,$host_cpu in
  25354. + pgcc*) # Portland Group C compiler
  25355. + 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'
  25356. + tmp_addflag=' $pic_flag'
  25357. + ;;
  25358. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  25359. + 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'
  25360. + tmp_addflag=' $pic_flag -Mnomain' ;;
  25361. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  25362. + tmp_addflag=' -i_dynamic' ;;
  25363. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  25364. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  25365. + ifc* | ifort*) # Intel Fortran compiler
  25366. + tmp_addflag=' -nofor_main' ;;
  25367. + lf95*) # Lahey Fortran 8.1
  25368. + whole_archive_flag_spec=
  25369. + tmp_sharedflag='--shared' ;;
  25370. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  25371. + tmp_sharedflag='-qmkshrobj'
  25372. + tmp_addflag= ;;
  25373. + esac
  25374. + case `$CC -V 2>&1 | sed 5q` in
  25375. + *Sun\ C*) # Sun C 5.9
  25376. + 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'
  25377. + compiler_needs_object=yes
  25378. + tmp_sharedflag='-G' ;;
  25379. + *Sun\ F*) # Sun Fortran 8.3
  25380. + tmp_sharedflag='-G' ;;
  25381. + esac
  25382. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25383. - exit (status);
  25384. -}
  25385. -EOF
  25386. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25387. - (eval $ac_link) 2>&5
  25388. - ac_status=$?
  25389. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25390. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  25391. - (./conftest; exit; ) >&5 2>/dev/null
  25392. - lt_status=$?
  25393. - case x$lt_status in
  25394. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  25395. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  25396. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  25397. - esac
  25398. - else :
  25399. - # compilation failed
  25400. - lt_cv_dlopen_self=no
  25401. - fi
  25402. -fi
  25403. -rm -fr conftest*
  25404. + if test "x$supports_anon_versioning" = xyes; then
  25405. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  25406. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25407. + echo "local: *; };" >> $output_objdir/$libname.ver~
  25408. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  25409. + fi
  25410. + case $cc_basename in
  25411. + xlf*)
  25412. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  25413. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  25414. + hardcode_libdir_flag_spec=
  25415. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  25416. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  25417. + if test "x$supports_anon_versioning" = xyes; then
  25418. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  25419. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25420. + echo "local: *; };" >> $output_objdir/$libname.ver~
  25421. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  25422. + fi
  25423. + ;;
  25424. + esac
  25425. + else
  25426. + ld_shlibs=no
  25427. + fi
  25428. + ;;
  25429. -fi
  25430. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  25431. -$as_echo "$lt_cv_dlopen_self" >&6; }
  25432. + netbsd* | netbsdelf*-gnu)
  25433. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  25434. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  25435. + wlarc=
  25436. + else
  25437. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25438. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25439. + fi
  25440. + ;;
  25441. - if test "x$lt_cv_dlopen_self" = xyes; then
  25442. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  25443. - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  25444. -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  25445. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  25446. - $as_echo_n "(cached) " >&6
  25447. -else
  25448. - if test "$cross_compiling" = yes; then :
  25449. - lt_cv_dlopen_self_static=cross
  25450. -else
  25451. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  25452. - lt_status=$lt_dlunknown
  25453. - cat > conftest.$ac_ext <<EOF
  25454. -#line 10466 "configure"
  25455. -#include "confdefs.h"
  25456. + solaris*)
  25457. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  25458. + ld_shlibs=no
  25459. + cat <<_LT_EOF 1>&2
  25460. -#if HAVE_DLFCN_H
  25461. -#include <dlfcn.h>
  25462. -#endif
  25463. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  25464. +*** create shared libraries on Solaris systems. Therefore, libtool
  25465. +*** is disabling shared libraries support. We urge you to upgrade GNU
  25466. +*** binutils to release 2.9.1 or newer. Another option is to modify
  25467. +*** your PATH or compiler configuration so that the native linker is
  25468. +*** used, and then restart.
  25469. -#include <stdio.h>
  25470. +_LT_EOF
  25471. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25472. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25473. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25474. + else
  25475. + ld_shlibs=no
  25476. + fi
  25477. + ;;
  25478. -#ifdef RTLD_GLOBAL
  25479. -# define LT_DLGLOBAL RTLD_GLOBAL
  25480. -#else
  25481. -# ifdef DL_GLOBAL
  25482. -# define LT_DLGLOBAL DL_GLOBAL
  25483. -# else
  25484. -# define LT_DLGLOBAL 0
  25485. -# endif
  25486. -#endif
  25487. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  25488. + case `$LD -v 2>&1` in
  25489. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  25490. + ld_shlibs=no
  25491. + cat <<_LT_EOF 1>&2
  25492. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  25493. - find out it does not work in some platform. */
  25494. -#ifndef LT_DLLAZY_OR_NOW
  25495. -# ifdef RTLD_LAZY
  25496. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  25497. -# else
  25498. -# ifdef DL_LAZY
  25499. -# define LT_DLLAZY_OR_NOW DL_LAZY
  25500. -# else
  25501. -# ifdef RTLD_NOW
  25502. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  25503. -# else
  25504. -# ifdef DL_NOW
  25505. -# define LT_DLLAZY_OR_NOW DL_NOW
  25506. -# else
  25507. -# define LT_DLLAZY_OR_NOW 0
  25508. -# endif
  25509. -# endif
  25510. -# endif
  25511. -# endif
  25512. -#endif
  25513. -
  25514. -#ifdef __cplusplus
  25515. -extern "C" void exit (int);
  25516. -#endif
  25517. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  25518. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  25519. +*** is disabling shared libraries support. We urge you to upgrade GNU
  25520. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  25521. +*** your PATH or compiler configuration so that the native linker is
  25522. +*** used, and then restart.
  25523. -void fnord() { int i=42;}
  25524. -int main ()
  25525. -{
  25526. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  25527. - int status = $lt_dlunknown;
  25528. +_LT_EOF
  25529. + ;;
  25530. + *)
  25531. + # For security reasons, it is highly recommended that you always
  25532. + # use absolute paths for naming shared libraries, and exclude the
  25533. + # DT_RUNPATH tag from executables and libraries. But doing so
  25534. + # requires that you compile everything twice, which is a pain.
  25535. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25536. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25537. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25538. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25539. + else
  25540. + ld_shlibs=no
  25541. + fi
  25542. + ;;
  25543. + esac
  25544. + ;;
  25545. - if (self)
  25546. - {
  25547. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  25548. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  25549. - /* dlclose (self); */
  25550. - }
  25551. - else
  25552. - puts (dlerror ());
  25553. + sunos4*)
  25554. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25555. + wlarc=
  25556. + hardcode_direct=yes
  25557. + hardcode_shlibpath_var=no
  25558. + ;;
  25559. - exit (status);
  25560. -}
  25561. -EOF
  25562. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25563. - (eval $ac_link) 2>&5
  25564. - ac_status=$?
  25565. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25566. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  25567. - (./conftest; exit; ) >&5 2>/dev/null
  25568. - lt_status=$?
  25569. - case x$lt_status in
  25570. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  25571. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  25572. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  25573. + *)
  25574. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25575. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25576. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25577. + else
  25578. + ld_shlibs=no
  25579. + fi
  25580. + ;;
  25581. esac
  25582. - else :
  25583. - # compilation failed
  25584. - lt_cv_dlopen_self_static=no
  25585. - fi
  25586. -fi
  25587. -rm -fr conftest*
  25588. -
  25589. -fi
  25590. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  25591. -$as_echo "$lt_cv_dlopen_self_static" >&6; }
  25592. + if test "$ld_shlibs" = no; then
  25593. + runpath_var=
  25594. + hardcode_libdir_flag_spec=
  25595. + export_dynamic_flag_spec=
  25596. + whole_archive_flag_spec=
  25597. fi
  25598. + else
  25599. + # PORTME fill in a description of your system's linker (not GNU ld)
  25600. + case $host_os in
  25601. + aix3*)
  25602. + allow_undefined_flag=unsupported
  25603. + always_export_symbols=yes
  25604. + 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'
  25605. + # Note: this linker hardcodes the directories in LIBPATH if there
  25606. + # are no directories specified by -L.
  25607. + hardcode_minus_L=yes
  25608. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  25609. + # Neither direct hardcoding nor static linking is supported with a
  25610. + # broken collect2.
  25611. + hardcode_direct=unsupported
  25612. + fi
  25613. + ;;
  25614. - CPPFLAGS="$save_CPPFLAGS"
  25615. - LDFLAGS="$save_LDFLAGS"
  25616. - LIBS="$save_LIBS"
  25617. - ;;
  25618. - esac
  25619. -
  25620. - case $lt_cv_dlopen_self in
  25621. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  25622. - *) enable_dlopen_self=unknown ;;
  25623. - esac
  25624. + aix[4-9]*)
  25625. + if test "$host_cpu" = ia64; then
  25626. + # On IA64, the linker does run time linking by default, so we don't
  25627. + # have to do anything special.
  25628. + aix_use_runtimelinking=no
  25629. + exp_sym_flag='-Bexport'
  25630. + no_entry_flag=""
  25631. + else
  25632. + # If we're using GNU nm, then we don't want the "-C" option.
  25633. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  25634. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  25635. + 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'
  25636. + else
  25637. + 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'
  25638. + fi
  25639. + aix_use_runtimelinking=no
  25640. - case $lt_cv_dlopen_self_static in
  25641. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  25642. - *) enable_dlopen_self_static=unknown ;;
  25643. - esac
  25644. -fi
  25645. + # Test if we are trying to use run time linking or normal
  25646. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25647. + # need to do runtime linking.
  25648. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  25649. + for ld_flag in $LDFLAGS; do
  25650. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  25651. + aix_use_runtimelinking=yes
  25652. + break
  25653. + fi
  25654. + done
  25655. + ;;
  25656. + esac
  25657. + exp_sym_flag='-bexport'
  25658. + no_entry_flag='-bnoentry'
  25659. + fi
  25660. -# Report which library types will actually be built
  25661. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  25662. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  25663. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  25664. -$as_echo "$can_build_shared" >&6; }
  25665. + # When large executables or shared objects are built, AIX ld can
  25666. + # have problems creating the table of contents. If linking a library
  25667. + # or program results in "error TOC overflow" add -mminimal-toc to
  25668. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25669. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25670. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  25671. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  25672. -test "$can_build_shared" = "no" && enable_shared=no
  25673. + archive_cmds=''
  25674. + hardcode_direct=yes
  25675. + hardcode_direct_absolute=yes
  25676. + hardcode_libdir_separator=':'
  25677. + link_all_deplibs=yes
  25678. + file_list_spec='${wl}-f,'
  25679. -# On AIX, shared libraries and static libraries use the same namespace, and
  25680. -# are all built from PIC.
  25681. -case $host_os in
  25682. -aix3*)
  25683. - test "$enable_shared" = yes && enable_static=no
  25684. - if test -n "$RANLIB"; then
  25685. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  25686. - postinstall_cmds='$RANLIB $lib'
  25687. - fi
  25688. - ;;
  25689. + if test "$GCC" = yes; then
  25690. + case $host_os in aix4.[012]|aix4.[012].*)
  25691. + # We only want to do this on AIX 4.2 and lower, the check
  25692. + # below for broken collect2 doesn't work under 4.3+
  25693. + collect2name=`${CC} -print-prog-name=collect2`
  25694. + if test -f "$collect2name" &&
  25695. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  25696. + then
  25697. + # We have reworked collect2
  25698. + :
  25699. + else
  25700. + # We have old collect2
  25701. + hardcode_direct=unsupported
  25702. + # It fails to find uninstalled libraries when the uninstalled
  25703. + # path is not listed in the libpath. Setting hardcode_minus_L
  25704. + # to unsupported forces relinking
  25705. + hardcode_minus_L=yes
  25706. + hardcode_libdir_flag_spec='-L$libdir'
  25707. + hardcode_libdir_separator=
  25708. + fi
  25709. + ;;
  25710. + esac
  25711. + shared_flag='-shared'
  25712. + if test "$aix_use_runtimelinking" = yes; then
  25713. + shared_flag="$shared_flag "'${wl}-G'
  25714. + fi
  25715. + link_all_deplibs=no
  25716. + else
  25717. + # not using gcc
  25718. + if test "$host_cpu" = ia64; then
  25719. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25720. + # chokes on -Wl,-G. The following line is correct:
  25721. + shared_flag='-G'
  25722. + else
  25723. + if test "$aix_use_runtimelinking" = yes; then
  25724. + shared_flag='${wl}-G'
  25725. + else
  25726. + shared_flag='${wl}-bM:SRE'
  25727. + fi
  25728. + fi
  25729. + fi
  25730. -aix[4-9]*)
  25731. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  25732. - test "$enable_shared" = yes && enable_static=no
  25733. - fi
  25734. - ;;
  25735. -esac
  25736. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  25737. -$as_echo "$enable_shared" >&6; }
  25738. + export_dynamic_flag_spec='${wl}-bexpall'
  25739. + # It seems that -bexpall does not export symbols beginning with
  25740. + # underscore (_), so it is better to generate a list of symbols to export.
  25741. + always_export_symbols=yes
  25742. + if test "$aix_use_runtimelinking" = yes; then
  25743. + # Warning - without using the other runtime loading flags (-brtl),
  25744. + # -berok will link without error, but may produce a broken library.
  25745. + allow_undefined_flag='-berok'
  25746. + # Determine the default libpath from the value encoded in an
  25747. + # empty executable.
  25748. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25749. +/* end confdefs.h. */
  25750. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  25751. -$as_echo_n "checking whether to build static libraries... " >&6; }
  25752. -# Make sure either enable_shared or enable_static is yes.
  25753. -test "$enable_shared" = yes || enable_static=yes
  25754. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  25755. -$as_echo "$enable_static" >&6; }
  25756. +int
  25757. +main ()
  25758. +{
  25759. -# The else clause should only fire when bootstrapping the
  25760. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  25761. -# with your package, and you will get complaints that there are
  25762. -# no rules to generate ltmain.sh.
  25763. -if test -f "$ltmain"; then
  25764. - # See if we are running on zsh, and set the options which allow our commands through
  25765. - # without removal of \ escapes.
  25766. - if test -n "${ZSH_VERSION+set}" ; then
  25767. - setopt NO_GLOB_SUBST
  25768. - fi
  25769. - # Now quote all the things that may contain metacharacters while being
  25770. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  25771. - # variables and quote the copies for generation of the libtool script.
  25772. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  25773. - SED SHELL STRIP \
  25774. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  25775. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  25776. - deplibs_check_method reload_flag reload_cmds need_locks \
  25777. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  25778. - lt_cv_sys_global_symbol_to_c_name_address \
  25779. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  25780. - old_postinstall_cmds old_postuninstall_cmds \
  25781. - compiler \
  25782. - CC \
  25783. - LD \
  25784. - lt_prog_compiler_wl \
  25785. - lt_prog_compiler_pic \
  25786. - lt_prog_compiler_static \
  25787. - lt_prog_compiler_no_builtin_flag \
  25788. - export_dynamic_flag_spec \
  25789. - thread_safe_flag_spec \
  25790. - whole_archive_flag_spec \
  25791. - enable_shared_with_static_runtimes \
  25792. - old_archive_cmds \
  25793. - old_archive_from_new_cmds \
  25794. - predep_objects \
  25795. - postdep_objects \
  25796. - predeps \
  25797. - postdeps \
  25798. - compiler_lib_search_path \
  25799. - compiler_lib_search_dirs \
  25800. - archive_cmds \
  25801. - archive_expsym_cmds \
  25802. - postinstall_cmds \
  25803. - postuninstall_cmds \
  25804. - old_archive_from_expsyms_cmds \
  25805. - allow_undefined_flag \
  25806. - no_undefined_flag \
  25807. - export_symbols_cmds \
  25808. - hardcode_libdir_flag_spec \
  25809. - hardcode_libdir_flag_spec_ld \
  25810. - hardcode_libdir_separator \
  25811. - hardcode_automatic \
  25812. - module_cmds \
  25813. - module_expsym_cmds \
  25814. - lt_cv_prog_compiler_c_o \
  25815. - fix_srcfile_path \
  25816. - exclude_expsyms \
  25817. - include_expsyms; do
  25818. -
  25819. - case $var in
  25820. - old_archive_cmds | \
  25821. - old_archive_from_new_cmds | \
  25822. - archive_cmds | \
  25823. - archive_expsym_cmds | \
  25824. - module_cmds | \
  25825. - module_expsym_cmds | \
  25826. - old_archive_from_expsyms_cmds | \
  25827. - export_symbols_cmds | \
  25828. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  25829. - postinstall_cmds | postuninstall_cmds | \
  25830. - old_postinstall_cmds | old_postuninstall_cmds | \
  25831. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  25832. - # Double-quote double-evaled strings.
  25833. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  25834. - ;;
  25835. - *)
  25836. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  25837. - ;;
  25838. - esac
  25839. - done
  25840. + ;
  25841. + return 0;
  25842. +}
  25843. +_ACEOF
  25844. +if ac_fn_c_try_link "$LINENO"; then :
  25845. - case $lt_echo in
  25846. - *'\$0 --fallback-echo"')
  25847. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  25848. - ;;
  25849. - esac
  25850. +lt_aix_libpath_sed='
  25851. + /Import File Strings/,/^$/ {
  25852. + /^0/ {
  25853. + s/^0 *\(.*\)$/\1/
  25854. + p
  25855. + }
  25856. + }'
  25857. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25858. +# Check for a 64-bit object if we didn't find anything.
  25859. +if test -z "$aix_libpath"; then
  25860. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25861. +fi
  25862. +fi
  25863. +rm -f core conftest.err conftest.$ac_objext \
  25864. + conftest$ac_exeext conftest.$ac_ext
  25865. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25866. -cfgfile="${ofile}T"
  25867. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  25868. - $rm -f "$cfgfile"
  25869. - { $as_echo "$as_me:$LINENO: creating $ofile" >&5
  25870. -$as_echo "$as_me: creating $ofile" >&6;}
  25871. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25872. + 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"
  25873. + else
  25874. + if test "$host_cpu" = ia64; then
  25875. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  25876. + allow_undefined_flag="-z nodefs"
  25877. + 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"
  25878. + else
  25879. + # Determine the default libpath from the value encoded in an
  25880. + # empty executable.
  25881. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25882. +/* end confdefs.h. */
  25883. - cat <<__EOF__ >> "$cfgfile"
  25884. -#! $SHELL
  25885. +int
  25886. +main ()
  25887. +{
  25888. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  25889. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  25890. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25891. -#
  25892. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  25893. -# Free Software Foundation, Inc.
  25894. -#
  25895. -# This file is part of GNU Libtool:
  25896. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  25897. -#
  25898. -# This program is free software; you can redistribute it and/or modify
  25899. -# it under the terms of the GNU General Public License as published by
  25900. -# the Free Software Foundation; either version 2 of the License, or
  25901. -# (at your option) any later version.
  25902. -#
  25903. -# This program is distributed in the hope that it will be useful, but
  25904. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  25905. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25906. -# General Public License for more details.
  25907. -#
  25908. -# You should have received a copy of the GNU General Public License
  25909. -# along with this program; if not, write to the Free Software
  25910. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  25911. -#
  25912. -# As a special exception to the GNU General Public License, if you
  25913. -# distribute this file as part of a program that contains a
  25914. -# configuration script generated by Autoconf, you may include it under
  25915. -# the same distribution terms that you use for the rest of that program.
  25916. + ;
  25917. + return 0;
  25918. +}
  25919. +_ACEOF
  25920. +if ac_fn_c_try_link "$LINENO"; then :
  25921. -# A sed program that does not truncate output.
  25922. -SED=$lt_SED
  25923. -
  25924. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25925. -Xsed="$SED -e 1s/^X//"
  25926. -
  25927. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  25928. -# if CDPATH is set.
  25929. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25930. -
  25931. -# The names of the tagged configurations supported by this script.
  25932. -available_tags=
  25933. -
  25934. -# ### BEGIN LIBTOOL CONFIG
  25935. -
  25936. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25937. -
  25938. -# Shell to use when invoking shell scripts.
  25939. -SHELL=$lt_SHELL
  25940. -
  25941. -# Whether or not to build shared libraries.
  25942. -build_libtool_libs=$enable_shared
  25943. -
  25944. -# Whether or not to build static libraries.
  25945. -build_old_libs=$enable_static
  25946. -
  25947. -# Whether or not to add -lc for building shared libraries.
  25948. -build_libtool_need_lc=$archive_cmds_need_lc
  25949. +lt_aix_libpath_sed='
  25950. + /Import File Strings/,/^$/ {
  25951. + /^0/ {
  25952. + s/^0 *\(.*\)$/\1/
  25953. + p
  25954. + }
  25955. + }'
  25956. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25957. +# Check for a 64-bit object if we didn't find anything.
  25958. +if test -z "$aix_libpath"; then
  25959. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25960. +fi
  25961. +fi
  25962. +rm -f core conftest.err conftest.$ac_objext \
  25963. + conftest$ac_exeext conftest.$ac_ext
  25964. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25965. -# Whether or not to disallow shared libs when runtime libs are static
  25966. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25967. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25968. + # Warning - without using the other run time loading flags,
  25969. + # -berok will link without error, but may produce a broken library.
  25970. + no_undefined_flag=' ${wl}-bernotok'
  25971. + allow_undefined_flag=' ${wl}-berok'
  25972. + # Exported symbols can be pulled into shared objects from archives
  25973. + whole_archive_flag_spec='$convenience'
  25974. + archive_cmds_need_lc=yes
  25975. + # This is similar to how AIX traditionally builds its shared libraries.
  25976. + 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'
  25977. + fi
  25978. + fi
  25979. + ;;
  25980. -# Whether or not to optimize for fast installation.
  25981. -fast_install=$enable_fast_install
  25982. + amigaos*)
  25983. + case $host_cpu in
  25984. + powerpc)
  25985. + # see comment about AmigaOS4 .so support
  25986. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25987. + archive_expsym_cmds=''
  25988. + ;;
  25989. + m68k)
  25990. + 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)'
  25991. + hardcode_libdir_flag_spec='-L$libdir'
  25992. + hardcode_minus_L=yes
  25993. + ;;
  25994. + esac
  25995. + ;;
  25996. -# The host system.
  25997. -host_alias=$host_alias
  25998. -host=$host
  25999. -host_os=$host_os
  26000. + bsdi[45]*)
  26001. + export_dynamic_flag_spec=-rdynamic
  26002. + ;;
  26003. -# The build system.
  26004. -build_alias=$build_alias
  26005. -build=$build
  26006. -build_os=$build_os
  26007. + cygwin* | mingw* | pw32* | cegcc*)
  26008. + # When not using gcc, we currently assume that we are using
  26009. + # Microsoft Visual C++.
  26010. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  26011. + # no search path for DLLs.
  26012. + hardcode_libdir_flag_spec=' '
  26013. + allow_undefined_flag=unsupported
  26014. + # Tell ltmain to make .lib files, not .a files.
  26015. + libext=lib
  26016. + # Tell ltmain to make .dll files, not .so files.
  26017. + shrext_cmds=".dll"
  26018. + # FIXME: Setting linknames here is a bad hack.
  26019. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  26020. + # The linker will automatically build a .lib file if we build a DLL.
  26021. + old_archive_from_new_cmds='true'
  26022. + # FIXME: Should let the user specify the lib program.
  26023. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  26024. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  26025. + enable_shared_with_static_runtimes=yes
  26026. + ;;
  26027. -# An echo program that does not interpret backslashes.
  26028. -echo=$lt_echo
  26029. + darwin* | rhapsody*)
  26030. -# The archiver.
  26031. -AR=$lt_AR
  26032. -AR_FLAGS=$lt_AR_FLAGS
  26033. -# A C compiler.
  26034. -LTCC=$lt_LTCC
  26035. + archive_cmds_need_lc=no
  26036. + hardcode_direct=no
  26037. + hardcode_automatic=yes
  26038. + hardcode_shlibpath_var=unsupported
  26039. + whole_archive_flag_spec=''
  26040. + link_all_deplibs=yes
  26041. + allow_undefined_flag="$_lt_dar_allow_undefined"
  26042. + case $cc_basename in
  26043. + ifort*) _lt_dar_can_shared=yes ;;
  26044. + *) _lt_dar_can_shared=$GCC ;;
  26045. + esac
  26046. + if test "$_lt_dar_can_shared" = "yes"; then
  26047. + output_verbose_link_cmd=echo
  26048. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  26049. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  26050. + 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}"
  26051. + 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}"
  26052. -# LTCC compiler flags.
  26053. -LTCFLAGS=$lt_LTCFLAGS
  26054. + else
  26055. + ld_shlibs=no
  26056. + fi
  26057. -# A language-specific compiler.
  26058. -CC=$lt_compiler
  26059. + ;;
  26060. -# Is the compiler the GNU C compiler?
  26061. -with_gcc=$GCC
  26062. + dgux*)
  26063. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26064. + hardcode_libdir_flag_spec='-L$libdir'
  26065. + hardcode_shlibpath_var=no
  26066. + ;;
  26067. -# An ERE matcher.
  26068. -EGREP=$lt_EGREP
  26069. + freebsd1*)
  26070. + ld_shlibs=no
  26071. + ;;
  26072. -# The linker used to build libraries.
  26073. -LD=$lt_LD
  26074. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  26075. + # support. Future versions do this automatically, but an explicit c++rt0.o
  26076. + # does not break anything, and helps significantly (at the cost of a little
  26077. + # extra space).
  26078. + freebsd2.2*)
  26079. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  26080. + hardcode_libdir_flag_spec='-R$libdir'
  26081. + hardcode_direct=yes
  26082. + hardcode_shlibpath_var=no
  26083. + ;;
  26084. -# Whether we need hard or soft links.
  26085. -LN_S=$lt_LN_S
  26086. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  26087. + freebsd2*)
  26088. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26089. + hardcode_direct=yes
  26090. + hardcode_minus_L=yes
  26091. + hardcode_shlibpath_var=no
  26092. + ;;
  26093. -# A BSD-compatible nm program.
  26094. -NM=$lt_NM
  26095. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  26096. + freebsd* | dragonfly*)
  26097. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  26098. + hardcode_libdir_flag_spec='-R$libdir'
  26099. + hardcode_direct=yes
  26100. + hardcode_shlibpath_var=no
  26101. + ;;
  26102. -# A symbol stripping program
  26103. -STRIP=$lt_STRIP
  26104. + hpux9*)
  26105. + if test "$GCC" = yes; then
  26106. + 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'
  26107. + else
  26108. + 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'
  26109. + fi
  26110. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26111. + hardcode_libdir_separator=:
  26112. + hardcode_direct=yes
  26113. -# Used to examine libraries when file_magic_cmd begins "file"
  26114. -MAGIC_CMD=$MAGIC_CMD
  26115. + # hardcode_minus_L: Not really in the search PATH,
  26116. + # but as the default location of the library.
  26117. + hardcode_minus_L=yes
  26118. + export_dynamic_flag_spec='${wl}-E'
  26119. + ;;
  26120. -# Used on cygwin: DLL creation program.
  26121. -DLLTOOL="$DLLTOOL"
  26122. + hpux10*)
  26123. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26124. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26125. + else
  26126. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26127. + fi
  26128. + if test "$with_gnu_ld" = no; then
  26129. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26130. + hardcode_libdir_flag_spec_ld='+b $libdir'
  26131. + hardcode_libdir_separator=:
  26132. + hardcode_direct=yes
  26133. + hardcode_direct_absolute=yes
  26134. + export_dynamic_flag_spec='${wl}-E'
  26135. + # hardcode_minus_L: Not really in the search PATH,
  26136. + # but as the default location of the library.
  26137. + hardcode_minus_L=yes
  26138. + fi
  26139. + ;;
  26140. +
  26141. + hpux11*)
  26142. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26143. + case $host_cpu in
  26144. + hppa*64*)
  26145. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26146. + ;;
  26147. + ia64*)
  26148. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26149. + ;;
  26150. + *)
  26151. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26152. + ;;
  26153. + esac
  26154. + else
  26155. + case $host_cpu in
  26156. + hppa*64*)
  26157. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26158. + ;;
  26159. + ia64*)
  26160. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26161. + ;;
  26162. + *)
  26163. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26164. + ;;
  26165. + esac
  26166. + fi
  26167. + if test "$with_gnu_ld" = no; then
  26168. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26169. + hardcode_libdir_separator=:
  26170. +
  26171. + case $host_cpu in
  26172. + hppa*64*|ia64*)
  26173. + hardcode_direct=no
  26174. + hardcode_shlibpath_var=no
  26175. + ;;
  26176. + *)
  26177. + hardcode_direct=yes
  26178. + hardcode_direct_absolute=yes
  26179. + export_dynamic_flag_spec='${wl}-E'
  26180. +
  26181. + # hardcode_minus_L: Not really in the search PATH,
  26182. + # but as the default location of the library.
  26183. + hardcode_minus_L=yes
  26184. + ;;
  26185. + esac
  26186. + fi
  26187. + ;;
  26188. +
  26189. + irix5* | irix6* | nonstopux*)
  26190. + if test "$GCC" = yes; then
  26191. + 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'
  26192. + # Try to use the -exported_symbol ld option, if it does not
  26193. + # work, assume that -exports_file does not work either and
  26194. + # implicitly export all symbols.
  26195. + save_LDFLAGS="$LDFLAGS"
  26196. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  26197. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26198. +/* end confdefs.h. */
  26199. +int foo(void) {}
  26200. +_ACEOF
  26201. +if ac_fn_c_try_link "$LINENO"; then :
  26202. + 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'
  26203. +
  26204. +fi
  26205. +rm -f core conftest.err conftest.$ac_objext \
  26206. + conftest$ac_exeext conftest.$ac_ext
  26207. + LDFLAGS="$save_LDFLAGS"
  26208. + else
  26209. + 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'
  26210. + 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'
  26211. + fi
  26212. + archive_cmds_need_lc='no'
  26213. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26214. + hardcode_libdir_separator=:
  26215. + inherit_rpath=yes
  26216. + link_all_deplibs=yes
  26217. + ;;
  26218. +
  26219. + netbsd* | netbsdelf*-gnu)
  26220. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  26221. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  26222. + else
  26223. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  26224. + fi
  26225. + hardcode_libdir_flag_spec='-R$libdir'
  26226. + hardcode_direct=yes
  26227. + hardcode_shlibpath_var=no
  26228. + ;;
  26229. +
  26230. + newsos6)
  26231. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26232. + hardcode_direct=yes
  26233. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26234. + hardcode_libdir_separator=:
  26235. + hardcode_shlibpath_var=no
  26236. + ;;
  26237. +
  26238. + *nto* | *qnx*)
  26239. + ;;
  26240. +
  26241. + openbsd*)
  26242. + if test -f /usr/libexec/ld.so; then
  26243. + hardcode_direct=yes
  26244. + hardcode_shlibpath_var=no
  26245. + hardcode_direct_absolute=yes
  26246. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26247. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26248. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  26249. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26250. + export_dynamic_flag_spec='${wl}-E'
  26251. + else
  26252. + case $host_os in
  26253. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  26254. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26255. + hardcode_libdir_flag_spec='-R$libdir'
  26256. + ;;
  26257. + *)
  26258. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26259. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26260. + ;;
  26261. + esac
  26262. + fi
  26263. + else
  26264. + ld_shlibs=no
  26265. + fi
  26266. + ;;
  26267. +
  26268. + os2*)
  26269. + hardcode_libdir_flag_spec='-L$libdir'
  26270. + hardcode_minus_L=yes
  26271. + allow_undefined_flag=unsupported
  26272. + 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'
  26273. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  26274. + ;;
  26275. +
  26276. + osf3*)
  26277. + if test "$GCC" = yes; then
  26278. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26279. + 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'
  26280. + else
  26281. + allow_undefined_flag=' -expect_unresolved \*'
  26282. + 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'
  26283. + fi
  26284. + archive_cmds_need_lc='no'
  26285. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26286. + hardcode_libdir_separator=:
  26287. + ;;
  26288. +
  26289. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  26290. + if test "$GCC" = yes; then
  26291. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26292. + 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'
  26293. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26294. + else
  26295. + allow_undefined_flag=' -expect_unresolved \*'
  26296. + 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'
  26297. + 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~
  26298. + $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'
  26299. +
  26300. + # Both c and cxx compiler support -rpath directly
  26301. + hardcode_libdir_flag_spec='-rpath $libdir'
  26302. + fi
  26303. + archive_cmds_need_lc='no'
  26304. + hardcode_libdir_separator=:
  26305. + ;;
  26306. +
  26307. + solaris*)
  26308. + no_undefined_flag=' -z defs'
  26309. + if test "$GCC" = yes; then
  26310. + wlarc='${wl}'
  26311. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26312. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26313. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  26314. + else
  26315. + case `$CC -V 2>&1` in
  26316. + *"Compilers 5.0"*)
  26317. + wlarc=''
  26318. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26319. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26320. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  26321. + ;;
  26322. + *)
  26323. + wlarc='${wl}'
  26324. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26325. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26326. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  26327. + ;;
  26328. + esac
  26329. + fi
  26330. + hardcode_libdir_flag_spec='-R$libdir'
  26331. + hardcode_shlibpath_var=no
  26332. + case $host_os in
  26333. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  26334. + *)
  26335. + # The compiler driver will combine and reorder linker options,
  26336. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  26337. + # but is careful enough not to reorder.
  26338. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  26339. + if test "$GCC" = yes; then
  26340. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  26341. + else
  26342. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  26343. + fi
  26344. + ;;
  26345. + esac
  26346. + link_all_deplibs=yes
  26347. + ;;
  26348. +
  26349. + sunos4*)
  26350. + if test "x$host_vendor" = xsequent; then
  26351. + # Use $CC to link under sequent, because it throws in some extra .o
  26352. + # files that make .init and .fini sections work.
  26353. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26354. + else
  26355. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  26356. + fi
  26357. + hardcode_libdir_flag_spec='-L$libdir'
  26358. + hardcode_direct=yes
  26359. + hardcode_minus_L=yes
  26360. + hardcode_shlibpath_var=no
  26361. + ;;
  26362. +
  26363. + sysv4)
  26364. + case $host_vendor in
  26365. + sni)
  26366. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26367. + hardcode_direct=yes # is this really true???
  26368. + ;;
  26369. + siemens)
  26370. + ## LD is ld it makes a PLAMLIB
  26371. + ## CC just makes a GrossModule.
  26372. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26373. + reload_cmds='$CC -r -o $output$reload_objs'
  26374. + hardcode_direct=no
  26375. + ;;
  26376. + motorola)
  26377. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26378. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  26379. + ;;
  26380. + esac
  26381. + runpath_var='LD_RUN_PATH'
  26382. + hardcode_shlibpath_var=no
  26383. + ;;
  26384. +
  26385. + sysv4.3*)
  26386. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26387. + hardcode_shlibpath_var=no
  26388. + export_dynamic_flag_spec='-Bexport'
  26389. + ;;
  26390. +
  26391. + sysv4*MP*)
  26392. + if test -d /usr/nec; then
  26393. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26394. + hardcode_shlibpath_var=no
  26395. + runpath_var=LD_RUN_PATH
  26396. + hardcode_runpath_var=yes
  26397. + ld_shlibs=yes
  26398. + fi
  26399. + ;;
  26400. +
  26401. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  26402. + no_undefined_flag='${wl}-z,text'
  26403. + archive_cmds_need_lc=no
  26404. + hardcode_shlibpath_var=no
  26405. + runpath_var='LD_RUN_PATH'
  26406. +
  26407. + if test "$GCC" = yes; then
  26408. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26409. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26410. + else
  26411. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26412. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26413. + fi
  26414. + ;;
  26415. +
  26416. + sysv5* | sco3.2v5* | sco5v6*)
  26417. + # Note: We can NOT use -z defs as we might desire, because we do not
  26418. + # link with -lc, and that would cause any symbols used from libc to
  26419. + # always be unresolved, which means just about no library would
  26420. + # ever link correctly. If we're not using GNU ld we use -z text
  26421. + # though, which does catch some bad symbols but isn't as heavy-handed
  26422. + # as -z defs.
  26423. + no_undefined_flag='${wl}-z,text'
  26424. + allow_undefined_flag='${wl}-z,nodefs'
  26425. + archive_cmds_need_lc=no
  26426. + hardcode_shlibpath_var=no
  26427. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  26428. + hardcode_libdir_separator=':'
  26429. + link_all_deplibs=yes
  26430. + export_dynamic_flag_spec='${wl}-Bexport'
  26431. + runpath_var='LD_RUN_PATH'
  26432. +
  26433. + if test "$GCC" = yes; then
  26434. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26435. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26436. + else
  26437. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26438. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26439. + fi
  26440. + ;;
  26441. +
  26442. + uts4*)
  26443. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26444. + hardcode_libdir_flag_spec='-L$libdir'
  26445. + hardcode_shlibpath_var=no
  26446. + ;;
  26447. +
  26448. + *)
  26449. + ld_shlibs=no
  26450. + ;;
  26451. + esac
  26452. +
  26453. + if test x$host_vendor = xsni; then
  26454. + case $host in
  26455. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  26456. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  26457. + ;;
  26458. + esac
  26459. + fi
  26460. + fi
  26461. +
  26462. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  26463. +$as_echo "$ld_shlibs" >&6; }
  26464. +test "$ld_shlibs" = no && can_build_shared=no
  26465. +
  26466. +with_gnu_ld=$with_gnu_ld
  26467. +
  26468. +
  26469. +
  26470. +
  26471. +
  26472. +
  26473. +
  26474. +
  26475. +
  26476. +
  26477. +
  26478. +
  26479. +
  26480. +
  26481. +
  26482. +#
  26483. +# Do we need to explicitly link libc?
  26484. +#
  26485. +case "x$archive_cmds_need_lc" in
  26486. +x|xyes)
  26487. + # Assume -lc should be added
  26488. + archive_cmds_need_lc=yes
  26489. +
  26490. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  26491. + case $archive_cmds in
  26492. + *'~'*)
  26493. + # FIXME: we may have to deal with multi-command sequences.
  26494. + ;;
  26495. + '$CC '*)
  26496. + # Test whether the compiler implicitly links with -lc since on some
  26497. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  26498. + # to ld, don't add -lc before -lgcc.
  26499. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  26500. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  26501. + $RM conftest*
  26502. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26503. +
  26504. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  26505. + (eval $ac_compile) 2>&5
  26506. + ac_status=$?
  26507. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26508. + test $ac_status = 0; } 2>conftest.err; then
  26509. + soname=conftest
  26510. + lib=conftest
  26511. + libobjs=conftest.$ac_objext
  26512. + deplibs=
  26513. + wl=$lt_prog_compiler_wl
  26514. + pic_flag=$lt_prog_compiler_pic
  26515. + compiler_flags=-v
  26516. + linker_flags=-v
  26517. + verstring=
  26518. + output_objdir=.
  26519. + libname=conftest
  26520. + lt_save_allow_undefined_flag=$allow_undefined_flag
  26521. + allow_undefined_flag=
  26522. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  26523. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  26524. + ac_status=$?
  26525. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26526. + test $ac_status = 0; }
  26527. + then
  26528. + archive_cmds_need_lc=no
  26529. + else
  26530. + archive_cmds_need_lc=yes
  26531. + fi
  26532. + allow_undefined_flag=$lt_save_allow_undefined_flag
  26533. + else
  26534. + cat conftest.err 1>&5
  26535. + fi
  26536. + $RM conftest*
  26537. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  26538. +$as_echo "$archive_cmds_need_lc" >&6; }
  26539. + ;;
  26540. + esac
  26541. + fi
  26542. + ;;
  26543. +esac
  26544. -# Used on cygwin: object dumper.
  26545. -OBJDUMP="$OBJDUMP"
  26546. -# Used on cygwin: assembler.
  26547. -AS="$AS"
  26548. -# The name of the directory that contains temporary libtool files.
  26549. -objdir=$objdir
  26550. -# How to create reloadable object files.
  26551. -reload_flag=$lt_reload_flag
  26552. -reload_cmds=$lt_reload_cmds
  26553. -# How to pass a linker flag through the compiler.
  26554. -wl=$lt_lt_prog_compiler_wl
  26555. -# Object file suffix (normally "o").
  26556. -objext="$ac_objext"
  26557. -# Old archive suffix (normally "a").
  26558. -libext="$libext"
  26559. -# Shared library suffix (normally ".so").
  26560. -shrext_cmds='$shrext_cmds'
  26561. -# Executable file suffix (normally "").
  26562. -exeext="$exeext"
  26563. -
  26564. -# Additional compiler flags for building library objects.
  26565. -pic_flag=$lt_lt_prog_compiler_pic
  26566. -pic_mode=$pic_mode
  26567. -
  26568. -# What is the maximum length of a command?
  26569. -max_cmd_len=$lt_cv_sys_max_cmd_len
  26570. -
  26571. -# Does compiler simultaneously support -c and -o options?
  26572. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26573. -
  26574. -# Must we lock files when doing compilation?
  26575. -need_locks=$lt_need_locks
  26576. -# Do we need the lib prefix for modules?
  26577. -need_lib_prefix=$need_lib_prefix
  26578. -# Do we need a version for libraries?
  26579. -need_version=$need_version
  26580. -# Whether dlopen is supported.
  26581. -dlopen_support=$enable_dlopen
  26582. -# Whether dlopen of programs is supported.
  26583. -dlopen_self=$enable_dlopen_self
  26584. -# Whether dlopen of statically linked programs is supported.
  26585. -dlopen_self_static=$enable_dlopen_self_static
  26586. -# Compiler flag to prevent dynamic linking.
  26587. -link_static_flag=$lt_lt_prog_compiler_static
  26588. -# Compiler flag to turn off builtin functions.
  26589. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26590. -# Compiler flag to allow reflexive dlopens.
  26591. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26592. -# Compiler flag to generate shared objects directly from archives.
  26593. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26594. -# Compiler flag to generate thread-safe objects.
  26595. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  26596. -# Library versioning type.
  26597. -version_type=$version_type
  26598. -# Format of library name prefix.
  26599. -libname_spec=$lt_libname_spec
  26600. -# List of archive names. First name is the real one, the rest are links.
  26601. -# The last name is the one that the linker finds with -lNAME.
  26602. -library_names_spec=$lt_library_names_spec
  26603. -# The coded name of the library, if different from the real name.
  26604. -soname_spec=$lt_soname_spec
  26605. -# Commands used to build and install an old-style archive.
  26606. -RANLIB=$lt_RANLIB
  26607. -old_archive_cmds=$lt_old_archive_cmds
  26608. -old_postinstall_cmds=$lt_old_postinstall_cmds
  26609. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26610. -# Create an old-style archive from a shared archive.
  26611. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26612. -# Create a temporary old-style archive to link instead of a shared archive.
  26613. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26614. -# Commands used to build and install a shared archive.
  26615. -archive_cmds=$lt_archive_cmds
  26616. -archive_expsym_cmds=$lt_archive_expsym_cmds
  26617. -postinstall_cmds=$lt_postinstall_cmds
  26618. -postuninstall_cmds=$lt_postuninstall_cmds
  26619. -# Commands used to build a loadable module (assumed same as above if empty)
  26620. -module_cmds=$lt_module_cmds
  26621. -module_expsym_cmds=$lt_module_expsym_cmds
  26622. -# Commands to strip libraries.
  26623. -old_striplib=$lt_old_striplib
  26624. -striplib=$lt_striplib
  26625. -# Dependencies to place before the objects being linked to create a
  26626. -# shared library.
  26627. -predep_objects=$lt_predep_objects
  26628. -
  26629. -# Dependencies to place after the objects being linked to create a
  26630. -# shared library.
  26631. -postdep_objects=$lt_postdep_objects
  26632. -
  26633. -# Dependencies to place before the objects being linked to create a
  26634. -# shared library.
  26635. -predeps=$lt_predeps
  26636. -
  26637. -# Dependencies to place after the objects being linked to create a
  26638. -# shared library.
  26639. -postdeps=$lt_postdeps
  26640. -
  26641. -# The directories searched by this compiler when creating a shared
  26642. -# library
  26643. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26644. -
  26645. -# The library search path used internally by the compiler when linking
  26646. -# a shared library.
  26647. -compiler_lib_search_path=$lt_compiler_lib_search_path
  26648. -# Method to check whether dependent libraries are shared objects.
  26649. -deplibs_check_method=$lt_deplibs_check_method
  26650. -# Command to use when deplibs_check_method == file_magic.
  26651. -file_magic_cmd=$lt_file_magic_cmd
  26652. -# Flag that allows shared libraries with undefined symbols to be built.
  26653. -allow_undefined_flag=$lt_allow_undefined_flag
  26654. -# Flag that forces no undefined symbols.
  26655. -no_undefined_flag=$lt_no_undefined_flag
  26656. -# Commands used to finish a libtool library installation in a directory.
  26657. -finish_cmds=$lt_finish_cmds
  26658. -# Same as above, but a single script fragment to be evaled but not shown.
  26659. -finish_eval=$lt_finish_eval
  26660. -# Take the output of nm and produce a listing of raw symbols and C names.
  26661. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26662. -# Transform the output of nm in a proper C declaration
  26663. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26664. -# Transform the output of nm in a C name address pair
  26665. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26666. -# This is the shared library runtime path variable.
  26667. -runpath_var=$runpath_var
  26668. -# This is the shared library path variable.
  26669. -shlibpath_var=$shlibpath_var
  26670. -# Is shlibpath searched before the hard-coded library search path?
  26671. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26672. -# How to hardcode a shared library path into an executable.
  26673. -hardcode_action=$hardcode_action
  26674. -# Whether we should hardcode library paths into libraries.
  26675. -hardcode_into_libs=$hardcode_into_libs
  26676. -# Flag to hardcode \$libdir into a binary during linking.
  26677. -# This must work even if \$libdir does not exist.
  26678. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26679. -# If ld is used when linking, flag to hardcode \$libdir into
  26680. -# a binary during linking. This must work even if \$libdir does
  26681. -# not exist.
  26682. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  26683. -# Whether we need a single -rpath flag with a separated argument.
  26684. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26685. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26686. -# resulting binary.
  26687. -hardcode_direct=$hardcode_direct
  26688. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26689. -# resulting binary.
  26690. -hardcode_minus_L=$hardcode_minus_L
  26691. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26692. -# the resulting binary.
  26693. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  26694. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  26695. -# and all subsequent libraries and executables linked against it.
  26696. -hardcode_automatic=$hardcode_automatic
  26697. -# Variables whose values should be saved in libtool wrapper scripts and
  26698. -# restored at relink time.
  26699. -variables_saved_for_relink="$variables_saved_for_relink"
  26700. -# Whether libtool must link a program against all its dependency libraries.
  26701. -link_all_deplibs=$link_all_deplibs
  26702. -# Compile-time system search path for libraries
  26703. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26704. -# Run-time system search path for libraries
  26705. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26706. -# Fix the shell variable \$srcfile for the compiler.
  26707. -fix_srcfile_path=$lt_fix_srcfile_path
  26708. -# Set to yes if exported symbols are required.
  26709. -always_export_symbols=$always_export_symbols
  26710. -# The commands to list exported symbols.
  26711. -export_symbols_cmds=$lt_export_symbols_cmds
  26712. -# The commands to extract the exported symbol list from a shared archive.
  26713. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26714. -# Symbols that should not be listed in the preloaded symbols.
  26715. -exclude_expsyms=$lt_exclude_expsyms
  26716. -# Symbols that must always be exported.
  26717. -include_expsyms=$lt_include_expsyms
  26718. -# ### END LIBTOOL CONFIG
  26719. -__EOF__
  26720. - case $host_os in
  26721. - aix3*)
  26722. - cat <<\EOF >> "$cfgfile"
  26723. -# AIX sometimes has problems with the GCC collect2 program. For some
  26724. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  26725. -# vanish in a puff of smoke.
  26726. -if test "X${COLLECT_NAMES+set}" != Xset; then
  26727. - COLLECT_NAMES=
  26728. - export COLLECT_NAMES
  26729. -fi
  26730. -EOF
  26731. - ;;
  26732. - esac
  26733. - # We use sed instead of cat because bash on DJGPP gets confused if
  26734. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26735. - # text mode, it properly converts lines to CR/LF. This bash problem
  26736. - # is reportedly fixed, but why not run on old versions too?
  26737. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  26738. - mv -f "$cfgfile" "$ofile" || \
  26739. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26740. - chmod +x "$ofile"
  26741. -else
  26742. - # If there is no Makefile yet, we rely on a make rule to execute
  26743. - # `config.status --recheck' to rerun these tests and create the
  26744. - # libtool script then.
  26745. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  26746. - if test -f "$ltmain_in"; then
  26747. - test -f Makefile && make "$ltmain"
  26748. - fi
  26749. -fi
  26750. -ac_ext=c
  26751. -ac_cpp='$CPP $CPPFLAGS'
  26752. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26753. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26754. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26755. -CC="$lt_save_CC"
  26756. -# Check whether --with-tags was given.
  26757. -if test "${with_tags+set}" = set; then
  26758. - withval=$with_tags; tagnames="$withval"
  26759. -fi
  26760. -if test -f "$ltmain" && test -n "$tagnames"; then
  26761. - if test ! -f "${ofile}"; then
  26762. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  26763. -$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  26764. - fi
  26765. - if test -z "$LTCC"; then
  26766. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  26767. - if test -z "$LTCC"; then
  26768. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  26769. -$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  26770. - else
  26771. - { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  26772. -$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  26773. - fi
  26774. - fi
  26775. - if test -z "$LTCFLAGS"; then
  26776. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  26777. - fi
  26778. - # Extract list of available tagged configurations in $ofile.
  26779. - # Note that this assumes the entire list is on one line.
  26780. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  26781. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26782. - for tagname in $tagnames; do
  26783. - IFS="$lt_save_ifs"
  26784. - # Check whether tagname contains only valid characters
  26785. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  26786. - "") ;;
  26787. - *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  26788. -$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
  26789. - { (exit 1); exit 1; }; }
  26790. - ;;
  26791. - esac
  26792. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  26793. - then
  26794. - { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  26795. -$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  26796. - { (exit 1); exit 1; }; }
  26797. - fi
  26798. - # Update the list of available tags.
  26799. - if test -n "$tagname"; then
  26800. - echo appending configuration tag \"$tagname\" to $ofile
  26801. -
  26802. - case $tagname in
  26803. - CXX)
  26804. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  26805. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  26806. - (test "X$CXX" != "Xg++"))) ; then
  26807. - ac_ext=cpp
  26808. -ac_cpp='$CXXCPP $CPPFLAGS'
  26809. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26810. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26811. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26812. -archive_cmds_need_lc_CXX=no
  26813. -allow_undefined_flag_CXX=
  26814. -always_export_symbols_CXX=no
  26815. -archive_expsym_cmds_CXX=
  26816. -export_dynamic_flag_spec_CXX=
  26817. -hardcode_direct_CXX=no
  26818. -hardcode_libdir_flag_spec_CXX=
  26819. -hardcode_libdir_flag_spec_ld_CXX=
  26820. -hardcode_libdir_separator_CXX=
  26821. -hardcode_minus_L_CXX=no
  26822. -hardcode_shlibpath_var_CXX=unsupported
  26823. -hardcode_automatic_CXX=no
  26824. -module_cmds_CXX=
  26825. -module_expsym_cmds_CXX=
  26826. -link_all_deplibs_CXX=unknown
  26827. -old_archive_cmds_CXX=$old_archive_cmds
  26828. -no_undefined_flag_CXX=
  26829. -whole_archive_flag_spec_CXX=
  26830. -enable_shared_with_static_runtimes_CXX=no
  26831. -
  26832. -# Dependencies to place before and after the object being linked:
  26833. -predep_objects_CXX=
  26834. -postdep_objects_CXX=
  26835. -predeps_CXX=
  26836. -postdeps_CXX=
  26837. -compiler_lib_search_path_CXX=
  26838. -compiler_lib_search_dirs_CXX=
  26839. -# Source file extension for C++ test sources.
  26840. -ac_ext=cpp
  26841. -# Object file extension for compiled C++ test sources.
  26842. -objext=o
  26843. -objext_CXX=$objext
  26844. -# Code to be used in simple compile tests
  26845. -lt_simple_compile_test_code="int some_variable = 0;"
  26846. -# Code to be used in simple link tests
  26847. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  26848. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26849. -# If no C compiler was specified, use CC.
  26850. -LTCC=${LTCC-"$CC"}
  26851. -# If no C compiler flags were specified, use CFLAGS.
  26852. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26853. -# Allow CC to be a program name with arguments.
  26854. -compiler=$CC
  26855. -# save warnings/boilerplate of simple test code
  26856. -ac_outfile=conftest.$ac_objext
  26857. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  26858. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26859. -_lt_compiler_boilerplate=`cat conftest.err`
  26860. -$rm conftest*
  26861. -ac_outfile=conftest.$ac_objext
  26862. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  26863. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26864. -_lt_linker_boilerplate=`cat conftest.err`
  26865. -$rm -r conftest*
  26866. -# Allow CC to be a program name with arguments.
  26867. -lt_save_CC=$CC
  26868. -lt_save_LD=$LD
  26869. -lt_save_GCC=$GCC
  26870. -GCC=$GXX
  26871. -lt_save_with_gnu_ld=$with_gnu_ld
  26872. -lt_save_path_LD=$lt_cv_path_LD
  26873. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  26874. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  26875. -else
  26876. - $as_unset lt_cv_prog_gnu_ld
  26877. -fi
  26878. -if test -n "${lt_cv_path_LDCXX+set}"; then
  26879. - lt_cv_path_LD=$lt_cv_path_LDCXX
  26880. -else
  26881. - $as_unset lt_cv_path_LD
  26882. -fi
  26883. -test -z "${LDCXX+set}" || LD=$LDCXX
  26884. -CC=${CXX-"c++"}
  26885. -compiler=$CC
  26886. -compiler_CXX=$CC
  26887. -for cc_temp in $compiler""; do
  26888. - case $cc_temp in
  26889. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26890. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26891. - \-*) ;;
  26892. - *) break;;
  26893. - esac
  26894. -done
  26895. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26896. -# We don't want -fno-exception wen compiling C++ code, so set the
  26897. -# no_builtin_flag separately
  26898. -if test "$GXX" = yes; then
  26899. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  26900. -else
  26901. - lt_prog_compiler_no_builtin_flag_CXX=
  26902. -fi
  26903. -if test "$GXX" = yes; then
  26904. - # Set up default GNU C++ configuration
  26905. -# Check whether --with-gnu-ld was given.
  26906. -if test "${with_gnu_ld+set}" = set; then
  26907. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  26908. -else
  26909. - with_gnu_ld=no
  26910. -fi
  26911. -ac_prog=ld
  26912. -if test "$GCC" = yes; then
  26913. - # Check if gcc -print-prog-name=ld gives a path.
  26914. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  26915. -$as_echo_n "checking for ld used by $CC... " >&6; }
  26916. - case $host in
  26917. - *-*-mingw*)
  26918. - # gcc leaves a trailing carriage return which upsets mingw
  26919. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  26920. - *)
  26921. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  26922. - esac
  26923. - case $ac_prog in
  26924. - # Accept absolute paths.
  26925. - [\\/]* | ?:[\\/]*)
  26926. - re_direlt='/[^/][^/]*/\.\./'
  26927. - # Canonicalize the pathname of ld
  26928. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  26929. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  26930. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  26931. - done
  26932. - test -z "$LD" && LD="$ac_prog"
  26933. - ;;
  26934. - "")
  26935. - # If it fails, then pretend we aren't using GCC.
  26936. - ac_prog=ld
  26937. - ;;
  26938. - *)
  26939. - # If it is relative, then search for the first ld in PATH.
  26940. - with_gnu_ld=unknown
  26941. - ;;
  26942. - esac
  26943. -elif test "$with_gnu_ld" = yes; then
  26944. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  26945. -$as_echo_n "checking for GNU ld... " >&6; }
  26946. -else
  26947. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  26948. -$as_echo_n "checking for non-GNU ld... " >&6; }
  26949. -fi
  26950. -if test "${lt_cv_path_LD+set}" = set; then
  26951. - $as_echo_n "(cached) " >&6
  26952. -else
  26953. - if test -z "$LD"; then
  26954. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26955. - for ac_dir in $PATH; do
  26956. - IFS="$lt_save_ifs"
  26957. - test -z "$ac_dir" && ac_dir=.
  26958. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  26959. - lt_cv_path_LD="$ac_dir/$ac_prog"
  26960. - # Check to see if the program is GNU ld. I'd rather use --version,
  26961. - # but apparently some variants of GNU ld only accept -v.
  26962. - # Break only if it was the GNU/non-GNU ld that we prefer.
  26963. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  26964. - *GNU* | *'with BFD'*)
  26965. - test "$with_gnu_ld" != no && break
  26966. - ;;
  26967. - *)
  26968. - test "$with_gnu_ld" != yes && break
  26969. - ;;
  26970. - esac
  26971. - fi
  26972. - done
  26973. - IFS="$lt_save_ifs"
  26974. -else
  26975. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  26976. -fi
  26977. -fi
  26978. -LD="$lt_cv_path_LD"
  26979. -if test -n "$LD"; then
  26980. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  26981. -$as_echo "$LD" >&6; }
  26982. -else
  26983. - { $as_echo "$as_me:$LINENO: result: no" >&5
  26984. -$as_echo "no" >&6; }
  26985. -fi
  26986. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  26987. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  26988. - { (exit 1); exit 1; }; }
  26989. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  26990. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  26991. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  26992. - $as_echo_n "(cached) " >&6
  26993. -else
  26994. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  26995. -case `$LD -v 2>&1 </dev/null` in
  26996. -*GNU* | *'with BFD'*)
  26997. - lt_cv_prog_gnu_ld=yes
  26998. - ;;
  26999. -*)
  27000. - lt_cv_prog_gnu_ld=no
  27001. - ;;
  27002. -esac
  27003. -fi
  27004. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  27005. -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  27006. -with_gnu_ld=$lt_cv_prog_gnu_ld
  27007. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  27008. - # archiving commands below assume that GNU ld is being used.
  27009. - if test "$with_gnu_ld" = yes; then
  27010. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27011. - 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'
  27012. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  27013. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27014. - # If archive_cmds runs LD, not CC, wlarc should be empty
  27015. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  27016. - # investigate it a little bit more. (MM)
  27017. - wlarc='${wl}'
  27018. - # ancient GNU ld didn't support --whole-archive et. al.
  27019. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  27020. - grep 'no-whole-archive' > /dev/null; then
  27021. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27022. - else
  27023. - whole_archive_flag_spec_CXX=
  27024. - fi
  27025. - else
  27026. - with_gnu_ld=no
  27027. - wlarc=
  27028. - # A generic and very simple default shared library creation
  27029. - # command for GNU C++ for the case where it uses the native
  27030. - # linker, instead of GNU ld. If possible, this setting should
  27031. - # overridden to take advantage of the native linker features on
  27032. - # the platform it is being used on.
  27033. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  27034. - fi
  27035. - # Commands to make compiler produce verbose output that lists
  27036. - # what "hidden" libraries, object files and flags are used when
  27037. - # linking a shared library.
  27038. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27039. -else
  27040. - GXX=no
  27041. - with_gnu_ld=no
  27042. - wlarc=
  27043. -fi
  27044. -# PORTME: fill in a description of your system's C++ link characteristics
  27045. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27046. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  27047. -ld_shlibs_CXX=yes
  27048. -case $host_os in
  27049. - aix3*)
  27050. - # FIXME: insert proper C++ library support
  27051. - ld_shlibs_CXX=no
  27052. - ;;
  27053. - aix[4-9]*)
  27054. - if test "$host_cpu" = ia64; then
  27055. - # On IA64, the linker does run time linking by default, so we don't
  27056. - # have to do anything special.
  27057. - aix_use_runtimelinking=no
  27058. - exp_sym_flag='-Bexport'
  27059. - no_entry_flag=""
  27060. - else
  27061. - aix_use_runtimelinking=no
  27062. - # Test if we are trying to use run time linking or normal
  27063. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27064. - # need to do runtime linking.
  27065. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  27066. - for ld_flag in $LDFLAGS; do
  27067. - case $ld_flag in
  27068. - *-brtl*)
  27069. - aix_use_runtimelinking=yes
  27070. - break
  27071. - ;;
  27072. - esac
  27073. - done
  27074. - ;;
  27075. - esac
  27076. - exp_sym_flag='-bexport'
  27077. - no_entry_flag='-bnoentry'
  27078. - fi
  27079. - # When large executables or shared objects are built, AIX ld can
  27080. - # have problems creating the table of contents. If linking a library
  27081. - # or program results in "error TOC overflow" add -mminimal-toc to
  27082. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  27083. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  27084. -
  27085. - archive_cmds_CXX=''
  27086. - hardcode_direct_CXX=yes
  27087. - hardcode_libdir_separator_CXX=':'
  27088. - link_all_deplibs_CXX=yes
  27089. -
  27090. - if test "$GXX" = yes; then
  27091. - case $host_os in aix4.[012]|aix4.[012].*)
  27092. - # We only want to do this on AIX 4.2 and lower, the check
  27093. - # below for broken collect2 doesn't work under 4.3+
  27094. - collect2name=`${CC} -print-prog-name=collect2`
  27095. - if test -f "$collect2name" && \
  27096. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27097. - then
  27098. - # We have reworked collect2
  27099. - :
  27100. - else
  27101. - # We have old collect2
  27102. - hardcode_direct_CXX=unsupported
  27103. - # It fails to find uninstalled libraries when the uninstalled
  27104. - # path is not listed in the libpath. Setting hardcode_minus_L
  27105. - # to unsupported forces relinking
  27106. - hardcode_minus_L_CXX=yes
  27107. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27108. - hardcode_libdir_separator_CXX=
  27109. - fi
  27110. - ;;
  27111. - esac
  27112. - shared_flag='-shared'
  27113. - if test "$aix_use_runtimelinking" = yes; then
  27114. - shared_flag="$shared_flag "'${wl}-G'
  27115. - fi
  27116. - else
  27117. - # not using gcc
  27118. - if test "$host_cpu" = ia64; then
  27119. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27120. - # chokes on -Wl,-G. The following line is correct:
  27121. - shared_flag='-G'
  27122. - else
  27123. - if test "$aix_use_runtimelinking" = yes; then
  27124. - shared_flag='${wl}-G'
  27125. - else
  27126. - shared_flag='${wl}-bM:SRE'
  27127. - fi
  27128. - fi
  27129. - fi
  27130. - # It seems that -bexpall does not export symbols beginning with
  27131. - # underscore (_), so it is better to generate a list of symbols to export.
  27132. - always_export_symbols_CXX=yes
  27133. - if test "$aix_use_runtimelinking" = yes; then
  27134. - # Warning - without using the other runtime loading flags (-brtl),
  27135. - # -berok will link without error, but may produce a broken library.
  27136. - allow_undefined_flag_CXX='-berok'
  27137. - # Determine the default libpath from the value encoded in an empty executable.
  27138. - cat >conftest.$ac_ext <<_ACEOF
  27139. -/* confdefs.h. */
  27140. -_ACEOF
  27141. -cat confdefs.h >>conftest.$ac_ext
  27142. -cat >>conftest.$ac_ext <<_ACEOF
  27143. -/* end confdefs.h. */
  27144. -int
  27145. -main ()
  27146. -{
  27147. - ;
  27148. - return 0;
  27149. -}
  27150. -_ACEOF
  27151. -rm -f conftest.$ac_objext conftest$ac_exeext
  27152. -if { (ac_try="$ac_link"
  27153. -case "(($ac_try" in
  27154. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27155. - *) ac_try_echo=$ac_try;;
  27156. -esac
  27157. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27158. -$as_echo "$ac_try_echo") >&5
  27159. - (eval "$ac_link") 2>conftest.er1
  27160. - ac_status=$?
  27161. - grep -v '^ *+' conftest.er1 >conftest.err
  27162. - rm -f conftest.er1
  27163. - cat conftest.err >&5
  27164. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27165. - (exit $ac_status); } && {
  27166. - test -z "$ac_cxx_werror_flag" ||
  27167. - test ! -s conftest.err
  27168. - } && test -s conftest$ac_exeext && {
  27169. - test "$cross_compiling" = yes ||
  27170. - $as_test_x conftest$ac_exeext
  27171. - }; then
  27172. -lt_aix_libpath_sed='
  27173. - /Import File Strings/,/^$/ {
  27174. - /^0/ {
  27175. - s/^0 *\(.*\)$/\1/
  27176. - p
  27177. - }
  27178. - }'
  27179. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27180. -# Check for a 64-bit object if we didn't find anything.
  27181. -if test -z "$aix_libpath"; then
  27182. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27183. -fi
  27184. -else
  27185. - $as_echo "$as_me: failed program was:" >&5
  27186. -sed 's/^/| /' conftest.$ac_ext >&5
  27187. -fi
  27188. -rm -rf conftest.dSYM
  27189. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27190. - conftest$ac_exeext conftest.$ac_ext
  27191. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27192. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27193. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  27194. - else
  27195. - if test "$host_cpu" = ia64; then
  27196. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  27197. - allow_undefined_flag_CXX="-z nodefs"
  27198. - 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"
  27199. - else
  27200. - # Determine the default libpath from the value encoded in an empty executable.
  27201. - cat >conftest.$ac_ext <<_ACEOF
  27202. -/* confdefs.h. */
  27203. -_ACEOF
  27204. -cat confdefs.h >>conftest.$ac_ext
  27205. -cat >>conftest.$ac_ext <<_ACEOF
  27206. -/* end confdefs.h. */
  27207. -int
  27208. -main ()
  27209. -{
  27210. - ;
  27211. - return 0;
  27212. -}
  27213. -_ACEOF
  27214. -rm -f conftest.$ac_objext conftest$ac_exeext
  27215. -if { (ac_try="$ac_link"
  27216. -case "(($ac_try" in
  27217. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27218. - *) ac_try_echo=$ac_try;;
  27219. -esac
  27220. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27221. -$as_echo "$ac_try_echo") >&5
  27222. - (eval "$ac_link") 2>conftest.er1
  27223. - ac_status=$?
  27224. - grep -v '^ *+' conftest.er1 >conftest.err
  27225. - rm -f conftest.er1
  27226. - cat conftest.err >&5
  27227. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27228. - (exit $ac_status); } && {
  27229. - test -z "$ac_cxx_werror_flag" ||
  27230. - test ! -s conftest.err
  27231. - } && test -s conftest$ac_exeext && {
  27232. - test "$cross_compiling" = yes ||
  27233. - $as_test_x conftest$ac_exeext
  27234. - }; then
  27235. -lt_aix_libpath_sed='
  27236. - /Import File Strings/,/^$/ {
  27237. - /^0/ {
  27238. - s/^0 *\(.*\)$/\1/
  27239. - p
  27240. - }
  27241. - }'
  27242. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27243. -# Check for a 64-bit object if we didn't find anything.
  27244. -if test -z "$aix_libpath"; then
  27245. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27246. -fi
  27247. -else
  27248. - $as_echo "$as_me: failed program was:" >&5
  27249. -sed 's/^/| /' conftest.$ac_ext >&5
  27250. -fi
  27251. -rm -rf conftest.dSYM
  27252. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27253. - conftest$ac_exeext conftest.$ac_ext
  27254. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27255. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27256. - # Warning - without using the other run time loading flags,
  27257. - # -berok will link without error, but may produce a broken library.
  27258. - no_undefined_flag_CXX=' ${wl}-bernotok'
  27259. - allow_undefined_flag_CXX=' ${wl}-berok'
  27260. - # Exported symbols can be pulled into shared objects from archives
  27261. - whole_archive_flag_spec_CXX='$convenience'
  27262. - archive_cmds_need_lc_CXX=yes
  27263. - # This is similar to how AIX traditionally builds its shared libraries.
  27264. - 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'
  27265. - fi
  27266. - fi
  27267. - ;;
  27268. - beos*)
  27269. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27270. - allow_undefined_flag_CXX=unsupported
  27271. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27272. - # support --undefined. This deserves some investigation. FIXME
  27273. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27274. - else
  27275. - ld_shlibs_CXX=no
  27276. - fi
  27277. - ;;
  27278. - chorus*)
  27279. - case $cc_basename in
  27280. - *)
  27281. - # FIXME: insert proper C++ library support
  27282. - ld_shlibs_CXX=no
  27283. - ;;
  27284. - esac
  27285. - ;;
  27286. - cygwin* | mingw* | pw32*)
  27287. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  27288. - # as there is no search path for DLLs.
  27289. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27290. - allow_undefined_flag_CXX=unsupported
  27291. - always_export_symbols_CXX=no
  27292. - enable_shared_with_static_runtimes_CXX=yes
  27293. -
  27294. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27295. - 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'
  27296. - # If the export-symbols file already is a .def file (1st line
  27297. - # is EXPORTS), use it as is; otherwise, prepend...
  27298. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27299. - cp $export_symbols $output_objdir/$soname.def;
  27300. - else
  27301. - echo EXPORTS > $output_objdir/$soname.def;
  27302. - cat $export_symbols >> $output_objdir/$soname.def;
  27303. - fi~
  27304. - $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'
  27305. - else
  27306. - ld_shlibs_CXX=no
  27307. - fi
  27308. - ;;
  27309. - darwin* | rhapsody*)
  27310. - archive_cmds_need_lc_CXX=no
  27311. - hardcode_direct_CXX=no
  27312. - hardcode_automatic_CXX=yes
  27313. - hardcode_shlibpath_var_CXX=unsupported
  27314. - whole_archive_flag_spec_CXX=''
  27315. - link_all_deplibs_CXX=yes
  27316. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  27317. - if test "$GXX" = yes ; then
  27318. - output_verbose_link_cmd='echo'
  27319. - 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}"
  27320. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  27321. - 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}"
  27322. - 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}"
  27323. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  27324. - 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}"
  27325. - 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}"
  27326. - fi
  27327. - else
  27328. - case $cc_basename in
  27329. - xlc*)
  27330. - output_verbose_link_cmd='echo'
  27331. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  27332. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27333. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  27334. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27335. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27336. - ;;
  27337. - *)
  27338. - ld_shlibs_CXX=no
  27339. - ;;
  27340. - esac
  27341. - fi
  27342. - ;;
  27343. - dgux*)
  27344. - case $cc_basename in
  27345. - ec++*)
  27346. - # FIXME: insert proper C++ library support
  27347. - ld_shlibs_CXX=no
  27348. - ;;
  27349. - ghcx*)
  27350. - # Green Hills C++ Compiler
  27351. - # FIXME: insert proper C++ library support
  27352. - ld_shlibs_CXX=no
  27353. - ;;
  27354. - *)
  27355. - # FIXME: insert proper C++ library support
  27356. - ld_shlibs_CXX=no
  27357. - ;;
  27358. - esac
  27359. - ;;
  27360. - freebsd[12]*)
  27361. - # C++ shared libraries reported to be fairly broken before switch to ELF
  27362. - ld_shlibs_CXX=no
  27363. - ;;
  27364. - freebsd-elf*)
  27365. - archive_cmds_need_lc_CXX=no
  27366. - ;;
  27367. - freebsd* | dragonfly*)
  27368. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  27369. - # conventions
  27370. - ld_shlibs_CXX=yes
  27371. - ;;
  27372. - gnu*)
  27373. - ;;
  27374. - hpux9*)
  27375. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  27376. - hardcode_libdir_separator_CXX=:
  27377. - export_dynamic_flag_spec_CXX='${wl}-E'
  27378. - hardcode_direct_CXX=yes
  27379. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  27380. - # but as the default
  27381. - # location of the library.
  27382. -
  27383. - case $cc_basename in
  27384. - CC*)
  27385. - # FIXME: insert proper C++ library support
  27386. - ld_shlibs_CXX=no
  27387. - ;;
  27388. - aCC*)
  27389. - 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'
  27390. - # Commands to make compiler produce verbose output that lists
  27391. - # what "hidden" libraries, object files and flags are used when
  27392. - # linking a shared library.
  27393. - #
  27394. - # There doesn't appear to be a way to prevent this compiler from
  27395. - # explicitly linking system object files so we need to strip them
  27396. - # from the output so that they don't get included in the library
  27397. - # dependencies.
  27398. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27399. - ;;
  27400. - *)
  27401. - if test "$GXX" = yes; then
  27402. - 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'
  27403. - else
  27404. - # FIXME: insert proper C++ library support
  27405. - ld_shlibs_CXX=no
  27406. - fi
  27407. - ;;
  27408. - esac
  27409. - ;;
  27410. - hpux10*|hpux11*)
  27411. - if test $with_gnu_ld = no; then
  27412. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  27413. - hardcode_libdir_separator_CXX=:
  27414. - case $host_cpu in
  27415. - hppa*64*|ia64*) ;;
  27416. - *)
  27417. - export_dynamic_flag_spec_CXX='${wl}-E'
  27418. - ;;
  27419. - esac
  27420. - fi
  27421. - case $host_cpu in
  27422. - hppa*64*|ia64*)
  27423. - hardcode_direct_CXX=no
  27424. - hardcode_shlibpath_var_CXX=no
  27425. - ;;
  27426. - *)
  27427. - hardcode_direct_CXX=yes
  27428. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  27429. - # but as the default
  27430. - # location of the library.
  27431. - ;;
  27432. - esac
  27433. - case $cc_basename in
  27434. - CC*)
  27435. - # FIXME: insert proper C++ library support
  27436. - ld_shlibs_CXX=no
  27437. - ;;
  27438. - aCC*)
  27439. - case $host_cpu in
  27440. - hppa*64*)
  27441. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27442. - ;;
  27443. - ia64*)
  27444. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27445. - ;;
  27446. - *)
  27447. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27448. - ;;
  27449. - esac
  27450. - # Commands to make compiler produce verbose output that lists
  27451. - # what "hidden" libraries, object files and flags are used when
  27452. - # linking a shared library.
  27453. - #
  27454. - # There doesn't appear to be a way to prevent this compiler from
  27455. - # explicitly linking system object files so we need to strip them
  27456. - # from the output so that they don't get included in the library
  27457. - # dependencies.
  27458. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27459. - ;;
  27460. - *)
  27461. - if test "$GXX" = yes; then
  27462. - if test $with_gnu_ld = no; then
  27463. - case $host_cpu in
  27464. - hppa*64*)
  27465. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27466. - ;;
  27467. - ia64*)
  27468. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27469. - ;;
  27470. - *)
  27471. - 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'
  27472. - ;;
  27473. - esac
  27474. - fi
  27475. - else
  27476. - # FIXME: insert proper C++ library support
  27477. - ld_shlibs_CXX=no
  27478. - fi
  27479. - ;;
  27480. - esac
  27481. - ;;
  27482. - interix[3-9]*)
  27483. - hardcode_direct_CXX=no
  27484. - hardcode_shlibpath_var_CXX=no
  27485. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27486. - export_dynamic_flag_spec_CXX='${wl}-E'
  27487. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  27488. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  27489. - # default) and relocated if they conflict, which is a slow very memory
  27490. - # consuming and fragmenting process. To avoid this, we pick a random,
  27491. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  27492. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  27493. - 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'
  27494. - 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'
  27495. - ;;
  27496. - irix5* | irix6*)
  27497. - case $cc_basename in
  27498. - CC*)
  27499. - # SGI C++
  27500. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  27501. -
  27502. - # Archives containing C++ object files must be created using
  27503. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  27504. - # necessary to make sure instantiated templates are included
  27505. - # in the archive.
  27506. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  27507. - ;;
  27508. - *)
  27509. - if test "$GXX" = yes; then
  27510. - if test "$with_gnu_ld" = no; then
  27511. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  27512. - else
  27513. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  27514. - fi
  27515. - fi
  27516. - link_all_deplibs_CXX=yes
  27517. - ;;
  27518. - esac
  27519. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27520. - hardcode_libdir_separator_CXX=:
  27521. - ;;
  27522. - linux* | k*bsd*-gnu)
  27523. - case $cc_basename in
  27524. - KCC*)
  27525. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27526. -
  27527. - # KCC will only create a shared library if the output file
  27528. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27529. - # to its proper name (with version) after linking.
  27530. - 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'
  27531. - 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'
  27532. - # Commands to make compiler produce verbose output that lists
  27533. - # what "hidden" libraries, object files and flags are used when
  27534. - # linking a shared library.
  27535. - #
  27536. - # There doesn't appear to be a way to prevent this compiler from
  27537. - # explicitly linking system object files so we need to strip them
  27538. - # from the output so that they don't get included in the library
  27539. - # dependencies.
  27540. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27541. -
  27542. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  27543. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27544. -
  27545. - # Archives containing C++ object files must be created using
  27546. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  27547. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  27548. - ;;
  27549. - icpc*)
  27550. - # Intel C++
  27551. - with_gnu_ld=yes
  27552. - # version 8.0 and above of icpc choke on multiply defined symbols
  27553. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  27554. - # earlier do not add the objects themselves.
  27555. - case `$CC -V 2>&1` in
  27556. - *"Version 7."*)
  27557. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27558. - 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'
  27559. - ;;
  27560. - *) # Version 8.0 or newer
  27561. - tmp_idyn=
  27562. - case $host_cpu in
  27563. - ia64*) tmp_idyn=' -i_dynamic';;
  27564. - esac
  27565. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27566. - 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'
  27567. - ;;
  27568. - esac
  27569. - archive_cmds_need_lc_CXX=no
  27570. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27571. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27572. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  27573. - ;;
  27574. - pgCC* | pgcpp*)
  27575. - # Portland Group C++ compiler
  27576. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  27577. - 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'
  27578. -
  27579. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  27580. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27581. - 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'
  27582. - ;;
  27583. - cxx*)
  27584. - # Compaq C++
  27585. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27586. - 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'
  27587. - runpath_var=LD_RUN_PATH
  27588. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  27589. - hardcode_libdir_separator_CXX=:
  27590. - # Commands to make compiler produce verbose output that lists
  27591. - # what "hidden" libraries, object files and flags are used when
  27592. - # linking a shared library.
  27593. - #
  27594. - # There doesn't appear to be a way to prevent this compiler from
  27595. - # explicitly linking system object files so we need to strip them
  27596. - # from the output so that they don't get included in the library
  27597. - # dependencies.
  27598. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27599. - ;;
  27600. - *)
  27601. - case `$CC -V 2>&1 | sed 5q` in
  27602. - *Sun\ C*)
  27603. - # Sun C++ 5.9
  27604. - no_undefined_flag_CXX=' -zdefs'
  27605. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27606. - 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'
  27607. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27608. - 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'
  27609. -
  27610. - # Not sure whether something based on
  27611. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  27612. - # would be better.
  27613. - output_verbose_link_cmd='echo'
  27614. -
  27615. - # Archives containing C++ object files must be created using
  27616. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  27617. - # necessary to make sure instantiated templates are included
  27618. - # in the archive.
  27619. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  27620. - ;;
  27621. - esac
  27622. - ;;
  27623. - esac
  27624. - ;;
  27625. - lynxos*)
  27626. - # FIXME: insert proper C++ library support
  27627. - ld_shlibs_CXX=no
  27628. - ;;
  27629. - m88k*)
  27630. - # FIXME: insert proper C++ library support
  27631. - ld_shlibs_CXX=no
  27632. - ;;
  27633. - mvs*)
  27634. - case $cc_basename in
  27635. - cxx*)
  27636. - # FIXME: insert proper C++ library support
  27637. - ld_shlibs_CXX=no
  27638. - ;;
  27639. - *)
  27640. - # FIXME: insert proper C++ library support
  27641. - ld_shlibs_CXX=no
  27642. - ;;
  27643. - esac
  27644. - ;;
  27645. - netbsd*)
  27646. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27647. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  27648. - wlarc=
  27649. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27650. - hardcode_direct_CXX=yes
  27651. - hardcode_shlibpath_var_CXX=no
  27652. - fi
  27653. - # Workaround some broken pre-1.5 toolchains
  27654. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  27655. - ;;
  27656. - openbsd2*)
  27657. - # C++ shared libraries are fairly broken
  27658. - ld_shlibs_CXX=no
  27659. - ;;
  27660. - openbsd*)
  27661. - if test -f /usr/libexec/ld.so; then
  27662. - hardcode_direct_CXX=yes
  27663. - hardcode_shlibpath_var_CXX=no
  27664. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  27665. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27666. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27667. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  27668. - export_dynamic_flag_spec_CXX='${wl}-E'
  27669. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27670. - fi
  27671. - output_verbose_link_cmd='echo'
  27672. - else
  27673. - ld_shlibs_CXX=no
  27674. - fi
  27675. - ;;
  27676. - osf3*)
  27677. - case $cc_basename in
  27678. - KCC*)
  27679. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27680. -
  27681. - # KCC will only create a shared library if the output file
  27682. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27683. - # to its proper name (with version) after linking.
  27684. - 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'
  27685. -
  27686. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27687. - hardcode_libdir_separator_CXX=:
  27688. -
  27689. - # Archives containing C++ object files must be created using
  27690. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  27691. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  27692. - ;;
  27693. - RCC*)
  27694. - # Rational C++ 2.4.1
  27695. - # FIXME: insert proper C++ library support
  27696. - ld_shlibs_CXX=no
  27697. - ;;
  27698. - cxx*)
  27699. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27700. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  27701. -
  27702. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27703. - hardcode_libdir_separator_CXX=:
  27704. -
  27705. - # Commands to make compiler produce verbose output that lists
  27706. - # what "hidden" libraries, object files and flags are used when
  27707. - # linking a shared library.
  27708. - #
  27709. - # There doesn't appear to be a way to prevent this compiler from
  27710. - # explicitly linking system object files so we need to strip them
  27711. - # from the output so that they don't get included in the library
  27712. - # dependencies.
  27713. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27714. - ;;
  27715. - *)
  27716. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27717. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27718. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  27719. -
  27720. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27721. - hardcode_libdir_separator_CXX=:
  27722. -
  27723. - # Commands to make compiler produce verbose output that lists
  27724. - # what "hidden" libraries, object files and flags are used when
  27725. - # linking a shared library.
  27726. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27727. - else
  27728. - # FIXME: insert proper C++ library support
  27729. - ld_shlibs_CXX=no
  27730. - fi
  27731. - ;;
  27732. - esac
  27733. - ;;
  27734. - osf4* | osf5*)
  27735. - case $cc_basename in
  27736. - KCC*)
  27737. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27738. -
  27739. - # KCC will only create a shared library if the output file
  27740. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27741. - # to its proper name (with version) after linking.
  27742. - 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'
  27743. -
  27744. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27745. - hardcode_libdir_separator_CXX=:
  27746. -
  27747. - # Archives containing C++ object files must be created using
  27748. - # the KAI C++ compiler.
  27749. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  27750. - ;;
  27751. - RCC*)
  27752. - # Rational C++ 2.4.1
  27753. - # FIXME: insert proper C++ library support
  27754. - ld_shlibs_CXX=no
  27755. - ;;
  27756. - cxx*)
  27757. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  27758. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  27759. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  27760. - echo "-hidden">> $lib.exp~
  27761. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  27762. - $rm $lib.exp'
  27763. -
  27764. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  27765. - hardcode_libdir_separator_CXX=:
  27766. -
  27767. - # Commands to make compiler produce verbose output that lists
  27768. - # what "hidden" libraries, object files and flags are used when
  27769. - # linking a shared library.
  27770. - #
  27771. - # There doesn't appear to be a way to prevent this compiler from
  27772. - # explicitly linking system object files so we need to strip them
  27773. - # from the output so that they don't get included in the library
  27774. - # dependencies.
  27775. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27776. - ;;
  27777. - *)
  27778. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27779. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27780. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  27781. -
  27782. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27783. - hardcode_libdir_separator_CXX=:
  27784. -
  27785. - # Commands to make compiler produce verbose output that lists
  27786. - # what "hidden" libraries, object files and flags are used when
  27787. - # linking a shared library.
  27788. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27789. - else
  27790. - # FIXME: insert proper C++ library support
  27791. - ld_shlibs_CXX=no
  27792. - fi
  27793. - ;;
  27794. - esac
  27795. - ;;
  27796. - psos*)
  27797. - # FIXME: insert proper C++ library support
  27798. - ld_shlibs_CXX=no
  27799. - ;;
  27800. - sunos4*)
  27801. - case $cc_basename in
  27802. - CC*)
  27803. - # Sun C++ 4.x
  27804. - # FIXME: insert proper C++ library support
  27805. - ld_shlibs_CXX=no
  27806. - ;;
  27807. - lcc*)
  27808. - # Lucid
  27809. - # FIXME: insert proper C++ library support
  27810. - ld_shlibs_CXX=no
  27811. - ;;
  27812. - *)
  27813. - # FIXME: insert proper C++ library support
  27814. - ld_shlibs_CXX=no
  27815. - ;;
  27816. - esac
  27817. - ;;
  27818. - solaris*)
  27819. - case $cc_basename in
  27820. - CC*)
  27821. - # Sun C++ 4.2, 5.x and Centerline C++
  27822. - archive_cmds_need_lc_CXX=yes
  27823. - no_undefined_flag_CXX=' -zdefs'
  27824. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27825. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27826. - $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'
  27827. -
  27828. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27829. - hardcode_shlibpath_var_CXX=no
  27830. - case $host_os in
  27831. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  27832. - *)
  27833. - # The compiler driver will combine and reorder linker options,
  27834. - # but understands `-z linker_flag'.
  27835. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  27836. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  27837. - ;;
  27838. - esac
  27839. - link_all_deplibs_CXX=yes
  27840. - output_verbose_link_cmd='echo'
  27841. - # Archives containing C++ object files must be created using
  27842. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  27843. - # necessary to make sure instantiated templates are included
  27844. - # in the archive.
  27845. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  27846. - ;;
  27847. - gcx*)
  27848. - # Green Hills C++ Compiler
  27849. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27850. - # The C++ compiler must be used to create the archive.
  27851. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  27852. - ;;
  27853. - *)
  27854. - # GNU C++ compiler with Solaris linker
  27855. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27856. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  27857. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  27858. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27859. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27860. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  27861. -
  27862. - # Commands to make compiler produce verbose output that lists
  27863. - # what "hidden" libraries, object files and flags are used when
  27864. - # linking a shared library.
  27865. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  27866. - else
  27867. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  27868. - # platform.
  27869. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27870. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27871. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  27872. -
  27873. - # Commands to make compiler produce verbose output that lists
  27874. - # what "hidden" libraries, object files and flags are used when
  27875. - # linking a shared library.
  27876. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  27877. - fi
  27878. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  27879. - case $host_os in
  27880. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  27881. - *)
  27882. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  27883. - ;;
  27884. - esac
  27885. - fi
  27886. - ;;
  27887. - esac
  27888. - ;;
  27889. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  27890. - no_undefined_flag_CXX='${wl}-z,text'
  27891. - archive_cmds_need_lc_CXX=no
  27892. - hardcode_shlibpath_var_CXX=no
  27893. - runpath_var='LD_RUN_PATH'
  27894. -
  27895. - case $cc_basename in
  27896. - CC*)
  27897. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27898. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27899. - ;;
  27900. - *)
  27901. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27902. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27903. - ;;
  27904. - esac
  27905. - ;;
  27906. - sysv5* | sco3.2v5* | sco5v6*)
  27907. - # Note: We can NOT use -z defs as we might desire, because we do not
  27908. - # link with -lc, and that would cause any symbols used from libc to
  27909. - # always be unresolved, which means just about no library would
  27910. - # ever link correctly. If we're not using GNU ld we use -z text
  27911. - # though, which does catch some bad symbols but isn't as heavy-handed
  27912. - # as -z defs.
  27913. - # For security reasons, it is highly recommended that you always
  27914. - # use absolute paths for naming shared libraries, and exclude the
  27915. - # DT_RUNPATH tag from executables and libraries. But doing so
  27916. - # requires that you compile everything twice, which is a pain.
  27917. - # So that behaviour is only enabled if SCOABSPATH is set to a
  27918. - # non-empty value in the environment. Most likely only useful for
  27919. - # creating official distributions of packages.
  27920. - # This is a hack until libtool officially supports absolute path
  27921. - # names for shared libraries.
  27922. - no_undefined_flag_CXX='${wl}-z,text'
  27923. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  27924. - archive_cmds_need_lc_CXX=no
  27925. - hardcode_shlibpath_var_CXX=no
  27926. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  27927. - hardcode_libdir_separator_CXX=':'
  27928. - link_all_deplibs_CXX=yes
  27929. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  27930. - runpath_var='LD_RUN_PATH'
  27931. -
  27932. - case $cc_basename in
  27933. - CC*)
  27934. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27935. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27936. - ;;
  27937. - *)
  27938. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27939. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27940. - ;;
  27941. - esac
  27942. - ;;
  27943. - tandem*)
  27944. - case $cc_basename in
  27945. - NCC*)
  27946. - # NonStop-UX NCC 3.20
  27947. - # FIXME: insert proper C++ library support
  27948. - ld_shlibs_CXX=no
  27949. - ;;
  27950. - *)
  27951. - # FIXME: insert proper C++ library support
  27952. - ld_shlibs_CXX=no
  27953. - ;;
  27954. - esac
  27955. - ;;
  27956. - vxworks*)
  27957. - # FIXME: insert proper C++ library support
  27958. - ld_shlibs_CXX=no
  27959. - ;;
  27960. - *)
  27961. - # FIXME: insert proper C++ library support
  27962. - ld_shlibs_CXX=no
  27963. - ;;
  27964. -esac
  27965. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  27966. -$as_echo "$ld_shlibs_CXX" >&6; }
  27967. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  27968. -
  27969. -GCC_CXX="$GXX"
  27970. -LD_CXX="$LD"
  27971. -
  27972. -cat > conftest.$ac_ext <<EOF
  27973. -class Foo
  27974. -{
  27975. -public:
  27976. - Foo (void) { a = 0; }
  27977. -private:
  27978. - int a;
  27979. -};
  27980. -EOF
  27981. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27982. - (eval $ac_compile) 2>&5
  27983. - ac_status=$?
  27984. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27985. - (exit $ac_status); }; then
  27986. - # Parse the compiler output and extract the necessary
  27987. - # objects, libraries and library flags.
  27988. -
  27989. - # Sentinel used to keep track of whether or not we are before
  27990. - # the conftest object file.
  27991. - pre_test_object_deps_done=no
  27992. -
  27993. - # The `*' in the case matches for architectures that use `case' in
  27994. - # $output_verbose_cmd can trigger glob expansion during the loop
  27995. - # eval without this substitution.
  27996. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  27997. -
  27998. - for p in `eval $output_verbose_link_cmd`; do
  27999. - case $p in
  28000. -
  28001. - -L* | -R* | -l*)
  28002. - # Some compilers place space between "-{L,R}" and the path.
  28003. - # Remove the space.
  28004. - if test $p = "-L" \
  28005. - || test $p = "-R"; then
  28006. - prev=$p
  28007. - continue
  28008. - else
  28009. - prev=
  28010. - fi
  28011. - if test "$pre_test_object_deps_done" = no; then
  28012. - case $p in
  28013. - -L* | -R*)
  28014. - # Internal compiler library paths should come after those
  28015. - # provided the user. The postdeps already come after the
  28016. - # user supplied libs so there is no need to process them.
  28017. - if test -z "$compiler_lib_search_path_CXX"; then
  28018. - compiler_lib_search_path_CXX="${prev}${p}"
  28019. - else
  28020. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  28021. - fi
  28022. - ;;
  28023. - # The "-l" case would never come before the object being
  28024. - # linked, so don't bother handling this case.
  28025. - esac
  28026. - else
  28027. - if test -z "$postdeps_CXX"; then
  28028. - postdeps_CXX="${prev}${p}"
  28029. - else
  28030. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  28031. - fi
  28032. - fi
  28033. - ;;
  28034. - *.$objext)
  28035. - # This assumes that the test object file only shows up
  28036. - # once in the compiler output.
  28037. - if test "$p" = "conftest.$objext"; then
  28038. - pre_test_object_deps_done=yes
  28039. - continue
  28040. - fi
  28041. - if test "$pre_test_object_deps_done" = no; then
  28042. - if test -z "$predep_objects_CXX"; then
  28043. - predep_objects_CXX="$p"
  28044. - else
  28045. - predep_objects_CXX="$predep_objects_CXX $p"
  28046. - fi
  28047. - else
  28048. - if test -z "$postdep_objects_CXX"; then
  28049. - postdep_objects_CXX="$p"
  28050. - else
  28051. - postdep_objects_CXX="$postdep_objects_CXX $p"
  28052. - fi
  28053. - fi
  28054. - ;;
  28055. - *) ;; # Ignore the rest.
  28056. - esac
  28057. - done
  28058. - # Clean up.
  28059. - rm -f a.out a.exe
  28060. -else
  28061. - echo "libtool.m4: error: problem compiling CXX test program"
  28062. -fi
  28063. -$rm -f confest.$objext
  28064. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  28065. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  28066. -compiler_lib_search_dirs_CXX=
  28067. -if test -n "$compiler_lib_search_path_CXX"; then
  28068. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  28069. +if test "$GCC" = yes; then
  28070. + case $host_os in
  28071. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  28072. + *) lt_awk_arg="/^libraries:/" ;;
  28073. + esac
  28074. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28075. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  28076. + # if the path contains ";" then we assume it to be the separator
  28077. + # otherwise default to the standard path separator (i.e. ":") - it is
  28078. + # assumed that no part of a normal pathname contains ";" but that should
  28079. + # okay in the real world where ";" in dirpaths is itself problematic.
  28080. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  28081. + else
  28082. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28083. + fi
  28084. + # Ok, now we have the path, separated by spaces, we can step through it
  28085. + # and add multilib dir if necessary.
  28086. + lt_tmp_lt_search_path_spec=
  28087. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  28088. + for lt_sys_path in $lt_search_path_spec; do
  28089. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  28090. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  28091. + else
  28092. + test -d "$lt_sys_path" && \
  28093. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  28094. + fi
  28095. + done
  28096. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  28097. +BEGIN {RS=" "; FS="/|\n";} {
  28098. + lt_foo="";
  28099. + lt_count=0;
  28100. + for (lt_i = NF; lt_i > 0; lt_i--) {
  28101. + if ($lt_i != "" && $lt_i != ".") {
  28102. + if ($lt_i == "..") {
  28103. + lt_count++;
  28104. + } else {
  28105. + if (lt_count == 0) {
  28106. + lt_foo="/" $lt_i lt_foo;
  28107. + } else {
  28108. + lt_count--;
  28109. + }
  28110. + }
  28111. + }
  28112. + }
  28113. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  28114. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  28115. +}'`
  28116. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  28117. +else
  28118. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  28119. fi
  28120. +library_names_spec=
  28121. +libname_spec='lib$name'
  28122. +soname_spec=
  28123. +shrext_cmds=".so"
  28124. +postinstall_cmds=
  28125. +postuninstall_cmds=
  28126. +finish_cmds=
  28127. +finish_eval=
  28128. +shlibpath_var=
  28129. +shlibpath_overrides_runpath=unknown
  28130. +version_type=none
  28131. +dynamic_linker="$host_os ld.so"
  28132. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28133. +need_lib_prefix=unknown
  28134. +hardcode_into_libs=no
  28135. +
  28136. +# when you set need_version to no, make sure it does not cause -set_version
  28137. +# flags to be left without arguments
  28138. +need_version=unknown
  28139. -# PORTME: override above test on systems where it is broken
  28140. case $host_os in
  28141. -interix[3-9]*)
  28142. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  28143. - # hack all around it, let's just trust "g++" to DTRT.
  28144. - predep_objects_CXX=
  28145. - postdep_objects_CXX=
  28146. - postdeps_CXX=
  28147. +aix3*)
  28148. + version_type=linux
  28149. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28150. + shlibpath_var=LIBPATH
  28151. +
  28152. + # AIX 3 has no versioning support, so we append a major version to the name.
  28153. + soname_spec='${libname}${release}${shared_ext}$major'
  28154. ;;
  28155. -linux*)
  28156. - case `$CC -V 2>&1 | sed 5q` in
  28157. - *Sun\ C*)
  28158. - # Sun C++ 5.9
  28159. - #
  28160. - # The more standards-conforming stlport4 library is
  28161. - # incompatible with the Cstd library. Avoid specifying
  28162. - # it if it's in CXXFLAGS. Ignore libCrun as
  28163. - # -library=stlport4 depends on it.
  28164. - case " $CXX $CXXFLAGS " in
  28165. - *" -library=stlport4 "*)
  28166. - solaris_use_stlport4=yes
  28167. +aix[4-9]*)
  28168. + version_type=linux
  28169. + need_lib_prefix=no
  28170. + need_version=no
  28171. + hardcode_into_libs=yes
  28172. + if test "$host_cpu" = ia64; then
  28173. + # AIX 5 supports IA64
  28174. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28175. + shlibpath_var=LD_LIBRARY_PATH
  28176. + else
  28177. + # With GCC up to 2.95.x, collect2 would create an import file
  28178. + # for dependence libraries. The import file would start with
  28179. + # the line `#! .'. This would cause the generated library to
  28180. + # depend on `.', always an invalid library. This was fixed in
  28181. + # development snapshots of GCC prior to 3.0.
  28182. + case $host_os in
  28183. + aix4 | aix4.[01] | aix4.[01].*)
  28184. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28185. + echo ' yes '
  28186. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  28187. + :
  28188. + else
  28189. + can_build_shared=no
  28190. + fi
  28191. ;;
  28192. esac
  28193. - if test "$solaris_use_stlport4" != yes; then
  28194. - postdeps_CXX='-library=Cstd -library=Crun'
  28195. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  28196. + # soname into executable. Probably we can add versioning support to
  28197. + # collect2, so additional links can be useful in future.
  28198. + if test "$aix_use_runtimelinking" = yes; then
  28199. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  28200. + # instead of lib<name>.a to let people know that these are not
  28201. + # typical AIX shared libraries.
  28202. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28203. + else
  28204. + # We preserve .a as extension for shared libraries through AIX4.2
  28205. + # and later when we are not doing run time linking.
  28206. + library_names_spec='${libname}${release}.a $libname.a'
  28207. + soname_spec='${libname}${release}${shared_ext}$major'
  28208. fi
  28209. - ;;
  28210. - esac
  28211. + shlibpath_var=LIBPATH
  28212. + fi
  28213. ;;
  28214. -solaris*)
  28215. - case $cc_basename in
  28216. - CC*)
  28217. - # The more standards-conforming stlport4 library is
  28218. - # incompatible with the Cstd library. Avoid specifying
  28219. - # it if it's in CXXFLAGS. Ignore libCrun as
  28220. - # -library=stlport4 depends on it.
  28221. - case " $CXX $CXXFLAGS " in
  28222. - *" -library=stlport4 "*)
  28223. - solaris_use_stlport4=yes
  28224. - ;;
  28225. - esac
  28226. -
  28227. - # Adding this requires a known-good setup of shared libraries for
  28228. - # Sun compiler versions before 5.6, else PIC objects from an old
  28229. - # archive will be linked into the output, leading to subtle bugs.
  28230. - if test "$solaris_use_stlport4" != yes; then
  28231. - postdeps_CXX='-library=Cstd -library=Crun'
  28232. - fi
  28233. +amigaos*)
  28234. + case $host_cpu in
  28235. + powerpc)
  28236. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  28237. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  28238. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28239. + ;;
  28240. + m68k)
  28241. + library_names_spec='$libname.ixlibrary $libname.a'
  28242. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28243. + 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'
  28244. ;;
  28245. esac
  28246. ;;
  28247. -esac
  28248. -case " $postdeps_CXX " in
  28249. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  28250. -esac
  28251. +beos*)
  28252. + library_names_spec='${libname}${shared_ext}'
  28253. + dynamic_linker="$host_os ld.so"
  28254. + shlibpath_var=LIBRARY_PATH
  28255. + ;;
  28256. -lt_prog_compiler_wl_CXX=
  28257. -lt_prog_compiler_pic_CXX=
  28258. -lt_prog_compiler_static_CXX=
  28259. +bsdi[45]*)
  28260. + version_type=linux
  28261. + need_version=no
  28262. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28263. + soname_spec='${libname}${release}${shared_ext}$major'
  28264. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  28265. + shlibpath_var=LD_LIBRARY_PATH
  28266. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  28267. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  28268. + # the default ld.so.conf also contains /usr/contrib/lib and
  28269. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  28270. + # libtool to hard-code these into programs
  28271. + ;;
  28272. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28273. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  28274. +cygwin* | mingw* | pw32* | cegcc*)
  28275. + version_type=windows
  28276. + shrext_cmds=".dll"
  28277. + need_version=no
  28278. + need_lib_prefix=no
  28279. - # C++ specific cases for pic, static, wl, etc.
  28280. - if test "$GXX" = yes; then
  28281. - lt_prog_compiler_wl_CXX='-Wl,'
  28282. - lt_prog_compiler_static_CXX='-static'
  28283. + case $GCC,$host_os in
  28284. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  28285. + library_names_spec='$libname.dll.a'
  28286. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28287. + postinstall_cmds='base_file=`basename \${file}`~
  28288. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  28289. + dldir=$destdir/`dirname \$dlpath`~
  28290. + test -d \$dldir || mkdir -p \$dldir~
  28291. + $install_prog $dir/$dlname \$dldir/$dlname~
  28292. + chmod a+x \$dldir/$dlname~
  28293. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  28294. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  28295. + fi'
  28296. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28297. + dlpath=$dir/\$dldll~
  28298. + $RM \$dlpath'
  28299. + shlibpath_overrides_runpath=yes
  28300. case $host_os in
  28301. - aix*)
  28302. - # All AIX code is PIC.
  28303. - if test "$host_cpu" = ia64; then
  28304. - # AIX 5 now supports IA64 processor
  28305. - lt_prog_compiler_static_CXX='-Bstatic'
  28306. - fi
  28307. - ;;
  28308. - amigaos*)
  28309. - # FIXME: we need at least 68020 code to build shared libraries, but
  28310. - # adding the `-m68020' flag to GCC prevents building anything better,
  28311. - # like `-m68040'.
  28312. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  28313. + cygwin*)
  28314. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  28315. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28316. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28317. ;;
  28318. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28319. - # PIC is the default for these OSes.
  28320. + mingw* | cegcc*)
  28321. + # MinGW DLLs use traditional 'lib' prefix
  28322. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28323. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28324. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  28325. + # It is most probably a Windows format PATH printed by
  28326. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28327. + # path with ; separators, and with drive letters. We can handle the
  28328. + # drive letters (cygwin fileutils understands them), so leave them,
  28329. + # especially as we might pass files found there to a mingw objdump,
  28330. + # which wouldn't understand a cygwinified path. Ahh.
  28331. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28332. + else
  28333. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28334. + fi
  28335. ;;
  28336. - mingw* | cygwin* | os2* | pw32*)
  28337. - # This hack is so that the source file can tell whether it is being
  28338. - # built for inclusion in a dll (and should export symbols for example).
  28339. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28340. - # (--disable-auto-import) libraries
  28341. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  28342. - ;;
  28343. - darwin* | rhapsody*)
  28344. - # PIC is the default on this platform
  28345. - # Common symbols not allowed in MH_DYLIB files
  28346. - lt_prog_compiler_pic_CXX='-fno-common'
  28347. - ;;
  28348. - *djgpp*)
  28349. - # DJGPP does not support shared libraries at all
  28350. - lt_prog_compiler_pic_CXX=
  28351. - ;;
  28352. - interix[3-9]*)
  28353. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  28354. - # Instead, we relocate shared libraries at runtime.
  28355. - ;;
  28356. - sysv4*MP*)
  28357. - if test -d /usr/nec; then
  28358. - lt_prog_compiler_pic_CXX=-Kconform_pic
  28359. - fi
  28360. - ;;
  28361. - hpux*)
  28362. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28363. - # not for PA HP-UX.
  28364. - case $host_cpu in
  28365. - hppa*64*|ia64*)
  28366. - ;;
  28367. - *)
  28368. - lt_prog_compiler_pic_CXX='-fPIC'
  28369. - ;;
  28370. - esac
  28371. - ;;
  28372. - *)
  28373. - lt_prog_compiler_pic_CXX='-fPIC'
  28374. - ;;
  28375. - esac
  28376. - else
  28377. - case $host_os in
  28378. - aix[4-9]*)
  28379. - # All AIX code is PIC.
  28380. - if test "$host_cpu" = ia64; then
  28381. - # AIX 5 now supports IA64 processor
  28382. - lt_prog_compiler_static_CXX='-Bstatic'
  28383. - else
  28384. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  28385. - fi
  28386. - ;;
  28387. - chorus*)
  28388. - case $cc_basename in
  28389. - cxch68*)
  28390. - # Green Hills C++ Compiler
  28391. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  28392. - ;;
  28393. - esac
  28394. - ;;
  28395. - darwin*)
  28396. - # PIC is the default on this platform
  28397. - # Common symbols not allowed in MH_DYLIB files
  28398. - case $cc_basename in
  28399. - xlc*)
  28400. - lt_prog_compiler_pic_CXX='-qnocommon'
  28401. - lt_prog_compiler_wl_CXX='-Wl,'
  28402. - ;;
  28403. - esac
  28404. - ;;
  28405. - dgux*)
  28406. - case $cc_basename in
  28407. - ec++*)
  28408. - lt_prog_compiler_pic_CXX='-KPIC'
  28409. - ;;
  28410. - ghcx*)
  28411. - # Green Hills C++ Compiler
  28412. - lt_prog_compiler_pic_CXX='-pic'
  28413. - ;;
  28414. - *)
  28415. - ;;
  28416. - esac
  28417. - ;;
  28418. - freebsd* | dragonfly*)
  28419. - # FreeBSD uses GNU C++
  28420. - ;;
  28421. - hpux9* | hpux10* | hpux11*)
  28422. - case $cc_basename in
  28423. - CC*)
  28424. - lt_prog_compiler_wl_CXX='-Wl,'
  28425. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  28426. - if test "$host_cpu" != ia64; then
  28427. - lt_prog_compiler_pic_CXX='+Z'
  28428. - fi
  28429. - ;;
  28430. - aCC*)
  28431. - lt_prog_compiler_wl_CXX='-Wl,'
  28432. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  28433. - case $host_cpu in
  28434. - hppa*64*|ia64*)
  28435. - # +Z the default
  28436. - ;;
  28437. - *)
  28438. - lt_prog_compiler_pic_CXX='+Z'
  28439. - ;;
  28440. - esac
  28441. - ;;
  28442. - *)
  28443. - ;;
  28444. - esac
  28445. - ;;
  28446. - interix*)
  28447. - # This is c89, which is MS Visual C++ (no shared libs)
  28448. - # Anyone wants to do a port?
  28449. - ;;
  28450. - irix5* | irix6* | nonstopux*)
  28451. - case $cc_basename in
  28452. - CC*)
  28453. - lt_prog_compiler_wl_CXX='-Wl,'
  28454. - lt_prog_compiler_static_CXX='-non_shared'
  28455. - # CC pic flag -KPIC is the default.
  28456. - ;;
  28457. - *)
  28458. - ;;
  28459. - esac
  28460. - ;;
  28461. - linux* | k*bsd*-gnu)
  28462. - case $cc_basename in
  28463. - KCC*)
  28464. - # KAI C++ Compiler
  28465. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  28466. - lt_prog_compiler_pic_CXX='-fPIC'
  28467. - ;;
  28468. - icpc* | ecpc*)
  28469. - # Intel C++
  28470. - lt_prog_compiler_wl_CXX='-Wl,'
  28471. - lt_prog_compiler_pic_CXX='-KPIC'
  28472. - lt_prog_compiler_static_CXX='-static'
  28473. - ;;
  28474. - pgCC* | pgcpp*)
  28475. - # Portland Group C++ compiler.
  28476. - lt_prog_compiler_wl_CXX='-Wl,'
  28477. - lt_prog_compiler_pic_CXX='-fpic'
  28478. - lt_prog_compiler_static_CXX='-Bstatic'
  28479. - ;;
  28480. - cxx*)
  28481. - # Compaq C++
  28482. - # Make sure the PIC flag is empty. It appears that all Alpha
  28483. - # Linux and Compaq Tru64 Unix objects are PIC.
  28484. - lt_prog_compiler_pic_CXX=
  28485. - lt_prog_compiler_static_CXX='-non_shared'
  28486. - ;;
  28487. - *)
  28488. - case `$CC -V 2>&1 | sed 5q` in
  28489. - *Sun\ C*)
  28490. - # Sun C++ 5.9
  28491. - lt_prog_compiler_pic_CXX='-KPIC'
  28492. - lt_prog_compiler_static_CXX='-Bstatic'
  28493. - lt_prog_compiler_wl_CXX='-Qoption ld '
  28494. - ;;
  28495. - esac
  28496. - ;;
  28497. - esac
  28498. - ;;
  28499. - lynxos*)
  28500. - ;;
  28501. - m88k*)
  28502. - ;;
  28503. - mvs*)
  28504. - case $cc_basename in
  28505. - cxx*)
  28506. - lt_prog_compiler_pic_CXX='-W c,exportall'
  28507. - ;;
  28508. - *)
  28509. - ;;
  28510. - esac
  28511. - ;;
  28512. - netbsd*)
  28513. - ;;
  28514. - osf3* | osf4* | osf5*)
  28515. - case $cc_basename in
  28516. - KCC*)
  28517. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  28518. - ;;
  28519. - RCC*)
  28520. - # Rational C++ 2.4.1
  28521. - lt_prog_compiler_pic_CXX='-pic'
  28522. - ;;
  28523. - cxx*)
  28524. - # Digital/Compaq C++
  28525. - lt_prog_compiler_wl_CXX='-Wl,'
  28526. - # Make sure the PIC flag is empty. It appears that all Alpha
  28527. - # Linux and Compaq Tru64 Unix objects are PIC.
  28528. - lt_prog_compiler_pic_CXX=
  28529. - lt_prog_compiler_static_CXX='-non_shared'
  28530. - ;;
  28531. - *)
  28532. - ;;
  28533. - esac
  28534. - ;;
  28535. - psos*)
  28536. - ;;
  28537. - solaris*)
  28538. - case $cc_basename in
  28539. - CC*)
  28540. - # Sun C++ 4.2, 5.x and Centerline C++
  28541. - lt_prog_compiler_pic_CXX='-KPIC'
  28542. - lt_prog_compiler_static_CXX='-Bstatic'
  28543. - lt_prog_compiler_wl_CXX='-Qoption ld '
  28544. - ;;
  28545. - gcx*)
  28546. - # Green Hills C++ Compiler
  28547. - lt_prog_compiler_pic_CXX='-PIC'
  28548. - ;;
  28549. - *)
  28550. - ;;
  28551. - esac
  28552. - ;;
  28553. - sunos4*)
  28554. - case $cc_basename in
  28555. - CC*)
  28556. - # Sun C++ 4.x
  28557. - lt_prog_compiler_pic_CXX='-pic'
  28558. - lt_prog_compiler_static_CXX='-Bstatic'
  28559. - ;;
  28560. - lcc*)
  28561. - # Lucid
  28562. - lt_prog_compiler_pic_CXX='-pic'
  28563. - ;;
  28564. - *)
  28565. - ;;
  28566. - esac
  28567. - ;;
  28568. - tandem*)
  28569. - case $cc_basename in
  28570. - NCC*)
  28571. - # NonStop-UX NCC 3.20
  28572. - lt_prog_compiler_pic_CXX='-KPIC'
  28573. - ;;
  28574. - *)
  28575. - ;;
  28576. - esac
  28577. - ;;
  28578. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  28579. - case $cc_basename in
  28580. - CC*)
  28581. - lt_prog_compiler_wl_CXX='-Wl,'
  28582. - lt_prog_compiler_pic_CXX='-KPIC'
  28583. - lt_prog_compiler_static_CXX='-Bstatic'
  28584. - ;;
  28585. - esac
  28586. - ;;
  28587. - vxworks*)
  28588. - ;;
  28589. - *)
  28590. - lt_prog_compiler_can_build_shared_CXX=no
  28591. - ;;
  28592. - esac
  28593. - fi
  28594. -
  28595. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  28596. -$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  28597. -
  28598. -#
  28599. -# Check to make sure the PIC flag actually works.
  28600. -#
  28601. -if test -n "$lt_prog_compiler_pic_CXX"; then
  28602. -
  28603. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  28604. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  28605. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  28606. - $as_echo_n "(cached) " >&6
  28607. -else
  28608. - lt_cv_prog_compiler_pic_works_CXX=no
  28609. - ac_outfile=conftest.$ac_objext
  28610. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28611. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  28612. - # Insert the option either (1) after the last *FLAGS variable, or
  28613. - # (2) before a word containing "conftest.", or (3) at the end.
  28614. - # Note that $ac_compile itself does not contain backslashes and begins
  28615. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28616. - # The option is referenced via a variable to avoid confusing sed.
  28617. - lt_compile=`echo "$ac_compile" | $SED \
  28618. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28619. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28620. - -e 's:$: $lt_compiler_flag:'`
  28621. - (eval echo "\"\$as_me:12875: $lt_compile\"" >&5)
  28622. - (eval "$lt_compile" 2>conftest.err)
  28623. - ac_status=$?
  28624. - cat conftest.err >&5
  28625. - echo "$as_me:12879: \$? = $ac_status" >&5
  28626. - if (exit $ac_status) && test -s "$ac_outfile"; then
  28627. - # The compiler can only warn and ignore the option if not recognized
  28628. - # So say no if there are warnings other than the usual output.
  28629. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28630. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28631. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28632. - lt_cv_prog_compiler_pic_works_CXX=yes
  28633. - fi
  28634. - fi
  28635. - $rm conftest*
  28636. -
  28637. -fi
  28638. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  28639. -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  28640. -
  28641. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  28642. - case $lt_prog_compiler_pic_CXX in
  28643. - "" | " "*) ;;
  28644. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  28645. - esac
  28646. -else
  28647. - lt_prog_compiler_pic_CXX=
  28648. - lt_prog_compiler_can_build_shared_CXX=no
  28649. -fi
  28650. -
  28651. -fi
  28652. -case $host_os in
  28653. - # For platforms which do not support PIC, -DPIC is meaningless:
  28654. - *djgpp*)
  28655. - lt_prog_compiler_pic_CXX=
  28656. - ;;
  28657. - *)
  28658. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  28659. - ;;
  28660. -esac
  28661. -
  28662. -#
  28663. -# Check to make sure the static flag actually works.
  28664. -#
  28665. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  28666. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28667. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  28668. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  28669. - $as_echo_n "(cached) " >&6
  28670. -else
  28671. - lt_cv_prog_compiler_static_works_CXX=no
  28672. - save_LDFLAGS="$LDFLAGS"
  28673. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28674. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28675. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28676. - # The linker can only warn and ignore the option if not recognized
  28677. - # So say no if there are warnings
  28678. - if test -s conftest.err; then
  28679. - # Append any errors to the config.log.
  28680. - cat conftest.err 1>&5
  28681. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28682. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28683. - if diff conftest.exp conftest.er2 >/dev/null; then
  28684. - lt_cv_prog_compiler_static_works_CXX=yes
  28685. - fi
  28686. - else
  28687. - lt_cv_prog_compiler_static_works_CXX=yes
  28688. - fi
  28689. - fi
  28690. - $rm -r conftest*
  28691. - LDFLAGS="$save_LDFLAGS"
  28692. -
  28693. -fi
  28694. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  28695. -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  28696. -
  28697. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  28698. - :
  28699. -else
  28700. - lt_prog_compiler_static_CXX=
  28701. -fi
  28702. -
  28703. -
  28704. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  28705. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  28706. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  28707. - $as_echo_n "(cached) " >&6
  28708. -else
  28709. - lt_cv_prog_compiler_c_o_CXX=no
  28710. - $rm -r conftest 2>/dev/null
  28711. - mkdir conftest
  28712. - cd conftest
  28713. - mkdir out
  28714. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28715. -
  28716. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  28717. - # Insert the option either (1) after the last *FLAGS variable, or
  28718. - # (2) before a word containing "conftest.", or (3) at the end.
  28719. - # Note that $ac_compile itself does not contain backslashes and begins
  28720. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28721. - lt_compile=`echo "$ac_compile" | $SED \
  28722. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28723. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28724. - -e 's:$: $lt_compiler_flag:'`
  28725. - (eval echo "\"\$as_me:12979: $lt_compile\"" >&5)
  28726. - (eval "$lt_compile" 2>out/conftest.err)
  28727. - ac_status=$?
  28728. - cat out/conftest.err >&5
  28729. - echo "$as_me:12983: \$? = $ac_status" >&5
  28730. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28731. - then
  28732. - # The compiler can only warn and ignore the option if not recognized
  28733. - # So say no if there are warnings
  28734. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28735. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28736. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28737. - lt_cv_prog_compiler_c_o_CXX=yes
  28738. - fi
  28739. - fi
  28740. - chmod u+w . 2>&5
  28741. - $rm conftest*
  28742. - # SGI C++ compiler will create directory out/ii_files/ for
  28743. - # template instantiation
  28744. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  28745. - $rm out/* && rmdir out
  28746. - cd ..
  28747. - rmdir conftest
  28748. - $rm conftest*
  28749. -
  28750. -fi
  28751. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  28752. -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  28753. -
  28754. -
  28755. -hard_links="nottested"
  28756. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  28757. - # do not overwrite the value of need_locks provided by the user
  28758. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  28759. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  28760. - hard_links=yes
  28761. - $rm conftest*
  28762. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28763. - touch conftest.a
  28764. - ln conftest.a conftest.b 2>&5 || hard_links=no
  28765. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28766. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  28767. -$as_echo "$hard_links" >&6; }
  28768. - if test "$hard_links" = no; then
  28769. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  28770. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  28771. - need_locks=warn
  28772. - fi
  28773. -else
  28774. - need_locks=no
  28775. -fi
  28776. -
  28777. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28778. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  28779. -
  28780. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28781. - case $host_os in
  28782. - aix[4-9]*)
  28783. - # If we're using GNU nm, then we don't want the "-C" option.
  28784. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  28785. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  28786. - 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'
  28787. - else
  28788. - 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'
  28789. - fi
  28790. - ;;
  28791. - pw32*)
  28792. - export_symbols_cmds_CXX="$ltdll_cmds"
  28793. - ;;
  28794. - cygwin* | mingw*)
  28795. - 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'
  28796. - ;;
  28797. - *)
  28798. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28799. - ;;
  28800. - esac
  28801. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  28802. -
  28803. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  28804. -$as_echo "$ld_shlibs_CXX" >&6; }
  28805. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  28806. -
  28807. -#
  28808. -# Do we need to explicitly link libc?
  28809. -#
  28810. -case "x$archive_cmds_need_lc_CXX" in
  28811. -x|xyes)
  28812. - # Assume -lc should be added
  28813. - archive_cmds_need_lc_CXX=yes
  28814. -
  28815. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  28816. - case $archive_cmds_CXX in
  28817. - *'~'*)
  28818. - # FIXME: we may have to deal with multi-command sequences.
  28819. - ;;
  28820. - '$CC '*)
  28821. - # Test whether the compiler implicitly links with -lc since on some
  28822. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28823. - # to ld, don't add -lc before -lgcc.
  28824. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28825. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  28826. - $rm conftest*
  28827. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28828. -
  28829. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28830. - (eval $ac_compile) 2>&5
  28831. - ac_status=$?
  28832. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28833. - (exit $ac_status); } 2>conftest.err; then
  28834. - soname=conftest
  28835. - lib=conftest
  28836. - libobjs=conftest.$ac_objext
  28837. - deplibs=
  28838. - wl=$lt_prog_compiler_wl_CXX
  28839. - pic_flag=$lt_prog_compiler_pic_CXX
  28840. - compiler_flags=-v
  28841. - linker_flags=-v
  28842. - verstring=
  28843. - output_objdir=.
  28844. - libname=conftest
  28845. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  28846. - allow_undefined_flag_CXX=
  28847. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28848. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28849. - ac_status=$?
  28850. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28851. - (exit $ac_status); }
  28852. - then
  28853. - archive_cmds_need_lc_CXX=no
  28854. - else
  28855. - archive_cmds_need_lc_CXX=yes
  28856. - fi
  28857. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  28858. - else
  28859. - cat conftest.err 1>&5
  28860. - fi
  28861. - $rm conftest*
  28862. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  28863. -$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  28864. - ;;
  28865. - esac
  28866. - fi
  28867. - ;;
  28868. -esac
  28869. -
  28870. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28871. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  28872. -library_names_spec=
  28873. -libname_spec='lib$name'
  28874. -soname_spec=
  28875. -shrext_cmds=".so"
  28876. -postinstall_cmds=
  28877. -postuninstall_cmds=
  28878. -finish_cmds=
  28879. -finish_eval=
  28880. -shlibpath_var=
  28881. -shlibpath_overrides_runpath=unknown
  28882. -version_type=none
  28883. -dynamic_linker="$host_os ld.so"
  28884. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28885. -
  28886. -need_lib_prefix=unknown
  28887. -hardcode_into_libs=no
  28888. -
  28889. -# when you set need_version to no, make sure it does not cause -set_version
  28890. -# flags to be left without arguments
  28891. -need_version=unknown
  28892. -
  28893. -case $host_os in
  28894. -aix3*)
  28895. - version_type=linux
  28896. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28897. - shlibpath_var=LIBPATH
  28898. -
  28899. - # AIX 3 has no versioning support, so we append a major version to the name.
  28900. - soname_spec='${libname}${release}${shared_ext}$major'
  28901. - ;;
  28902. -
  28903. -aix[4-9]*)
  28904. - version_type=linux
  28905. - need_lib_prefix=no
  28906. - need_version=no
  28907. - hardcode_into_libs=yes
  28908. - if test "$host_cpu" = ia64; then
  28909. - # AIX 5 supports IA64
  28910. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28911. - shlibpath_var=LD_LIBRARY_PATH
  28912. - else
  28913. - # With GCC up to 2.95.x, collect2 would create an import file
  28914. - # for dependence libraries. The import file would start with
  28915. - # the line `#! .'. This would cause the generated library to
  28916. - # depend on `.', always an invalid library. This was fixed in
  28917. - # development snapshots of GCC prior to 3.0.
  28918. - case $host_os in
  28919. - aix4 | aix4.[01] | aix4.[01].*)
  28920. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28921. - echo ' yes '
  28922. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28923. - :
  28924. - else
  28925. - can_build_shared=no
  28926. - fi
  28927. - ;;
  28928. - esac
  28929. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  28930. - # soname into executable. Probably we can add versioning support to
  28931. - # collect2, so additional links can be useful in future.
  28932. - if test "$aix_use_runtimelinking" = yes; then
  28933. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  28934. - # instead of lib<name>.a to let people know that these are not
  28935. - # typical AIX shared libraries.
  28936. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28937. - else
  28938. - # We preserve .a as extension for shared libraries through AIX4.2
  28939. - # and later when we are not doing run time linking.
  28940. - library_names_spec='${libname}${release}.a $libname.a'
  28941. - soname_spec='${libname}${release}${shared_ext}$major'
  28942. - fi
  28943. - shlibpath_var=LIBPATH
  28944. - fi
  28945. - ;;
  28946. -
  28947. -amigaos*)
  28948. - library_names_spec='$libname.ixlibrary $libname.a'
  28949. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28950. - 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'
  28951. - ;;
  28952. -
  28953. -beos*)
  28954. - library_names_spec='${libname}${shared_ext}'
  28955. - dynamic_linker="$host_os ld.so"
  28956. - shlibpath_var=LIBRARY_PATH
  28957. - ;;
  28958. -
  28959. -bsdi[45]*)
  28960. - version_type=linux
  28961. - need_version=no
  28962. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28963. - soname_spec='${libname}${release}${shared_ext}$major'
  28964. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  28965. - shlibpath_var=LD_LIBRARY_PATH
  28966. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  28967. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  28968. - # the default ld.so.conf also contains /usr/contrib/lib and
  28969. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  28970. - # libtool to hard-code these into programs
  28971. - ;;
  28972. -
  28973. -cygwin* | mingw* | pw32*)
  28974. - version_type=windows
  28975. - shrext_cmds=".dll"
  28976. - need_version=no
  28977. - need_lib_prefix=no
  28978. -
  28979. - case $GCC,$host_os in
  28980. - yes,cygwin* | yes,mingw* | yes,pw32*)
  28981. - library_names_spec='$libname.dll.a'
  28982. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28983. - postinstall_cmds='base_file=`basename \${file}`~
  28984. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28985. - dldir=$destdir/`dirname \$dlpath`~
  28986. - test -d \$dldir || mkdir -p \$dldir~
  28987. - $install_prog $dir/$dlname \$dldir/$dlname~
  28988. - chmod a+x \$dldir/$dlname'
  28989. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28990. - dlpath=$dir/\$dldll~
  28991. - $rm \$dlpath'
  28992. - shlibpath_overrides_runpath=yes
  28993. -
  28994. - case $host_os in
  28995. - cygwin*)
  28996. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  28997. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28998. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28999. - ;;
  29000. - mingw*)
  29001. - # MinGW DLLs use traditional 'lib' prefix
  29002. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29003. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  29004. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  29005. - # It is most probably a Windows format PATH printed by
  29006. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  29007. - # path with ; separators, and with drive letters. We can handle the
  29008. - # drive letters (cygwin fileutils understands them), so leave them,
  29009. - # especially as we might pass files found there to a mingw objdump,
  29010. - # which wouldn't understand a cygwinified path. Ahh.
  29011. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  29012. - else
  29013. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  29014. - fi
  29015. - ;;
  29016. - pw32*)
  29017. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  29018. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29019. - ;;
  29020. - esac
  29021. - ;;
  29022. -
  29023. - *)
  29024. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  29025. - ;;
  29026. - esac
  29027. - dynamic_linker='Win32 ld.exe'
  29028. - # FIXME: first we should search . and the directory the executable is in
  29029. - shlibpath_var=PATH
  29030. - ;;
  29031. -
  29032. -darwin* | rhapsody*)
  29033. - dynamic_linker="$host_os dyld"
  29034. - version_type=darwin
  29035. - need_lib_prefix=no
  29036. - need_version=no
  29037. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  29038. - soname_spec='${libname}${release}${major}$shared_ext'
  29039. - shlibpath_overrides_runpath=yes
  29040. - shlibpath_var=DYLD_LIBRARY_PATH
  29041. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  29042. -
  29043. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  29044. - ;;
  29045. -
  29046. -dgux*)
  29047. - version_type=linux
  29048. - need_lib_prefix=no
  29049. - need_version=no
  29050. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  29051. - soname_spec='${libname}${release}${shared_ext}$major'
  29052. - shlibpath_var=LD_LIBRARY_PATH
  29053. - ;;
  29054. -
  29055. -freebsd1*)
  29056. - dynamic_linker=no
  29057. - ;;
  29058. -
  29059. -freebsd* | dragonfly*)
  29060. - # DragonFly does not have aout. When/if they implement a new
  29061. - # versioning mechanism, adjust this.
  29062. - if test -x /usr/bin/objformat; then
  29063. - objformat=`/usr/bin/objformat`
  29064. - else
  29065. - case $host_os in
  29066. - freebsd[123]*) objformat=aout ;;
  29067. - *) objformat=elf ;;
  29068. - esac
  29069. - fi
  29070. - version_type=freebsd-$objformat
  29071. - case $version_type in
  29072. - freebsd-elf*)
  29073. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29074. - need_version=no
  29075. - need_lib_prefix=no
  29076. - ;;
  29077. - freebsd-*)
  29078. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  29079. - need_version=yes
  29080. - ;;
  29081. - esac
  29082. - shlibpath_var=LD_LIBRARY_PATH
  29083. - case $host_os in
  29084. - freebsd2*)
  29085. - shlibpath_overrides_runpath=yes
  29086. - ;;
  29087. - freebsd3.[01]* | freebsdelf3.[01]*)
  29088. - shlibpath_overrides_runpath=yes
  29089. - hardcode_into_libs=yes
  29090. - ;;
  29091. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  29092. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  29093. - shlibpath_overrides_runpath=no
  29094. - hardcode_into_libs=yes
  29095. - ;;
  29096. - *) # from 4.6 on, and DragonFly
  29097. - shlibpath_overrides_runpath=yes
  29098. - hardcode_into_libs=yes
  29099. - ;;
  29100. - esac
  29101. - ;;
  29102. -
  29103. -gnu*)
  29104. - version_type=linux
  29105. - need_lib_prefix=no
  29106. - need_version=no
  29107. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  29108. - soname_spec='${libname}${release}${shared_ext}$major'
  29109. - shlibpath_var=LD_LIBRARY_PATH
  29110. - hardcode_into_libs=yes
  29111. - ;;
  29112. -
  29113. -hpux9* | hpux10* | hpux11*)
  29114. - # Give a soname corresponding to the major version so that dld.sl refuses to
  29115. - # link against other versions.
  29116. - version_type=sunos
  29117. - need_lib_prefix=no
  29118. - need_version=no
  29119. - case $host_cpu in
  29120. - ia64*)
  29121. - shrext_cmds='.so'
  29122. - hardcode_into_libs=yes
  29123. - dynamic_linker="$host_os dld.so"
  29124. - shlibpath_var=LD_LIBRARY_PATH
  29125. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29126. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29127. - soname_spec='${libname}${release}${shared_ext}$major'
  29128. - if test "X$HPUX_IA64_MODE" = X32; then
  29129. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  29130. - else
  29131. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  29132. - fi
  29133. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29134. - ;;
  29135. - hppa*64*)
  29136. - shrext_cmds='.sl'
  29137. - hardcode_into_libs=yes
  29138. - dynamic_linker="$host_os dld.sl"
  29139. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  29140. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29141. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29142. - soname_spec='${libname}${release}${shared_ext}$major'
  29143. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  29144. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29145. - ;;
  29146. - *)
  29147. - shrext_cmds='.sl'
  29148. - dynamic_linker="$host_os dld.sl"
  29149. - shlibpath_var=SHLIB_PATH
  29150. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  29151. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29152. - soname_spec='${libname}${release}${shared_ext}$major'
  29153. - ;;
  29154. - esac
  29155. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  29156. - postinstall_cmds='chmod 555 $lib'
  29157. - ;;
  29158. -
  29159. -interix[3-9]*)
  29160. - version_type=linux
  29161. - need_lib_prefix=no
  29162. - need_version=no
  29163. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29164. - soname_spec='${libname}${release}${shared_ext}$major'
  29165. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  29166. - shlibpath_var=LD_LIBRARY_PATH
  29167. - shlibpath_overrides_runpath=no
  29168. - hardcode_into_libs=yes
  29169. - ;;
  29170. -
  29171. -irix5* | irix6* | nonstopux*)
  29172. - case $host_os in
  29173. - nonstopux*) version_type=nonstopux ;;
  29174. - *)
  29175. - if test "$lt_cv_prog_gnu_ld" = yes; then
  29176. - version_type=linux
  29177. - else
  29178. - version_type=irix
  29179. - fi ;;
  29180. - esac
  29181. - need_lib_prefix=no
  29182. - need_version=no
  29183. - soname_spec='${libname}${release}${shared_ext}$major'
  29184. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  29185. - case $host_os in
  29186. - irix5* | nonstopux*)
  29187. - libsuff= shlibsuff=
  29188. - ;;
  29189. - *)
  29190. - case $LD in # libtool.m4 will add one of these switches to LD
  29191. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  29192. - libsuff= shlibsuff= libmagic=32-bit;;
  29193. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  29194. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  29195. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  29196. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  29197. - *) libsuff= shlibsuff= libmagic=never-match;;
  29198. - esac
  29199. - ;;
  29200. - esac
  29201. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  29202. - shlibpath_overrides_runpath=no
  29203. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  29204. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  29205. - hardcode_into_libs=yes
  29206. - ;;
  29207. -
  29208. -# No shared lib support for Linux oldld, aout, or coff.
  29209. -linux*oldld* | linux*aout* | linux*coff*)
  29210. - dynamic_linker=no
  29211. - ;;
  29212. -
  29213. -# This must be Linux ELF.
  29214. -linux* | k*bsd*-gnu)
  29215. - version_type=linux
  29216. - need_lib_prefix=no
  29217. - need_version=no
  29218. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29219. - soname_spec='${libname}${release}${shared_ext}$major'
  29220. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  29221. - shlibpath_var=LD_LIBRARY_PATH
  29222. - shlibpath_overrides_runpath=no
  29223. - # This implies no fast_install, which is unacceptable.
  29224. - # Some rework will be needed to allow for fast_install
  29225. - # before this can be enabled.
  29226. - hardcode_into_libs=yes
  29227. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  29228. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  29229. -
  29230. - # Append ld.so.conf contents to the search path
  29231. - if test -f /etc/ld.so.conf; then
  29232. - 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' ' '`
  29233. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  29234. - fi
  29235. -
  29236. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  29237. - # powerpc, because MkLinux only supported shared libraries with the
  29238. - # GNU dynamic linker. Since this was broken with cross compilers,
  29239. - # most powerpc-linux boxes support dynamic linking these days and
  29240. - # people can always --disable-shared, the test was removed, and we
  29241. - # assume the GNU/Linux dynamic linker is in use.
  29242. - dynamic_linker='GNU/Linux ld.so'
  29243. - ;;
  29244. -
  29245. -netbsd*)
  29246. - version_type=sunos
  29247. - need_lib_prefix=no
  29248. - need_version=no
  29249. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29250. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29251. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29252. - dynamic_linker='NetBSD (a.out) ld.so'
  29253. - else
  29254. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29255. - soname_spec='${libname}${release}${shared_ext}$major'
  29256. - dynamic_linker='NetBSD ld.elf_so'
  29257. - fi
  29258. - shlibpath_var=LD_LIBRARY_PATH
  29259. - shlibpath_overrides_runpath=yes
  29260. - hardcode_into_libs=yes
  29261. - ;;
  29262. -
  29263. -newsos6)
  29264. - version_type=linux
  29265. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29266. - shlibpath_var=LD_LIBRARY_PATH
  29267. - shlibpath_overrides_runpath=yes
  29268. - ;;
  29269. -
  29270. -nto-qnx*)
  29271. - version_type=linux
  29272. - need_lib_prefix=no
  29273. - need_version=no
  29274. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29275. - soname_spec='${libname}${release}${shared_ext}$major'
  29276. - shlibpath_var=LD_LIBRARY_PATH
  29277. - shlibpath_overrides_runpath=yes
  29278. - ;;
  29279. -
  29280. -openbsd*)
  29281. - version_type=sunos
  29282. - sys_lib_dlsearch_path_spec="/usr/lib"
  29283. - need_lib_prefix=no
  29284. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  29285. - case $host_os in
  29286. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  29287. - *) need_version=no ;;
  29288. - esac
  29289. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29290. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29291. - shlibpath_var=LD_LIBRARY_PATH
  29292. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29293. - case $host_os in
  29294. - openbsd2.[89] | openbsd2.[89].*)
  29295. - shlibpath_overrides_runpath=no
  29296. - ;;
  29297. - *)
  29298. - shlibpath_overrides_runpath=yes
  29299. - ;;
  29300. - esac
  29301. - else
  29302. - shlibpath_overrides_runpath=yes
  29303. - fi
  29304. - ;;
  29305. -
  29306. -os2*)
  29307. - libname_spec='$name'
  29308. - shrext_cmds=".dll"
  29309. - need_lib_prefix=no
  29310. - library_names_spec='$libname${shared_ext} $libname.a'
  29311. - dynamic_linker='OS/2 ld.exe'
  29312. - shlibpath_var=LIBPATH
  29313. - ;;
  29314. -
  29315. -osf3* | osf4* | osf5*)
  29316. - version_type=osf
  29317. - need_lib_prefix=no
  29318. - need_version=no
  29319. - soname_spec='${libname}${release}${shared_ext}$major'
  29320. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29321. - shlibpath_var=LD_LIBRARY_PATH
  29322. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  29323. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  29324. - ;;
  29325. -
  29326. -rdos*)
  29327. - dynamic_linker=no
  29328. - ;;
  29329. -
  29330. -solaris*)
  29331. - version_type=linux
  29332. - need_lib_prefix=no
  29333. - need_version=no
  29334. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29335. - soname_spec='${libname}${release}${shared_ext}$major'
  29336. - shlibpath_var=LD_LIBRARY_PATH
  29337. - shlibpath_overrides_runpath=yes
  29338. - hardcode_into_libs=yes
  29339. - # ldd complains unless libraries are executable
  29340. - postinstall_cmds='chmod +x $lib'
  29341. - ;;
  29342. -
  29343. -sunos4*)
  29344. - version_type=sunos
  29345. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29346. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  29347. - shlibpath_var=LD_LIBRARY_PATH
  29348. - shlibpath_overrides_runpath=yes
  29349. - if test "$with_gnu_ld" = yes; then
  29350. - need_lib_prefix=no
  29351. - fi
  29352. - need_version=yes
  29353. - ;;
  29354. -
  29355. -sysv4 | sysv4.3*)
  29356. - version_type=linux
  29357. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29358. - soname_spec='${libname}${release}${shared_ext}$major'
  29359. - shlibpath_var=LD_LIBRARY_PATH
  29360. - case $host_vendor in
  29361. - sni)
  29362. - shlibpath_overrides_runpath=no
  29363. - need_lib_prefix=no
  29364. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  29365. - runpath_var=LD_RUN_PATH
  29366. - ;;
  29367. - siemens)
  29368. - need_lib_prefix=no
  29369. - ;;
  29370. - motorola)
  29371. - need_lib_prefix=no
  29372. - need_version=no
  29373. - shlibpath_overrides_runpath=no
  29374. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  29375. - ;;
  29376. - esac
  29377. - ;;
  29378. -
  29379. -sysv4*MP*)
  29380. - if test -d /usr/nec ;then
  29381. - version_type=linux
  29382. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  29383. - soname_spec='$libname${shared_ext}.$major'
  29384. - shlibpath_var=LD_LIBRARY_PATH
  29385. - fi
  29386. - ;;
  29387. -
  29388. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  29389. - version_type=freebsd-elf
  29390. - need_lib_prefix=no
  29391. - need_version=no
  29392. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29393. - soname_spec='${libname}${release}${shared_ext}$major'
  29394. - shlibpath_var=LD_LIBRARY_PATH
  29395. - hardcode_into_libs=yes
  29396. - if test "$with_gnu_ld" = yes; then
  29397. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  29398. - shlibpath_overrides_runpath=no
  29399. - else
  29400. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  29401. - shlibpath_overrides_runpath=yes
  29402. - case $host_os in
  29403. - sco3.2v5*)
  29404. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  29405. - ;;
  29406. - esac
  29407. - fi
  29408. - sys_lib_dlsearch_path_spec='/usr/lib'
  29409. - ;;
  29410. -
  29411. -uts4*)
  29412. - version_type=linux
  29413. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29414. - soname_spec='${libname}${release}${shared_ext}$major'
  29415. - shlibpath_var=LD_LIBRARY_PATH
  29416. - ;;
  29417. -
  29418. -*)
  29419. - dynamic_linker=no
  29420. - ;;
  29421. -esac
  29422. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  29423. -$as_echo "$dynamic_linker" >&6; }
  29424. -test "$dynamic_linker" = no && can_build_shared=no
  29425. -
  29426. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  29427. - $as_echo_n "(cached) " >&6
  29428. -else
  29429. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  29430. -fi
  29431. -
  29432. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  29433. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  29434. - $as_echo_n "(cached) " >&6
  29435. -else
  29436. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  29437. -fi
  29438. -
  29439. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  29440. -
  29441. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  29442. -if test "$GCC" = yes; then
  29443. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  29444. -fi
  29445. -
  29446. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  29447. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  29448. -hardcode_action_CXX=
  29449. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  29450. - test -n "$runpath_var_CXX" || \
  29451. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  29452. -
  29453. - # We can hardcode non-existant directories.
  29454. - if test "$hardcode_direct_CXX" != no &&
  29455. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29456. - # have to relink, otherwise we might link with an installed library
  29457. - # when we should be linking with a yet-to-be-installed one
  29458. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  29459. - test "$hardcode_minus_L_CXX" != no; then
  29460. - # Linking always hardcodes the temporary library directory.
  29461. - hardcode_action_CXX=relink
  29462. - else
  29463. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  29464. - hardcode_action_CXX=immediate
  29465. - fi
  29466. -else
  29467. - # We cannot hardcode anything, or else we can only hardcode existing
  29468. - # directories.
  29469. - hardcode_action_CXX=unsupported
  29470. -fi
  29471. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  29472. -$as_echo "$hardcode_action_CXX" >&6; }
  29473. -
  29474. -if test "$hardcode_action_CXX" = relink; then
  29475. - # Fast installation is not supported
  29476. - enable_fast_install=no
  29477. -elif test "$shlibpath_overrides_runpath" = yes ||
  29478. - test "$enable_shared" = no; then
  29479. - # Fast installation is not necessary
  29480. - enable_fast_install=needless
  29481. -fi
  29482. -
  29483. -
  29484. -# The else clause should only fire when bootstrapping the
  29485. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  29486. -# with your package, and you will get complaints that there are
  29487. -# no rules to generate ltmain.sh.
  29488. -if test -f "$ltmain"; then
  29489. - # See if we are running on zsh, and set the options which allow our commands through
  29490. - # without removal of \ escapes.
  29491. - if test -n "${ZSH_VERSION+set}" ; then
  29492. - setopt NO_GLOB_SUBST
  29493. - fi
  29494. - # Now quote all the things that may contain metacharacters while being
  29495. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  29496. - # variables and quote the copies for generation of the libtool script.
  29497. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  29498. - SED SHELL STRIP \
  29499. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  29500. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  29501. - deplibs_check_method reload_flag reload_cmds need_locks \
  29502. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  29503. - lt_cv_sys_global_symbol_to_c_name_address \
  29504. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  29505. - old_postinstall_cmds old_postuninstall_cmds \
  29506. - compiler_CXX \
  29507. - CC_CXX \
  29508. - LD_CXX \
  29509. - lt_prog_compiler_wl_CXX \
  29510. - lt_prog_compiler_pic_CXX \
  29511. - lt_prog_compiler_static_CXX \
  29512. - lt_prog_compiler_no_builtin_flag_CXX \
  29513. - export_dynamic_flag_spec_CXX \
  29514. - thread_safe_flag_spec_CXX \
  29515. - whole_archive_flag_spec_CXX \
  29516. - enable_shared_with_static_runtimes_CXX \
  29517. - old_archive_cmds_CXX \
  29518. - old_archive_from_new_cmds_CXX \
  29519. - predep_objects_CXX \
  29520. - postdep_objects_CXX \
  29521. - predeps_CXX \
  29522. - postdeps_CXX \
  29523. - compiler_lib_search_path_CXX \
  29524. - compiler_lib_search_dirs_CXX \
  29525. - archive_cmds_CXX \
  29526. - archive_expsym_cmds_CXX \
  29527. - postinstall_cmds_CXX \
  29528. - postuninstall_cmds_CXX \
  29529. - old_archive_from_expsyms_cmds_CXX \
  29530. - allow_undefined_flag_CXX \
  29531. - no_undefined_flag_CXX \
  29532. - export_symbols_cmds_CXX \
  29533. - hardcode_libdir_flag_spec_CXX \
  29534. - hardcode_libdir_flag_spec_ld_CXX \
  29535. - hardcode_libdir_separator_CXX \
  29536. - hardcode_automatic_CXX \
  29537. - module_cmds_CXX \
  29538. - module_expsym_cmds_CXX \
  29539. - lt_cv_prog_compiler_c_o_CXX \
  29540. - fix_srcfile_path_CXX \
  29541. - exclude_expsyms_CXX \
  29542. - include_expsyms_CXX; do
  29543. -
  29544. - case $var in
  29545. - old_archive_cmds_CXX | \
  29546. - old_archive_from_new_cmds_CXX | \
  29547. - archive_cmds_CXX | \
  29548. - archive_expsym_cmds_CXX | \
  29549. - module_cmds_CXX | \
  29550. - module_expsym_cmds_CXX | \
  29551. - old_archive_from_expsyms_cmds_CXX | \
  29552. - export_symbols_cmds_CXX | \
  29553. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  29554. - postinstall_cmds | postuninstall_cmds | \
  29555. - old_postinstall_cmds | old_postuninstall_cmds | \
  29556. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  29557. - # Double-quote double-evaled strings.
  29558. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  29559. - ;;
  29560. - *)
  29561. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  29562. - ;;
  29563. - esac
  29564. - done
  29565. -
  29566. - case $lt_echo in
  29567. - *'\$0 --fallback-echo"')
  29568. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  29569. - ;;
  29570. - esac
  29571. -
  29572. -cfgfile="$ofile"
  29573. -
  29574. - cat <<__EOF__ >> "$cfgfile"
  29575. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  29576. -
  29577. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29578. -
  29579. -# Shell to use when invoking shell scripts.
  29580. -SHELL=$lt_SHELL
  29581. -
  29582. -# Whether or not to build shared libraries.
  29583. -build_libtool_libs=$enable_shared
  29584. -
  29585. -# Whether or not to build static libraries.
  29586. -build_old_libs=$enable_static
  29587. -
  29588. -# Whether or not to add -lc for building shared libraries.
  29589. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  29590. -
  29591. -# Whether or not to disallow shared libs when runtime libs are static
  29592. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  29593. -
  29594. -# Whether or not to optimize for fast installation.
  29595. -fast_install=$enable_fast_install
  29596. -
  29597. -# The host system.
  29598. -host_alias=$host_alias
  29599. -host=$host
  29600. -host_os=$host_os
  29601. -
  29602. -# The build system.
  29603. -build_alias=$build_alias
  29604. -build=$build
  29605. -build_os=$build_os
  29606. -
  29607. -# An echo program that does not interpret backslashes.
  29608. -echo=$lt_echo
  29609. -
  29610. -# The archiver.
  29611. -AR=$lt_AR
  29612. -AR_FLAGS=$lt_AR_FLAGS
  29613. -
  29614. -# A C compiler.
  29615. -LTCC=$lt_LTCC
  29616. -
  29617. -# LTCC compiler flags.
  29618. -LTCFLAGS=$lt_LTCFLAGS
  29619. -
  29620. -# A language-specific compiler.
  29621. -CC=$lt_compiler_CXX
  29622. -
  29623. -# Is the compiler the GNU C compiler?
  29624. -with_gcc=$GCC_CXX
  29625. -
  29626. -# An ERE matcher.
  29627. -EGREP=$lt_EGREP
  29628. -
  29629. -# The linker used to build libraries.
  29630. -LD=$lt_LD_CXX
  29631. -
  29632. -# Whether we need hard or soft links.
  29633. -LN_S=$lt_LN_S
  29634. -
  29635. -# A BSD-compatible nm program.
  29636. -NM=$lt_NM
  29637. -
  29638. -# A symbol stripping program
  29639. -STRIP=$lt_STRIP
  29640. -
  29641. -# Used to examine libraries when file_magic_cmd begins "file"
  29642. -MAGIC_CMD=$MAGIC_CMD
  29643. -
  29644. -# Used on cygwin: DLL creation program.
  29645. -DLLTOOL="$DLLTOOL"
  29646. -
  29647. -# Used on cygwin: object dumper.
  29648. -OBJDUMP="$OBJDUMP"
  29649. -
  29650. -# Used on cygwin: assembler.
  29651. -AS="$AS"
  29652. -
  29653. -# The name of the directory that contains temporary libtool files.
  29654. -objdir=$objdir
  29655. -
  29656. -# How to create reloadable object files.
  29657. -reload_flag=$lt_reload_flag
  29658. -reload_cmds=$lt_reload_cmds
  29659. -
  29660. -# How to pass a linker flag through the compiler.
  29661. -wl=$lt_lt_prog_compiler_wl_CXX
  29662. -
  29663. -# Object file suffix (normally "o").
  29664. -objext="$ac_objext"
  29665. -
  29666. -# Old archive suffix (normally "a").
  29667. -libext="$libext"
  29668. -
  29669. -# Shared library suffix (normally ".so").
  29670. -shrext_cmds='$shrext_cmds'
  29671. -
  29672. -# Executable file suffix (normally "").
  29673. -exeext="$exeext"
  29674. -
  29675. -# Additional compiler flags for building library objects.
  29676. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  29677. -pic_mode=$pic_mode
  29678. -
  29679. -# What is the maximum length of a command?
  29680. -max_cmd_len=$lt_cv_sys_max_cmd_len
  29681. -
  29682. -# Does compiler simultaneously support -c and -o options?
  29683. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  29684. -
  29685. -# Must we lock files when doing compilation?
  29686. -need_locks=$lt_need_locks
  29687. -
  29688. -# Do we need the lib prefix for modules?
  29689. -need_lib_prefix=$need_lib_prefix
  29690. -
  29691. -# Do we need a version for libraries?
  29692. -need_version=$need_version
  29693. -
  29694. -# Whether dlopen is supported.
  29695. -dlopen_support=$enable_dlopen
  29696. -
  29697. -# Whether dlopen of programs is supported.
  29698. -dlopen_self=$enable_dlopen_self
  29699. -
  29700. -# Whether dlopen of statically linked programs is supported.
  29701. -dlopen_self_static=$enable_dlopen_self_static
  29702. -
  29703. -# Compiler flag to prevent dynamic linking.
  29704. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  29705. -
  29706. -# Compiler flag to turn off builtin functions.
  29707. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  29708. -
  29709. -# Compiler flag to allow reflexive dlopens.
  29710. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  29711. -
  29712. -# Compiler flag to generate shared objects directly from archives.
  29713. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  29714. -
  29715. -# Compiler flag to generate thread-safe objects.
  29716. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  29717. -
  29718. -# Library versioning type.
  29719. -version_type=$version_type
  29720. -
  29721. -# Format of library name prefix.
  29722. -libname_spec=$lt_libname_spec
  29723. -
  29724. -# List of archive names. First name is the real one, the rest are links.
  29725. -# The last name is the one that the linker finds with -lNAME.
  29726. -library_names_spec=$lt_library_names_spec
  29727. -
  29728. -# The coded name of the library, if different from the real name.
  29729. -soname_spec=$lt_soname_spec
  29730. -
  29731. -# Commands used to build and install an old-style archive.
  29732. -RANLIB=$lt_RANLIB
  29733. -old_archive_cmds=$lt_old_archive_cmds_CXX
  29734. -old_postinstall_cmds=$lt_old_postinstall_cmds
  29735. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29736. -
  29737. -# Create an old-style archive from a shared archive.
  29738. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  29739. -
  29740. -# Create a temporary old-style archive to link instead of a shared archive.
  29741. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  29742. -
  29743. -# Commands used to build and install a shared archive.
  29744. -archive_cmds=$lt_archive_cmds_CXX
  29745. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  29746. -postinstall_cmds=$lt_postinstall_cmds
  29747. -postuninstall_cmds=$lt_postuninstall_cmds
  29748. -
  29749. -# Commands used to build a loadable module (assumed same as above if empty)
  29750. -module_cmds=$lt_module_cmds_CXX
  29751. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  29752. -
  29753. -# Commands to strip libraries.
  29754. -old_striplib=$lt_old_striplib
  29755. -striplib=$lt_striplib
  29756. -
  29757. -# Dependencies to place before the objects being linked to create a
  29758. -# shared library.
  29759. -predep_objects=$lt_predep_objects_CXX
  29760. -
  29761. -# Dependencies to place after the objects being linked to create a
  29762. -# shared library.
  29763. -postdep_objects=$lt_postdep_objects_CXX
  29764. -
  29765. -# Dependencies to place before the objects being linked to create a
  29766. -# shared library.
  29767. -predeps=$lt_predeps_CXX
  29768. -
  29769. -# Dependencies to place after the objects being linked to create a
  29770. -# shared library.
  29771. -postdeps=$lt_postdeps_CXX
  29772. -
  29773. -# The directories searched by this compiler when creating a shared
  29774. -# library
  29775. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  29776. -
  29777. -# The library search path used internally by the compiler when linking
  29778. -# a shared library.
  29779. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  29780. -
  29781. -# Method to check whether dependent libraries are shared objects.
  29782. -deplibs_check_method=$lt_deplibs_check_method
  29783. -
  29784. -# Command to use when deplibs_check_method == file_magic.
  29785. -file_magic_cmd=$lt_file_magic_cmd
  29786. -
  29787. -# Flag that allows shared libraries with undefined symbols to be built.
  29788. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  29789. -
  29790. -# Flag that forces no undefined symbols.
  29791. -no_undefined_flag=$lt_no_undefined_flag_CXX
  29792. -
  29793. -# Commands used to finish a libtool library installation in a directory.
  29794. -finish_cmds=$lt_finish_cmds
  29795. -
  29796. -# Same as above, but a single script fragment to be evaled but not shown.
  29797. -finish_eval=$lt_finish_eval
  29798. -
  29799. -# Take the output of nm and produce a listing of raw symbols and C names.
  29800. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29801. -
  29802. -# Transform the output of nm in a proper C declaration
  29803. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29804. -
  29805. -# Transform the output of nm in a C name address pair
  29806. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29807. -
  29808. -# This is the shared library runtime path variable.
  29809. -runpath_var=$runpath_var
  29810. -
  29811. -# This is the shared library path variable.
  29812. -shlibpath_var=$shlibpath_var
  29813. -
  29814. -# Is shlibpath searched before the hard-coded library search path?
  29815. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  29816. -
  29817. -# How to hardcode a shared library path into an executable.
  29818. -hardcode_action=$hardcode_action_CXX
  29819. -
  29820. -# Whether we should hardcode library paths into libraries.
  29821. -hardcode_into_libs=$hardcode_into_libs
  29822. -
  29823. -# Flag to hardcode \$libdir into a binary during linking.
  29824. -# This must work even if \$libdir does not exist.
  29825. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  29826. -
  29827. -# If ld is used when linking, flag to hardcode \$libdir into
  29828. -# a binary during linking. This must work even if \$libdir does
  29829. -# not exist.
  29830. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  29831. -
  29832. -# Whether we need a single -rpath flag with a separated argument.
  29833. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  29834. -
  29835. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  29836. -# resulting binary.
  29837. -hardcode_direct=$hardcode_direct_CXX
  29838. -
  29839. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  29840. -# resulting binary.
  29841. -hardcode_minus_L=$hardcode_minus_L_CXX
  29842. -
  29843. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  29844. -# the resulting binary.
  29845. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  29846. -
  29847. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  29848. -# and all subsequent libraries and executables linked against it.
  29849. -hardcode_automatic=$hardcode_automatic_CXX
  29850. -
  29851. -# Variables whose values should be saved in libtool wrapper scripts and
  29852. -# restored at relink time.
  29853. -variables_saved_for_relink="$variables_saved_for_relink"
  29854. -
  29855. -# Whether libtool must link a program against all its dependency libraries.
  29856. -link_all_deplibs=$link_all_deplibs_CXX
  29857. -
  29858. -# Compile-time system search path for libraries
  29859. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  29860. -
  29861. -# Run-time system search path for libraries
  29862. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  29863. -
  29864. -# Fix the shell variable \$srcfile for the compiler.
  29865. -fix_srcfile_path=$lt_fix_srcfile_path
  29866. -
  29867. -# Set to yes if exported symbols are required.
  29868. -always_export_symbols=$always_export_symbols_CXX
  29869. -
  29870. -# The commands to list exported symbols.
  29871. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  29872. -
  29873. -# The commands to extract the exported symbol list from a shared archive.
  29874. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  29875. -
  29876. -# Symbols that should not be listed in the preloaded symbols.
  29877. -exclude_expsyms=$lt_exclude_expsyms_CXX
  29878. -
  29879. -# Symbols that must always be exported.
  29880. -include_expsyms=$lt_include_expsyms_CXX
  29881. -
  29882. -# ### END LIBTOOL TAG CONFIG: $tagname
  29883. -
  29884. -__EOF__
  29885. -
  29886. -
  29887. -else
  29888. - # If there is no Makefile yet, we rely on a make rule to execute
  29889. - # `config.status --recheck' to rerun these tests and create the
  29890. - # libtool script then.
  29891. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  29892. - if test -f "$ltmain_in"; then
  29893. - test -f Makefile && make "$ltmain"
  29894. - fi
  29895. -fi
  29896. -
  29897. -
  29898. -ac_ext=c
  29899. -ac_cpp='$CPP $CPPFLAGS'
  29900. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29901. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29902. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29903. -
  29904. -CC=$lt_save_CC
  29905. -LDCXX=$LD
  29906. -LD=$lt_save_LD
  29907. -GCC=$lt_save_GCC
  29908. -with_gnu_ldcxx=$with_gnu_ld
  29909. -with_gnu_ld=$lt_save_with_gnu_ld
  29910. -lt_cv_path_LDCXX=$lt_cv_path_LD
  29911. -lt_cv_path_LD=$lt_save_path_LD
  29912. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  29913. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  29914. -
  29915. - else
  29916. - tagname=""
  29917. - fi
  29918. - ;;
  29919. -
  29920. - F77)
  29921. - if test -n "$F77" && test "X$F77" != "Xno"; then
  29922. -
  29923. -ac_ext=f
  29924. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  29925. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29926. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  29927. -
  29928. -
  29929. -archive_cmds_need_lc_F77=no
  29930. -allow_undefined_flag_F77=
  29931. -always_export_symbols_F77=no
  29932. -archive_expsym_cmds_F77=
  29933. -export_dynamic_flag_spec_F77=
  29934. -hardcode_direct_F77=no
  29935. -hardcode_libdir_flag_spec_F77=
  29936. -hardcode_libdir_flag_spec_ld_F77=
  29937. -hardcode_libdir_separator_F77=
  29938. -hardcode_minus_L_F77=no
  29939. -hardcode_automatic_F77=no
  29940. -module_cmds_F77=
  29941. -module_expsym_cmds_F77=
  29942. -link_all_deplibs_F77=unknown
  29943. -old_archive_cmds_F77=$old_archive_cmds
  29944. -no_undefined_flag_F77=
  29945. -whole_archive_flag_spec_F77=
  29946. -enable_shared_with_static_runtimes_F77=no
  29947. -
  29948. -# Source file extension for f77 test sources.
  29949. -ac_ext=f
  29950. -
  29951. -# Object file extension for compiled f77 test sources.
  29952. -objext=o
  29953. -objext_F77=$objext
  29954. -
  29955. -# Code to be used in simple compile tests
  29956. -lt_simple_compile_test_code="\
  29957. - subroutine t
  29958. - return
  29959. - end
  29960. -"
  29961. -
  29962. -# Code to be used in simple link tests
  29963. -lt_simple_link_test_code="\
  29964. - program t
  29965. - end
  29966. -"
  29967. -
  29968. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  29969. -
  29970. -# If no C compiler was specified, use CC.
  29971. -LTCC=${LTCC-"$CC"}
  29972. -
  29973. -# If no C compiler flags were specified, use CFLAGS.
  29974. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  29975. -
  29976. -# Allow CC to be a program name with arguments.
  29977. -compiler=$CC
  29978. -
  29979. -
  29980. -# save warnings/boilerplate of simple test code
  29981. -ac_outfile=conftest.$ac_objext
  29982. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  29983. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29984. -_lt_compiler_boilerplate=`cat conftest.err`
  29985. -$rm conftest*
  29986. -
  29987. -ac_outfile=conftest.$ac_objext
  29988. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  29989. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29990. -_lt_linker_boilerplate=`cat conftest.err`
  29991. -$rm -r conftest*
  29992. -
  29993. -
  29994. -# Allow CC to be a program name with arguments.
  29995. -lt_save_CC="$CC"
  29996. -CC=${F77-"f77"}
  29997. -compiler=$CC
  29998. -compiler_F77=$CC
  29999. -for cc_temp in $compiler""; do
  30000. - case $cc_temp in
  30001. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30002. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30003. - \-*) ;;
  30004. - *) break;;
  30005. - esac
  30006. -done
  30007. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30008. -
  30009. -
  30010. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30011. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  30012. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30013. -$as_echo "$can_build_shared" >&6; }
  30014. -
  30015. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30016. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  30017. -test "$can_build_shared" = "no" && enable_shared=no
  30018. -
  30019. -# On AIX, shared libraries and static libraries use the same namespace, and
  30020. -# are all built from PIC.
  30021. -case $host_os in
  30022. -aix3*)
  30023. - test "$enable_shared" = yes && enable_static=no
  30024. - if test -n "$RANLIB"; then
  30025. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30026. - postinstall_cmds='$RANLIB $lib'
  30027. - fi
  30028. - ;;
  30029. -aix[4-9]*)
  30030. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30031. - test "$enable_shared" = yes && enable_static=no
  30032. - fi
  30033. - ;;
  30034. -esac
  30035. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  30036. -$as_echo "$enable_shared" >&6; }
  30037. -
  30038. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30039. -$as_echo_n "checking whether to build static libraries... " >&6; }
  30040. -# Make sure either enable_shared or enable_static is yes.
  30041. -test "$enable_shared" = yes || enable_static=yes
  30042. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  30043. -$as_echo "$enable_static" >&6; }
  30044. -
  30045. -GCC_F77="$G77"
  30046. -LD_F77="$LD"
  30047. -
  30048. -lt_prog_compiler_wl_F77=
  30049. -lt_prog_compiler_pic_F77=
  30050. -lt_prog_compiler_static_F77=
  30051. -
  30052. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30053. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  30054. -
  30055. - if test "$GCC" = yes; then
  30056. - lt_prog_compiler_wl_F77='-Wl,'
  30057. - lt_prog_compiler_static_F77='-static'
  30058. -
  30059. - case $host_os in
  30060. - aix*)
  30061. - # All AIX code is PIC.
  30062. - if test "$host_cpu" = ia64; then
  30063. - # AIX 5 now supports IA64 processor
  30064. - lt_prog_compiler_static_F77='-Bstatic'
  30065. - fi
  30066. - ;;
  30067. -
  30068. - amigaos*)
  30069. - # FIXME: we need at least 68020 code to build shared libraries, but
  30070. - # adding the `-m68020' flag to GCC prevents building anything better,
  30071. - # like `-m68040'.
  30072. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  30073. - ;;
  30074. -
  30075. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30076. - # PIC is the default for these OSes.
  30077. - ;;
  30078. -
  30079. - mingw* | cygwin* | pw32* | os2*)
  30080. - # This hack is so that the source file can tell whether it is being
  30081. - # built for inclusion in a dll (and should export symbols for example).
  30082. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  30083. - # (--disable-auto-import) libraries
  30084. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30085. - ;;
  30086. -
  30087. - darwin* | rhapsody*)
  30088. - # PIC is the default on this platform
  30089. - # Common symbols not allowed in MH_DYLIB files
  30090. - lt_prog_compiler_pic_F77='-fno-common'
  30091. - ;;
  30092. -
  30093. - interix[3-9]*)
  30094. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  30095. - # Instead, we relocate shared libraries at runtime.
  30096. - ;;
  30097. -
  30098. - msdosdjgpp*)
  30099. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  30100. - # on systems that don't support them.
  30101. - lt_prog_compiler_can_build_shared_F77=no
  30102. - enable_shared=no
  30103. - ;;
  30104. -
  30105. - sysv4*MP*)
  30106. - if test -d /usr/nec; then
  30107. - lt_prog_compiler_pic_F77=-Kconform_pic
  30108. - fi
  30109. - ;;
  30110. -
  30111. - hpux*)
  30112. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30113. - # not for PA HP-UX.
  30114. - case $host_cpu in
  30115. - hppa*64*|ia64*)
  30116. - # +Z the default
  30117. - ;;
  30118. - *)
  30119. - lt_prog_compiler_pic_F77='-fPIC'
  30120. - ;;
  30121. - esac
  30122. - ;;
  30123. -
  30124. - *)
  30125. - lt_prog_compiler_pic_F77='-fPIC'
  30126. - ;;
  30127. - esac
  30128. - else
  30129. - # PORTME Check for flag to pass linker flags through the system compiler.
  30130. - case $host_os in
  30131. - aix*)
  30132. - lt_prog_compiler_wl_F77='-Wl,'
  30133. - if test "$host_cpu" = ia64; then
  30134. - # AIX 5 now supports IA64 processor
  30135. - lt_prog_compiler_static_F77='-Bstatic'
  30136. - else
  30137. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  30138. - fi
  30139. - ;;
  30140. - darwin*)
  30141. - # PIC is the default on this platform
  30142. - # Common symbols not allowed in MH_DYLIB files
  30143. - case $cc_basename in
  30144. - xlc*)
  30145. - lt_prog_compiler_pic_F77='-qnocommon'
  30146. - lt_prog_compiler_wl_F77='-Wl,'
  30147. - ;;
  30148. - esac
  30149. - ;;
  30150. -
  30151. - mingw* | cygwin* | pw32* | os2*)
  30152. - # This hack is so that the source file can tell whether it is being
  30153. - # built for inclusion in a dll (and should export symbols for example).
  30154. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30155. - ;;
  30156. -
  30157. - hpux9* | hpux10* | hpux11*)
  30158. - lt_prog_compiler_wl_F77='-Wl,'
  30159. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30160. - # not for PA HP-UX.
  30161. - case $host_cpu in
  30162. - hppa*64*|ia64*)
  30163. - # +Z the default
  30164. - ;;
  30165. - *)
  30166. - lt_prog_compiler_pic_F77='+Z'
  30167. - ;;
  30168. - esac
  30169. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  30170. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  30171. - ;;
  30172. -
  30173. - irix5* | irix6* | nonstopux*)
  30174. - lt_prog_compiler_wl_F77='-Wl,'
  30175. - # PIC (with -KPIC) is the default.
  30176. - lt_prog_compiler_static_F77='-non_shared'
  30177. - ;;
  30178. -
  30179. - newsos6)
  30180. - lt_prog_compiler_pic_F77='-KPIC'
  30181. - lt_prog_compiler_static_F77='-Bstatic'
  30182. - ;;
  30183. -
  30184. - linux* | k*bsd*-gnu)
  30185. - case $cc_basename in
  30186. - icc* | ecc*)
  30187. - lt_prog_compiler_wl_F77='-Wl,'
  30188. - lt_prog_compiler_pic_F77='-KPIC'
  30189. - lt_prog_compiler_static_F77='-static'
  30190. - ;;
  30191. - pgcc* | pgf77* | pgf90* | pgf95*)
  30192. - # Portland Group compilers (*not* the Pentium gcc compiler,
  30193. - # which looks to be a dead project)
  30194. - lt_prog_compiler_wl_F77='-Wl,'
  30195. - lt_prog_compiler_pic_F77='-fpic'
  30196. - lt_prog_compiler_static_F77='-Bstatic'
  30197. - ;;
  30198. - ccc*)
  30199. - lt_prog_compiler_wl_F77='-Wl,'
  30200. - # All Alpha code is PIC.
  30201. - lt_prog_compiler_static_F77='-non_shared'
  30202. - ;;
  30203. - *)
  30204. - case `$CC -V 2>&1 | sed 5q` in
  30205. - *Sun\ C*)
  30206. - # Sun C 5.9
  30207. - lt_prog_compiler_pic_F77='-KPIC'
  30208. - lt_prog_compiler_static_F77='-Bstatic'
  30209. - lt_prog_compiler_wl_F77='-Wl,'
  30210. - ;;
  30211. - *Sun\ F*)
  30212. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  30213. - lt_prog_compiler_pic_F77='-KPIC'
  30214. - lt_prog_compiler_static_F77='-Bstatic'
  30215. - lt_prog_compiler_wl_F77=''
  30216. - ;;
  30217. - esac
  30218. - ;;
  30219. - esac
  30220. - ;;
  30221. -
  30222. - osf3* | osf4* | osf5*)
  30223. - lt_prog_compiler_wl_F77='-Wl,'
  30224. - # All OSF/1 code is PIC.
  30225. - lt_prog_compiler_static_F77='-non_shared'
  30226. - ;;
  30227. -
  30228. - rdos*)
  30229. - lt_prog_compiler_static_F77='-non_shared'
  30230. - ;;
  30231. -
  30232. - solaris*)
  30233. - lt_prog_compiler_pic_F77='-KPIC'
  30234. - lt_prog_compiler_static_F77='-Bstatic'
  30235. - case $cc_basename in
  30236. - f77* | f90* | f95*)
  30237. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  30238. - *)
  30239. - lt_prog_compiler_wl_F77='-Wl,';;
  30240. - esac
  30241. - ;;
  30242. -
  30243. - sunos4*)
  30244. - lt_prog_compiler_wl_F77='-Qoption ld '
  30245. - lt_prog_compiler_pic_F77='-PIC'
  30246. - lt_prog_compiler_static_F77='-Bstatic'
  30247. - ;;
  30248. -
  30249. - sysv4 | sysv4.2uw2* | sysv4.3*)
  30250. - lt_prog_compiler_wl_F77='-Wl,'
  30251. - lt_prog_compiler_pic_F77='-KPIC'
  30252. - lt_prog_compiler_static_F77='-Bstatic'
  30253. - ;;
  30254. -
  30255. - sysv4*MP*)
  30256. - if test -d /usr/nec ;then
  30257. - lt_prog_compiler_pic_F77='-Kconform_pic'
  30258. - lt_prog_compiler_static_F77='-Bstatic'
  30259. - fi
  30260. - ;;
  30261. -
  30262. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30263. - lt_prog_compiler_wl_F77='-Wl,'
  30264. - lt_prog_compiler_pic_F77='-KPIC'
  30265. - lt_prog_compiler_static_F77='-Bstatic'
  30266. - ;;
  30267. -
  30268. - unicos*)
  30269. - lt_prog_compiler_wl_F77='-Wl,'
  30270. - lt_prog_compiler_can_build_shared_F77=no
  30271. - ;;
  30272. -
  30273. - uts4*)
  30274. - lt_prog_compiler_pic_F77='-pic'
  30275. - lt_prog_compiler_static_F77='-Bstatic'
  30276. - ;;
  30277. -
  30278. - *)
  30279. - lt_prog_compiler_can_build_shared_F77=no
  30280. - ;;
  30281. - esac
  30282. - fi
  30283. -
  30284. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  30285. -$as_echo "$lt_prog_compiler_pic_F77" >&6; }
  30286. -
  30287. -#
  30288. -# Check to make sure the PIC flag actually works.
  30289. -#
  30290. -if test -n "$lt_prog_compiler_pic_F77"; then
  30291. -
  30292. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  30293. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  30294. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  30295. - $as_echo_n "(cached) " >&6
  30296. -else
  30297. - lt_cv_prog_compiler_pic_works_F77=no
  30298. - ac_outfile=conftest.$ac_objext
  30299. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30300. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  30301. - # Insert the option either (1) after the last *FLAGS variable, or
  30302. - # (2) before a word containing "conftest.", or (3) at the end.
  30303. - # Note that $ac_compile itself does not contain backslashes and begins
  30304. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30305. - # The option is referenced via a variable to avoid confusing sed.
  30306. - lt_compile=`echo "$ac_compile" | $SED \
  30307. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30308. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30309. - -e 's:$: $lt_compiler_flag:'`
  30310. - (eval echo "\"\$as_me:14564: $lt_compile\"" >&5)
  30311. - (eval "$lt_compile" 2>conftest.err)
  30312. - ac_status=$?
  30313. - cat conftest.err >&5
  30314. - echo "$as_me:14568: \$? = $ac_status" >&5
  30315. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30316. - # The compiler can only warn and ignore the option if not recognized
  30317. - # So say no if there are warnings other than the usual output.
  30318. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30319. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30320. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30321. - lt_cv_prog_compiler_pic_works_F77=yes
  30322. - fi
  30323. - fi
  30324. - $rm conftest*
  30325. -
  30326. -fi
  30327. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  30328. -$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
  30329. -
  30330. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  30331. - case $lt_prog_compiler_pic_F77 in
  30332. - "" | " "*) ;;
  30333. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  30334. - esac
  30335. -else
  30336. - lt_prog_compiler_pic_F77=
  30337. - lt_prog_compiler_can_build_shared_F77=no
  30338. -fi
  30339. -
  30340. -fi
  30341. -case $host_os in
  30342. - # For platforms which do not support PIC, -DPIC is meaningless:
  30343. - *djgpp*)
  30344. - lt_prog_compiler_pic_F77=
  30345. - ;;
  30346. - *)
  30347. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  30348. - ;;
  30349. -esac
  30350. -
  30351. -#
  30352. -# Check to make sure the static flag actually works.
  30353. -#
  30354. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  30355. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30356. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  30357. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  30358. - $as_echo_n "(cached) " >&6
  30359. -else
  30360. - lt_cv_prog_compiler_static_works_F77=no
  30361. - save_LDFLAGS="$LDFLAGS"
  30362. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30363. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  30364. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30365. - # The linker can only warn and ignore the option if not recognized
  30366. - # So say no if there are warnings
  30367. - if test -s conftest.err; then
  30368. - # Append any errors to the config.log.
  30369. - cat conftest.err 1>&5
  30370. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30371. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30372. - if diff conftest.exp conftest.er2 >/dev/null; then
  30373. - lt_cv_prog_compiler_static_works_F77=yes
  30374. - fi
  30375. - else
  30376. - lt_cv_prog_compiler_static_works_F77=yes
  30377. - fi
  30378. - fi
  30379. - $rm -r conftest*
  30380. - LDFLAGS="$save_LDFLAGS"
  30381. -
  30382. -fi
  30383. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  30384. -$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
  30385. -
  30386. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  30387. - :
  30388. -else
  30389. - lt_prog_compiler_static_F77=
  30390. -fi
  30391. -
  30392. -
  30393. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30394. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  30395. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  30396. - $as_echo_n "(cached) " >&6
  30397. -else
  30398. - lt_cv_prog_compiler_c_o_F77=no
  30399. - $rm -r conftest 2>/dev/null
  30400. - mkdir conftest
  30401. - cd conftest
  30402. - mkdir out
  30403. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30404. -
  30405. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  30406. - # Insert the option either (1) after the last *FLAGS variable, or
  30407. - # (2) before a word containing "conftest.", or (3) at the end.
  30408. - # Note that $ac_compile itself does not contain backslashes and begins
  30409. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30410. - lt_compile=`echo "$ac_compile" | $SED \
  30411. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30412. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30413. - -e 's:$: $lt_compiler_flag:'`
  30414. - (eval echo "\"\$as_me:14668: $lt_compile\"" >&5)
  30415. - (eval "$lt_compile" 2>out/conftest.err)
  30416. - ac_status=$?
  30417. - cat out/conftest.err >&5
  30418. - echo "$as_me:14672: \$? = $ac_status" >&5
  30419. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30420. - then
  30421. - # The compiler can only warn and ignore the option if not recognized
  30422. - # So say no if there are warnings
  30423. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30424. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30425. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30426. - lt_cv_prog_compiler_c_o_F77=yes
  30427. - fi
  30428. - fi
  30429. - chmod u+w . 2>&5
  30430. - $rm conftest*
  30431. - # SGI C++ compiler will create directory out/ii_files/ for
  30432. - # template instantiation
  30433. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30434. - $rm out/* && rmdir out
  30435. - cd ..
  30436. - rmdir conftest
  30437. - $rm conftest*
  30438. -
  30439. -fi
  30440. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  30441. -$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  30442. -
  30443. -
  30444. -hard_links="nottested"
  30445. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  30446. - # do not overwrite the value of need_locks provided by the user
  30447. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30448. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  30449. - hard_links=yes
  30450. - $rm conftest*
  30451. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30452. - touch conftest.a
  30453. - ln conftest.a conftest.b 2>&5 || hard_links=no
  30454. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30455. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  30456. -$as_echo "$hard_links" >&6; }
  30457. - if test "$hard_links" = no; then
  30458. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30459. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30460. - need_locks=warn
  30461. - fi
  30462. -else
  30463. - need_locks=no
  30464. -fi
  30465. -
  30466. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30467. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  30468. -
  30469. - runpath_var=
  30470. - allow_undefined_flag_F77=
  30471. - enable_shared_with_static_runtimes_F77=no
  30472. - archive_cmds_F77=
  30473. - archive_expsym_cmds_F77=
  30474. - old_archive_From_new_cmds_F77=
  30475. - old_archive_from_expsyms_cmds_F77=
  30476. - export_dynamic_flag_spec_F77=
  30477. - whole_archive_flag_spec_F77=
  30478. - thread_safe_flag_spec_F77=
  30479. - hardcode_libdir_flag_spec_F77=
  30480. - hardcode_libdir_flag_spec_ld_F77=
  30481. - hardcode_libdir_separator_F77=
  30482. - hardcode_direct_F77=no
  30483. - hardcode_minus_L_F77=no
  30484. - hardcode_shlibpath_var_F77=unsupported
  30485. - link_all_deplibs_F77=unknown
  30486. - hardcode_automatic_F77=no
  30487. - module_cmds_F77=
  30488. - module_expsym_cmds_F77=
  30489. - always_export_symbols_F77=no
  30490. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30491. - # include_expsyms should be a list of space-separated symbols to be *always*
  30492. - # included in the symbol list
  30493. - include_expsyms_F77=
  30494. - # exclude_expsyms can be an extended regexp of symbols to exclude
  30495. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  30496. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  30497. - # as well as any symbol that contains `d'.
  30498. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  30499. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  30500. - # platforms (ab)use it in PIC code, but their linkers get confused if
  30501. - # the symbol is explicitly referenced. Since portable code cannot
  30502. - # rely on this symbol name, it's probably fine to never include it in
  30503. - # preloaded symbol tables.
  30504. - # Exclude shared library initialization/finalization symbols.
  30505. - extract_expsyms_cmds=
  30506. - # Just being paranoid about ensuring that cc_basename is set.
  30507. - for cc_temp in $compiler""; do
  30508. - case $cc_temp in
  30509. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30510. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30511. - \-*) ;;
  30512. - *) break;;
  30513. - esac
  30514. -done
  30515. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30516. -
  30517. - case $host_os in
  30518. - cygwin* | mingw* | pw32*)
  30519. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  30520. - # When not using gcc, we currently assume that we are using
  30521. - # Microsoft Visual C++.
  30522. - if test "$GCC" != yes; then
  30523. - with_gnu_ld=no
  30524. - fi
  30525. - ;;
  30526. - interix*)
  30527. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  30528. - with_gnu_ld=yes
  30529. - ;;
  30530. - openbsd*)
  30531. - with_gnu_ld=no
  30532. - ;;
  30533. - esac
  30534. -
  30535. - ld_shlibs_F77=yes
  30536. - if test "$with_gnu_ld" = yes; then
  30537. - # If archive_cmds runs LD, not CC, wlarc should be empty
  30538. - wlarc='${wl}'
  30539. -
  30540. - # Set some defaults for GNU ld with shared library support. These
  30541. - # are reset later if shared libraries are not supported. Putting them
  30542. - # here allows them to be overridden if necessary.
  30543. - runpath_var=LD_RUN_PATH
  30544. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  30545. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  30546. - # ancient GNU ld didn't support --whole-archive et. al.
  30547. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  30548. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30549. - else
  30550. - whole_archive_flag_spec_F77=
  30551. - fi
  30552. - supports_anon_versioning=no
  30553. - case `$LD -v 2>/dev/null` in
  30554. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  30555. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  30556. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  30557. - *\ 2.11.*) ;; # other 2.11 versions
  30558. - *) supports_anon_versioning=yes ;;
  30559. - esac
  30560. -
  30561. - # See if GNU ld supports shared libraries.
  30562. - case $host_os in
  30563. - aix[3-9]*)
  30564. - # On AIX/PPC, the GNU linker is very broken
  30565. - if test "$host_cpu" != ia64; then
  30566. - ld_shlibs_F77=no
  30567. - cat <<EOF 1>&2
  30568. -
  30569. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  30570. -*** to be unable to reliably create shared libraries on AIX.
  30571. -*** Therefore, libtool is disabling shared libraries support. If you
  30572. -*** really care for shared libraries, you may want to modify your PATH
  30573. -*** so that a non-GNU linker is found, and then restart.
  30574. -
  30575. -EOF
  30576. - fi
  30577. - ;;
  30578. -
  30579. - amigaos*)
  30580. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  30581. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30582. - hardcode_minus_L_F77=yes
  30583. -
  30584. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  30585. - # that the semantics of dynamic libraries on AmigaOS, at least up
  30586. - # to version 4, is to share data among multiple programs linked
  30587. - # with the same dynamic library. Since this doesn't match the
  30588. - # behavior of shared libraries on other platforms, we can't use
  30589. - # them.
  30590. - ld_shlibs_F77=no
  30591. - ;;
  30592. -
  30593. - beos*)
  30594. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30595. - allow_undefined_flag_F77=unsupported
  30596. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30597. - # support --undefined. This deserves some investigation. FIXME
  30598. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30599. - else
  30600. - ld_shlibs_F77=no
  30601. - fi
  30602. - ;;
  30603. -
  30604. - cygwin* | mingw* | pw32*)
  30605. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  30606. - # as there is no search path for DLLs.
  30607. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30608. - allow_undefined_flag_F77=unsupported
  30609. - always_export_symbols_F77=no
  30610. - enable_shared_with_static_runtimes_F77=yes
  30611. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  30612. -
  30613. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  30614. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30615. - # If the export-symbols file already is a .def file (1st line
  30616. - # is EXPORTS), use it as is; otherwise, prepend...
  30617. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30618. - cp $export_symbols $output_objdir/$soname.def;
  30619. - else
  30620. - echo EXPORTS > $output_objdir/$soname.def;
  30621. - cat $export_symbols >> $output_objdir/$soname.def;
  30622. - fi~
  30623. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30624. - else
  30625. - ld_shlibs_F77=no
  30626. - fi
  30627. - ;;
  30628. -
  30629. - interix[3-9]*)
  30630. - hardcode_direct_F77=no
  30631. - hardcode_shlibpath_var_F77=no
  30632. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  30633. - export_dynamic_flag_spec_F77='${wl}-E'
  30634. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  30635. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  30636. - # default) and relocated if they conflict, which is a slow very memory
  30637. - # consuming and fragmenting process. To avoid this, we pick a random,
  30638. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  30639. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  30640. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  30641. - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  30642. - ;;
  30643. -
  30644. - gnu* | linux* | k*bsd*-gnu)
  30645. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30646. - tmp_addflag=
  30647. - case $cc_basename,$host_cpu in
  30648. - pgcc*) # Portland Group C compiler
  30649. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  30650. - tmp_addflag=' $pic_flag'
  30651. - ;;
  30652. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  30653. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  30654. - tmp_addflag=' $pic_flag -Mnomain' ;;
  30655. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  30656. - tmp_addflag=' -i_dynamic' ;;
  30657. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  30658. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  30659. - ifc* | ifort*) # Intel Fortran compiler
  30660. - tmp_addflag=' -nofor_main' ;;
  30661. - esac
  30662. - case `$CC -V 2>&1 | sed 5q` in
  30663. - *Sun\ C*) # Sun C 5.9
  30664. - whole_archive_flag_spec_F77='${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'
  30665. - tmp_sharedflag='-G' ;;
  30666. - *Sun\ F*) # Sun Fortran 8.3
  30667. - tmp_sharedflag='-G' ;;
  30668. - *)
  30669. - tmp_sharedflag='-shared' ;;
  30670. - esac
  30671. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30672. -
  30673. - if test $supports_anon_versioning = yes; then
  30674. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  30675. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30676. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  30677. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  30678. - fi
  30679. - else
  30680. - ld_shlibs_F77=no
  30681. - fi
  30682. - ;;
  30683. -
  30684. - netbsd*)
  30685. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30686. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  30687. - wlarc=
  30688. - else
  30689. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30690. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30691. - fi
  30692. - ;;
  30693. -
  30694. - solaris*)
  30695. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  30696. - ld_shlibs_F77=no
  30697. - cat <<EOF 1>&2
  30698. -
  30699. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30700. -*** create shared libraries on Solaris systems. Therefore, libtool
  30701. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30702. -*** binutils to release 2.9.1 or newer. Another option is to modify
  30703. -*** your PATH or compiler configuration so that the native linker is
  30704. -*** used, and then restart.
  30705. -
  30706. -EOF
  30707. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30708. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30709. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30710. - else
  30711. - ld_shlibs_F77=no
  30712. - fi
  30713. - ;;
  30714. -
  30715. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  30716. - case `$LD -v 2>&1` in
  30717. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  30718. - ld_shlibs_F77=no
  30719. - cat <<_LT_EOF 1>&2
  30720. -
  30721. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  30722. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  30723. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30724. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  30725. -*** your PATH or compiler configuration so that the native linker is
  30726. -*** used, and then restart.
  30727. -
  30728. -_LT_EOF
  30729. - ;;
  30730. - *)
  30731. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30732. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  30733. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  30734. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  30735. - else
  30736. - ld_shlibs_F77=no
  30737. - fi
  30738. - ;;
  30739. - esac
  30740. - ;;
  30741. -
  30742. - sunos4*)
  30743. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30744. - wlarc=
  30745. - hardcode_direct_F77=yes
  30746. - hardcode_shlibpath_var_F77=no
  30747. - ;;
  30748. -
  30749. - *)
  30750. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30751. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30752. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30753. - else
  30754. - ld_shlibs_F77=no
  30755. - fi
  30756. - ;;
  30757. - esac
  30758. -
  30759. - if test "$ld_shlibs_F77" = no; then
  30760. - runpath_var=
  30761. - hardcode_libdir_flag_spec_F77=
  30762. - export_dynamic_flag_spec_F77=
  30763. - whole_archive_flag_spec_F77=
  30764. - fi
  30765. - else
  30766. - # PORTME fill in a description of your system's linker (not GNU ld)
  30767. - case $host_os in
  30768. - aix3*)
  30769. - allow_undefined_flag_F77=unsupported
  30770. - always_export_symbols_F77=yes
  30771. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  30772. - # Note: this linker hardcodes the directories in LIBPATH if there
  30773. - # are no directories specified by -L.
  30774. - hardcode_minus_L_F77=yes
  30775. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  30776. - # Neither direct hardcoding nor static linking is supported with a
  30777. - # broken collect2.
  30778. - hardcode_direct_F77=unsupported
  30779. - fi
  30780. - ;;
  30781. -
  30782. - aix[4-9]*)
  30783. - if test "$host_cpu" = ia64; then
  30784. - # On IA64, the linker does run time linking by default, so we don't
  30785. - # have to do anything special.
  30786. - aix_use_runtimelinking=no
  30787. - exp_sym_flag='-Bexport'
  30788. - no_entry_flag=""
  30789. - else
  30790. - # If we're using GNU nm, then we don't want the "-C" option.
  30791. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30792. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30793. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  30794. - else
  30795. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  30796. - fi
  30797. - aix_use_runtimelinking=no
  30798. -
  30799. - # Test if we are trying to use run time linking or normal
  30800. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30801. - # need to do runtime linking.
  30802. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  30803. - for ld_flag in $LDFLAGS; do
  30804. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  30805. - aix_use_runtimelinking=yes
  30806. - break
  30807. - fi
  30808. - done
  30809. - ;;
  30810. - esac
  30811. -
  30812. - exp_sym_flag='-bexport'
  30813. - no_entry_flag='-bnoentry'
  30814. - fi
  30815. -
  30816. - # When large executables or shared objects are built, AIX ld can
  30817. - # have problems creating the table of contents. If linking a library
  30818. - # or program results in "error TOC overflow" add -mminimal-toc to
  30819. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30820. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30821. -
  30822. - archive_cmds_F77=''
  30823. - hardcode_direct_F77=yes
  30824. - hardcode_libdir_separator_F77=':'
  30825. - link_all_deplibs_F77=yes
  30826. -
  30827. - if test "$GCC" = yes; then
  30828. - case $host_os in aix4.[012]|aix4.[012].*)
  30829. - # We only want to do this on AIX 4.2 and lower, the check
  30830. - # below for broken collect2 doesn't work under 4.3+
  30831. - collect2name=`${CC} -print-prog-name=collect2`
  30832. - if test -f "$collect2name" && \
  30833. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  30834. - then
  30835. - # We have reworked collect2
  30836. - :
  30837. - else
  30838. - # We have old collect2
  30839. - hardcode_direct_F77=unsupported
  30840. - # It fails to find uninstalled libraries when the uninstalled
  30841. - # path is not listed in the libpath. Setting hardcode_minus_L
  30842. - # to unsupported forces relinking
  30843. - hardcode_minus_L_F77=yes
  30844. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30845. - hardcode_libdir_separator_F77=
  30846. - fi
  30847. - ;;
  30848. - esac
  30849. - shared_flag='-shared'
  30850. - if test "$aix_use_runtimelinking" = yes; then
  30851. - shared_flag="$shared_flag "'${wl}-G'
  30852. - fi
  30853. - else
  30854. - # not using gcc
  30855. - if test "$host_cpu" = ia64; then
  30856. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30857. - # chokes on -Wl,-G. The following line is correct:
  30858. - shared_flag='-G'
  30859. - else
  30860. - if test "$aix_use_runtimelinking" = yes; then
  30861. - shared_flag='${wl}-G'
  30862. - else
  30863. - shared_flag='${wl}-bM:SRE'
  30864. - fi
  30865. - fi
  30866. - fi
  30867. -
  30868. - # It seems that -bexpall does not export symbols beginning with
  30869. - # underscore (_), so it is better to generate a list of symbols to export.
  30870. - always_export_symbols_F77=yes
  30871. - if test "$aix_use_runtimelinking" = yes; then
  30872. - # Warning - without using the other runtime loading flags (-brtl),
  30873. - # -berok will link without error, but may produce a broken library.
  30874. - allow_undefined_flag_F77='-berok'
  30875. - # Determine the default libpath from the value encoded in an empty executable.
  30876. - cat >conftest.$ac_ext <<_ACEOF
  30877. - program main
  30878. -
  30879. - end
  30880. -_ACEOF
  30881. -rm -f conftest.$ac_objext conftest$ac_exeext
  30882. -if { (ac_try="$ac_link"
  30883. -case "(($ac_try" in
  30884. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30885. - *) ac_try_echo=$ac_try;;
  30886. -esac
  30887. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30888. -$as_echo "$ac_try_echo") >&5
  30889. - (eval "$ac_link") 2>conftest.er1
  30890. - ac_status=$?
  30891. - grep -v '^ *+' conftest.er1 >conftest.err
  30892. - rm -f conftest.er1
  30893. - cat conftest.err >&5
  30894. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30895. - (exit $ac_status); } && {
  30896. - test -z "$ac_f77_werror_flag" ||
  30897. - test ! -s conftest.err
  30898. - } && test -s conftest$ac_exeext && {
  30899. - test "$cross_compiling" = yes ||
  30900. - $as_test_x conftest$ac_exeext
  30901. - }; then
  30902. -
  30903. -lt_aix_libpath_sed='
  30904. - /Import File Strings/,/^$/ {
  30905. - /^0/ {
  30906. - s/^0 *\(.*\)$/\1/
  30907. - p
  30908. - }
  30909. - }'
  30910. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30911. -# Check for a 64-bit object if we didn't find anything.
  30912. -if test -z "$aix_libpath"; then
  30913. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30914. -fi
  30915. -else
  30916. - $as_echo "$as_me: failed program was:" >&5
  30917. -sed 's/^/| /' conftest.$ac_ext >&5
  30918. -
  30919. -
  30920. -fi
  30921. -
  30922. -rm -rf conftest.dSYM
  30923. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30924. - conftest$ac_exeext conftest.$ac_ext
  30925. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30926. -
  30927. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  30928. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  30929. - else
  30930. - if test "$host_cpu" = ia64; then
  30931. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  30932. - allow_undefined_flag_F77="-z nodefs"
  30933. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  30934. - else
  30935. - # Determine the default libpath from the value encoded in an empty executable.
  30936. - cat >conftest.$ac_ext <<_ACEOF
  30937. - program main
  30938. -
  30939. - end
  30940. -_ACEOF
  30941. -rm -f conftest.$ac_objext conftest$ac_exeext
  30942. -if { (ac_try="$ac_link"
  30943. -case "(($ac_try" in
  30944. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30945. - *) ac_try_echo=$ac_try;;
  30946. -esac
  30947. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30948. -$as_echo "$ac_try_echo") >&5
  30949. - (eval "$ac_link") 2>conftest.er1
  30950. - ac_status=$?
  30951. - grep -v '^ *+' conftest.er1 >conftest.err
  30952. - rm -f conftest.er1
  30953. - cat conftest.err >&5
  30954. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30955. - (exit $ac_status); } && {
  30956. - test -z "$ac_f77_werror_flag" ||
  30957. - test ! -s conftest.err
  30958. - } && test -s conftest$ac_exeext && {
  30959. - test "$cross_compiling" = yes ||
  30960. - $as_test_x conftest$ac_exeext
  30961. - }; then
  30962. -
  30963. -lt_aix_libpath_sed='
  30964. - /Import File Strings/,/^$/ {
  30965. - /^0/ {
  30966. - s/^0 *\(.*\)$/\1/
  30967. - p
  30968. - }
  30969. - }'
  30970. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30971. -# Check for a 64-bit object if we didn't find anything.
  30972. -if test -z "$aix_libpath"; then
  30973. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30974. -fi
  30975. -else
  30976. - $as_echo "$as_me: failed program was:" >&5
  30977. -sed 's/^/| /' conftest.$ac_ext >&5
  30978. -
  30979. -
  30980. -fi
  30981. -
  30982. -rm -rf conftest.dSYM
  30983. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30984. - conftest$ac_exeext conftest.$ac_ext
  30985. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30986. -
  30987. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  30988. - # Warning - without using the other run time loading flags,
  30989. - # -berok will link without error, but may produce a broken library.
  30990. - no_undefined_flag_F77=' ${wl}-bernotok'
  30991. - allow_undefined_flag_F77=' ${wl}-berok'
  30992. - # Exported symbols can be pulled into shared objects from archives
  30993. - whole_archive_flag_spec_F77='$convenience'
  30994. - archive_cmds_need_lc_F77=yes
  30995. - # This is similar to how AIX traditionally builds its shared libraries.
  30996. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  30997. - fi
  30998. - fi
  30999. - ;;
  31000. -
  31001. - amigaos*)
  31002. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  31003. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31004. - hardcode_minus_L_F77=yes
  31005. - # see comment about different semantics on the GNU ld section
  31006. - ld_shlibs_F77=no
  31007. - ;;
  31008. -
  31009. - bsdi[45]*)
  31010. - export_dynamic_flag_spec_F77=-rdynamic
  31011. - ;;
  31012. -
  31013. - cygwin* | mingw* | pw32*)
  31014. - # When not using gcc, we currently assume that we are using
  31015. - # Microsoft Visual C++.
  31016. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  31017. - # no search path for DLLs.
  31018. - hardcode_libdir_flag_spec_F77=' '
  31019. - allow_undefined_flag_F77=unsupported
  31020. - # Tell ltmain to make .lib files, not .a files.
  31021. - libext=lib
  31022. - # Tell ltmain to make .dll files, not .so files.
  31023. - shrext_cmds=".dll"
  31024. - # FIXME: Setting linknames here is a bad hack.
  31025. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  31026. - # The linker will automatically build a .lib file if we build a DLL.
  31027. - old_archive_From_new_cmds_F77='true'
  31028. - # FIXME: Should let the user specify the lib program.
  31029. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  31030. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  31031. - enable_shared_with_static_runtimes_F77=yes
  31032. - ;;
  31033. -
  31034. - darwin* | rhapsody*)
  31035. - case $host_os in
  31036. - rhapsody* | darwin1.[012])
  31037. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  31038. - ;;
  31039. - *) # Darwin 1.3 on
  31040. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31041. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31042. - else
  31043. - case ${MACOSX_DEPLOYMENT_TARGET} in
  31044. - 10.[012])
  31045. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31046. - ;;
  31047. - 10.*)
  31048. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  31049. - ;;
  31050. - esac
  31051. - fi
  31052. - ;;
  31053. - esac
  31054. - archive_cmds_need_lc_F77=no
  31055. - hardcode_direct_F77=no
  31056. - hardcode_automatic_F77=yes
  31057. - hardcode_shlibpath_var_F77=unsupported
  31058. - whole_archive_flag_spec_F77=''
  31059. - link_all_deplibs_F77=yes
  31060. - if test "$GCC" = yes ; then
  31061. - output_verbose_link_cmd='echo'
  31062. - archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  31063. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  31064. - archive_expsym_cmds_F77="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}"
  31065. - module_expsym_cmds_F77="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}"
  31066. - else
  31067. - case $cc_basename in
  31068. - xlc*)
  31069. - output_verbose_link_cmd='echo'
  31070. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  31071. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31072. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  31073. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31074. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31075. - ;;
  31076. - *)
  31077. - ld_shlibs_F77=no
  31078. - ;;
  31079. - esac
  31080. - fi
  31081. - ;;
  31082. -
  31083. - dgux*)
  31084. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31085. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31086. - hardcode_shlibpath_var_F77=no
  31087. - ;;
  31088. -
  31089. - freebsd1*)
  31090. - ld_shlibs_F77=no
  31091. - ;;
  31092. -
  31093. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  31094. - # support. Future versions do this automatically, but an explicit c++rt0.o
  31095. - # does not break anything, and helps significantly (at the cost of a little
  31096. - # extra space).
  31097. - freebsd2.2*)
  31098. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  31099. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31100. - hardcode_direct_F77=yes
  31101. - hardcode_shlibpath_var_F77=no
  31102. - ;;
  31103. -
  31104. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  31105. - freebsd2*)
  31106. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31107. - hardcode_direct_F77=yes
  31108. - hardcode_minus_L_F77=yes
  31109. - hardcode_shlibpath_var_F77=no
  31110. - ;;
  31111. -
  31112. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  31113. - freebsd* | dragonfly*)
  31114. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  31115. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31116. - hardcode_direct_F77=yes
  31117. - hardcode_shlibpath_var_F77=no
  31118. - ;;
  31119. -
  31120. - hpux9*)
  31121. - if test "$GCC" = yes; then
  31122. - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  31123. - else
  31124. - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  31125. - fi
  31126. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31127. - hardcode_libdir_separator_F77=:
  31128. - hardcode_direct_F77=yes
  31129. -
  31130. - # hardcode_minus_L: Not really in the search PATH,
  31131. - # but as the default location of the library.
  31132. - hardcode_minus_L_F77=yes
  31133. - export_dynamic_flag_spec_F77='${wl}-E'
  31134. - ;;
  31135. -
  31136. - hpux10*)
  31137. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31138. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31139. - else
  31140. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  31141. - fi
  31142. - if test "$with_gnu_ld" = no; then
  31143. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31144. - hardcode_libdir_separator_F77=:
  31145. -
  31146. - hardcode_direct_F77=yes
  31147. - export_dynamic_flag_spec_F77='${wl}-E'
  31148. -
  31149. - # hardcode_minus_L: Not really in the search PATH,
  31150. - # but as the default location of the library.
  31151. - hardcode_minus_L_F77=yes
  31152. - fi
  31153. - ;;
  31154. -
  31155. - hpux11*)
  31156. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31157. - case $host_cpu in
  31158. - hppa*64*)
  31159. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31160. - ;;
  31161. - ia64*)
  31162. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31163. - ;;
  31164. - *)
  31165. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31166. - ;;
  31167. - esac
  31168. - else
  31169. - case $host_cpu in
  31170. - hppa*64*)
  31171. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31172. - ;;
  31173. - ia64*)
  31174. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31175. - ;;
  31176. - *)
  31177. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31178. - ;;
  31179. - esac
  31180. - fi
  31181. - if test "$with_gnu_ld" = no; then
  31182. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31183. - hardcode_libdir_separator_F77=:
  31184. -
  31185. - case $host_cpu in
  31186. - hppa*64*|ia64*)
  31187. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  31188. - hardcode_direct_F77=no
  31189. - hardcode_shlibpath_var_F77=no
  31190. - ;;
  31191. - *)
  31192. - hardcode_direct_F77=yes
  31193. - export_dynamic_flag_spec_F77='${wl}-E'
  31194. -
  31195. - # hardcode_minus_L: Not really in the search PATH,
  31196. - # but as the default location of the library.
  31197. - hardcode_minus_L_F77=yes
  31198. - ;;
  31199. - esac
  31200. - fi
  31201. - ;;
  31202. -
  31203. - irix5* | irix6* | nonstopux*)
  31204. - if test "$GCC" = yes; then
  31205. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31206. - else
  31207. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31208. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  31209. - fi
  31210. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31211. - hardcode_libdir_separator_F77=:
  31212. - link_all_deplibs_F77=yes
  31213. - ;;
  31214. -
  31215. - netbsd*)
  31216. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31217. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31218. - else
  31219. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31220. - fi
  31221. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31222. - hardcode_direct_F77=yes
  31223. - hardcode_shlibpath_var_F77=no
  31224. - ;;
  31225. -
  31226. - newsos6)
  31227. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31228. - hardcode_direct_F77=yes
  31229. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31230. - hardcode_libdir_separator_F77=:
  31231. - hardcode_shlibpath_var_F77=no
  31232. - ;;
  31233. -
  31234. - openbsd*)
  31235. - if test -f /usr/libexec/ld.so; then
  31236. - hardcode_direct_F77=yes
  31237. - hardcode_shlibpath_var_F77=no
  31238. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31239. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31240. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  31241. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31242. - export_dynamic_flag_spec_F77='${wl}-E'
  31243. - else
  31244. - case $host_os in
  31245. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  31246. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31247. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31248. - ;;
  31249. - *)
  31250. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31251. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31252. - ;;
  31253. - esac
  31254. - fi
  31255. - else
  31256. - ld_shlibs_F77=no
  31257. - fi
  31258. - ;;
  31259. -
  31260. - os2*)
  31261. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31262. - hardcode_minus_L_F77=yes
  31263. - allow_undefined_flag_F77=unsupported
  31264. - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  31265. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  31266. - ;;
  31267. -
  31268. - osf3*)
  31269. - if test "$GCC" = yes; then
  31270. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31271. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31272. - else
  31273. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31274. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31275. - fi
  31276. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31277. - hardcode_libdir_separator_F77=:
  31278. - ;;
  31279. -
  31280. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  31281. - if test "$GCC" = yes; then
  31282. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31283. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31284. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31285. - else
  31286. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31287. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31288. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  31289. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  31290. -
  31291. - # Both c and cxx compiler support -rpath directly
  31292. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  31293. - fi
  31294. - hardcode_libdir_separator_F77=:
  31295. - ;;
  31296. -
  31297. - solaris*)
  31298. - no_undefined_flag_F77=' -z text'
  31299. - if test "$GCC" = yes; then
  31300. - wlarc='${wl}'
  31301. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31302. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31303. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  31304. - else
  31305. - wlarc=''
  31306. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31307. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31308. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  31309. - fi
  31310. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31311. - hardcode_shlibpath_var_F77=no
  31312. - case $host_os in
  31313. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31314. - *)
  31315. - # The compiler driver will combine and reorder linker options,
  31316. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  31317. - # but is careful enough not to reorder.
  31318. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  31319. - if test "$GCC" = yes; then
  31320. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  31321. - else
  31322. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  31323. - fi
  31324. - ;;
  31325. - esac
  31326. - link_all_deplibs_F77=yes
  31327. - ;;
  31328. -
  31329. - sunos4*)
  31330. - if test "x$host_vendor" = xsequent; then
  31331. - # Use $CC to link under sequent, because it throws in some extra .o
  31332. - # files that make .init and .fini sections work.
  31333. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31334. - else
  31335. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  31336. - fi
  31337. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31338. - hardcode_direct_F77=yes
  31339. - hardcode_minus_L_F77=yes
  31340. - hardcode_shlibpath_var_F77=no
  31341. - ;;
  31342. -
  31343. - sysv4)
  31344. - case $host_vendor in
  31345. - sni)
  31346. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31347. - hardcode_direct_F77=yes # is this really true???
  31348. - ;;
  31349. - siemens)
  31350. - ## LD is ld it makes a PLAMLIB
  31351. - ## CC just makes a GrossModule.
  31352. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31353. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  31354. - hardcode_direct_F77=no
  31355. - ;;
  31356. - motorola)
  31357. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31358. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  31359. - ;;
  31360. - esac
  31361. - runpath_var='LD_RUN_PATH'
  31362. - hardcode_shlibpath_var_F77=no
  31363. - ;;
  31364. -
  31365. - sysv4.3*)
  31366. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31367. - hardcode_shlibpath_var_F77=no
  31368. - export_dynamic_flag_spec_F77='-Bexport'
  31369. - ;;
  31370. -
  31371. - sysv4*MP*)
  31372. - if test -d /usr/nec; then
  31373. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31374. - hardcode_shlibpath_var_F77=no
  31375. - runpath_var=LD_RUN_PATH
  31376. - hardcode_runpath_var=yes
  31377. - ld_shlibs_F77=yes
  31378. - fi
  31379. - ;;
  31380. -
  31381. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  31382. - no_undefined_flag_F77='${wl}-z,text'
  31383. - archive_cmds_need_lc_F77=no
  31384. - hardcode_shlibpath_var_F77=no
  31385. - runpath_var='LD_RUN_PATH'
  31386. -
  31387. - if test "$GCC" = yes; then
  31388. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31389. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31390. - else
  31391. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31392. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31393. - fi
  31394. - ;;
  31395. -
  31396. - sysv5* | sco3.2v5* | sco5v6*)
  31397. - # Note: We can NOT use -z defs as we might desire, because we do not
  31398. - # link with -lc, and that would cause any symbols used from libc to
  31399. - # always be unresolved, which means just about no library would
  31400. - # ever link correctly. If we're not using GNU ld we use -z text
  31401. - # though, which does catch some bad symbols but isn't as heavy-handed
  31402. - # as -z defs.
  31403. - no_undefined_flag_F77='${wl}-z,text'
  31404. - allow_undefined_flag_F77='${wl}-z,nodefs'
  31405. - archive_cmds_need_lc_F77=no
  31406. - hardcode_shlibpath_var_F77=no
  31407. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  31408. - hardcode_libdir_separator_F77=':'
  31409. - link_all_deplibs_F77=yes
  31410. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  31411. - runpath_var='LD_RUN_PATH'
  31412. -
  31413. - if test "$GCC" = yes; then
  31414. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31415. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31416. - else
  31417. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31418. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31419. - fi
  31420. - ;;
  31421. -
  31422. - uts4*)
  31423. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31424. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31425. - hardcode_shlibpath_var_F77=no
  31426. - ;;
  31427. -
  31428. - *)
  31429. - ld_shlibs_F77=no
  31430. - ;;
  31431. - esac
  31432. - fi
  31433. -
  31434. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  31435. -$as_echo "$ld_shlibs_F77" >&6; }
  31436. -test "$ld_shlibs_F77" = no && can_build_shared=no
  31437. -
  31438. -#
  31439. -# Do we need to explicitly link libc?
  31440. -#
  31441. -case "x$archive_cmds_need_lc_F77" in
  31442. -x|xyes)
  31443. - # Assume -lc should be added
  31444. - archive_cmds_need_lc_F77=yes
  31445. -
  31446. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  31447. - case $archive_cmds_F77 in
  31448. - *'~'*)
  31449. - # FIXME: we may have to deal with multi-command sequences.
  31450. - ;;
  31451. - '$CC '*)
  31452. - # Test whether the compiler implicitly links with -lc since on some
  31453. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  31454. - # to ld, don't add -lc before -lgcc.
  31455. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  31456. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  31457. - $rm conftest*
  31458. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31459. -
  31460. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31461. - (eval $ac_compile) 2>&5
  31462. - ac_status=$?
  31463. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31464. - (exit $ac_status); } 2>conftest.err; then
  31465. - soname=conftest
  31466. - lib=conftest
  31467. - libobjs=conftest.$ac_objext
  31468. - deplibs=
  31469. - wl=$lt_prog_compiler_wl_F77
  31470. - pic_flag=$lt_prog_compiler_pic_F77
  31471. - compiler_flags=-v
  31472. - linker_flags=-v
  31473. - verstring=
  31474. - output_objdir=.
  31475. - libname=conftest
  31476. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  31477. - allow_undefined_flag_F77=
  31478. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  31479. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  31480. - ac_status=$?
  31481. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31482. - (exit $ac_status); }
  31483. - then
  31484. - archive_cmds_need_lc_F77=no
  31485. - else
  31486. - archive_cmds_need_lc_F77=yes
  31487. - fi
  31488. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  31489. - else
  31490. - cat conftest.err 1>&5
  31491. - fi
  31492. - $rm conftest*
  31493. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  31494. -$as_echo "$archive_cmds_need_lc_F77" >&6; }
  31495. - ;;
  31496. - esac
  31497. - fi
  31498. - ;;
  31499. -esac
  31500. -
  31501. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  31502. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  31503. -library_names_spec=
  31504. -libname_spec='lib$name'
  31505. -soname_spec=
  31506. -shrext_cmds=".so"
  31507. -postinstall_cmds=
  31508. -postuninstall_cmds=
  31509. -finish_cmds=
  31510. -finish_eval=
  31511. -shlibpath_var=
  31512. -shlibpath_overrides_runpath=unknown
  31513. -version_type=none
  31514. -dynamic_linker="$host_os ld.so"
  31515. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31516. -
  31517. -need_lib_prefix=unknown
  31518. -hardcode_into_libs=no
  31519. -
  31520. -# when you set need_version to no, make sure it does not cause -set_version
  31521. -# flags to be left without arguments
  31522. -need_version=unknown
  31523. -
  31524. -case $host_os in
  31525. -aix3*)
  31526. - version_type=linux
  31527. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31528. - shlibpath_var=LIBPATH
  31529. -
  31530. - # AIX 3 has no versioning support, so we append a major version to the name.
  31531. - soname_spec='${libname}${release}${shared_ext}$major'
  31532. - ;;
  31533. -
  31534. -aix[4-9]*)
  31535. - version_type=linux
  31536. - need_lib_prefix=no
  31537. - need_version=no
  31538. - hardcode_into_libs=yes
  31539. - if test "$host_cpu" = ia64; then
  31540. - # AIX 5 supports IA64
  31541. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31542. - shlibpath_var=LD_LIBRARY_PATH
  31543. - else
  31544. - # With GCC up to 2.95.x, collect2 would create an import file
  31545. - # for dependence libraries. The import file would start with
  31546. - # the line `#! .'. This would cause the generated library to
  31547. - # depend on `.', always an invalid library. This was fixed in
  31548. - # development snapshots of GCC prior to 3.0.
  31549. - case $host_os in
  31550. - aix4 | aix4.[01] | aix4.[01].*)
  31551. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31552. - echo ' yes '
  31553. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  31554. - :
  31555. - else
  31556. - can_build_shared=no
  31557. - fi
  31558. - ;;
  31559. - esac
  31560. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31561. - # soname into executable. Probably we can add versioning support to
  31562. - # collect2, so additional links can be useful in future.
  31563. - if test "$aix_use_runtimelinking" = yes; then
  31564. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31565. - # instead of lib<name>.a to let people know that these are not
  31566. - # typical AIX shared libraries.
  31567. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31568. - else
  31569. - # We preserve .a as extension for shared libraries through AIX4.2
  31570. - # and later when we are not doing run time linking.
  31571. - library_names_spec='${libname}${release}.a $libname.a'
  31572. - soname_spec='${libname}${release}${shared_ext}$major'
  31573. - fi
  31574. - shlibpath_var=LIBPATH
  31575. - fi
  31576. - ;;
  31577. -
  31578. -amigaos*)
  31579. - library_names_spec='$libname.ixlibrary $libname.a'
  31580. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31581. - 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'
  31582. - ;;
  31583. -
  31584. -beos*)
  31585. - library_names_spec='${libname}${shared_ext}'
  31586. - dynamic_linker="$host_os ld.so"
  31587. - shlibpath_var=LIBRARY_PATH
  31588. - ;;
  31589. -
  31590. -bsdi[45]*)
  31591. - version_type=linux
  31592. - need_version=no
  31593. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31594. - soname_spec='${libname}${release}${shared_ext}$major'
  31595. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31596. - shlibpath_var=LD_LIBRARY_PATH
  31597. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31598. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31599. - # the default ld.so.conf also contains /usr/contrib/lib and
  31600. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31601. - # libtool to hard-code these into programs
  31602. - ;;
  31603. -
  31604. -cygwin* | mingw* | pw32*)
  31605. - version_type=windows
  31606. - shrext_cmds=".dll"
  31607. - need_version=no
  31608. - need_lib_prefix=no
  31609. -
  31610. - case $GCC,$host_os in
  31611. - yes,cygwin* | yes,mingw* | yes,pw32*)
  31612. - library_names_spec='$libname.dll.a'
  31613. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31614. - postinstall_cmds='base_file=`basename \${file}`~
  31615. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  31616. - dldir=$destdir/`dirname \$dlpath`~
  31617. - test -d \$dldir || mkdir -p \$dldir~
  31618. - $install_prog $dir/$dlname \$dldir/$dlname~
  31619. - chmod a+x \$dldir/$dlname'
  31620. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31621. - dlpath=$dir/\$dldll~
  31622. - $rm \$dlpath'
  31623. - shlibpath_overrides_runpath=yes
  31624. -
  31625. - case $host_os in
  31626. - cygwin*)
  31627. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31628. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31629. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31630. - ;;
  31631. - mingw*)
  31632. - # MinGW DLLs use traditional 'lib' prefix
  31633. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31634. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31635. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  31636. - # It is most probably a Windows format PATH printed by
  31637. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31638. - # path with ; separators, and with drive letters. We can handle the
  31639. - # drive letters (cygwin fileutils understands them), so leave them,
  31640. - # especially as we might pass files found there to a mingw objdump,
  31641. - # which wouldn't understand a cygwinified path. Ahh.
  31642. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31643. - else
  31644. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31645. - fi
  31646. - ;;
  31647. - pw32*)
  31648. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  31649. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31650. - ;;
  31651. - esac
  31652. - ;;
  31653. -
  31654. - *)
  31655. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  31656. - ;;
  31657. - esac
  31658. - dynamic_linker='Win32 ld.exe'
  31659. - # FIXME: first we should search . and the directory the executable is in
  31660. - shlibpath_var=PATH
  31661. - ;;
  31662. -
  31663. -darwin* | rhapsody*)
  31664. - dynamic_linker="$host_os dyld"
  31665. - version_type=darwin
  31666. - need_lib_prefix=no
  31667. - need_version=no
  31668. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31669. - soname_spec='${libname}${release}${major}$shared_ext'
  31670. - shlibpath_overrides_runpath=yes
  31671. - shlibpath_var=DYLD_LIBRARY_PATH
  31672. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31673. -
  31674. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31675. - ;;
  31676. -
  31677. -dgux*)
  31678. - version_type=linux
  31679. - need_lib_prefix=no
  31680. - need_version=no
  31681. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31682. - soname_spec='${libname}${release}${shared_ext}$major'
  31683. - shlibpath_var=LD_LIBRARY_PATH
  31684. - ;;
  31685. -
  31686. -freebsd1*)
  31687. - dynamic_linker=no
  31688. - ;;
  31689. -
  31690. -freebsd* | dragonfly*)
  31691. - # DragonFly does not have aout. When/if they implement a new
  31692. - # versioning mechanism, adjust this.
  31693. - if test -x /usr/bin/objformat; then
  31694. - objformat=`/usr/bin/objformat`
  31695. - else
  31696. - case $host_os in
  31697. - freebsd[123]*) objformat=aout ;;
  31698. - *) objformat=elf ;;
  31699. - esac
  31700. - fi
  31701. - version_type=freebsd-$objformat
  31702. - case $version_type in
  31703. - freebsd-elf*)
  31704. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31705. - need_version=no
  31706. - need_lib_prefix=no
  31707. - ;;
  31708. - freebsd-*)
  31709. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31710. - need_version=yes
  31711. - ;;
  31712. - esac
  31713. - shlibpath_var=LD_LIBRARY_PATH
  31714. - case $host_os in
  31715. - freebsd2*)
  31716. - shlibpath_overrides_runpath=yes
  31717. - ;;
  31718. - freebsd3.[01]* | freebsdelf3.[01]*)
  31719. - shlibpath_overrides_runpath=yes
  31720. - hardcode_into_libs=yes
  31721. - ;;
  31722. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  31723. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  31724. - shlibpath_overrides_runpath=no
  31725. - hardcode_into_libs=yes
  31726. - ;;
  31727. - *) # from 4.6 on, and DragonFly
  31728. - shlibpath_overrides_runpath=yes
  31729. - hardcode_into_libs=yes
  31730. - ;;
  31731. - esac
  31732. - ;;
  31733. -
  31734. -gnu*)
  31735. - version_type=linux
  31736. - need_lib_prefix=no
  31737. - need_version=no
  31738. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31739. - soname_spec='${libname}${release}${shared_ext}$major'
  31740. - shlibpath_var=LD_LIBRARY_PATH
  31741. - hardcode_into_libs=yes
  31742. - ;;
  31743. -
  31744. -hpux9* | hpux10* | hpux11*)
  31745. - # Give a soname corresponding to the major version so that dld.sl refuses to
  31746. - # link against other versions.
  31747. - version_type=sunos
  31748. - need_lib_prefix=no
  31749. - need_version=no
  31750. - case $host_cpu in
  31751. - ia64*)
  31752. - shrext_cmds='.so'
  31753. - hardcode_into_libs=yes
  31754. - dynamic_linker="$host_os dld.so"
  31755. - shlibpath_var=LD_LIBRARY_PATH
  31756. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31757. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31758. - soname_spec='${libname}${release}${shared_ext}$major'
  31759. - if test "X$HPUX_IA64_MODE" = X32; then
  31760. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31761. - else
  31762. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31763. - fi
  31764. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31765. - ;;
  31766. - hppa*64*)
  31767. - shrext_cmds='.sl'
  31768. - hardcode_into_libs=yes
  31769. - dynamic_linker="$host_os dld.sl"
  31770. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31771. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31772. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31773. - soname_spec='${libname}${release}${shared_ext}$major'
  31774. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31775. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31776. - ;;
  31777. - *)
  31778. - shrext_cmds='.sl'
  31779. - dynamic_linker="$host_os dld.sl"
  31780. - shlibpath_var=SHLIB_PATH
  31781. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31782. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31783. - soname_spec='${libname}${release}${shared_ext}$major'
  31784. - ;;
  31785. - esac
  31786. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  31787. - postinstall_cmds='chmod 555 $lib'
  31788. - ;;
  31789. -
  31790. -interix[3-9]*)
  31791. - version_type=linux
  31792. - need_lib_prefix=no
  31793. - need_version=no
  31794. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31795. - soname_spec='${libname}${release}${shared_ext}$major'
  31796. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  31797. - shlibpath_var=LD_LIBRARY_PATH
  31798. - shlibpath_overrides_runpath=no
  31799. - hardcode_into_libs=yes
  31800. - ;;
  31801. -
  31802. -irix5* | irix6* | nonstopux*)
  31803. - case $host_os in
  31804. - nonstopux*) version_type=nonstopux ;;
  31805. - *)
  31806. - if test "$lt_cv_prog_gnu_ld" = yes; then
  31807. - version_type=linux
  31808. - else
  31809. - version_type=irix
  31810. - fi ;;
  31811. - esac
  31812. - need_lib_prefix=no
  31813. - need_version=no
  31814. - soname_spec='${libname}${release}${shared_ext}$major'
  31815. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31816. - case $host_os in
  31817. - irix5* | nonstopux*)
  31818. - libsuff= shlibsuff=
  31819. - ;;
  31820. - *)
  31821. - case $LD in # libtool.m4 will add one of these switches to LD
  31822. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31823. - libsuff= shlibsuff= libmagic=32-bit;;
  31824. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31825. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  31826. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31827. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31828. - *) libsuff= shlibsuff= libmagic=never-match;;
  31829. - esac
  31830. - ;;
  31831. - esac
  31832. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31833. - shlibpath_overrides_runpath=no
  31834. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31835. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31836. - hardcode_into_libs=yes
  31837. - ;;
  31838. -
  31839. -# No shared lib support for Linux oldld, aout, or coff.
  31840. -linux*oldld* | linux*aout* | linux*coff*)
  31841. - dynamic_linker=no
  31842. - ;;
  31843. -
  31844. -# This must be Linux ELF.
  31845. -linux* | k*bsd*-gnu)
  31846. - version_type=linux
  31847. - need_lib_prefix=no
  31848. - need_version=no
  31849. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31850. - soname_spec='${libname}${release}${shared_ext}$major'
  31851. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31852. - shlibpath_var=LD_LIBRARY_PATH
  31853. - shlibpath_overrides_runpath=no
  31854. - # This implies no fast_install, which is unacceptable.
  31855. - # Some rework will be needed to allow for fast_install
  31856. - # before this can be enabled.
  31857. - hardcode_into_libs=yes
  31858. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31859. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31860. -
  31861. - # Append ld.so.conf contents to the search path
  31862. - if test -f /etc/ld.so.conf; then
  31863. - 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' ' '`
  31864. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  31865. - fi
  31866. -
  31867. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  31868. - # powerpc, because MkLinux only supported shared libraries with the
  31869. - # GNU dynamic linker. Since this was broken with cross compilers,
  31870. - # most powerpc-linux boxes support dynamic linking these days and
  31871. - # people can always --disable-shared, the test was removed, and we
  31872. - # assume the GNU/Linux dynamic linker is in use.
  31873. - dynamic_linker='GNU/Linux ld.so'
  31874. - ;;
  31875. -
  31876. -netbsd*)
  31877. - version_type=sunos
  31878. - need_lib_prefix=no
  31879. - need_version=no
  31880. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31881. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31882. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31883. - dynamic_linker='NetBSD (a.out) ld.so'
  31884. - else
  31885. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31886. - soname_spec='${libname}${release}${shared_ext}$major'
  31887. - dynamic_linker='NetBSD ld.elf_so'
  31888. - fi
  31889. - shlibpath_var=LD_LIBRARY_PATH
  31890. - shlibpath_overrides_runpath=yes
  31891. - hardcode_into_libs=yes
  31892. - ;;
  31893. -
  31894. -newsos6)
  31895. - version_type=linux
  31896. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31897. - shlibpath_var=LD_LIBRARY_PATH
  31898. - shlibpath_overrides_runpath=yes
  31899. - ;;
  31900. -
  31901. -nto-qnx*)
  31902. - version_type=linux
  31903. - need_lib_prefix=no
  31904. - need_version=no
  31905. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31906. - soname_spec='${libname}${release}${shared_ext}$major'
  31907. - shlibpath_var=LD_LIBRARY_PATH
  31908. - shlibpath_overrides_runpath=yes
  31909. - ;;
  31910. -
  31911. -openbsd*)
  31912. - version_type=sunos
  31913. - sys_lib_dlsearch_path_spec="/usr/lib"
  31914. - need_lib_prefix=no
  31915. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31916. - case $host_os in
  31917. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31918. - *) need_version=no ;;
  31919. - esac
  31920. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31921. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31922. - shlibpath_var=LD_LIBRARY_PATH
  31923. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31924. - case $host_os in
  31925. - openbsd2.[89] | openbsd2.[89].*)
  31926. - shlibpath_overrides_runpath=no
  31927. - ;;
  31928. - *)
  31929. - shlibpath_overrides_runpath=yes
  31930. - ;;
  31931. - esac
  31932. - else
  31933. - shlibpath_overrides_runpath=yes
  31934. - fi
  31935. - ;;
  31936. -
  31937. -os2*)
  31938. - libname_spec='$name'
  31939. - shrext_cmds=".dll"
  31940. - need_lib_prefix=no
  31941. - library_names_spec='$libname${shared_ext} $libname.a'
  31942. - dynamic_linker='OS/2 ld.exe'
  31943. - shlibpath_var=LIBPATH
  31944. - ;;
  31945. -
  31946. -osf3* | osf4* | osf5*)
  31947. - version_type=osf
  31948. - need_lib_prefix=no
  31949. - need_version=no
  31950. - soname_spec='${libname}${release}${shared_ext}$major'
  31951. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31952. - shlibpath_var=LD_LIBRARY_PATH
  31953. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31954. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31955. - ;;
  31956. -
  31957. -rdos*)
  31958. - dynamic_linker=no
  31959. - ;;
  31960. -
  31961. -solaris*)
  31962. - version_type=linux
  31963. - need_lib_prefix=no
  31964. - need_version=no
  31965. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31966. - soname_spec='${libname}${release}${shared_ext}$major'
  31967. - shlibpath_var=LD_LIBRARY_PATH
  31968. - shlibpath_overrides_runpath=yes
  31969. - hardcode_into_libs=yes
  31970. - # ldd complains unless libraries are executable
  31971. - postinstall_cmds='chmod +x $lib'
  31972. - ;;
  31973. -
  31974. -sunos4*)
  31975. - version_type=sunos
  31976. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31977. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31978. - shlibpath_var=LD_LIBRARY_PATH
  31979. - shlibpath_overrides_runpath=yes
  31980. - if test "$with_gnu_ld" = yes; then
  31981. - need_lib_prefix=no
  31982. - fi
  31983. - need_version=yes
  31984. - ;;
  31985. -
  31986. -sysv4 | sysv4.3*)
  31987. - version_type=linux
  31988. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31989. - soname_spec='${libname}${release}${shared_ext}$major'
  31990. - shlibpath_var=LD_LIBRARY_PATH
  31991. - case $host_vendor in
  31992. - sni)
  31993. - shlibpath_overrides_runpath=no
  31994. - need_lib_prefix=no
  31995. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  31996. - runpath_var=LD_RUN_PATH
  31997. - ;;
  31998. - siemens)
  31999. - need_lib_prefix=no
  32000. - ;;
  32001. - motorola)
  32002. - need_lib_prefix=no
  32003. - need_version=no
  32004. - shlibpath_overrides_runpath=no
  32005. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  32006. - ;;
  32007. - esac
  32008. - ;;
  32009. -
  32010. -sysv4*MP*)
  32011. - if test -d /usr/nec ;then
  32012. - version_type=linux
  32013. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  32014. - soname_spec='$libname${shared_ext}.$major'
  32015. - shlibpath_var=LD_LIBRARY_PATH
  32016. - fi
  32017. - ;;
  32018. -
  32019. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  32020. - version_type=freebsd-elf
  32021. - need_lib_prefix=no
  32022. - need_version=no
  32023. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32024. - soname_spec='${libname}${release}${shared_ext}$major'
  32025. - shlibpath_var=LD_LIBRARY_PATH
  32026. - hardcode_into_libs=yes
  32027. - if test "$with_gnu_ld" = yes; then
  32028. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  32029. - shlibpath_overrides_runpath=no
  32030. - else
  32031. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  32032. - shlibpath_overrides_runpath=yes
  32033. - case $host_os in
  32034. - sco3.2v5*)
  32035. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  32036. - ;;
  32037. - esac
  32038. - fi
  32039. - sys_lib_dlsearch_path_spec='/usr/lib'
  32040. - ;;
  32041. -
  32042. -uts4*)
  32043. - version_type=linux
  32044. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32045. - soname_spec='${libname}${release}${shared_ext}$major'
  32046. - shlibpath_var=LD_LIBRARY_PATH
  32047. - ;;
  32048. -
  32049. -*)
  32050. - dynamic_linker=no
  32051. - ;;
  32052. -esac
  32053. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  32054. -$as_echo "$dynamic_linker" >&6; }
  32055. -test "$dynamic_linker" = no && can_build_shared=no
  32056. -
  32057. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  32058. - $as_echo_n "(cached) " >&6
  32059. -else
  32060. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  32061. -fi
  32062. -
  32063. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  32064. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  32065. - $as_echo_n "(cached) " >&6
  32066. -else
  32067. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  32068. -fi
  32069. -
  32070. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  32071. -
  32072. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  32073. -if test "$GCC" = yes; then
  32074. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  32075. -fi
  32076. -
  32077. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  32078. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  32079. -hardcode_action_F77=
  32080. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  32081. - test -n "$runpath_var_F77" || \
  32082. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  32083. -
  32084. - # We can hardcode non-existant directories.
  32085. - if test "$hardcode_direct_F77" != no &&
  32086. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32087. - # have to relink, otherwise we might link with an installed library
  32088. - # when we should be linking with a yet-to-be-installed one
  32089. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  32090. - test "$hardcode_minus_L_F77" != no; then
  32091. - # Linking always hardcodes the temporary library directory.
  32092. - hardcode_action_F77=relink
  32093. - else
  32094. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32095. - hardcode_action_F77=immediate
  32096. - fi
  32097. -else
  32098. - # We cannot hardcode anything, or else we can only hardcode existing
  32099. - # directories.
  32100. - hardcode_action_F77=unsupported
  32101. -fi
  32102. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  32103. -$as_echo "$hardcode_action_F77" >&6; }
  32104. -
  32105. -if test "$hardcode_action_F77" = relink; then
  32106. - # Fast installation is not supported
  32107. - enable_fast_install=no
  32108. -elif test "$shlibpath_overrides_runpath" = yes ||
  32109. - test "$enable_shared" = no; then
  32110. - # Fast installation is not necessary
  32111. - enable_fast_install=needless
  32112. -fi
  32113. -
  32114. -
  32115. -# The else clause should only fire when bootstrapping the
  32116. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32117. -# with your package, and you will get complaints that there are
  32118. -# no rules to generate ltmain.sh.
  32119. -if test -f "$ltmain"; then
  32120. - # See if we are running on zsh, and set the options which allow our commands through
  32121. - # without removal of \ escapes.
  32122. - if test -n "${ZSH_VERSION+set}" ; then
  32123. - setopt NO_GLOB_SUBST
  32124. - fi
  32125. - # Now quote all the things that may contain metacharacters while being
  32126. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32127. - # variables and quote the copies for generation of the libtool script.
  32128. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32129. - SED SHELL STRIP \
  32130. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32131. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32132. - deplibs_check_method reload_flag reload_cmds need_locks \
  32133. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32134. - lt_cv_sys_global_symbol_to_c_name_address \
  32135. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32136. - old_postinstall_cmds old_postuninstall_cmds \
  32137. - compiler_F77 \
  32138. - CC_F77 \
  32139. - LD_F77 \
  32140. - lt_prog_compiler_wl_F77 \
  32141. - lt_prog_compiler_pic_F77 \
  32142. - lt_prog_compiler_static_F77 \
  32143. - lt_prog_compiler_no_builtin_flag_F77 \
  32144. - export_dynamic_flag_spec_F77 \
  32145. - thread_safe_flag_spec_F77 \
  32146. - whole_archive_flag_spec_F77 \
  32147. - enable_shared_with_static_runtimes_F77 \
  32148. - old_archive_cmds_F77 \
  32149. - old_archive_from_new_cmds_F77 \
  32150. - predep_objects_F77 \
  32151. - postdep_objects_F77 \
  32152. - predeps_F77 \
  32153. - postdeps_F77 \
  32154. - compiler_lib_search_path_F77 \
  32155. - compiler_lib_search_dirs_F77 \
  32156. - archive_cmds_F77 \
  32157. - archive_expsym_cmds_F77 \
  32158. - postinstall_cmds_F77 \
  32159. - postuninstall_cmds_F77 \
  32160. - old_archive_from_expsyms_cmds_F77 \
  32161. - allow_undefined_flag_F77 \
  32162. - no_undefined_flag_F77 \
  32163. - export_symbols_cmds_F77 \
  32164. - hardcode_libdir_flag_spec_F77 \
  32165. - hardcode_libdir_flag_spec_ld_F77 \
  32166. - hardcode_libdir_separator_F77 \
  32167. - hardcode_automatic_F77 \
  32168. - module_cmds_F77 \
  32169. - module_expsym_cmds_F77 \
  32170. - lt_cv_prog_compiler_c_o_F77 \
  32171. - fix_srcfile_path_F77 \
  32172. - exclude_expsyms_F77 \
  32173. - include_expsyms_F77; do
  32174. -
  32175. - case $var in
  32176. - old_archive_cmds_F77 | \
  32177. - old_archive_from_new_cmds_F77 | \
  32178. - archive_cmds_F77 | \
  32179. - archive_expsym_cmds_F77 | \
  32180. - module_cmds_F77 | \
  32181. - module_expsym_cmds_F77 | \
  32182. - old_archive_from_expsyms_cmds_F77 | \
  32183. - export_symbols_cmds_F77 | \
  32184. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32185. - postinstall_cmds | postuninstall_cmds | \
  32186. - old_postinstall_cmds | old_postuninstall_cmds | \
  32187. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32188. - # Double-quote double-evaled strings.
  32189. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32190. - ;;
  32191. - *)
  32192. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32193. - ;;
  32194. - esac
  32195. - done
  32196. -
  32197. - case $lt_echo in
  32198. - *'\$0 --fallback-echo"')
  32199. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32200. - ;;
  32201. - esac
  32202. -
  32203. -cfgfile="$ofile"
  32204. -
  32205. - cat <<__EOF__ >> "$cfgfile"
  32206. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32207. -
  32208. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32209. -
  32210. -# Shell to use when invoking shell scripts.
  32211. -SHELL=$lt_SHELL
  32212. -
  32213. -# Whether or not to build shared libraries.
  32214. -build_libtool_libs=$enable_shared
  32215. -
  32216. -# Whether or not to build static libraries.
  32217. -build_old_libs=$enable_static
  32218. -
  32219. -# Whether or not to add -lc for building shared libraries.
  32220. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  32221. -
  32222. -# Whether or not to disallow shared libs when runtime libs are static
  32223. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  32224. -
  32225. -# Whether or not to optimize for fast installation.
  32226. -fast_install=$enable_fast_install
  32227. -
  32228. -# The host system.
  32229. -host_alias=$host_alias
  32230. -host=$host
  32231. -host_os=$host_os
  32232. -
  32233. -# The build system.
  32234. -build_alias=$build_alias
  32235. -build=$build
  32236. -build_os=$build_os
  32237. -
  32238. -# An echo program that does not interpret backslashes.
  32239. -echo=$lt_echo
  32240. -
  32241. -# The archiver.
  32242. -AR=$lt_AR
  32243. -AR_FLAGS=$lt_AR_FLAGS
  32244. -
  32245. -# A C compiler.
  32246. -LTCC=$lt_LTCC
  32247. -
  32248. -# LTCC compiler flags.
  32249. -LTCFLAGS=$lt_LTCFLAGS
  32250. -
  32251. -# A language-specific compiler.
  32252. -CC=$lt_compiler_F77
  32253. -
  32254. -# Is the compiler the GNU C compiler?
  32255. -with_gcc=$GCC_F77
  32256. -
  32257. -# An ERE matcher.
  32258. -EGREP=$lt_EGREP
  32259. -
  32260. -# The linker used to build libraries.
  32261. -LD=$lt_LD_F77
  32262. -
  32263. -# Whether we need hard or soft links.
  32264. -LN_S=$lt_LN_S
  32265. -
  32266. -# A BSD-compatible nm program.
  32267. -NM=$lt_NM
  32268. -
  32269. -# A symbol stripping program
  32270. -STRIP=$lt_STRIP
  32271. -
  32272. -# Used to examine libraries when file_magic_cmd begins "file"
  32273. -MAGIC_CMD=$MAGIC_CMD
  32274. -
  32275. -# Used on cygwin: DLL creation program.
  32276. -DLLTOOL="$DLLTOOL"
  32277. -
  32278. -# Used on cygwin: object dumper.
  32279. -OBJDUMP="$OBJDUMP"
  32280. -
  32281. -# Used on cygwin: assembler.
  32282. -AS="$AS"
  32283. -
  32284. -# The name of the directory that contains temporary libtool files.
  32285. -objdir=$objdir
  32286. -
  32287. -# How to create reloadable object files.
  32288. -reload_flag=$lt_reload_flag
  32289. -reload_cmds=$lt_reload_cmds
  32290. -
  32291. -# How to pass a linker flag through the compiler.
  32292. -wl=$lt_lt_prog_compiler_wl_F77
  32293. -
  32294. -# Object file suffix (normally "o").
  32295. -objext="$ac_objext"
  32296. -
  32297. -# Old archive suffix (normally "a").
  32298. -libext="$libext"
  32299. -
  32300. -# Shared library suffix (normally ".so").
  32301. -shrext_cmds='$shrext_cmds'
  32302. -
  32303. -# Executable file suffix (normally "").
  32304. -exeext="$exeext"
  32305. -
  32306. -# Additional compiler flags for building library objects.
  32307. -pic_flag=$lt_lt_prog_compiler_pic_F77
  32308. -pic_mode=$pic_mode
  32309. -
  32310. -# What is the maximum length of a command?
  32311. -max_cmd_len=$lt_cv_sys_max_cmd_len
  32312. -
  32313. -# Does compiler simultaneously support -c and -o options?
  32314. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  32315. -
  32316. -# Must we lock files when doing compilation?
  32317. -need_locks=$lt_need_locks
  32318. -
  32319. -# Do we need the lib prefix for modules?
  32320. -need_lib_prefix=$need_lib_prefix
  32321. -
  32322. -# Do we need a version for libraries?
  32323. -need_version=$need_version
  32324. -
  32325. -# Whether dlopen is supported.
  32326. -dlopen_support=$enable_dlopen
  32327. -
  32328. -# Whether dlopen of programs is supported.
  32329. -dlopen_self=$enable_dlopen_self
  32330. -
  32331. -# Whether dlopen of statically linked programs is supported.
  32332. -dlopen_self_static=$enable_dlopen_self_static
  32333. -
  32334. -# Compiler flag to prevent dynamic linking.
  32335. -link_static_flag=$lt_lt_prog_compiler_static_F77
  32336. -
  32337. -# Compiler flag to turn off builtin functions.
  32338. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  32339. -
  32340. -# Compiler flag to allow reflexive dlopens.
  32341. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  32342. -
  32343. -# Compiler flag to generate shared objects directly from archives.
  32344. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  32345. -
  32346. -# Compiler flag to generate thread-safe objects.
  32347. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  32348. -
  32349. -# Library versioning type.
  32350. -version_type=$version_type
  32351. -
  32352. -# Format of library name prefix.
  32353. -libname_spec=$lt_libname_spec
  32354. -
  32355. -# List of archive names. First name is the real one, the rest are links.
  32356. -# The last name is the one that the linker finds with -lNAME.
  32357. -library_names_spec=$lt_library_names_spec
  32358. -
  32359. -# The coded name of the library, if different from the real name.
  32360. -soname_spec=$lt_soname_spec
  32361. -
  32362. -# Commands used to build and install an old-style archive.
  32363. -RANLIB=$lt_RANLIB
  32364. -old_archive_cmds=$lt_old_archive_cmds_F77
  32365. -old_postinstall_cmds=$lt_old_postinstall_cmds
  32366. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32367. -
  32368. -# Create an old-style archive from a shared archive.
  32369. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  32370. -
  32371. -# Create a temporary old-style archive to link instead of a shared archive.
  32372. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  32373. -
  32374. -# Commands used to build and install a shared archive.
  32375. -archive_cmds=$lt_archive_cmds_F77
  32376. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  32377. -postinstall_cmds=$lt_postinstall_cmds
  32378. -postuninstall_cmds=$lt_postuninstall_cmds
  32379. -
  32380. -# Commands used to build a loadable module (assumed same as above if empty)
  32381. -module_cmds=$lt_module_cmds_F77
  32382. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  32383. -
  32384. -# Commands to strip libraries.
  32385. -old_striplib=$lt_old_striplib
  32386. -striplib=$lt_striplib
  32387. -
  32388. -# Dependencies to place before the objects being linked to create a
  32389. -# shared library.
  32390. -predep_objects=$lt_predep_objects_F77
  32391. -
  32392. -# Dependencies to place after the objects being linked to create a
  32393. -# shared library.
  32394. -postdep_objects=$lt_postdep_objects_F77
  32395. -
  32396. -# Dependencies to place before the objects being linked to create a
  32397. -# shared library.
  32398. -predeps=$lt_predeps_F77
  32399. -
  32400. -# Dependencies to place after the objects being linked to create a
  32401. -# shared library.
  32402. -postdeps=$lt_postdeps_F77
  32403. -
  32404. -# The directories searched by this compiler when creating a shared
  32405. -# library
  32406. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  32407. -
  32408. -# The library search path used internally by the compiler when linking
  32409. -# a shared library.
  32410. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  32411. -
  32412. -# Method to check whether dependent libraries are shared objects.
  32413. -deplibs_check_method=$lt_deplibs_check_method
  32414. -
  32415. -# Command to use when deplibs_check_method == file_magic.
  32416. -file_magic_cmd=$lt_file_magic_cmd
  32417. -
  32418. -# Flag that allows shared libraries with undefined symbols to be built.
  32419. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  32420. -
  32421. -# Flag that forces no undefined symbols.
  32422. -no_undefined_flag=$lt_no_undefined_flag_F77
  32423. -
  32424. -# Commands used to finish a libtool library installation in a directory.
  32425. -finish_cmds=$lt_finish_cmds
  32426. -
  32427. -# Same as above, but a single script fragment to be evaled but not shown.
  32428. -finish_eval=$lt_finish_eval
  32429. -
  32430. -# Take the output of nm and produce a listing of raw symbols and C names.
  32431. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32432. -
  32433. -# Transform the output of nm in a proper C declaration
  32434. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32435. -
  32436. -# Transform the output of nm in a C name address pair
  32437. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32438. -
  32439. -# This is the shared library runtime path variable.
  32440. -runpath_var=$runpath_var
  32441. -
  32442. -# This is the shared library path variable.
  32443. -shlibpath_var=$shlibpath_var
  32444. -
  32445. -# Is shlibpath searched before the hard-coded library search path?
  32446. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32447. -
  32448. -# How to hardcode a shared library path into an executable.
  32449. -hardcode_action=$hardcode_action_F77
  32450. -
  32451. -# Whether we should hardcode library paths into libraries.
  32452. -hardcode_into_libs=$hardcode_into_libs
  32453. -
  32454. -# Flag to hardcode \$libdir into a binary during linking.
  32455. -# This must work even if \$libdir does not exist.
  32456. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  32457. -
  32458. -# If ld is used when linking, flag to hardcode \$libdir into
  32459. -# a binary during linking. This must work even if \$libdir does
  32460. -# not exist.
  32461. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  32462. -
  32463. -# Whether we need a single -rpath flag with a separated argument.
  32464. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  32465. -
  32466. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32467. -# resulting binary.
  32468. -hardcode_direct=$hardcode_direct_F77
  32469. -
  32470. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32471. -# resulting binary.
  32472. -hardcode_minus_L=$hardcode_minus_L_F77
  32473. -
  32474. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32475. -# the resulting binary.
  32476. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  32477. -
  32478. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  32479. -# and all subsequent libraries and executables linked against it.
  32480. -hardcode_automatic=$hardcode_automatic_F77
  32481. -
  32482. -# Variables whose values should be saved in libtool wrapper scripts and
  32483. -# restored at relink time.
  32484. -variables_saved_for_relink="$variables_saved_for_relink"
  32485. -
  32486. -# Whether libtool must link a program against all its dependency libraries.
  32487. -link_all_deplibs=$link_all_deplibs_F77
  32488. -
  32489. -# Compile-time system search path for libraries
  32490. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32491. -
  32492. -# Run-time system search path for libraries
  32493. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32494. -
  32495. -# Fix the shell variable \$srcfile for the compiler.
  32496. -fix_srcfile_path=$lt_fix_srcfile_path
  32497. -
  32498. -# Set to yes if exported symbols are required.
  32499. -always_export_symbols=$always_export_symbols_F77
  32500. -
  32501. -# The commands to list exported symbols.
  32502. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  32503. -
  32504. -# The commands to extract the exported symbol list from a shared archive.
  32505. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32506. -
  32507. -# Symbols that should not be listed in the preloaded symbols.
  32508. -exclude_expsyms=$lt_exclude_expsyms_F77
  32509. -
  32510. -# Symbols that must always be exported.
  32511. -include_expsyms=$lt_include_expsyms_F77
  32512. -
  32513. -# ### END LIBTOOL TAG CONFIG: $tagname
  32514. -
  32515. -__EOF__
  32516. -
  32517. -
  32518. -else
  32519. - # If there is no Makefile yet, we rely on a make rule to execute
  32520. - # `config.status --recheck' to rerun these tests and create the
  32521. - # libtool script then.
  32522. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  32523. - if test -f "$ltmain_in"; then
  32524. - test -f Makefile && make "$ltmain"
  32525. - fi
  32526. -fi
  32527. -
  32528. -
  32529. -ac_ext=c
  32530. -ac_cpp='$CPP $CPPFLAGS'
  32531. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32532. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32533. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32534. -
  32535. -CC="$lt_save_CC"
  32536. -
  32537. - else
  32538. - tagname=""
  32539. - fi
  32540. - ;;
  32541. -
  32542. - GCJ)
  32543. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  32544. -
  32545. -
  32546. -# Source file extension for Java test sources.
  32547. -ac_ext=java
  32548. -
  32549. -# Object file extension for compiled Java test sources.
  32550. -objext=o
  32551. -objext_GCJ=$objext
  32552. -
  32553. -# Code to be used in simple compile tests
  32554. -lt_simple_compile_test_code="class foo {}"
  32555. -
  32556. -# Code to be used in simple link tests
  32557. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  32558. -
  32559. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  32560. -
  32561. -# If no C compiler was specified, use CC.
  32562. -LTCC=${LTCC-"$CC"}
  32563. -
  32564. -# If no C compiler flags were specified, use CFLAGS.
  32565. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  32566. -
  32567. -# Allow CC to be a program name with arguments.
  32568. -compiler=$CC
  32569. -
  32570. -
  32571. -# save warnings/boilerplate of simple test code
  32572. -ac_outfile=conftest.$ac_objext
  32573. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  32574. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32575. -_lt_compiler_boilerplate=`cat conftest.err`
  32576. -$rm conftest*
  32577. -
  32578. -ac_outfile=conftest.$ac_objext
  32579. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  32580. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32581. -_lt_linker_boilerplate=`cat conftest.err`
  32582. -$rm -r conftest*
  32583. -
  32584. -
  32585. -# Allow CC to be a program name with arguments.
  32586. -lt_save_CC="$CC"
  32587. -CC=${GCJ-"gcj"}
  32588. -compiler=$CC
  32589. -compiler_GCJ=$CC
  32590. -for cc_temp in $compiler""; do
  32591. - case $cc_temp in
  32592. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  32593. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  32594. - \-*) ;;
  32595. - *) break;;
  32596. - esac
  32597. -done
  32598. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  32599. -
  32600. -
  32601. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  32602. -archive_cmds_need_lc_GCJ=no
  32603. -
  32604. -old_archive_cmds_GCJ=$old_archive_cmds
  32605. -
  32606. -
  32607. -lt_prog_compiler_no_builtin_flag_GCJ=
  32608. -
  32609. -if test "$GCC" = yes; then
  32610. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  32611. -
  32612. -
  32613. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  32614. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  32615. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  32616. - $as_echo_n "(cached) " >&6
  32617. -else
  32618. - lt_cv_prog_compiler_rtti_exceptions=no
  32619. - ac_outfile=conftest.$ac_objext
  32620. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32621. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  32622. - # Insert the option either (1) after the last *FLAGS variable, or
  32623. - # (2) before a word containing "conftest.", or (3) at the end.
  32624. - # Note that $ac_compile itself does not contain backslashes and begins
  32625. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32626. - # The option is referenced via a variable to avoid confusing sed.
  32627. - lt_compile=`echo "$ac_compile" | $SED \
  32628. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32629. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32630. - -e 's:$: $lt_compiler_flag:'`
  32631. - (eval echo "\"\$as_me:16885: $lt_compile\"" >&5)
  32632. - (eval "$lt_compile" 2>conftest.err)
  32633. - ac_status=$?
  32634. - cat conftest.err >&5
  32635. - echo "$as_me:16889: \$? = $ac_status" >&5
  32636. - if (exit $ac_status) && test -s "$ac_outfile"; then
  32637. - # The compiler can only warn and ignore the option if not recognized
  32638. - # So say no if there are warnings other than the usual output.
  32639. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  32640. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32641. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  32642. - lt_cv_prog_compiler_rtti_exceptions=yes
  32643. - fi
  32644. - fi
  32645. - $rm conftest*
  32646. -
  32647. -fi
  32648. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  32649. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  32650. -
  32651. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  32652. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  32653. -else
  32654. - :
  32655. -fi
  32656. -
  32657. -fi
  32658. -
  32659. -lt_prog_compiler_wl_GCJ=
  32660. -lt_prog_compiler_pic_GCJ=
  32661. -lt_prog_compiler_static_GCJ=
  32662. -
  32663. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  32664. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  32665. -
  32666. - if test "$GCC" = yes; then
  32667. - lt_prog_compiler_wl_GCJ='-Wl,'
  32668. - lt_prog_compiler_static_GCJ='-static'
  32669. -
  32670. - case $host_os in
  32671. - aix*)
  32672. - # All AIX code is PIC.
  32673. - if test "$host_cpu" = ia64; then
  32674. - # AIX 5 now supports IA64 processor
  32675. - lt_prog_compiler_static_GCJ='-Bstatic'
  32676. - fi
  32677. - ;;
  32678. -
  32679. - amigaos*)
  32680. - # FIXME: we need at least 68020 code to build shared libraries, but
  32681. - # adding the `-m68020' flag to GCC prevents building anything better,
  32682. - # like `-m68040'.
  32683. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  32684. - ;;
  32685. -
  32686. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  32687. - # PIC is the default for these OSes.
  32688. - ;;
  32689. -
  32690. - mingw* | cygwin* | pw32* | os2*)
  32691. - # This hack is so that the source file can tell whether it is being
  32692. - # built for inclusion in a dll (and should export symbols for example).
  32693. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  32694. - # (--disable-auto-import) libraries
  32695. -
  32696. - ;;
  32697. -
  32698. - darwin* | rhapsody*)
  32699. - # PIC is the default on this platform
  32700. - # Common symbols not allowed in MH_DYLIB files
  32701. - lt_prog_compiler_pic_GCJ='-fno-common'
  32702. - ;;
  32703. -
  32704. - interix[3-9]*)
  32705. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  32706. - # Instead, we relocate shared libraries at runtime.
  32707. - ;;
  32708. -
  32709. - msdosdjgpp*)
  32710. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  32711. - # on systems that don't support them.
  32712. - lt_prog_compiler_can_build_shared_GCJ=no
  32713. - enable_shared=no
  32714. - ;;
  32715. -
  32716. - sysv4*MP*)
  32717. - if test -d /usr/nec; then
  32718. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  32719. - fi
  32720. - ;;
  32721. -
  32722. - hpux*)
  32723. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  32724. - # not for PA HP-UX.
  32725. - case $host_cpu in
  32726. - hppa*64*|ia64*)
  32727. - # +Z the default
  32728. - ;;
  32729. - *)
  32730. - lt_prog_compiler_pic_GCJ='-fPIC'
  32731. - ;;
  32732. - esac
  32733. - ;;
  32734. -
  32735. - *)
  32736. - lt_prog_compiler_pic_GCJ='-fPIC'
  32737. - ;;
  32738. - esac
  32739. - else
  32740. - # PORTME Check for flag to pass linker flags through the system compiler.
  32741. - case $host_os in
  32742. - aix*)
  32743. - lt_prog_compiler_wl_GCJ='-Wl,'
  32744. - if test "$host_cpu" = ia64; then
  32745. - # AIX 5 now supports IA64 processor
  32746. - lt_prog_compiler_static_GCJ='-Bstatic'
  32747. - else
  32748. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  32749. - fi
  32750. - ;;
  32751. - darwin*)
  32752. - # PIC is the default on this platform
  32753. - # Common symbols not allowed in MH_DYLIB files
  32754. - case $cc_basename in
  32755. - xlc*)
  32756. - lt_prog_compiler_pic_GCJ='-qnocommon'
  32757. - lt_prog_compiler_wl_GCJ='-Wl,'
  32758. - ;;
  32759. - esac
  32760. - ;;
  32761. -
  32762. - mingw* | cygwin* | pw32* | os2*)
  32763. - # This hack is so that the source file can tell whether it is being
  32764. - # built for inclusion in a dll (and should export symbols for example).
  32765. -
  32766. - ;;
  32767. -
  32768. - hpux9* | hpux10* | hpux11*)
  32769. - lt_prog_compiler_wl_GCJ='-Wl,'
  32770. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  32771. - # not for PA HP-UX.
  32772. - case $host_cpu in
  32773. - hppa*64*|ia64*)
  32774. - # +Z the default
  32775. - ;;
  32776. - *)
  32777. - lt_prog_compiler_pic_GCJ='+Z'
  32778. - ;;
  32779. - esac
  32780. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  32781. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  32782. - ;;
  32783. -
  32784. - irix5* | irix6* | nonstopux*)
  32785. - lt_prog_compiler_wl_GCJ='-Wl,'
  32786. - # PIC (with -KPIC) is the default.
  32787. - lt_prog_compiler_static_GCJ='-non_shared'
  32788. - ;;
  32789. -
  32790. - newsos6)
  32791. - lt_prog_compiler_pic_GCJ='-KPIC'
  32792. - lt_prog_compiler_static_GCJ='-Bstatic'
  32793. - ;;
  32794. -
  32795. - linux* | k*bsd*-gnu)
  32796. - case $cc_basename in
  32797. - icc* | ecc*)
  32798. - lt_prog_compiler_wl_GCJ='-Wl,'
  32799. - lt_prog_compiler_pic_GCJ='-KPIC'
  32800. - lt_prog_compiler_static_GCJ='-static'
  32801. - ;;
  32802. - pgcc* | pgf77* | pgf90* | pgf95*)
  32803. - # Portland Group compilers (*not* the Pentium gcc compiler,
  32804. - # which looks to be a dead project)
  32805. - lt_prog_compiler_wl_GCJ='-Wl,'
  32806. - lt_prog_compiler_pic_GCJ='-fpic'
  32807. - lt_prog_compiler_static_GCJ='-Bstatic'
  32808. - ;;
  32809. - ccc*)
  32810. - lt_prog_compiler_wl_GCJ='-Wl,'
  32811. - # All Alpha code is PIC.
  32812. - lt_prog_compiler_static_GCJ='-non_shared'
  32813. - ;;
  32814. - *)
  32815. - case `$CC -V 2>&1 | sed 5q` in
  32816. - *Sun\ C*)
  32817. - # Sun C 5.9
  32818. - lt_prog_compiler_pic_GCJ='-KPIC'
  32819. - lt_prog_compiler_static_GCJ='-Bstatic'
  32820. - lt_prog_compiler_wl_GCJ='-Wl,'
  32821. - ;;
  32822. - *Sun\ F*)
  32823. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  32824. - lt_prog_compiler_pic_GCJ='-KPIC'
  32825. - lt_prog_compiler_static_GCJ='-Bstatic'
  32826. - lt_prog_compiler_wl_GCJ=''
  32827. - ;;
  32828. - esac
  32829. - ;;
  32830. - esac
  32831. - ;;
  32832. -
  32833. - osf3* | osf4* | osf5*)
  32834. - lt_prog_compiler_wl_GCJ='-Wl,'
  32835. - # All OSF/1 code is PIC.
  32836. - lt_prog_compiler_static_GCJ='-non_shared'
  32837. - ;;
  32838. -
  32839. - rdos*)
  32840. - lt_prog_compiler_static_GCJ='-non_shared'
  32841. - ;;
  32842. -
  32843. - solaris*)
  32844. - lt_prog_compiler_pic_GCJ='-KPIC'
  32845. - lt_prog_compiler_static_GCJ='-Bstatic'
  32846. - case $cc_basename in
  32847. - f77* | f90* | f95*)
  32848. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  32849. - *)
  32850. - lt_prog_compiler_wl_GCJ='-Wl,';;
  32851. - esac
  32852. - ;;
  32853. -
  32854. - sunos4*)
  32855. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  32856. - lt_prog_compiler_pic_GCJ='-PIC'
  32857. - lt_prog_compiler_static_GCJ='-Bstatic'
  32858. - ;;
  32859. -
  32860. - sysv4 | sysv4.2uw2* | sysv4.3*)
  32861. - lt_prog_compiler_wl_GCJ='-Wl,'
  32862. - lt_prog_compiler_pic_GCJ='-KPIC'
  32863. - lt_prog_compiler_static_GCJ='-Bstatic'
  32864. - ;;
  32865. -
  32866. - sysv4*MP*)
  32867. - if test -d /usr/nec ;then
  32868. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  32869. - lt_prog_compiler_static_GCJ='-Bstatic'
  32870. - fi
  32871. - ;;
  32872. -
  32873. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  32874. - lt_prog_compiler_wl_GCJ='-Wl,'
  32875. - lt_prog_compiler_pic_GCJ='-KPIC'
  32876. - lt_prog_compiler_static_GCJ='-Bstatic'
  32877. - ;;
  32878. -
  32879. - unicos*)
  32880. - lt_prog_compiler_wl_GCJ='-Wl,'
  32881. - lt_prog_compiler_can_build_shared_GCJ=no
  32882. - ;;
  32883. -
  32884. - uts4*)
  32885. - lt_prog_compiler_pic_GCJ='-pic'
  32886. - lt_prog_compiler_static_GCJ='-Bstatic'
  32887. - ;;
  32888. -
  32889. - *)
  32890. - lt_prog_compiler_can_build_shared_GCJ=no
  32891. - ;;
  32892. - esac
  32893. - fi
  32894. -
  32895. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  32896. -$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  32897. -
  32898. -#
  32899. -# Check to make sure the PIC flag actually works.
  32900. -#
  32901. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  32902. -
  32903. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  32904. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  32905. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  32906. - $as_echo_n "(cached) " >&6
  32907. -else
  32908. - lt_cv_prog_compiler_pic_works_GCJ=no
  32909. - ac_outfile=conftest.$ac_objext
  32910. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32911. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  32912. - # Insert the option either (1) after the last *FLAGS variable, or
  32913. - # (2) before a word containing "conftest.", or (3) at the end.
  32914. - # Note that $ac_compile itself does not contain backslashes and begins
  32915. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32916. - # The option is referenced via a variable to avoid confusing sed.
  32917. - lt_compile=`echo "$ac_compile" | $SED \
  32918. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32919. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32920. - -e 's:$: $lt_compiler_flag:'`
  32921. - (eval echo "\"\$as_me:17175: $lt_compile\"" >&5)
  32922. - (eval "$lt_compile" 2>conftest.err)
  32923. - ac_status=$?
  32924. - cat conftest.err >&5
  32925. - echo "$as_me:17179: \$? = $ac_status" >&5
  32926. - if (exit $ac_status) && test -s "$ac_outfile"; then
  32927. - # The compiler can only warn and ignore the option if not recognized
  32928. - # So say no if there are warnings other than the usual output.
  32929. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  32930. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32931. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  32932. - lt_cv_prog_compiler_pic_works_GCJ=yes
  32933. - fi
  32934. - fi
  32935. - $rm conftest*
  32936. -
  32937. -fi
  32938. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  32939. -$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  32940. -
  32941. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  32942. - case $lt_prog_compiler_pic_GCJ in
  32943. - "" | " "*) ;;
  32944. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  32945. - esac
  32946. -else
  32947. - lt_prog_compiler_pic_GCJ=
  32948. - lt_prog_compiler_can_build_shared_GCJ=no
  32949. -fi
  32950. -
  32951. -fi
  32952. -case $host_os in
  32953. - # For platforms which do not support PIC, -DPIC is meaningless:
  32954. - *djgpp*)
  32955. - lt_prog_compiler_pic_GCJ=
  32956. - ;;
  32957. - *)
  32958. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  32959. - ;;
  32960. -esac
  32961. -
  32962. -#
  32963. -# Check to make sure the static flag actually works.
  32964. -#
  32965. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  32966. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  32967. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  32968. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  32969. - $as_echo_n "(cached) " >&6
  32970. -else
  32971. - lt_cv_prog_compiler_static_works_GCJ=no
  32972. - save_LDFLAGS="$LDFLAGS"
  32973. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  32974. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  32975. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  32976. - # The linker can only warn and ignore the option if not recognized
  32977. - # So say no if there are warnings
  32978. - if test -s conftest.err; then
  32979. - # Append any errors to the config.log.
  32980. - cat conftest.err 1>&5
  32981. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  32982. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32983. - if diff conftest.exp conftest.er2 >/dev/null; then
  32984. - lt_cv_prog_compiler_static_works_GCJ=yes
  32985. - fi
  32986. - else
  32987. - lt_cv_prog_compiler_static_works_GCJ=yes
  32988. - fi
  32989. - fi
  32990. - $rm -r conftest*
  32991. - LDFLAGS="$save_LDFLAGS"
  32992. -
  32993. -fi
  32994. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  32995. -$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  32996. -
  32997. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  32998. - :
  32999. -else
  33000. - lt_prog_compiler_static_GCJ=
  33001. -fi
  33002. -
  33003. -
  33004. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  33005. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33006. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  33007. - $as_echo_n "(cached) " >&6
  33008. -else
  33009. - lt_cv_prog_compiler_c_o_GCJ=no
  33010. - $rm -r conftest 2>/dev/null
  33011. - mkdir conftest
  33012. - cd conftest
  33013. - mkdir out
  33014. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33015. -
  33016. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  33017. - # Insert the option either (1) after the last *FLAGS variable, or
  33018. - # (2) before a word containing "conftest.", or (3) at the end.
  33019. - # Note that $ac_compile itself does not contain backslashes and begins
  33020. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33021. - lt_compile=`echo "$ac_compile" | $SED \
  33022. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33023. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33024. - -e 's:$: $lt_compiler_flag:'`
  33025. - (eval echo "\"\$as_me:17279: $lt_compile\"" >&5)
  33026. - (eval "$lt_compile" 2>out/conftest.err)
  33027. - ac_status=$?
  33028. - cat out/conftest.err >&5
  33029. - echo "$as_me:17283: \$? = $ac_status" >&5
  33030. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33031. - then
  33032. - # The compiler can only warn and ignore the option if not recognized
  33033. - # So say no if there are warnings
  33034. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33035. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33036. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33037. - lt_cv_prog_compiler_c_o_GCJ=yes
  33038. - fi
  33039. - fi
  33040. - chmod u+w . 2>&5
  33041. - $rm conftest*
  33042. - # SGI C++ compiler will create directory out/ii_files/ for
  33043. - # template instantiation
  33044. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  33045. - $rm out/* && rmdir out
  33046. - cd ..
  33047. - rmdir conftest
  33048. - $rm conftest*
  33049. -
  33050. -fi
  33051. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  33052. -$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  33053. -
  33054. -
  33055. -hard_links="nottested"
  33056. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  33057. - # do not overwrite the value of need_locks provided by the user
  33058. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  33059. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  33060. - hard_links=yes
  33061. - $rm conftest*
  33062. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33063. - touch conftest.a
  33064. - ln conftest.a conftest.b 2>&5 || hard_links=no
  33065. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33066. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  33067. -$as_echo "$hard_links" >&6; }
  33068. - if test "$hard_links" = no; then
  33069. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33070. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33071. - need_locks=warn
  33072. - fi
  33073. -else
  33074. - need_locks=no
  33075. -fi
  33076. -
  33077. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33078. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  33079. -
  33080. - runpath_var=
  33081. - allow_undefined_flag_GCJ=
  33082. - enable_shared_with_static_runtimes_GCJ=no
  33083. - archive_cmds_GCJ=
  33084. - archive_expsym_cmds_GCJ=
  33085. - old_archive_From_new_cmds_GCJ=
  33086. - old_archive_from_expsyms_cmds_GCJ=
  33087. - export_dynamic_flag_spec_GCJ=
  33088. - whole_archive_flag_spec_GCJ=
  33089. - thread_safe_flag_spec_GCJ=
  33090. - hardcode_libdir_flag_spec_GCJ=
  33091. - hardcode_libdir_flag_spec_ld_GCJ=
  33092. - hardcode_libdir_separator_GCJ=
  33093. - hardcode_direct_GCJ=no
  33094. - hardcode_minus_L_GCJ=no
  33095. - hardcode_shlibpath_var_GCJ=unsupported
  33096. - link_all_deplibs_GCJ=unknown
  33097. - hardcode_automatic_GCJ=no
  33098. - module_cmds_GCJ=
  33099. - module_expsym_cmds_GCJ=
  33100. - always_export_symbols_GCJ=no
  33101. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33102. - # include_expsyms should be a list of space-separated symbols to be *always*
  33103. - # included in the symbol list
  33104. - include_expsyms_GCJ=
  33105. - # exclude_expsyms can be an extended regexp of symbols to exclude
  33106. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  33107. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  33108. - # as well as any symbol that contains `d'.
  33109. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  33110. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  33111. - # platforms (ab)use it in PIC code, but their linkers get confused if
  33112. - # the symbol is explicitly referenced. Since portable code cannot
  33113. - # rely on this symbol name, it's probably fine to never include it in
  33114. - # preloaded symbol tables.
  33115. - # Exclude shared library initialization/finalization symbols.
  33116. - extract_expsyms_cmds=
  33117. - # Just being paranoid about ensuring that cc_basename is set.
  33118. - for cc_temp in $compiler""; do
  33119. - case $cc_temp in
  33120. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33121. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33122. - \-*) ;;
  33123. - *) break;;
  33124. - esac
  33125. -done
  33126. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33127. -
  33128. - case $host_os in
  33129. - cygwin* | mingw* | pw32*)
  33130. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  33131. - # When not using gcc, we currently assume that we are using
  33132. - # Microsoft Visual C++.
  33133. - if test "$GCC" != yes; then
  33134. - with_gnu_ld=no
  33135. - fi
  33136. - ;;
  33137. - interix*)
  33138. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  33139. - with_gnu_ld=yes
  33140. - ;;
  33141. - openbsd*)
  33142. - with_gnu_ld=no
  33143. - ;;
  33144. - esac
  33145. -
  33146. - ld_shlibs_GCJ=yes
  33147. - if test "$with_gnu_ld" = yes; then
  33148. - # If archive_cmds runs LD, not CC, wlarc should be empty
  33149. - wlarc='${wl}'
  33150. -
  33151. - # Set some defaults for GNU ld with shared library support. These
  33152. - # are reset later if shared libraries are not supported. Putting them
  33153. - # here allows them to be overridden if necessary.
  33154. - runpath_var=LD_RUN_PATH
  33155. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  33156. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  33157. - # ancient GNU ld didn't support --whole-archive et. al.
  33158. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  33159. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  33160. - else
  33161. - whole_archive_flag_spec_GCJ=
  33162. - fi
  33163. - supports_anon_versioning=no
  33164. - case `$LD -v 2>/dev/null` in
  33165. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  33166. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  33167. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  33168. - *\ 2.11.*) ;; # other 2.11 versions
  33169. - *) supports_anon_versioning=yes ;;
  33170. - esac
  33171. -
  33172. - # See if GNU ld supports shared libraries.
  33173. - case $host_os in
  33174. - aix[3-9]*)
  33175. - # On AIX/PPC, the GNU linker is very broken
  33176. - if test "$host_cpu" != ia64; then
  33177. - ld_shlibs_GCJ=no
  33178. - cat <<EOF 1>&2
  33179. -
  33180. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  33181. -*** to be unable to reliably create shared libraries on AIX.
  33182. -*** Therefore, libtool is disabling shared libraries support. If you
  33183. -*** really care for shared libraries, you may want to modify your PATH
  33184. -*** so that a non-GNU linker is found, and then restart.
  33185. -
  33186. -EOF
  33187. - fi
  33188. - ;;
  33189. -
  33190. - amigaos*)
  33191. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  33192. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33193. - hardcode_minus_L_GCJ=yes
  33194. -
  33195. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  33196. - # that the semantics of dynamic libraries on AmigaOS, at least up
  33197. - # to version 4, is to share data among multiple programs linked
  33198. - # with the same dynamic library. Since this doesn't match the
  33199. - # behavior of shared libraries on other platforms, we can't use
  33200. - # them.
  33201. - ld_shlibs_GCJ=no
  33202. - ;;
  33203. -
  33204. - beos*)
  33205. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33206. - allow_undefined_flag_GCJ=unsupported
  33207. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  33208. - # support --undefined. This deserves some investigation. FIXME
  33209. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33210. - else
  33211. - ld_shlibs_GCJ=no
  33212. - fi
  33213. - ;;
  33214. -
  33215. - cygwin* | mingw* | pw32*)
  33216. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  33217. - # as there is no search path for DLLs.
  33218. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33219. - allow_undefined_flag_GCJ=unsupported
  33220. - always_export_symbols_GCJ=no
  33221. - enable_shared_with_static_runtimes_GCJ=yes
  33222. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  33223. -
  33224. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  33225. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33226. - # If the export-symbols file already is a .def file (1st line
  33227. - # is EXPORTS), use it as is; otherwise, prepend...
  33228. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  33229. - cp $export_symbols $output_objdir/$soname.def;
  33230. - else
  33231. - echo EXPORTS > $output_objdir/$soname.def;
  33232. - cat $export_symbols >> $output_objdir/$soname.def;
  33233. - fi~
  33234. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33235. - else
  33236. - ld_shlibs_GCJ=no
  33237. - fi
  33238. - ;;
  33239. -
  33240. - interix[3-9]*)
  33241. - hardcode_direct_GCJ=no
  33242. - hardcode_shlibpath_var_GCJ=no
  33243. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  33244. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33245. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  33246. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  33247. - # default) and relocated if they conflict, which is a slow very memory
  33248. - # consuming and fragmenting process. To avoid this, we pick a random,
  33249. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  33250. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  33251. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33252. - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33253. - ;;
  33254. -
  33255. - gnu* | linux* | k*bsd*-gnu)
  33256. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33257. - tmp_addflag=
  33258. - case $cc_basename,$host_cpu in
  33259. - pgcc*) # Portland Group C compiler
  33260. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  33261. - tmp_addflag=' $pic_flag'
  33262. - ;;
  33263. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  33264. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  33265. - tmp_addflag=' $pic_flag -Mnomain' ;;
  33266. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  33267. - tmp_addflag=' -i_dynamic' ;;
  33268. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  33269. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  33270. - ifc* | ifort*) # Intel Fortran compiler
  33271. - tmp_addflag=' -nofor_main' ;;
  33272. - esac
  33273. - case `$CC -V 2>&1 | sed 5q` in
  33274. - *Sun\ C*) # Sun C 5.9
  33275. - whole_archive_flag_spec_GCJ='${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'
  33276. - tmp_sharedflag='-G' ;;
  33277. - *Sun\ F*) # Sun Fortran 8.3
  33278. - tmp_sharedflag='-G' ;;
  33279. - *)
  33280. - tmp_sharedflag='-shared' ;;
  33281. - esac
  33282. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33283. -
  33284. - if test $supports_anon_versioning = yes; then
  33285. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  33286. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  33287. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  33288. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  33289. - fi
  33290. - else
  33291. - ld_shlibs_GCJ=no
  33292. - fi
  33293. - ;;
  33294. -
  33295. - netbsd*)
  33296. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33297. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  33298. - wlarc=
  33299. - else
  33300. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33301. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33302. - fi
  33303. - ;;
  33304. -
  33305. - solaris*)
  33306. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  33307. - ld_shlibs_GCJ=no
  33308. - cat <<EOF 1>&2
  33309. -
  33310. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  33311. -*** create shared libraries on Solaris systems. Therefore, libtool
  33312. -*** is disabling shared libraries support. We urge you to upgrade GNU
  33313. -*** binutils to release 2.9.1 or newer. Another option is to modify
  33314. -*** your PATH or compiler configuration so that the native linker is
  33315. -*** used, and then restart.
  33316. -
  33317. -EOF
  33318. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33319. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33320. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33321. - else
  33322. - ld_shlibs_GCJ=no
  33323. - fi
  33324. - ;;
  33325. -
  33326. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  33327. - case `$LD -v 2>&1` in
  33328. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  33329. - ld_shlibs_GCJ=no
  33330. - cat <<_LT_EOF 1>&2
  33331. -
  33332. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  33333. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  33334. -*** is disabling shared libraries support. We urge you to upgrade GNU
  33335. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  33336. -*** your PATH or compiler configuration so that the native linker is
  33337. -*** used, and then restart.
  33338. -
  33339. -_LT_EOF
  33340. - ;;
  33341. - *)
  33342. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33343. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  33344. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  33345. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  33346. - else
  33347. - ld_shlibs_GCJ=no
  33348. - fi
  33349. - ;;
  33350. - esac
  33351. - ;;
  33352. -
  33353. - sunos4*)
  33354. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33355. - wlarc=
  33356. - hardcode_direct_GCJ=yes
  33357. - hardcode_shlibpath_var_GCJ=no
  33358. - ;;
  33359. -
  33360. - *)
  33361. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33362. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33363. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33364. - else
  33365. - ld_shlibs_GCJ=no
  33366. - fi
  33367. - ;;
  33368. - esac
  33369. -
  33370. - if test "$ld_shlibs_GCJ" = no; then
  33371. - runpath_var=
  33372. - hardcode_libdir_flag_spec_GCJ=
  33373. - export_dynamic_flag_spec_GCJ=
  33374. - whole_archive_flag_spec_GCJ=
  33375. - fi
  33376. - else
  33377. - # PORTME fill in a description of your system's linker (not GNU ld)
  33378. - case $host_os in
  33379. - aix3*)
  33380. - allow_undefined_flag_GCJ=unsupported
  33381. - always_export_symbols_GCJ=yes
  33382. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  33383. - # Note: this linker hardcodes the directories in LIBPATH if there
  33384. - # are no directories specified by -L.
  33385. - hardcode_minus_L_GCJ=yes
  33386. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  33387. - # Neither direct hardcoding nor static linking is supported with a
  33388. - # broken collect2.
  33389. - hardcode_direct_GCJ=unsupported
  33390. - fi
  33391. - ;;
  33392. -
  33393. - aix[4-9]*)
  33394. - if test "$host_cpu" = ia64; then
  33395. - # On IA64, the linker does run time linking by default, so we don't
  33396. - # have to do anything special.
  33397. - aix_use_runtimelinking=no
  33398. - exp_sym_flag='-Bexport'
  33399. - no_entry_flag=""
  33400. - else
  33401. - # If we're using GNU nm, then we don't want the "-C" option.
  33402. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33403. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  33404. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  33405. - else
  33406. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  33407. - fi
  33408. - aix_use_runtimelinking=no
  33409. -
  33410. - # Test if we are trying to use run time linking or normal
  33411. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  33412. - # need to do runtime linking.
  33413. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  33414. - for ld_flag in $LDFLAGS; do
  33415. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  33416. - aix_use_runtimelinking=yes
  33417. - break
  33418. - fi
  33419. - done
  33420. - ;;
  33421. - esac
  33422. -
  33423. - exp_sym_flag='-bexport'
  33424. - no_entry_flag='-bnoentry'
  33425. - fi
  33426. -
  33427. - # When large executables or shared objects are built, AIX ld can
  33428. - # have problems creating the table of contents. If linking a library
  33429. - # or program results in "error TOC overflow" add -mminimal-toc to
  33430. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  33431. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  33432. -
  33433. - archive_cmds_GCJ=''
  33434. - hardcode_direct_GCJ=yes
  33435. - hardcode_libdir_separator_GCJ=':'
  33436. - link_all_deplibs_GCJ=yes
  33437. -
  33438. - if test "$GCC" = yes; then
  33439. - case $host_os in aix4.[012]|aix4.[012].*)
  33440. - # We only want to do this on AIX 4.2 and lower, the check
  33441. - # below for broken collect2 doesn't work under 4.3+
  33442. - collect2name=`${CC} -print-prog-name=collect2`
  33443. - if test -f "$collect2name" && \
  33444. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  33445. - then
  33446. - # We have reworked collect2
  33447. - :
  33448. - else
  33449. - # We have old collect2
  33450. - hardcode_direct_GCJ=unsupported
  33451. - # It fails to find uninstalled libraries when the uninstalled
  33452. - # path is not listed in the libpath. Setting hardcode_minus_L
  33453. - # to unsupported forces relinking
  33454. - hardcode_minus_L_GCJ=yes
  33455. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33456. - hardcode_libdir_separator_GCJ=
  33457. - fi
  33458. - ;;
  33459. - esac
  33460. - shared_flag='-shared'
  33461. - if test "$aix_use_runtimelinking" = yes; then
  33462. - shared_flag="$shared_flag "'${wl}-G'
  33463. - fi
  33464. - else
  33465. - # not using gcc
  33466. - if test "$host_cpu" = ia64; then
  33467. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  33468. - # chokes on -Wl,-G. The following line is correct:
  33469. - shared_flag='-G'
  33470. - else
  33471. - if test "$aix_use_runtimelinking" = yes; then
  33472. - shared_flag='${wl}-G'
  33473. - else
  33474. - shared_flag='${wl}-bM:SRE'
  33475. - fi
  33476. - fi
  33477. - fi
  33478. -
  33479. - # It seems that -bexpall does not export symbols beginning with
  33480. - # underscore (_), so it is better to generate a list of symbols to export.
  33481. - always_export_symbols_GCJ=yes
  33482. - if test "$aix_use_runtimelinking" = yes; then
  33483. - # Warning - without using the other runtime loading flags (-brtl),
  33484. - # -berok will link without error, but may produce a broken library.
  33485. - allow_undefined_flag_GCJ='-berok'
  33486. - # Determine the default libpath from the value encoded in an empty executable.
  33487. - cat >conftest.$ac_ext <<_ACEOF
  33488. -/* confdefs.h. */
  33489. -_ACEOF
  33490. -cat confdefs.h >>conftest.$ac_ext
  33491. -cat >>conftest.$ac_ext <<_ACEOF
  33492. -/* end confdefs.h. */
  33493. -
  33494. -int
  33495. -main ()
  33496. -{
  33497. -
  33498. - ;
  33499. - return 0;
  33500. -}
  33501. -_ACEOF
  33502. -rm -f conftest.$ac_objext conftest$ac_exeext
  33503. -if { (ac_try="$ac_link"
  33504. -case "(($ac_try" in
  33505. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33506. - *) ac_try_echo=$ac_try;;
  33507. -esac
  33508. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33509. -$as_echo "$ac_try_echo") >&5
  33510. - (eval "$ac_link") 2>conftest.er1
  33511. - ac_status=$?
  33512. - grep -v '^ *+' conftest.er1 >conftest.err
  33513. - rm -f conftest.er1
  33514. - cat conftest.err >&5
  33515. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33516. - (exit $ac_status); } && {
  33517. - test -z "$ac_c_werror_flag" ||
  33518. - test ! -s conftest.err
  33519. - } && test -s conftest$ac_exeext && {
  33520. - test "$cross_compiling" = yes ||
  33521. - $as_test_x conftest$ac_exeext
  33522. - }; then
  33523. -
  33524. -lt_aix_libpath_sed='
  33525. - /Import File Strings/,/^$/ {
  33526. - /^0/ {
  33527. - s/^0 *\(.*\)$/\1/
  33528. - p
  33529. - }
  33530. - }'
  33531. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33532. -# Check for a 64-bit object if we didn't find anything.
  33533. -if test -z "$aix_libpath"; then
  33534. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33535. -fi
  33536. -else
  33537. - $as_echo "$as_me: failed program was:" >&5
  33538. -sed 's/^/| /' conftest.$ac_ext >&5
  33539. -
  33540. -
  33541. -fi
  33542. -
  33543. -rm -rf conftest.dSYM
  33544. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33545. - conftest$ac_exeext conftest.$ac_ext
  33546. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33547. -
  33548. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  33549. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  33550. - else
  33551. - if test "$host_cpu" = ia64; then
  33552. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  33553. - allow_undefined_flag_GCJ="-z nodefs"
  33554. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  33555. - else
  33556. - # Determine the default libpath from the value encoded in an empty executable.
  33557. - cat >conftest.$ac_ext <<_ACEOF
  33558. -/* confdefs.h. */
  33559. -_ACEOF
  33560. -cat confdefs.h >>conftest.$ac_ext
  33561. -cat >>conftest.$ac_ext <<_ACEOF
  33562. -/* end confdefs.h. */
  33563. -
  33564. -int
  33565. -main ()
  33566. -{
  33567. -
  33568. - ;
  33569. - return 0;
  33570. -}
  33571. -_ACEOF
  33572. -rm -f conftest.$ac_objext conftest$ac_exeext
  33573. -if { (ac_try="$ac_link"
  33574. -case "(($ac_try" in
  33575. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33576. - *) ac_try_echo=$ac_try;;
  33577. -esac
  33578. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33579. -$as_echo "$ac_try_echo") >&5
  33580. - (eval "$ac_link") 2>conftest.er1
  33581. - ac_status=$?
  33582. - grep -v '^ *+' conftest.er1 >conftest.err
  33583. - rm -f conftest.er1
  33584. - cat conftest.err >&5
  33585. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33586. - (exit $ac_status); } && {
  33587. - test -z "$ac_c_werror_flag" ||
  33588. - test ! -s conftest.err
  33589. - } && test -s conftest$ac_exeext && {
  33590. - test "$cross_compiling" = yes ||
  33591. - $as_test_x conftest$ac_exeext
  33592. - }; then
  33593. -
  33594. -lt_aix_libpath_sed='
  33595. - /Import File Strings/,/^$/ {
  33596. - /^0/ {
  33597. - s/^0 *\(.*\)$/\1/
  33598. - p
  33599. - }
  33600. - }'
  33601. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33602. -# Check for a 64-bit object if we didn't find anything.
  33603. -if test -z "$aix_libpath"; then
  33604. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33605. -fi
  33606. -else
  33607. - $as_echo "$as_me: failed program was:" >&5
  33608. -sed 's/^/| /' conftest.$ac_ext >&5
  33609. -
  33610. -
  33611. -fi
  33612. -
  33613. -rm -rf conftest.dSYM
  33614. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33615. - conftest$ac_exeext conftest.$ac_ext
  33616. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33617. -
  33618. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  33619. - # Warning - without using the other run time loading flags,
  33620. - # -berok will link without error, but may produce a broken library.
  33621. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  33622. - allow_undefined_flag_GCJ=' ${wl}-berok'
  33623. - # Exported symbols can be pulled into shared objects from archives
  33624. - whole_archive_flag_spec_GCJ='$convenience'
  33625. - archive_cmds_need_lc_GCJ=yes
  33626. - # This is similar to how AIX traditionally builds its shared libraries.
  33627. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  33628. - fi
  33629. - fi
  33630. - ;;
  33631. -
  33632. - amigaos*)
  33633. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  33634. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33635. - hardcode_minus_L_GCJ=yes
  33636. - # see comment about different semantics on the GNU ld section
  33637. - ld_shlibs_GCJ=no
  33638. - ;;
  33639. -
  33640. - bsdi[45]*)
  33641. - export_dynamic_flag_spec_GCJ=-rdynamic
  33642. - ;;
  33643. -
  33644. - cygwin* | mingw* | pw32*)
  33645. - # When not using gcc, we currently assume that we are using
  33646. - # Microsoft Visual C++.
  33647. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  33648. - # no search path for DLLs.
  33649. - hardcode_libdir_flag_spec_GCJ=' '
  33650. - allow_undefined_flag_GCJ=unsupported
  33651. - # Tell ltmain to make .lib files, not .a files.
  33652. - libext=lib
  33653. - # Tell ltmain to make .dll files, not .so files.
  33654. - shrext_cmds=".dll"
  33655. - # FIXME: Setting linknames here is a bad hack.
  33656. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  33657. - # The linker will automatically build a .lib file if we build a DLL.
  33658. - old_archive_From_new_cmds_GCJ='true'
  33659. - # FIXME: Should let the user specify the lib program.
  33660. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  33661. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  33662. - enable_shared_with_static_runtimes_GCJ=yes
  33663. - ;;
  33664. -
  33665. - darwin* | rhapsody*)
  33666. - case $host_os in
  33667. - rhapsody* | darwin1.[012])
  33668. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  33669. - ;;
  33670. - *) # Darwin 1.3 on
  33671. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  33672. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  33673. - else
  33674. - case ${MACOSX_DEPLOYMENT_TARGET} in
  33675. - 10.[012])
  33676. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  33677. - ;;
  33678. - 10.*)
  33679. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  33680. - ;;
  33681. - esac
  33682. - fi
  33683. - ;;
  33684. - esac
  33685. - archive_cmds_need_lc_GCJ=no
  33686. - hardcode_direct_GCJ=no
  33687. - hardcode_automatic_GCJ=yes
  33688. - hardcode_shlibpath_var_GCJ=unsupported
  33689. - whole_archive_flag_spec_GCJ=''
  33690. - link_all_deplibs_GCJ=yes
  33691. - if test "$GCC" = yes ; then
  33692. - output_verbose_link_cmd='echo'
  33693. - archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  33694. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  33695. - archive_expsym_cmds_GCJ="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}"
  33696. - module_expsym_cmds_GCJ="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}"
  33697. - else
  33698. - case $cc_basename in
  33699. - xlc*)
  33700. - output_verbose_link_cmd='echo'
  33701. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  33702. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  33703. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  33704. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  33705. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  33706. - ;;
  33707. - *)
  33708. - ld_shlibs_GCJ=no
  33709. - ;;
  33710. - esac
  33711. - fi
  33712. - ;;
  33713. -
  33714. - dgux*)
  33715. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33716. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33717. - hardcode_shlibpath_var_GCJ=no
  33718. - ;;
  33719. -
  33720. - freebsd1*)
  33721. - ld_shlibs_GCJ=no
  33722. - ;;
  33723. -
  33724. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  33725. - # support. Future versions do this automatically, but an explicit c++rt0.o
  33726. - # does not break anything, and helps significantly (at the cost of a little
  33727. - # extra space).
  33728. - freebsd2.2*)
  33729. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  33730. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33731. - hardcode_direct_GCJ=yes
  33732. - hardcode_shlibpath_var_GCJ=no
  33733. - ;;
  33734. -
  33735. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  33736. - freebsd2*)
  33737. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33738. - hardcode_direct_GCJ=yes
  33739. - hardcode_minus_L_GCJ=yes
  33740. - hardcode_shlibpath_var_GCJ=no
  33741. - ;;
  33742. -
  33743. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  33744. - freebsd* | dragonfly*)
  33745. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  33746. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33747. - hardcode_direct_GCJ=yes
  33748. - hardcode_shlibpath_var_GCJ=no
  33749. - ;;
  33750. -
  33751. - hpux9*)
  33752. - if test "$GCC" = yes; then
  33753. - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  33754. - else
  33755. - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  33756. - fi
  33757. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  33758. - hardcode_libdir_separator_GCJ=:
  33759. - hardcode_direct_GCJ=yes
  33760. -
  33761. - # hardcode_minus_L: Not really in the search PATH,
  33762. - # but as the default location of the library.
  33763. - hardcode_minus_L_GCJ=yes
  33764. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33765. - ;;
  33766. -
  33767. - hpux10*)
  33768. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33769. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33770. - else
  33771. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  33772. - fi
  33773. - if test "$with_gnu_ld" = no; then
  33774. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  33775. - hardcode_libdir_separator_GCJ=:
  33776. -
  33777. - hardcode_direct_GCJ=yes
  33778. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33779. -
  33780. - # hardcode_minus_L: Not really in the search PATH,
  33781. - # but as the default location of the library.
  33782. - hardcode_minus_L_GCJ=yes
  33783. - fi
  33784. - ;;
  33785. -
  33786. - hpux11*)
  33787. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33788. - case $host_cpu in
  33789. - hppa*64*)
  33790. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33791. - ;;
  33792. - ia64*)
  33793. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  33794. - ;;
  33795. - *)
  33796. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33797. - ;;
  33798. - esac
  33799. - else
  33800. - case $host_cpu in
  33801. - hppa*64*)
  33802. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33803. - ;;
  33804. - ia64*)
  33805. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  33806. - ;;
  33807. - *)
  33808. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33809. - ;;
  33810. - esac
  33811. - fi
  33812. - if test "$with_gnu_ld" = no; then
  33813. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  33814. - hardcode_libdir_separator_GCJ=:
  33815. -
  33816. - case $host_cpu in
  33817. - hppa*64*|ia64*)
  33818. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  33819. - hardcode_direct_GCJ=no
  33820. - hardcode_shlibpath_var_GCJ=no
  33821. - ;;
  33822. - *)
  33823. - hardcode_direct_GCJ=yes
  33824. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33825. -
  33826. - # hardcode_minus_L: Not really in the search PATH,
  33827. - # but as the default location of the library.
  33828. - hardcode_minus_L_GCJ=yes
  33829. - ;;
  33830. - esac
  33831. - fi
  33832. - ;;
  33833. -
  33834. - irix5* | irix6* | nonstopux*)
  33835. - if test "$GCC" = yes; then
  33836. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  33837. - else
  33838. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  33839. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  33840. - fi
  33841. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33842. - hardcode_libdir_separator_GCJ=:
  33843. - link_all_deplibs_GCJ=yes
  33844. - ;;
  33845. -
  33846. - netbsd*)
  33847. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33848. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  33849. - else
  33850. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  33851. - fi
  33852. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33853. - hardcode_direct_GCJ=yes
  33854. - hardcode_shlibpath_var_GCJ=no
  33855. - ;;
  33856. -
  33857. - newsos6)
  33858. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33859. - hardcode_direct_GCJ=yes
  33860. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33861. - hardcode_libdir_separator_GCJ=:
  33862. - hardcode_shlibpath_var_GCJ=no
  33863. - ;;
  33864. -
  33865. - openbsd*)
  33866. - if test -f /usr/libexec/ld.so; then
  33867. - hardcode_direct_GCJ=yes
  33868. - hardcode_shlibpath_var_GCJ=no
  33869. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33870. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  33871. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  33872. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  33873. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33874. - else
  33875. - case $host_os in
  33876. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  33877. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33878. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33879. - ;;
  33880. - *)
  33881. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  33882. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  33883. - ;;
  33884. - esac
  33885. - fi
  33886. - else
  33887. - ld_shlibs_GCJ=no
  33888. - fi
  33889. - ;;
  33890. -
  33891. - os2*)
  33892. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33893. - hardcode_minus_L_GCJ=yes
  33894. - allow_undefined_flag_GCJ=unsupported
  33895. - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  33896. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  33897. - ;;
  33898. -
  33899. - osf3*)
  33900. - if test "$GCC" = yes; then
  33901. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  33902. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  33903. - else
  33904. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  33905. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  33906. - fi
  33907. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33908. - hardcode_libdir_separator_GCJ=:
  33909. - ;;
  33910. -
  33911. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  33912. - if test "$GCC" = yes; then
  33913. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  33914. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  33915. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33916. - else
  33917. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  33918. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  33919. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  33920. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  33921. -
  33922. - # Both c and cxx compiler support -rpath directly
  33923. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  33924. - fi
  33925. - hardcode_libdir_separator_GCJ=:
  33926. - ;;
  33927. -
  33928. - solaris*)
  33929. - no_undefined_flag_GCJ=' -z text'
  33930. - if test "$GCC" = yes; then
  33931. - wlarc='${wl}'
  33932. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33933. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  33934. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  33935. - else
  33936. - wlarc=''
  33937. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33938. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  33939. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  33940. - fi
  33941. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33942. - hardcode_shlibpath_var_GCJ=no
  33943. - case $host_os in
  33944. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  33945. - *)
  33946. - # The compiler driver will combine and reorder linker options,
  33947. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  33948. - # but is careful enough not to reorder.
  33949. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  33950. - if test "$GCC" = yes; then
  33951. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  33952. - else
  33953. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  33954. - fi
  33955. - ;;
  33956. - esac
  33957. - link_all_deplibs_GCJ=yes
  33958. - ;;
  33959. -
  33960. - sunos4*)
  33961. - if test "x$host_vendor" = xsequent; then
  33962. - # Use $CC to link under sequent, because it throws in some extra .o
  33963. - # files that make .init and .fini sections work.
  33964. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  33965. - else
  33966. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  33967. - fi
  33968. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33969. - hardcode_direct_GCJ=yes
  33970. - hardcode_minus_L_GCJ=yes
  33971. - hardcode_shlibpath_var_GCJ=no
  33972. - ;;
  33973. -
  33974. - sysv4)
  33975. - case $host_vendor in
  33976. - sni)
  33977. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33978. - hardcode_direct_GCJ=yes # is this really true???
  33979. - ;;
  33980. - siemens)
  33981. - ## LD is ld it makes a PLAMLIB
  33982. - ## CC just makes a GrossModule.
  33983. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  33984. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  33985. - hardcode_direct_GCJ=no
  33986. - ;;
  33987. - motorola)
  33988. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33989. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  33990. - ;;
  33991. - esac
  33992. - runpath_var='LD_RUN_PATH'
  33993. - hardcode_shlibpath_var_GCJ=no
  33994. - ;;
  33995. -
  33996. - sysv4.3*)
  33997. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33998. - hardcode_shlibpath_var_GCJ=no
  33999. - export_dynamic_flag_spec_GCJ='-Bexport'
  34000. - ;;
  34001. -
  34002. - sysv4*MP*)
  34003. - if test -d /usr/nec; then
  34004. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34005. - hardcode_shlibpath_var_GCJ=no
  34006. - runpath_var=LD_RUN_PATH
  34007. - hardcode_runpath_var=yes
  34008. - ld_shlibs_GCJ=yes
  34009. - fi
  34010. - ;;
  34011. -
  34012. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  34013. - no_undefined_flag_GCJ='${wl}-z,text'
  34014. - archive_cmds_need_lc_GCJ=no
  34015. - hardcode_shlibpath_var_GCJ=no
  34016. - runpath_var='LD_RUN_PATH'
  34017. -
  34018. - if test "$GCC" = yes; then
  34019. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34020. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34021. - else
  34022. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34023. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34024. - fi
  34025. - ;;
  34026. -
  34027. - sysv5* | sco3.2v5* | sco5v6*)
  34028. - # Note: We can NOT use -z defs as we might desire, because we do not
  34029. - # link with -lc, and that would cause any symbols used from libc to
  34030. - # always be unresolved, which means just about no library would
  34031. - # ever link correctly. If we're not using GNU ld we use -z text
  34032. - # though, which does catch some bad symbols but isn't as heavy-handed
  34033. - # as -z defs.
  34034. - no_undefined_flag_GCJ='${wl}-z,text'
  34035. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  34036. - archive_cmds_need_lc_GCJ=no
  34037. - hardcode_shlibpath_var_GCJ=no
  34038. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  34039. - hardcode_libdir_separator_GCJ=':'
  34040. - link_all_deplibs_GCJ=yes
  34041. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  34042. - runpath_var='LD_RUN_PATH'
  34043. -
  34044. - if test "$GCC" = yes; then
  34045. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34046. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34047. - else
  34048. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34049. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34050. - fi
  34051. - ;;
  34052. -
  34053. - uts4*)
  34054. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34055. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34056. - hardcode_shlibpath_var_GCJ=no
  34057. - ;;
  34058. -
  34059. - *)
  34060. - ld_shlibs_GCJ=no
  34061. - ;;
  34062. - esac
  34063. - fi
  34064. -
  34065. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  34066. -$as_echo "$ld_shlibs_GCJ" >&6; }
  34067. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  34068. -
  34069. -#
  34070. -# Do we need to explicitly link libc?
  34071. -#
  34072. -case "x$archive_cmds_need_lc_GCJ" in
  34073. -x|xyes)
  34074. - # Assume -lc should be added
  34075. - archive_cmds_need_lc_GCJ=yes
  34076. -
  34077. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  34078. - case $archive_cmds_GCJ in
  34079. - *'~'*)
  34080. - # FIXME: we may have to deal with multi-command sequences.
  34081. - ;;
  34082. - '$CC '*)
  34083. - # Test whether the compiler implicitly links with -lc since on some
  34084. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  34085. - # to ld, don't add -lc before -lgcc.
  34086. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  34087. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  34088. - $rm conftest*
  34089. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34090. -
  34091. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  34092. - (eval $ac_compile) 2>&5
  34093. - ac_status=$?
  34094. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34095. - (exit $ac_status); } 2>conftest.err; then
  34096. - soname=conftest
  34097. - lib=conftest
  34098. - libobjs=conftest.$ac_objext
  34099. - deplibs=
  34100. - wl=$lt_prog_compiler_wl_GCJ
  34101. - pic_flag=$lt_prog_compiler_pic_GCJ
  34102. - compiler_flags=-v
  34103. - linker_flags=-v
  34104. - verstring=
  34105. - output_objdir=.
  34106. - libname=conftest
  34107. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  34108. - allow_undefined_flag_GCJ=
  34109. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  34110. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  34111. - ac_status=$?
  34112. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34113. - (exit $ac_status); }
  34114. - then
  34115. - archive_cmds_need_lc_GCJ=no
  34116. - else
  34117. - archive_cmds_need_lc_GCJ=yes
  34118. - fi
  34119. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  34120. - else
  34121. - cat conftest.err 1>&5
  34122. - fi
  34123. - $rm conftest*
  34124. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  34125. -$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  34126. - ;;
  34127. - esac
  34128. - fi
  34129. - ;;
  34130. -esac
  34131. -
  34132. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  34133. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  34134. -library_names_spec=
  34135. -libname_spec='lib$name'
  34136. -soname_spec=
  34137. -shrext_cmds=".so"
  34138. -postinstall_cmds=
  34139. -postuninstall_cmds=
  34140. -finish_cmds=
  34141. -finish_eval=
  34142. -shlibpath_var=
  34143. -shlibpath_overrides_runpath=unknown
  34144. -version_type=none
  34145. -dynamic_linker="$host_os ld.so"
  34146. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  34147. -
  34148. -need_lib_prefix=unknown
  34149. -hardcode_into_libs=no
  34150. -
  34151. -# when you set need_version to no, make sure it does not cause -set_version
  34152. -# flags to be left without arguments
  34153. -need_version=unknown
  34154. -
  34155. -case $host_os in
  34156. -aix3*)
  34157. - version_type=linux
  34158. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  34159. - shlibpath_var=LIBPATH
  34160. -
  34161. - # AIX 3 has no versioning support, so we append a major version to the name.
  34162. - soname_spec='${libname}${release}${shared_ext}$major'
  34163. - ;;
  34164. -
  34165. -aix[4-9]*)
  34166. - version_type=linux
  34167. - need_lib_prefix=no
  34168. - need_version=no
  34169. - hardcode_into_libs=yes
  34170. - if test "$host_cpu" = ia64; then
  34171. - # AIX 5 supports IA64
  34172. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  34173. - shlibpath_var=LD_LIBRARY_PATH
  34174. - else
  34175. - # With GCC up to 2.95.x, collect2 would create an import file
  34176. - # for dependence libraries. The import file would start with
  34177. - # the line `#! .'. This would cause the generated library to
  34178. - # depend on `.', always an invalid library. This was fixed in
  34179. - # development snapshots of GCC prior to 3.0.
  34180. - case $host_os in
  34181. - aix4 | aix4.[01] | aix4.[01].*)
  34182. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  34183. - echo ' yes '
  34184. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  34185. - :
  34186. - else
  34187. - can_build_shared=no
  34188. - fi
  34189. - ;;
  34190. - esac
  34191. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  34192. - # soname into executable. Probably we can add versioning support to
  34193. - # collect2, so additional links can be useful in future.
  34194. - if test "$aix_use_runtimelinking" = yes; then
  34195. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  34196. - # instead of lib<name>.a to let people know that these are not
  34197. - # typical AIX shared libraries.
  34198. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34199. - else
  34200. - # We preserve .a as extension for shared libraries through AIX4.2
  34201. - # and later when we are not doing run time linking.
  34202. - library_names_spec='${libname}${release}.a $libname.a'
  34203. - soname_spec='${libname}${release}${shared_ext}$major'
  34204. - fi
  34205. - shlibpath_var=LIBPATH
  34206. - fi
  34207. - ;;
  34208. -
  34209. -amigaos*)
  34210. - library_names_spec='$libname.ixlibrary $libname.a'
  34211. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  34212. - 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'
  34213. - ;;
  34214. -
  34215. -beos*)
  34216. - library_names_spec='${libname}${shared_ext}'
  34217. - dynamic_linker="$host_os ld.so"
  34218. - shlibpath_var=LIBRARY_PATH
  34219. - ;;
  34220. -
  34221. -bsdi[45]*)
  34222. - version_type=linux
  34223. - need_version=no
  34224. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34225. - soname_spec='${libname}${release}${shared_ext}$major'
  34226. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  34227. - shlibpath_var=LD_LIBRARY_PATH
  34228. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  34229. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  34230. - # the default ld.so.conf also contains /usr/contrib/lib and
  34231. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  34232. - # libtool to hard-code these into programs
  34233. - ;;
  34234. -
  34235. -cygwin* | mingw* | pw32*)
  34236. - version_type=windows
  34237. - shrext_cmds=".dll"
  34238. - need_version=no
  34239. - need_lib_prefix=no
  34240. -
  34241. - case $GCC,$host_os in
  34242. - yes,cygwin* | yes,mingw* | yes,pw32*)
  34243. - library_names_spec='$libname.dll.a'
  34244. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  34245. - postinstall_cmds='base_file=`basename \${file}`~
  34246. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  34247. - dldir=$destdir/`dirname \$dlpath`~
  34248. - test -d \$dldir || mkdir -p \$dldir~
  34249. - $install_prog $dir/$dlname \$dldir/$dlname~
  34250. - chmod a+x \$dldir/$dlname'
  34251. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  34252. - dlpath=$dir/\$dldll~
  34253. - $rm \$dlpath'
  34254. - shlibpath_overrides_runpath=yes
  34255. -
  34256. - case $host_os in
  34257. - cygwin*)
  34258. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  34259. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34260. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  34261. - ;;
  34262. - mingw*)
  34263. - # MinGW DLLs use traditional 'lib' prefix
  34264. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34265. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  34266. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  34267. - # It is most probably a Windows format PATH printed by
  34268. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  34269. - # path with ; separators, and with drive letters. We can handle the
  34270. - # drive letters (cygwin fileutils understands them), so leave them,
  34271. - # especially as we might pass files found there to a mingw objdump,
  34272. - # which wouldn't understand a cygwinified path. Ahh.
  34273. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  34274. - else
  34275. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  34276. - fi
  34277. - ;;
  34278. - pw32*)
  34279. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  34280. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34281. + pw32*)
  34282. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  34283. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34284. ;;
  34285. esac
  34286. ;;
  34287. @@ -18550,12 +9274,13 @@
  34288. version_type=darwin
  34289. need_lib_prefix=no
  34290. need_version=no
  34291. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  34292. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  34293. soname_spec='${libname}${release}${major}$shared_ext'
  34294. shlibpath_overrides_runpath=yes
  34295. shlibpath_var=DYLD_LIBRARY_PATH
  34296. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  34297. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  34298. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  34299. ;;
  34300. @@ -18648,18 +9373,18 @@
  34301. fi
  34302. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  34303. ;;
  34304. - hppa*64*)
  34305. - shrext_cmds='.sl'
  34306. - hardcode_into_libs=yes
  34307. - dynamic_linker="$host_os dld.sl"
  34308. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  34309. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  34310. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34311. - soname_spec='${libname}${release}${shared_ext}$major'
  34312. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  34313. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  34314. - ;;
  34315. - *)
  34316. + hppa*64*)
  34317. + shrext_cmds='.sl'
  34318. + hardcode_into_libs=yes
  34319. + dynamic_linker="$host_os dld.sl"
  34320. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  34321. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  34322. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34323. + soname_spec='${libname}${release}${shared_ext}$major'
  34324. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  34325. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  34326. + ;;
  34327. + *)
  34328. shrext_cmds='.sl'
  34329. dynamic_linker="$host_os dld.sl"
  34330. shlibpath_var=SHLIB_PATH
  34331. @@ -18727,7 +9452,7 @@
  34332. ;;
  34333. # This must be Linux ELF.
  34334. -linux* | k*bsd*-gnu)
  34335. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  34336. version_type=linux
  34337. need_lib_prefix=no
  34338. need_version=no
  34339. @@ -18736,17 +9461,41 @@
  34340. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  34341. shlibpath_var=LD_LIBRARY_PATH
  34342. shlibpath_overrides_runpath=no
  34343. + # Some binutils ld are patched to set DT_RUNPATH
  34344. + save_LDFLAGS=$LDFLAGS
  34345. + save_libdir=$libdir
  34346. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  34347. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  34348. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34349. +/* end confdefs.h. */
  34350. +
  34351. +int
  34352. +main ()
  34353. +{
  34354. +
  34355. + ;
  34356. + return 0;
  34357. +}
  34358. +_ACEOF
  34359. +if ac_fn_c_try_link "$LINENO"; then :
  34360. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  34361. + shlibpath_overrides_runpath=yes
  34362. +fi
  34363. +fi
  34364. +rm -f core conftest.err conftest.$ac_objext \
  34365. + conftest$ac_exeext conftest.$ac_ext
  34366. + LDFLAGS=$save_LDFLAGS
  34367. + libdir=$save_libdir
  34368. +
  34369. # This implies no fast_install, which is unacceptable.
  34370. # Some rework will be needed to allow for fast_install
  34371. # before this can be enabled.
  34372. hardcode_into_libs=yes
  34373. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  34374. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  34375. # Append ld.so.conf contents to the search path
  34376. if test -f /etc/ld.so.conf; then
  34377. - 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' ' '`
  34378. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  34379. + 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' ' '`
  34380. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  34381. fi
  34382. # We used to test for /lib/ld.so.1 and disable shared libraries on
  34383. @@ -18758,11 +9507,23 @@
  34384. dynamic_linker='GNU/Linux ld.so'
  34385. ;;
  34386. +netbsdelf*-gnu)
  34387. + version_type=linux
  34388. + need_lib_prefix=no
  34389. + need_version=no
  34390. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  34391. + soname_spec='${libname}${release}${shared_ext}$major'
  34392. + shlibpath_var=LD_LIBRARY_PATH
  34393. + shlibpath_overrides_runpath=no
  34394. + hardcode_into_libs=yes
  34395. + dynamic_linker='NetBSD ld.elf_so'
  34396. + ;;
  34397. +
  34398. netbsd*)
  34399. version_type=sunos
  34400. need_lib_prefix=no
  34401. need_version=no
  34402. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34403. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  34405. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  34406. dynamic_linker='NetBSD (a.out) ld.so'
  34407. @@ -18783,14 +9544,16 @@
  34408. shlibpath_overrides_runpath=yes
  34409. ;;
  34410. -nto-qnx*)
  34411. - version_type=linux
  34412. +*nto* | *qnx*)
  34413. + version_type=qnx
  34414. need_lib_prefix=no
  34415. need_version=no
  34416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34417. soname_spec='${libname}${release}${shared_ext}$major'
  34418. shlibpath_var=LD_LIBRARY_PATH
  34419. - shlibpath_overrides_runpath=yes
  34420. + shlibpath_overrides_runpath=no
  34421. + hardcode_into_libs=yes
  34422. + dynamic_linker='ldqnx.so'
  34423. ;;
  34424. openbsd*)
  34425. @@ -18799,13 +9562,13 @@
  34426. need_lib_prefix=no
  34427. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  34428. case $host_os in
  34429. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  34430. - *) need_version=no ;;
  34431. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  34432. + *) need_version=no ;;
  34433. esac
  34434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  34435. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  34436. shlibpath_var=LD_LIBRARY_PATH
  34437. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34438. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34439. case $host_os in
  34440. openbsd2.[89] | openbsd2.[89].*)
  34441. shlibpath_overrides_runpath=no
  34442. @@ -18877,7 +9640,6 @@
  34443. sni)
  34444. shlibpath_overrides_runpath=no
  34445. need_lib_prefix=no
  34446. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  34447. runpath_var=LD_RUN_PATH
  34448. ;;
  34449. siemens)
  34450. @@ -18908,13 +9670,12 @@
  34451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  34452. soname_spec='${libname}${release}${shared_ext}$major'
  34453. shlibpath_var=LD_LIBRARY_PATH
  34454. + shlibpath_overrides_runpath=yes
  34455. hardcode_into_libs=yes
  34456. if test "$with_gnu_ld" = yes; then
  34457. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  34458. - shlibpath_overrides_runpath=no
  34459. else
  34460. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  34461. - shlibpath_overrides_runpath=yes
  34462. case $host_os in
  34463. sco3.2v5*)
  34464. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  34465. @@ -18924,6 +9685,17 @@
  34466. sys_lib_dlsearch_path_spec='/usr/lib'
  34467. ;;
  34468. +tpf*)
  34469. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  34470. + version_type=linux
  34471. + need_lib_prefix=no
  34472. + need_version=no
  34473. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34474. + shlibpath_var=LD_LIBRARY_PATH
  34475. + shlibpath_overrides_runpath=no
  34476. + hardcode_into_libs=yes
  34477. + ;;
  34478. +
  34479. uts4*)
  34480. version_type=linux
  34481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34482. @@ -18935,1457 +9707,1728 @@
  34483. dynamic_linker=no
  34484. ;;
  34485. esac
  34486. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  34487. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  34488. $as_echo "$dynamic_linker" >&6; }
  34489. test "$dynamic_linker" = no && can_build_shared=no
  34490. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  34491. - $as_echo_n "(cached) " >&6
  34492. -else
  34493. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  34494. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  34495. +if test "$GCC" = yes; then
  34496. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  34497. fi
  34498. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  34499. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  34500. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  34501. +fi
  34502. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  34503. - $as_echo_n "(cached) " >&6
  34504. -else
  34505. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  34506. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  34507. fi
  34508. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  34509. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  34510. -if test "$GCC" = yes; then
  34511. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  34512. -fi
  34513. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  34514. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  34515. -hardcode_action_GCJ=
  34516. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  34517. - test -n "$runpath_var_GCJ" || \
  34518. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  34519. - # We can hardcode non-existant directories.
  34520. - if test "$hardcode_direct_GCJ" != no &&
  34521. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  34522. - # have to relink, otherwise we might link with an installed library
  34523. - # when we should be linking with a yet-to-be-installed one
  34524. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  34525. - test "$hardcode_minus_L_GCJ" != no; then
  34526. - # Linking always hardcodes the temporary library directory.
  34527. - hardcode_action_GCJ=relink
  34528. - else
  34529. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  34530. - hardcode_action_GCJ=immediate
  34531. - fi
  34532. -else
  34533. - # We cannot hardcode anything, or else we can only hardcode existing
  34534. - # directories.
  34535. - hardcode_action_GCJ=unsupported
  34536. -fi
  34537. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  34538. -$as_echo "$hardcode_action_GCJ" >&6; }
  34539. -if test "$hardcode_action_GCJ" = relink; then
  34540. - # Fast installation is not supported
  34541. - enable_fast_install=no
  34542. -elif test "$shlibpath_overrides_runpath" = yes ||
  34543. - test "$enable_shared" = no; then
  34544. - # Fast installation is not necessary
  34545. - enable_fast_install=needless
  34546. -fi
  34547. -# The else clause should only fire when bootstrapping the
  34548. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34549. -# with your package, and you will get complaints that there are
  34550. -# no rules to generate ltmain.sh.
  34551. -if test -f "$ltmain"; then
  34552. - # See if we are running on zsh, and set the options which allow our commands through
  34553. - # without removal of \ escapes.
  34554. - if test -n "${ZSH_VERSION+set}" ; then
  34555. - setopt NO_GLOB_SUBST
  34556. - fi
  34557. - # Now quote all the things that may contain metacharacters while being
  34558. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34559. - # variables and quote the copies for generation of the libtool script.
  34560. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34561. - SED SHELL STRIP \
  34562. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34563. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34564. - deplibs_check_method reload_flag reload_cmds need_locks \
  34565. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34566. - lt_cv_sys_global_symbol_to_c_name_address \
  34567. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34568. - old_postinstall_cmds old_postuninstall_cmds \
  34569. - compiler_GCJ \
  34570. - CC_GCJ \
  34571. - LD_GCJ \
  34572. - lt_prog_compiler_wl_GCJ \
  34573. - lt_prog_compiler_pic_GCJ \
  34574. - lt_prog_compiler_static_GCJ \
  34575. - lt_prog_compiler_no_builtin_flag_GCJ \
  34576. - export_dynamic_flag_spec_GCJ \
  34577. - thread_safe_flag_spec_GCJ \
  34578. - whole_archive_flag_spec_GCJ \
  34579. - enable_shared_with_static_runtimes_GCJ \
  34580. - old_archive_cmds_GCJ \
  34581. - old_archive_from_new_cmds_GCJ \
  34582. - predep_objects_GCJ \
  34583. - postdep_objects_GCJ \
  34584. - predeps_GCJ \
  34585. - postdeps_GCJ \
  34586. - compiler_lib_search_path_GCJ \
  34587. - compiler_lib_search_dirs_GCJ \
  34588. - archive_cmds_GCJ \
  34589. - archive_expsym_cmds_GCJ \
  34590. - postinstall_cmds_GCJ \
  34591. - postuninstall_cmds_GCJ \
  34592. - old_archive_from_expsyms_cmds_GCJ \
  34593. - allow_undefined_flag_GCJ \
  34594. - no_undefined_flag_GCJ \
  34595. - export_symbols_cmds_GCJ \
  34596. - hardcode_libdir_flag_spec_GCJ \
  34597. - hardcode_libdir_flag_spec_ld_GCJ \
  34598. - hardcode_libdir_separator_GCJ \
  34599. - hardcode_automatic_GCJ \
  34600. - module_cmds_GCJ \
  34601. - module_expsym_cmds_GCJ \
  34602. - lt_cv_prog_compiler_c_o_GCJ \
  34603. - fix_srcfile_path_GCJ \
  34604. - exclude_expsyms_GCJ \
  34605. - include_expsyms_GCJ; do
  34606. -
  34607. - case $var in
  34608. - old_archive_cmds_GCJ | \
  34609. - old_archive_from_new_cmds_GCJ | \
  34610. - archive_cmds_GCJ | \
  34611. - archive_expsym_cmds_GCJ | \
  34612. - module_cmds_GCJ | \
  34613. - module_expsym_cmds_GCJ | \
  34614. - old_archive_from_expsyms_cmds_GCJ | \
  34615. - export_symbols_cmds_GCJ | \
  34616. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34617. - postinstall_cmds | postuninstall_cmds | \
  34618. - old_postinstall_cmds | old_postuninstall_cmds | \
  34619. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34620. - # Double-quote double-evaled strings.
  34621. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34622. - ;;
  34623. - *)
  34624. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34625. - ;;
  34626. - esac
  34627. - done
  34628. - case $lt_echo in
  34629. - *'\$0 --fallback-echo"')
  34630. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34631. - ;;
  34632. - esac
  34633. -cfgfile="$ofile"
  34634. - cat <<__EOF__ >> "$cfgfile"
  34635. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  34636. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34637. -# Shell to use when invoking shell scripts.
  34638. -SHELL=$lt_SHELL
  34639. -# Whether or not to build shared libraries.
  34640. -build_libtool_libs=$enable_shared
  34641. -# Whether or not to build static libraries.
  34642. -build_old_libs=$enable_static
  34643. -# Whether or not to add -lc for building shared libraries.
  34644. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  34645. -# Whether or not to disallow shared libs when runtime libs are static
  34646. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  34647. -# Whether or not to optimize for fast installation.
  34648. -fast_install=$enable_fast_install
  34649. -# The host system.
  34650. -host_alias=$host_alias
  34651. -host=$host
  34652. -host_os=$host_os
  34653. -# The build system.
  34654. -build_alias=$build_alias
  34655. -build=$build
  34656. -build_os=$build_os
  34657. -# An echo program that does not interpret backslashes.
  34658. -echo=$lt_echo
  34659. -# The archiver.
  34660. -AR=$lt_AR
  34661. -AR_FLAGS=$lt_AR_FLAGS
  34662. -# A C compiler.
  34663. -LTCC=$lt_LTCC
  34664. -# LTCC compiler flags.
  34665. -LTCFLAGS=$lt_LTCFLAGS
  34666. -# A language-specific compiler.
  34667. -CC=$lt_compiler_GCJ
  34668. -# Is the compiler the GNU C compiler?
  34669. -with_gcc=$GCC_GCJ
  34670. -# An ERE matcher.
  34671. -EGREP=$lt_EGREP
  34672. -# The linker used to build libraries.
  34673. -LD=$lt_LD_GCJ
  34674. -# Whether we need hard or soft links.
  34675. -LN_S=$lt_LN_S
  34676. -# A BSD-compatible nm program.
  34677. -NM=$lt_NM
  34678. -# A symbol stripping program
  34679. -STRIP=$lt_STRIP
  34680. -# Used to examine libraries when file_magic_cmd begins "file"
  34681. -MAGIC_CMD=$MAGIC_CMD
  34682. -# Used on cygwin: DLL creation program.
  34683. -DLLTOOL="$DLLTOOL"
  34684. -# Used on cygwin: object dumper.
  34685. -OBJDUMP="$OBJDUMP"
  34686. -# Used on cygwin: assembler.
  34687. -AS="$AS"
  34688. -# The name of the directory that contains temporary libtool files.
  34689. -objdir=$objdir
  34690. -# How to create reloadable object files.
  34691. -reload_flag=$lt_reload_flag
  34692. -reload_cmds=$lt_reload_cmds
  34693. -# How to pass a linker flag through the compiler.
  34694. -wl=$lt_lt_prog_compiler_wl_GCJ
  34695. -# Object file suffix (normally "o").
  34696. -objext="$ac_objext"
  34697. -# Old archive suffix (normally "a").
  34698. -libext="$libext"
  34699. -# Shared library suffix (normally ".so").
  34700. -shrext_cmds='$shrext_cmds'
  34701. -# Executable file suffix (normally "").
  34702. -exeext="$exeext"
  34703. -# Additional compiler flags for building library objects.
  34704. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  34705. -pic_mode=$pic_mode
  34706. -# What is the maximum length of a command?
  34707. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34708. -# Does compiler simultaneously support -c and -o options?
  34709. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  34710. -# Must we lock files when doing compilation?
  34711. -need_locks=$lt_need_locks
  34712. -# Do we need the lib prefix for modules?
  34713. -need_lib_prefix=$need_lib_prefix
  34714. -# Do we need a version for libraries?
  34715. -need_version=$need_version
  34716. -# Whether dlopen is supported.
  34717. -dlopen_support=$enable_dlopen
  34718. -# Whether dlopen of programs is supported.
  34719. -dlopen_self=$enable_dlopen_self
  34720. -# Whether dlopen of statically linked programs is supported.
  34721. -dlopen_self_static=$enable_dlopen_self_static
  34722. -# Compiler flag to prevent dynamic linking.
  34723. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  34724. -# Compiler flag to turn off builtin functions.
  34725. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  34726. -# Compiler flag to allow reflexive dlopens.
  34727. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  34728. -# Compiler flag to generate shared objects directly from archives.
  34729. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  34730. -# Compiler flag to generate thread-safe objects.
  34731. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  34732. -# Library versioning type.
  34733. -version_type=$version_type
  34734. -# Format of library name prefix.
  34735. -libname_spec=$lt_libname_spec
  34736. -# List of archive names. First name is the real one, the rest are links.
  34737. -# The last name is the one that the linker finds with -lNAME.
  34738. -library_names_spec=$lt_library_names_spec
  34739. -# The coded name of the library, if different from the real name.
  34740. -soname_spec=$lt_soname_spec
  34741. -# Commands used to build and install an old-style archive.
  34742. -RANLIB=$lt_RANLIB
  34743. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  34744. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34745. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34746. -# Create an old-style archive from a shared archive.
  34747. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  34748. -# Create a temporary old-style archive to link instead of a shared archive.
  34749. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  34750. -# Commands used to build and install a shared archive.
  34751. -archive_cmds=$lt_archive_cmds_GCJ
  34752. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  34753. -postinstall_cmds=$lt_postinstall_cmds
  34754. -postuninstall_cmds=$lt_postuninstall_cmds
  34755. -# Commands used to build a loadable module (assumed same as above if empty)
  34756. -module_cmds=$lt_module_cmds_GCJ
  34757. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  34758. -# Commands to strip libraries.
  34759. -old_striplib=$lt_old_striplib
  34760. -striplib=$lt_striplib
  34761. -# Dependencies to place before the objects being linked to create a
  34762. -# shared library.
  34763. -predep_objects=$lt_predep_objects_GCJ
  34764. -
  34765. -# Dependencies to place after the objects being linked to create a
  34766. -# shared library.
  34767. -postdep_objects=$lt_postdep_objects_GCJ
  34768. -
  34769. -# Dependencies to place before the objects being linked to create a
  34770. -# shared library.
  34771. -predeps=$lt_predeps_GCJ
  34772. -
  34773. -# Dependencies to place after the objects being linked to create a
  34774. -# shared library.
  34775. -postdeps=$lt_postdeps_GCJ
  34776. -
  34777. -# The directories searched by this compiler when creating a shared
  34778. -# library
  34779. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  34780. -
  34781. -# The library search path used internally by the compiler when linking
  34782. -# a shared library.
  34783. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  34784. -# Method to check whether dependent libraries are shared objects.
  34785. -deplibs_check_method=$lt_deplibs_check_method
  34786. -# Command to use when deplibs_check_method == file_magic.
  34787. -file_magic_cmd=$lt_file_magic_cmd
  34788. -# Flag that allows shared libraries with undefined symbols to be built.
  34789. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  34790. -# Flag that forces no undefined symbols.
  34791. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  34792. -# Commands used to finish a libtool library installation in a directory.
  34793. -finish_cmds=$lt_finish_cmds
  34794. -# Same as above, but a single script fragment to be evaled but not shown.
  34795. -finish_eval=$lt_finish_eval
  34796. -# Take the output of nm and produce a listing of raw symbols and C names.
  34797. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34798. -# Transform the output of nm in a proper C declaration
  34799. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34800. -# Transform the output of nm in a C name address pair
  34801. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34802. -# This is the shared library runtime path variable.
  34803. -runpath_var=$runpath_var
  34804. -# This is the shared library path variable.
  34805. -shlibpath_var=$shlibpath_var
  34806. -# Is shlibpath searched before the hard-coded library search path?
  34807. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34808. -# How to hardcode a shared library path into an executable.
  34809. -hardcode_action=$hardcode_action_GCJ
  34810. -# Whether we should hardcode library paths into libraries.
  34811. -hardcode_into_libs=$hardcode_into_libs
  34812. -# Flag to hardcode \$libdir into a binary during linking.
  34813. -# This must work even if \$libdir does not exist.
  34814. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  34815. -# If ld is used when linking, flag to hardcode \$libdir into
  34816. -# a binary during linking. This must work even if \$libdir does
  34817. -# not exist.
  34818. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  34819. -
  34820. -# Whether we need a single -rpath flag with a separated argument.
  34821. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  34822. -
  34823. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34824. -# resulting binary.
  34825. -hardcode_direct=$hardcode_direct_GCJ
  34826. -
  34827. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34828. -# resulting binary.
  34829. -hardcode_minus_L=$hardcode_minus_L_GCJ
  34830. -
  34831. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34832. -# the resulting binary.
  34833. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  34834. -
  34835. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34836. -# and all subsequent libraries and executables linked against it.
  34837. -hardcode_automatic=$hardcode_automatic_GCJ
  34838. -# Variables whose values should be saved in libtool wrapper scripts and
  34839. -# restored at relink time.
  34840. -variables_saved_for_relink="$variables_saved_for_relink"
  34841. -# Whether libtool must link a program against all its dependency libraries.
  34842. -link_all_deplibs=$link_all_deplibs_GCJ
  34843. -# Compile-time system search path for libraries
  34844. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34845. -# Run-time system search path for libraries
  34846. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34847. -# Fix the shell variable \$srcfile for the compiler.
  34848. -fix_srcfile_path=$lt_fix_srcfile_path
  34849. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  34850. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  34851. +hardcode_action=
  34852. +if test -n "$hardcode_libdir_flag_spec" ||
  34853. + test -n "$runpath_var" ||
  34854. + test "X$hardcode_automatic" = "Xyes" ; then
  34855. +
  34856. + # We can hardcode non-existent directories.
  34857. + if test "$hardcode_direct" != no &&
  34858. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  34859. + # have to relink, otherwise we might link with an installed library
  34860. + # when we should be linking with a yet-to-be-installed one
  34861. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  34862. + test "$hardcode_minus_L" != no; then
  34863. + # Linking always hardcodes the temporary library directory.
  34864. + hardcode_action=relink
  34865. + else
  34866. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  34867. + hardcode_action=immediate
  34868. + fi
  34869. +else
  34870. + # We cannot hardcode anything, or else we can only hardcode existing
  34871. + # directories.
  34872. + hardcode_action=unsupported
  34873. +fi
  34874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  34875. +$as_echo "$hardcode_action" >&6; }
  34876. +
  34877. +if test "$hardcode_action" = relink ||
  34878. + test "$inherit_rpath" = yes; then
  34879. + # Fast installation is not supported
  34880. + enable_fast_install=no
  34881. +elif test "$shlibpath_overrides_runpath" = yes ||
  34882. + test "$enable_shared" = no; then
  34883. + # Fast installation is not necessary
  34884. + enable_fast_install=needless
  34885. +fi
  34886. +
  34887. +
  34888. +
  34889. +
  34890. +
  34891. +
  34892. + if test "x$enable_dlopen" != xyes; then
  34893. + enable_dlopen=unknown
  34894. + enable_dlopen_self=unknown
  34895. + enable_dlopen_self_static=unknown
  34896. +else
  34897. + lt_cv_dlopen=no
  34898. + lt_cv_dlopen_libs=
  34899. +
  34900. + case $host_os in
  34901. + beos*)
  34902. + lt_cv_dlopen="load_add_on"
  34903. + lt_cv_dlopen_libs=
  34904. + lt_cv_dlopen_self=yes
  34905. + ;;
  34906. +
  34907. + mingw* | pw32* | cegcc*)
  34908. + lt_cv_dlopen="LoadLibrary"
  34909. + lt_cv_dlopen_libs=
  34910. + ;;
  34911. +
  34912. + cygwin*)
  34913. + lt_cv_dlopen="dlopen"
  34914. + lt_cv_dlopen_libs=
  34915. + ;;
  34916. +
  34917. + darwin*)
  34918. + # if libdl is installed we need to link against it
  34919. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  34920. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  34921. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  34922. + $as_echo_n "(cached) " >&6
  34923. +else
  34924. + ac_check_lib_save_LIBS=$LIBS
  34925. +LIBS="-ldl $LIBS"
  34926. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34927. +/* end confdefs.h. */
  34928. +
  34929. +/* Override any GCC internal prototype to avoid an error.
  34930. + Use char because int might match the return type of a GCC
  34931. + builtin and then its argument prototype would still apply. */
  34932. +#ifdef __cplusplus
  34933. +extern "C"
  34934. +#endif
  34935. +char dlopen ();
  34936. +int
  34937. +main ()
  34938. +{
  34939. +return dlopen ();
  34940. + ;
  34941. + return 0;
  34942. +}
  34943. +_ACEOF
  34944. +if ac_fn_c_try_link "$LINENO"; then :
  34945. + ac_cv_lib_dl_dlopen=yes
  34946. +else
  34947. + ac_cv_lib_dl_dlopen=no
  34948. +fi
  34949. +rm -f core conftest.err conftest.$ac_objext \
  34950. + conftest$ac_exeext conftest.$ac_ext
  34951. +LIBS=$ac_check_lib_save_LIBS
  34952. +fi
  34953. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  34954. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  34955. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  34956. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34957. +else
  34958. -# Set to yes if exported symbols are required.
  34959. -always_export_symbols=$always_export_symbols_GCJ
  34960. + lt_cv_dlopen="dyld"
  34961. + lt_cv_dlopen_libs=
  34962. + lt_cv_dlopen_self=yes
  34963. -# The commands to list exported symbols.
  34964. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  34965. +fi
  34966. -# The commands to extract the exported symbol list from a shared archive.
  34967. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34968. + ;;
  34969. -# Symbols that should not be listed in the preloaded symbols.
  34970. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  34971. + *)
  34972. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  34973. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  34974. + lt_cv_dlopen="shl_load"
  34975. +else
  34976. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  34977. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  34978. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  34979. + $as_echo_n "(cached) " >&6
  34980. +else
  34981. + ac_check_lib_save_LIBS=$LIBS
  34982. +LIBS="-ldld $LIBS"
  34983. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34984. +/* end confdefs.h. */
  34985. -# Symbols that must always be exported.
  34986. -include_expsyms=$lt_include_expsyms_GCJ
  34987. +/* Override any GCC internal prototype to avoid an error.
  34988. + Use char because int might match the return type of a GCC
  34989. + builtin and then its argument prototype would still apply. */
  34990. +#ifdef __cplusplus
  34991. +extern "C"
  34992. +#endif
  34993. +char shl_load ();
  34994. +int
  34995. +main ()
  34996. +{
  34997. +return shl_load ();
  34998. + ;
  34999. + return 0;
  35000. +}
  35001. +_ACEOF
  35002. +if ac_fn_c_try_link "$LINENO"; then :
  35003. + ac_cv_lib_dld_shl_load=yes
  35004. +else
  35005. + ac_cv_lib_dld_shl_load=no
  35006. +fi
  35007. +rm -f core conftest.err conftest.$ac_objext \
  35008. + conftest$ac_exeext conftest.$ac_ext
  35009. +LIBS=$ac_check_lib_save_LIBS
  35010. +fi
  35011. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  35012. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  35013. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  35014. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  35015. +else
  35016. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  35017. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  35018. + lt_cv_dlopen="dlopen"
  35019. +else
  35020. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  35021. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  35022. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  35023. + $as_echo_n "(cached) " >&6
  35024. +else
  35025. + ac_check_lib_save_LIBS=$LIBS
  35026. +LIBS="-ldl $LIBS"
  35027. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35028. +/* end confdefs.h. */
  35029. +
  35030. +/* Override any GCC internal prototype to avoid an error.
  35031. + Use char because int might match the return type of a GCC
  35032. + builtin and then its argument prototype would still apply. */
  35033. +#ifdef __cplusplus
  35034. +extern "C"
  35035. +#endif
  35036. +char dlopen ();
  35037. +int
  35038. +main ()
  35039. +{
  35040. +return dlopen ();
  35041. + ;
  35042. + return 0;
  35043. +}
  35044. +_ACEOF
  35045. +if ac_fn_c_try_link "$LINENO"; then :
  35046. + ac_cv_lib_dl_dlopen=yes
  35047. +else
  35048. + ac_cv_lib_dl_dlopen=no
  35049. +fi
  35050. +rm -f core conftest.err conftest.$ac_objext \
  35051. + conftest$ac_exeext conftest.$ac_ext
  35052. +LIBS=$ac_check_lib_save_LIBS
  35053. +fi
  35054. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  35055. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  35056. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  35057. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  35058. +else
  35059. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  35060. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  35061. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  35062. + $as_echo_n "(cached) " >&6
  35063. +else
  35064. + ac_check_lib_save_LIBS=$LIBS
  35065. +LIBS="-lsvld $LIBS"
  35066. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35067. +/* end confdefs.h. */
  35068. -# ### END LIBTOOL TAG CONFIG: $tagname
  35069. +/* Override any GCC internal prototype to avoid an error.
  35070. + Use char because int might match the return type of a GCC
  35071. + builtin and then its argument prototype would still apply. */
  35072. +#ifdef __cplusplus
  35073. +extern "C"
  35074. +#endif
  35075. +char dlopen ();
  35076. +int
  35077. +main ()
  35078. +{
  35079. +return dlopen ();
  35080. + ;
  35081. + return 0;
  35082. +}
  35083. +_ACEOF
  35084. +if ac_fn_c_try_link "$LINENO"; then :
  35085. + ac_cv_lib_svld_dlopen=yes
  35086. +else
  35087. + ac_cv_lib_svld_dlopen=no
  35088. +fi
  35089. +rm -f core conftest.err conftest.$ac_objext \
  35090. + conftest$ac_exeext conftest.$ac_ext
  35091. +LIBS=$ac_check_lib_save_LIBS
  35092. +fi
  35093. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  35094. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  35095. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  35096. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  35097. +else
  35098. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  35099. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  35100. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  35101. + $as_echo_n "(cached) " >&6
  35102. +else
  35103. + ac_check_lib_save_LIBS=$LIBS
  35104. +LIBS="-ldld $LIBS"
  35105. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35106. +/* end confdefs.h. */
  35107. -__EOF__
  35108. +/* Override any GCC internal prototype to avoid an error.
  35109. + Use char because int might match the return type of a GCC
  35110. + builtin and then its argument prototype would still apply. */
  35111. +#ifdef __cplusplus
  35112. +extern "C"
  35113. +#endif
  35114. +char dld_link ();
  35115. +int
  35116. +main ()
  35117. +{
  35118. +return dld_link ();
  35119. + ;
  35120. + return 0;
  35121. +}
  35122. +_ACEOF
  35123. +if ac_fn_c_try_link "$LINENO"; then :
  35124. + ac_cv_lib_dld_dld_link=yes
  35125. +else
  35126. + ac_cv_lib_dld_dld_link=no
  35127. +fi
  35128. +rm -f core conftest.err conftest.$ac_objext \
  35129. + conftest$ac_exeext conftest.$ac_ext
  35130. +LIBS=$ac_check_lib_save_LIBS
  35131. +fi
  35132. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  35133. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  35134. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  35135. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  35136. +fi
  35137. -else
  35138. - # If there is no Makefile yet, we rely on a make rule to execute
  35139. - # `config.status --recheck' to rerun these tests and create the
  35140. - # libtool script then.
  35141. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  35142. - if test -f "$ltmain_in"; then
  35143. - test -f Makefile && make "$ltmain"
  35144. - fi
  35145. fi
  35146. -ac_ext=c
  35147. -ac_cpp='$CPP $CPPFLAGS'
  35148. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35149. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35150. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35151. +fi
  35152. -CC="$lt_save_CC"
  35153. - else
  35154. - tagname=""
  35155. - fi
  35156. - ;;
  35157. +fi
  35158. - RC)
  35159. +fi
  35160. -# Source file extension for RC test sources.
  35161. -ac_ext=rc
  35162. -# Object file extension for compiled RC test sources.
  35163. -objext=o
  35164. -objext_RC=$objext
  35165. +fi
  35166. -# Code to be used in simple compile tests
  35167. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  35168. + ;;
  35169. + esac
  35170. -# Code to be used in simple link tests
  35171. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  35172. + if test "x$lt_cv_dlopen" != xno; then
  35173. + enable_dlopen=yes
  35174. + else
  35175. + enable_dlopen=no
  35176. + fi
  35177. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35178. + case $lt_cv_dlopen in
  35179. + dlopen)
  35180. + save_CPPFLAGS="$CPPFLAGS"
  35181. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  35182. -# If no C compiler was specified, use CC.
  35183. -LTCC=${LTCC-"$CC"}
  35184. + save_LDFLAGS="$LDFLAGS"
  35185. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  35186. -# If no C compiler flags were specified, use CFLAGS.
  35187. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  35188. + save_LIBS="$LIBS"
  35189. + LIBS="$lt_cv_dlopen_libs $LIBS"
  35190. -# Allow CC to be a program name with arguments.
  35191. -compiler=$CC
  35192. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  35193. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  35194. +if test "${lt_cv_dlopen_self+set}" = set; then :
  35195. + $as_echo_n "(cached) " >&6
  35196. +else
  35197. + if test "$cross_compiling" = yes; then :
  35198. + lt_cv_dlopen_self=cross
  35199. +else
  35200. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  35201. + lt_status=$lt_dlunknown
  35202. + cat > conftest.$ac_ext <<_LT_EOF
  35203. +#line 10142 "configure"
  35204. +#include "confdefs.h"
  35205. +#if HAVE_DLFCN_H
  35206. +#include <dlfcn.h>
  35207. +#endif
  35208. -# save warnings/boilerplate of simple test code
  35209. -ac_outfile=conftest.$ac_objext
  35210. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  35211. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35212. -_lt_compiler_boilerplate=`cat conftest.err`
  35213. -$rm conftest*
  35214. +#include <stdio.h>
  35215. -ac_outfile=conftest.$ac_objext
  35216. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  35217. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35218. -_lt_linker_boilerplate=`cat conftest.err`
  35219. -$rm -r conftest*
  35220. +#ifdef RTLD_GLOBAL
  35221. +# define LT_DLGLOBAL RTLD_GLOBAL
  35222. +#else
  35223. +# ifdef DL_GLOBAL
  35224. +# define LT_DLGLOBAL DL_GLOBAL
  35225. +# else
  35226. +# define LT_DLGLOBAL 0
  35227. +# endif
  35228. +#endif
  35229. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  35230. + find out it does not work in some platform. */
  35231. +#ifndef LT_DLLAZY_OR_NOW
  35232. +# ifdef RTLD_LAZY
  35233. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  35234. +# else
  35235. +# ifdef DL_LAZY
  35236. +# define LT_DLLAZY_OR_NOW DL_LAZY
  35237. +# else
  35238. +# ifdef RTLD_NOW
  35239. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  35240. +# else
  35241. +# ifdef DL_NOW
  35242. +# define LT_DLLAZY_OR_NOW DL_NOW
  35243. +# else
  35244. +# define LT_DLLAZY_OR_NOW 0
  35245. +# endif
  35246. +# endif
  35247. +# endif
  35248. +# endif
  35249. +#endif
  35250. -# Allow CC to be a program name with arguments.
  35251. -lt_save_CC="$CC"
  35252. -CC=${RC-"windres"}
  35253. -compiler=$CC
  35254. -compiler_RC=$CC
  35255. -for cc_temp in $compiler""; do
  35256. - case $cc_temp in
  35257. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  35258. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  35259. - \-*) ;;
  35260. - *) break;;
  35261. - esac
  35262. -done
  35263. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  35264. +void fnord() { int i=42;}
  35265. +int main ()
  35266. +{
  35267. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  35268. + int status = $lt_dlunknown;
  35269. -lt_cv_prog_compiler_c_o_RC=yes
  35270. + if (self)
  35271. + {
  35272. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  35273. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  35274. + /* dlclose (self); */
  35275. + }
  35276. + else
  35277. + puts (dlerror ());
  35278. -# The else clause should only fire when bootstrapping the
  35279. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  35280. -# with your package, and you will get complaints that there are
  35281. -# no rules to generate ltmain.sh.
  35282. -if test -f "$ltmain"; then
  35283. - # See if we are running on zsh, and set the options which allow our commands through
  35284. - # without removal of \ escapes.
  35285. - if test -n "${ZSH_VERSION+set}" ; then
  35286. - setopt NO_GLOB_SUBST
  35287. - fi
  35288. - # Now quote all the things that may contain metacharacters while being
  35289. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  35290. - # variables and quote the copies for generation of the libtool script.
  35291. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  35292. - SED SHELL STRIP \
  35293. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  35294. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  35295. - deplibs_check_method reload_flag reload_cmds need_locks \
  35296. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  35297. - lt_cv_sys_global_symbol_to_c_name_address \
  35298. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  35299. - old_postinstall_cmds old_postuninstall_cmds \
  35300. - compiler_RC \
  35301. - CC_RC \
  35302. - LD_RC \
  35303. - lt_prog_compiler_wl_RC \
  35304. - lt_prog_compiler_pic_RC \
  35305. - lt_prog_compiler_static_RC \
  35306. - lt_prog_compiler_no_builtin_flag_RC \
  35307. - export_dynamic_flag_spec_RC \
  35308. - thread_safe_flag_spec_RC \
  35309. - whole_archive_flag_spec_RC \
  35310. - enable_shared_with_static_runtimes_RC \
  35311. - old_archive_cmds_RC \
  35312. - old_archive_from_new_cmds_RC \
  35313. - predep_objects_RC \
  35314. - postdep_objects_RC \
  35315. - predeps_RC \
  35316. - postdeps_RC \
  35317. - compiler_lib_search_path_RC \
  35318. - compiler_lib_search_dirs_RC \
  35319. - archive_cmds_RC \
  35320. - archive_expsym_cmds_RC \
  35321. - postinstall_cmds_RC \
  35322. - postuninstall_cmds_RC \
  35323. - old_archive_from_expsyms_cmds_RC \
  35324. - allow_undefined_flag_RC \
  35325. - no_undefined_flag_RC \
  35326. - export_symbols_cmds_RC \
  35327. - hardcode_libdir_flag_spec_RC \
  35328. - hardcode_libdir_flag_spec_ld_RC \
  35329. - hardcode_libdir_separator_RC \
  35330. - hardcode_automatic_RC \
  35331. - module_cmds_RC \
  35332. - module_expsym_cmds_RC \
  35333. - lt_cv_prog_compiler_c_o_RC \
  35334. - fix_srcfile_path_RC \
  35335. - exclude_expsyms_RC \
  35336. - include_expsyms_RC; do
  35337. -
  35338. - case $var in
  35339. - old_archive_cmds_RC | \
  35340. - old_archive_from_new_cmds_RC | \
  35341. - archive_cmds_RC | \
  35342. - archive_expsym_cmds_RC | \
  35343. - module_cmds_RC | \
  35344. - module_expsym_cmds_RC | \
  35345. - old_archive_from_expsyms_cmds_RC | \
  35346. - export_symbols_cmds_RC | \
  35347. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  35348. - postinstall_cmds | postuninstall_cmds | \
  35349. - old_postinstall_cmds | old_postuninstall_cmds | \
  35350. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  35351. - # Double-quote double-evaled strings.
  35352. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  35353. - ;;
  35354. - *)
  35355. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  35356. - ;;
  35357. + return status;
  35358. +}
  35359. +_LT_EOF
  35360. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  35361. + (eval $ac_link) 2>&5
  35362. + ac_status=$?
  35363. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35364. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  35365. + (./conftest; exit; ) >&5 2>/dev/null
  35366. + lt_status=$?
  35367. + case x$lt_status in
  35368. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  35369. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  35370. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  35371. esac
  35372. - done
  35373. -
  35374. - case $lt_echo in
  35375. - *'\$0 --fallback-echo"')
  35376. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  35377. - ;;
  35378. - esac
  35379. -
  35380. -cfgfile="$ofile"
  35381. -
  35382. - cat <<__EOF__ >> "$cfgfile"
  35383. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  35384. -
  35385. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  35386. + else :
  35387. + # compilation failed
  35388. + lt_cv_dlopen_self=no
  35389. + fi
  35390. +fi
  35391. +rm -fr conftest*
  35392. -# Shell to use when invoking shell scripts.
  35393. -SHELL=$lt_SHELL
  35394. -# Whether or not to build shared libraries.
  35395. -build_libtool_libs=$enable_shared
  35396. +fi
  35397. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  35398. +$as_echo "$lt_cv_dlopen_self" >&6; }
  35399. -# Whether or not to build static libraries.
  35400. -build_old_libs=$enable_static
  35401. + if test "x$lt_cv_dlopen_self" = xyes; then
  35402. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  35403. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  35404. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  35405. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  35406. + $as_echo_n "(cached) " >&6
  35407. +else
  35408. + if test "$cross_compiling" = yes; then :
  35409. + lt_cv_dlopen_self_static=cross
  35410. +else
  35411. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  35412. + lt_status=$lt_dlunknown
  35413. + cat > conftest.$ac_ext <<_LT_EOF
  35414. +#line 10238 "configure"
  35415. +#include "confdefs.h"
  35416. -# Whether or not to add -lc for building shared libraries.
  35417. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  35418. +#if HAVE_DLFCN_H
  35419. +#include <dlfcn.h>
  35420. +#endif
  35421. -# Whether or not to disallow shared libs when runtime libs are static
  35422. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  35423. +#include <stdio.h>
  35424. -# Whether or not to optimize for fast installation.
  35425. -fast_install=$enable_fast_install
  35426. +#ifdef RTLD_GLOBAL
  35427. +# define LT_DLGLOBAL RTLD_GLOBAL
  35428. +#else
  35429. +# ifdef DL_GLOBAL
  35430. +# define LT_DLGLOBAL DL_GLOBAL
  35431. +# else
  35432. +# define LT_DLGLOBAL 0
  35433. +# endif
  35434. +#endif
  35435. -# The host system.
  35436. -host_alias=$host_alias
  35437. -host=$host
  35438. -host_os=$host_os
  35439. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  35440. + find out it does not work in some platform. */
  35441. +#ifndef LT_DLLAZY_OR_NOW
  35442. +# ifdef RTLD_LAZY
  35443. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  35444. +# else
  35445. +# ifdef DL_LAZY
  35446. +# define LT_DLLAZY_OR_NOW DL_LAZY
  35447. +# else
  35448. +# ifdef RTLD_NOW
  35449. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  35450. +# else
  35451. +# ifdef DL_NOW
  35452. +# define LT_DLLAZY_OR_NOW DL_NOW
  35453. +# else
  35454. +# define LT_DLLAZY_OR_NOW 0
  35455. +# endif
  35456. +# endif
  35457. +# endif
  35458. +# endif
  35459. +#endif
  35460. -# The build system.
  35461. -build_alias=$build_alias
  35462. -build=$build
  35463. -build_os=$build_os
  35464. +void fnord() { int i=42;}
  35465. +int main ()
  35466. +{
  35467. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  35468. + int status = $lt_dlunknown;
  35469. -# An echo program that does not interpret backslashes.
  35470. -echo=$lt_echo
  35471. + if (self)
  35472. + {
  35473. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  35474. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  35475. + /* dlclose (self); */
  35476. + }
  35477. + else
  35478. + puts (dlerror ());
  35479. -# The archiver.
  35480. -AR=$lt_AR
  35481. -AR_FLAGS=$lt_AR_FLAGS
  35482. + return status;
  35483. +}
  35484. +_LT_EOF
  35485. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  35486. + (eval $ac_link) 2>&5
  35487. + ac_status=$?
  35488. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35489. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  35490. + (./conftest; exit; ) >&5 2>/dev/null
  35491. + lt_status=$?
  35492. + case x$lt_status in
  35493. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  35494. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  35495. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  35496. + esac
  35497. + else :
  35498. + # compilation failed
  35499. + lt_cv_dlopen_self_static=no
  35500. + fi
  35501. +fi
  35502. +rm -fr conftest*
  35503. -# A C compiler.
  35504. -LTCC=$lt_LTCC
  35505. -# LTCC compiler flags.
  35506. -LTCFLAGS=$lt_LTCFLAGS
  35507. +fi
  35508. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  35509. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  35510. + fi
  35511. -# A language-specific compiler.
  35512. -CC=$lt_compiler_RC
  35513. + CPPFLAGS="$save_CPPFLAGS"
  35514. + LDFLAGS="$save_LDFLAGS"
  35515. + LIBS="$save_LIBS"
  35516. + ;;
  35517. + esac
  35518. -# Is the compiler the GNU C compiler?
  35519. -with_gcc=$GCC_RC
  35520. + case $lt_cv_dlopen_self in
  35521. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  35522. + *) enable_dlopen_self=unknown ;;
  35523. + esac
  35524. -# An ERE matcher.
  35525. -EGREP=$lt_EGREP
  35526. + case $lt_cv_dlopen_self_static in
  35527. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  35528. + *) enable_dlopen_self_static=unknown ;;
  35529. + esac
  35530. +fi
  35531. -# The linker used to build libraries.
  35532. -LD=$lt_LD_RC
  35533. -# Whether we need hard or soft links.
  35534. -LN_S=$lt_LN_S
  35535. -# A BSD-compatible nm program.
  35536. -NM=$lt_NM
  35537. -# A symbol stripping program
  35538. -STRIP=$lt_STRIP
  35539. -# Used to examine libraries when file_magic_cmd begins "file"
  35540. -MAGIC_CMD=$MAGIC_CMD
  35541. -# Used on cygwin: DLL creation program.
  35542. -DLLTOOL="$DLLTOOL"
  35543. -# Used on cygwin: object dumper.
  35544. -OBJDUMP="$OBJDUMP"
  35545. -# Used on cygwin: assembler.
  35546. -AS="$AS"
  35547. -# The name of the directory that contains temporary libtool files.
  35548. -objdir=$objdir
  35549. -# How to create reloadable object files.
  35550. -reload_flag=$lt_reload_flag
  35551. -reload_cmds=$lt_reload_cmds
  35552. -# How to pass a linker flag through the compiler.
  35553. -wl=$lt_lt_prog_compiler_wl_RC
  35554. -# Object file suffix (normally "o").
  35555. -objext="$ac_objext"
  35556. -# Old archive suffix (normally "a").
  35557. -libext="$libext"
  35558. -# Shared library suffix (normally ".so").
  35559. -shrext_cmds='$shrext_cmds'
  35560. -# Executable file suffix (normally "").
  35561. -exeext="$exeext"
  35562. -# Additional compiler flags for building library objects.
  35563. -pic_flag=$lt_lt_prog_compiler_pic_RC
  35564. -pic_mode=$pic_mode
  35565. -# What is the maximum length of a command?
  35566. -max_cmd_len=$lt_cv_sys_max_cmd_len
  35567. +striplib=
  35568. +old_striplib=
  35569. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  35570. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  35571. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  35572. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  35573. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  35574. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35575. +$as_echo "yes" >&6; }
  35576. +else
  35577. +# FIXME - insert some real tests, host_os isn't really good enough
  35578. + case $host_os in
  35579. + darwin*)
  35580. + if test -n "$STRIP" ; then
  35581. + striplib="$STRIP -x"
  35582. + old_striplib="$STRIP -S"
  35583. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35584. +$as_echo "yes" >&6; }
  35585. + else
  35586. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35587. +$as_echo "no" >&6; }
  35588. + fi
  35589. + ;;
  35590. + *)
  35591. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35592. +$as_echo "no" >&6; }
  35593. + ;;
  35594. + esac
  35595. +fi
  35596. -# Does compiler simultaneously support -c and -o options?
  35597. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  35598. -# Must we lock files when doing compilation?
  35599. -need_locks=$lt_need_locks
  35600. -# Do we need the lib prefix for modules?
  35601. -need_lib_prefix=$need_lib_prefix
  35602. -# Do we need a version for libraries?
  35603. -need_version=$need_version
  35604. -# Whether dlopen is supported.
  35605. -dlopen_support=$enable_dlopen
  35606. -# Whether dlopen of programs is supported.
  35607. -dlopen_self=$enable_dlopen_self
  35608. -# Whether dlopen of statically linked programs is supported.
  35609. -dlopen_self_static=$enable_dlopen_self_static
  35610. -# Compiler flag to prevent dynamic linking.
  35611. -link_static_flag=$lt_lt_prog_compiler_static_RC
  35612. -# Compiler flag to turn off builtin functions.
  35613. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  35614. -# Compiler flag to allow reflexive dlopens.
  35615. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  35616. -# Compiler flag to generate shared objects directly from archives.
  35617. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  35618. -# Compiler flag to generate thread-safe objects.
  35619. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  35620. + # Report which library types will actually be built
  35621. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  35622. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  35623. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  35624. +$as_echo "$can_build_shared" >&6; }
  35625. -# Library versioning type.
  35626. -version_type=$version_type
  35627. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  35628. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  35629. + test "$can_build_shared" = "no" && enable_shared=no
  35630. -# Format of library name prefix.
  35631. -libname_spec=$lt_libname_spec
  35632. + # On AIX, shared libraries and static libraries use the same namespace, and
  35633. + # are all built from PIC.
  35634. + case $host_os in
  35635. + aix3*)
  35636. + test "$enable_shared" = yes && enable_static=no
  35637. + if test -n "$RANLIB"; then
  35638. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  35639. + postinstall_cmds='$RANLIB $lib'
  35640. + fi
  35641. + ;;
  35642. -# List of archive names. First name is the real one, the rest are links.
  35643. -# The last name is the one that the linker finds with -lNAME.
  35644. -library_names_spec=$lt_library_names_spec
  35645. + aix[4-9]*)
  35646. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  35647. + test "$enable_shared" = yes && enable_static=no
  35648. + fi
  35649. + ;;
  35650. + esac
  35651. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  35652. +$as_echo "$enable_shared" >&6; }
  35653. -# The coded name of the library, if different from the real name.
  35654. -soname_spec=$lt_soname_spec
  35655. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  35656. +$as_echo_n "checking whether to build static libraries... " >&6; }
  35657. + # Make sure either enable_shared or enable_static is yes.
  35658. + test "$enable_shared" = yes || enable_static=yes
  35659. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  35660. +$as_echo "$enable_static" >&6; }
  35661. -# Commands used to build and install an old-style archive.
  35662. -RANLIB=$lt_RANLIB
  35663. -old_archive_cmds=$lt_old_archive_cmds_RC
  35664. -old_postinstall_cmds=$lt_old_postinstall_cmds
  35665. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  35666. -# Create an old-style archive from a shared archive.
  35667. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  35668. -# Create a temporary old-style archive to link instead of a shared archive.
  35669. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  35670. -# Commands used to build and install a shared archive.
  35671. -archive_cmds=$lt_archive_cmds_RC
  35672. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  35673. -postinstall_cmds=$lt_postinstall_cmds
  35674. -postuninstall_cmds=$lt_postuninstall_cmds
  35675. +fi
  35676. +ac_ext=c
  35677. +ac_cpp='$CPP $CPPFLAGS'
  35678. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35679. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35680. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35681. -# Commands used to build a loadable module (assumed same as above if empty)
  35682. -module_cmds=$lt_module_cmds_RC
  35683. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  35684. +CC="$lt_save_CC"
  35685. -# Commands to strip libraries.
  35686. -old_striplib=$lt_old_striplib
  35687. -striplib=$lt_striplib
  35688. -# Dependencies to place before the objects being linked to create a
  35689. -# shared library.
  35690. -predep_objects=$lt_predep_objects_RC
  35691. -
  35692. -# Dependencies to place after the objects being linked to create a
  35693. -# shared library.
  35694. -postdep_objects=$lt_postdep_objects_RC
  35695. -
  35696. -# Dependencies to place before the objects being linked to create a
  35697. -# shared library.
  35698. -predeps=$lt_predeps_RC
  35699. -
  35700. -# Dependencies to place after the objects being linked to create a
  35701. -# shared library.
  35702. -postdeps=$lt_postdeps_RC
  35703. -
  35704. -# The directories searched by this compiler when creating a shared
  35705. -# library
  35706. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  35707. -
  35708. -# The library search path used internally by the compiler when linking
  35709. -# a shared library.
  35710. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  35711. -# Method to check whether dependent libraries are shared objects.
  35712. -deplibs_check_method=$lt_deplibs_check_method
  35713. -# Command to use when deplibs_check_method == file_magic.
  35714. -file_magic_cmd=$lt_file_magic_cmd
  35715. -# Flag that allows shared libraries with undefined symbols to be built.
  35716. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  35717. -# Flag that forces no undefined symbols.
  35718. -no_undefined_flag=$lt_no_undefined_flag_RC
  35719. -# Commands used to finish a libtool library installation in a directory.
  35720. -finish_cmds=$lt_finish_cmds
  35721. -# Same as above, but a single script fragment to be evaled but not shown.
  35722. -finish_eval=$lt_finish_eval
  35723. -# Take the output of nm and produce a listing of raw symbols and C names.
  35724. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  35725. -# Transform the output of nm in a proper C declaration
  35726. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35727. -# Transform the output of nm in a C name address pair
  35728. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35729. -# This is the shared library runtime path variable.
  35730. -runpath_var=$runpath_var
  35731. -# This is the shared library path variable.
  35732. -shlibpath_var=$shlibpath_var
  35733. + ac_config_commands="$ac_config_commands libtool"
  35734. -# Is shlibpath searched before the hard-coded library search path?
  35735. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35736. -# How to hardcode a shared library path into an executable.
  35737. -hardcode_action=$hardcode_action_RC
  35738. -# Whether we should hardcode library paths into libraries.
  35739. -hardcode_into_libs=$hardcode_into_libs
  35740. -# Flag to hardcode \$libdir into a binary during linking.
  35741. -# This must work even if \$libdir does not exist.
  35742. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  35743. +# Only expand once:
  35744. -# If ld is used when linking, flag to hardcode \$libdir into
  35745. -# a binary during linking. This must work even if \$libdir does
  35746. -# not exist.
  35747. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  35748. -
  35749. -# Whether we need a single -rpath flag with a separated argument.
  35750. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  35751. -
  35752. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  35753. -# resulting binary.
  35754. -hardcode_direct=$hardcode_direct_RC
  35755. -
  35756. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  35757. -# resulting binary.
  35758. -hardcode_minus_L=$hardcode_minus_L_RC
  35759. -
  35760. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  35761. -# the resulting binary.
  35762. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  35763. -
  35764. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  35765. -# and all subsequent libraries and executables linked against it.
  35766. -hardcode_automatic=$hardcode_automatic_RC
  35767. -# Variables whose values should be saved in libtool wrapper scripts and
  35768. -# restored at relink time.
  35769. -variables_saved_for_relink="$variables_saved_for_relink"
  35770. -# Whether libtool must link a program against all its dependency libraries.
  35771. -link_all_deplibs=$link_all_deplibs_RC
  35772. +# Checks for programs.
  35773. +ac_ext=c
  35774. +ac_cpp='$CPP $CPPFLAGS'
  35775. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35776. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35777. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35778. +if test -n "$ac_tool_prefix"; then
  35779. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  35780. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  35781. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35782. +$as_echo_n "checking for $ac_word... " >&6; }
  35783. +if test "${ac_cv_prog_CC+set}" = set; then :
  35784. + $as_echo_n "(cached) " >&6
  35785. +else
  35786. + if test -n "$CC"; then
  35787. + ac_cv_prog_CC="$CC" # Let the user override the test.
  35788. +else
  35789. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35790. +for as_dir in $PATH
  35791. +do
  35792. + IFS=$as_save_IFS
  35793. + test -z "$as_dir" && as_dir=.
  35794. + for ac_exec_ext in '' $ac_executable_extensions; do
  35795. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35796. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  35797. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35798. + break 2
  35799. + fi
  35800. +done
  35801. + done
  35802. +IFS=$as_save_IFS
  35803. -# Compile-time system search path for libraries
  35804. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35805. +fi
  35806. +fi
  35807. +CC=$ac_cv_prog_CC
  35808. +if test -n "$CC"; then
  35809. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  35810. +$as_echo "$CC" >&6; }
  35811. +else
  35812. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35813. +$as_echo "no" >&6; }
  35814. +fi
  35815. -# Run-time system search path for libraries
  35816. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35817. -# Fix the shell variable \$srcfile for the compiler.
  35818. -fix_srcfile_path=$lt_fix_srcfile_path
  35819. +fi
  35820. +if test -z "$ac_cv_prog_CC"; then
  35821. + ac_ct_CC=$CC
  35822. + # Extract the first word of "gcc", so it can be a program name with args.
  35823. +set dummy gcc; ac_word=$2
  35824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35825. +$as_echo_n "checking for $ac_word... " >&6; }
  35826. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  35827. + $as_echo_n "(cached) " >&6
  35828. +else
  35829. + if test -n "$ac_ct_CC"; then
  35830. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  35831. +else
  35832. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35833. +for as_dir in $PATH
  35834. +do
  35835. + IFS=$as_save_IFS
  35836. + test -z "$as_dir" && as_dir=.
  35837. + for ac_exec_ext in '' $ac_executable_extensions; do
  35838. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35839. + ac_cv_prog_ac_ct_CC="gcc"
  35840. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35841. + break 2
  35842. + fi
  35843. +done
  35844. + done
  35845. +IFS=$as_save_IFS
  35846. -# Set to yes if exported symbols are required.
  35847. -always_export_symbols=$always_export_symbols_RC
  35848. +fi
  35849. +fi
  35850. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  35851. +if test -n "$ac_ct_CC"; then
  35852. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  35853. +$as_echo "$ac_ct_CC" >&6; }
  35854. +else
  35855. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35856. +$as_echo "no" >&6; }
  35857. +fi
  35858. -# The commands to list exported symbols.
  35859. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  35860. + if test "x$ac_ct_CC" = x; then
  35861. + CC=""
  35862. + else
  35863. + case $cross_compiling:$ac_tool_warned in
  35864. +yes:)
  35865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  35866. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  35867. +ac_tool_warned=yes ;;
  35868. +esac
  35869. + CC=$ac_ct_CC
  35870. + fi
  35871. +else
  35872. + CC="$ac_cv_prog_CC"
  35873. +fi
  35874. -# The commands to extract the exported symbol list from a shared archive.
  35875. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35876. +if test -z "$CC"; then
  35877. + if test -n "$ac_tool_prefix"; then
  35878. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  35879. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  35880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35881. +$as_echo_n "checking for $ac_word... " >&6; }
  35882. +if test "${ac_cv_prog_CC+set}" = set; then :
  35883. + $as_echo_n "(cached) " >&6
  35884. +else
  35885. + if test -n "$CC"; then
  35886. + ac_cv_prog_CC="$CC" # Let the user override the test.
  35887. +else
  35888. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35889. +for as_dir in $PATH
  35890. +do
  35891. + IFS=$as_save_IFS
  35892. + test -z "$as_dir" && as_dir=.
  35893. + for ac_exec_ext in '' $ac_executable_extensions; do
  35894. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35895. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  35896. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35897. + break 2
  35898. + fi
  35899. +done
  35900. + done
  35901. +IFS=$as_save_IFS
  35902. -# Symbols that should not be listed in the preloaded symbols.
  35903. -exclude_expsyms=$lt_exclude_expsyms_RC
  35904. +fi
  35905. +fi
  35906. +CC=$ac_cv_prog_CC
  35907. +if test -n "$CC"; then
  35908. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  35909. +$as_echo "$CC" >&6; }
  35910. +else
  35911. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35912. +$as_echo "no" >&6; }
  35913. +fi
  35914. -# Symbols that must always be exported.
  35915. -include_expsyms=$lt_include_expsyms_RC
  35916. -# ### END LIBTOOL TAG CONFIG: $tagname
  35917. + fi
  35918. +fi
  35919. +if test -z "$CC"; then
  35920. + # Extract the first word of "cc", so it can be a program name with args.
  35921. +set dummy cc; ac_word=$2
  35922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35923. +$as_echo_n "checking for $ac_word... " >&6; }
  35924. +if test "${ac_cv_prog_CC+set}" = set; then :
  35925. + $as_echo_n "(cached) " >&6
  35926. +else
  35927. + if test -n "$CC"; then
  35928. + ac_cv_prog_CC="$CC" # Let the user override the test.
  35929. +else
  35930. + ac_prog_rejected=no
  35931. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35932. +for as_dir in $PATH
  35933. +do
  35934. + IFS=$as_save_IFS
  35935. + test -z "$as_dir" && as_dir=.
  35936. + for ac_exec_ext in '' $ac_executable_extensions; do
  35937. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35938. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  35939. + ac_prog_rejected=yes
  35940. + continue
  35941. + fi
  35942. + ac_cv_prog_CC="cc"
  35943. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35944. + break 2
  35945. + fi
  35946. +done
  35947. + done
  35948. +IFS=$as_save_IFS
  35949. -__EOF__
  35950. +if test $ac_prog_rejected = yes; then
  35951. + # We found a bogon in the path, so make sure we never use it.
  35952. + set dummy $ac_cv_prog_CC
  35953. + shift
  35954. + if test $# != 0; then
  35955. + # We chose a different compiler from the bogus one.
  35956. + # However, it has the same basename, so the bogon will be chosen
  35957. + # first if we set CC to just the basename; use the full file name.
  35958. + shift
  35959. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  35960. + fi
  35961. +fi
  35962. +fi
  35963. +fi
  35964. +CC=$ac_cv_prog_CC
  35965. +if test -n "$CC"; then
  35966. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  35967. +$as_echo "$CC" >&6; }
  35968. +else
  35969. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35970. +$as_echo "no" >&6; }
  35971. +fi
  35972. +fi
  35973. +if test -z "$CC"; then
  35974. + if test -n "$ac_tool_prefix"; then
  35975. + for ac_prog in cl.exe
  35976. + do
  35977. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  35978. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  35979. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35980. +$as_echo_n "checking for $ac_word... " >&6; }
  35981. +if test "${ac_cv_prog_CC+set}" = set; then :
  35982. + $as_echo_n "(cached) " >&6
  35983. else
  35984. - # If there is no Makefile yet, we rely on a make rule to execute
  35985. - # `config.status --recheck' to rerun these tests and create the
  35986. - # libtool script then.
  35987. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  35988. - if test -f "$ltmain_in"; then
  35989. - test -f Makefile && make "$ltmain"
  35990. + if test -n "$CC"; then
  35991. + ac_cv_prog_CC="$CC" # Let the user override the test.
  35992. +else
  35993. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35994. +for as_dir in $PATH
  35995. +do
  35996. + IFS=$as_save_IFS
  35997. + test -z "$as_dir" && as_dir=.
  35998. + for ac_exec_ext in '' $ac_executable_extensions; do
  35999. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36000. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  36001. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36002. + break 2
  36003. fi
  36004. -fi
  36005. +done
  36006. + done
  36007. +IFS=$as_save_IFS
  36008. +fi
  36009. +fi
  36010. +CC=$ac_cv_prog_CC
  36011. +if test -n "$CC"; then
  36012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  36013. +$as_echo "$CC" >&6; }
  36014. +else
  36015. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36016. +$as_echo "no" >&6; }
  36017. +fi
  36018. -ac_ext=c
  36019. -ac_cpp='$CPP $CPPFLAGS'
  36020. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36021. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36022. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36023. -CC="$lt_save_CC"
  36024. + test -n "$CC" && break
  36025. + done
  36026. +fi
  36027. +if test -z "$CC"; then
  36028. + ac_ct_CC=$CC
  36029. + for ac_prog in cl.exe
  36030. +do
  36031. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  36032. +set dummy $ac_prog; ac_word=$2
  36033. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36034. +$as_echo_n "checking for $ac_word... " >&6; }
  36035. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  36036. + $as_echo_n "(cached) " >&6
  36037. +else
  36038. + if test -n "$ac_ct_CC"; then
  36039. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  36040. +else
  36041. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36042. +for as_dir in $PATH
  36043. +do
  36044. + IFS=$as_save_IFS
  36045. + test -z "$as_dir" && as_dir=.
  36046. + for ac_exec_ext in '' $ac_executable_extensions; do
  36047. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36048. + ac_cv_prog_ac_ct_CC="$ac_prog"
  36049. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36050. + break 2
  36051. + fi
  36052. +done
  36053. + done
  36054. +IFS=$as_save_IFS
  36055. - ;;
  36056. +fi
  36057. +fi
  36058. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  36059. +if test -n "$ac_ct_CC"; then
  36060. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  36061. +$as_echo "$ac_ct_CC" >&6; }
  36062. +else
  36063. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36064. +$as_echo "no" >&6; }
  36065. +fi
  36066. - *)
  36067. - { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  36068. -$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  36069. - { (exit 1); exit 1; }; }
  36070. - ;;
  36071. - esac
  36072. - # Append the new tag name to the list of available tags.
  36073. - if test -n "$tagname" ; then
  36074. - available_tags="$available_tags $tagname"
  36075. - fi
  36076. - fi
  36077. - done
  36078. - IFS="$lt_save_ifs"
  36079. + test -n "$ac_ct_CC" && break
  36080. +done
  36081. - # Now substitute the updated list of available tags.
  36082. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  36083. - mv "${ofile}T" "$ofile"
  36084. - chmod +x "$ofile"
  36085. + if test "x$ac_ct_CC" = x; then
  36086. + CC=""
  36087. else
  36088. - rm -f "${ofile}T"
  36089. - { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  36090. -$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  36091. - { (exit 1); exit 1; }; }
  36092. + case $cross_compiling:$ac_tool_warned in
  36093. +yes:)
  36094. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36095. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36096. +ac_tool_warned=yes ;;
  36097. +esac
  36098. + CC=$ac_ct_CC
  36099. fi
  36100. fi
  36101. +fi
  36102. -# This can be used to rebuild libtool when needed
  36103. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  36104. -
  36105. -# Always use our own libtool.
  36106. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  36107. -
  36108. -# Prevent multiple expansion
  36109. -
  36110. -
  36111. -
  36112. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  36113. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  36114. +as_fn_error "no acceptable C compiler found in \$PATH
  36115. +See \`config.log' for more details." "$LINENO" 5; }
  36116. +# Provide some information about the compiler.
  36117. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  36118. +set X $ac_compile
  36119. +ac_compiler=$2
  36120. +for ac_option in --version -v -V -qversion; do
  36121. + { { ac_try="$ac_compiler $ac_option >&5"
  36122. +case "(($ac_try" in
  36123. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36124. + *) ac_try_echo=$ac_try;;
  36125. +esac
  36126. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  36127. +$as_echo "$ac_try_echo"; } >&5
  36128. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  36129. + ac_status=$?
  36130. + if test -s conftest.err; then
  36131. + sed '10a\
  36132. +... rest of stderr output deleted ...
  36133. + 10q' conftest.err >conftest.er1
  36134. + cat conftest.er1 >&5
  36135. + fi
  36136. + rm -f conftest.er1 conftest.err
  36137. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36138. + test $ac_status = 0; }
  36139. +done
  36140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  36141. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  36142. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  36143. + $as_echo_n "(cached) " >&6
  36144. +else
  36145. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36146. +/* end confdefs.h. */
  36147. +int
  36148. +main ()
  36149. +{
  36150. +#ifndef __GNUC__
  36151. + choke me
  36152. +#endif
  36153. + ;
  36154. + return 0;
  36155. +}
  36156. +_ACEOF
  36157. +if ac_fn_c_try_compile "$LINENO"; then :
  36158. + ac_compiler_gnu=yes
  36159. +else
  36160. + ac_compiler_gnu=no
  36161. +fi
  36162. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36163. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  36164. +fi
  36165. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  36166. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  36167. +if test $ac_compiler_gnu = yes; then
  36168. + GCC=yes
  36169. +else
  36170. + GCC=
  36171. +fi
  36172. +ac_test_CFLAGS=${CFLAGS+set}
  36173. +ac_save_CFLAGS=$CFLAGS
  36174. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  36175. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  36176. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  36177. + $as_echo_n "(cached) " >&6
  36178. +else
  36179. + ac_save_c_werror_flag=$ac_c_werror_flag
  36180. + ac_c_werror_flag=yes
  36181. + ac_cv_prog_cc_g=no
  36182. + CFLAGS="-g"
  36183. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36184. +/* end confdefs.h. */
  36185. +int
  36186. +main ()
  36187. +{
  36188. + ;
  36189. + return 0;
  36190. +}
  36191. +_ACEOF
  36192. +if ac_fn_c_try_compile "$LINENO"; then :
  36193. + ac_cv_prog_cc_g=yes
  36194. +else
  36195. + CFLAGS=""
  36196. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36197. +/* end confdefs.h. */
  36198. +int
  36199. +main ()
  36200. +{
  36201. + ;
  36202. + return 0;
  36203. +}
  36204. +_ACEOF
  36205. +if ac_fn_c_try_compile "$LINENO"; then :
  36206. +else
  36207. + ac_c_werror_flag=$ac_save_c_werror_flag
  36208. + CFLAGS="-g"
  36209. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36210. +/* end confdefs.h. */
  36211. +int
  36212. +main ()
  36213. +{
  36214. + ;
  36215. + return 0;
  36216. +}
  36217. +_ACEOF
  36218. +if ac_fn_c_try_compile "$LINENO"; then :
  36219. + ac_cv_prog_cc_g=yes
  36220. +fi
  36221. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36222. +fi
  36223. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36224. +fi
  36225. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36226. + ac_c_werror_flag=$ac_save_c_werror_flag
  36227. +fi
  36228. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  36229. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  36230. +if test "$ac_test_CFLAGS" = set; then
  36231. + CFLAGS=$ac_save_CFLAGS
  36232. +elif test $ac_cv_prog_cc_g = yes; then
  36233. + if test "$GCC" = yes; then
  36234. + CFLAGS="-g -O2"
  36235. + else
  36236. + CFLAGS="-g"
  36237. + fi
  36238. +else
  36239. + if test "$GCC" = yes; then
  36240. + CFLAGS="-O2"
  36241. + else
  36242. + CFLAGS=
  36243. + fi
  36244. +fi
  36245. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  36246. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  36247. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  36248. + $as_echo_n "(cached) " >&6
  36249. +else
  36250. + ac_cv_prog_cc_c89=no
  36251. +ac_save_CC=$CC
  36252. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36253. +/* end confdefs.h. */
  36254. +#include <stdarg.h>
  36255. +#include <stdio.h>
  36256. +#include <sys/types.h>
  36257. +#include <sys/stat.h>
  36258. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  36259. +struct buf { int x; };
  36260. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  36261. +static char *e (p, i)
  36262. + char **p;
  36263. + int i;
  36264. +{
  36265. + return p[i];
  36266. +}
  36267. +static char *f (char * (*g) (char **, int), char **p, ...)
  36268. +{
  36269. + char *s;
  36270. + va_list v;
  36271. + va_start (v,p);
  36272. + s = g (p, va_arg (v,int));
  36273. + va_end (v);
  36274. + return s;
  36275. +}
  36276. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  36277. + function prototypes and stuff, but not '\xHH' hex character constants.
  36278. + These don't provoke an error unfortunately, instead are silently treated
  36279. + as 'x'. The following induces an error, until -std is added to get
  36280. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  36281. + array size at least. It's necessary to write '\x00'==0 to get something
  36282. + that's true only with -std. */
  36283. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  36284. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  36285. + inside strings and character constants. */
  36286. +#define FOO(x) 'x'
  36287. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  36288. +int test (int i, double x);
  36289. +struct s1 {int (*f) (int a);};
  36290. +struct s2 {int (*f) (double a);};
  36291. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  36292. +int argc;
  36293. +char **argv;
  36294. +int
  36295. +main ()
  36296. +{
  36297. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  36298. + ;
  36299. + return 0;
  36300. +}
  36301. +_ACEOF
  36302. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  36303. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  36304. +do
  36305. + CC="$ac_save_CC $ac_arg"
  36306. + if ac_fn_c_try_compile "$LINENO"; then :
  36307. + ac_cv_prog_cc_c89=$ac_arg
  36308. +fi
  36309. +rm -f core conftest.err conftest.$ac_objext
  36310. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  36311. +done
  36312. +rm -f conftest.$ac_ext
  36313. +CC=$ac_save_CC
  36314. +fi
  36315. +# AC_CACHE_VAL
  36316. +case "x$ac_cv_prog_cc_c89" in
  36317. + x)
  36318. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  36319. +$as_echo "none needed" >&6; } ;;
  36320. + xno)
  36321. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  36322. +$as_echo "unsupported" >&6; } ;;
  36323. + *)
  36324. + CC="$CC $ac_cv_prog_cc_c89"
  36325. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  36326. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  36327. +esac
  36328. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  36329. +fi
  36330. -# Checks for programs.
  36331. ac_ext=c
  36332. ac_cpp='$CPP $CPPFLAGS'
  36333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36336. -if test -n "$ac_tool_prefix"; then
  36337. - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  36338. -set dummy ${ac_tool_prefix}gcc; ac_word=$2
  36339. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  36340. -$as_echo_n "checking for $ac_word... " >&6; }
  36341. -if test "${ac_cv_prog_CC+set}" = set; then
  36342. +
  36343. +depcc="$CC" am_compiler_list=
  36344. +
  36345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  36346. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  36347. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  36348. $as_echo_n "(cached) " >&6
  36349. else
  36350. - if test -n "$CC"; then
  36351. - ac_cv_prog_CC="$CC" # Let the user override the test.
  36352. -else
  36353. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36354. -for as_dir in $PATH
  36355. -do
  36356. - IFS=$as_save_IFS
  36357. - test -z "$as_dir" && as_dir=.
  36358. - for ac_exec_ext in '' $ac_executable_extensions; do
  36359. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36360. - ac_cv_prog_CC="${ac_tool_prefix}gcc"
  36361. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36362. - break 2
  36363. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  36364. + # We make a subdir and do the tests there. Otherwise we can end up
  36365. + # making bogus files that we don't know about and never remove. For
  36366. + # instance it was reported that on HP-UX the gcc test will end up
  36367. + # making a dummy file named `D' -- because `-MD' means `put the output
  36368. + # in D'.
  36369. + mkdir conftest.dir
  36370. + # Copy depcomp to subdir because otherwise we won't find it if we're
  36371. + # using a relative directory.
  36372. + cp "$am_depcomp" conftest.dir
  36373. + cd conftest.dir
  36374. + # We will build objects and dependencies in a subdirectory because
  36375. + # it helps to detect inapplicable dependency modes. For instance
  36376. + # both Tru64's cc and ICC support -MD to output dependencies as a
  36377. + # side effect of compilation, but ICC will put the dependencies in
  36378. + # the current directory while Tru64 will put them in the object
  36379. + # directory.
  36380. + mkdir sub
  36381. +
  36382. + am_cv_CC_dependencies_compiler_type=none
  36383. + if test "$am_compiler_list" = ""; then
  36384. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  36385. fi
  36386. -done
  36387. -done
  36388. -IFS=$as_save_IFS
  36389. + am__universal=false
  36390. + case " $depcc " in #(
  36391. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  36392. + esac
  36393. -fi
  36394. -fi
  36395. -CC=$ac_cv_prog_CC
  36396. -if test -n "$CC"; then
  36397. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  36398. -$as_echo "$CC" >&6; }
  36399. -else
  36400. - { $as_echo "$as_me:$LINENO: result: no" >&5
  36401. -$as_echo "no" >&6; }
  36402. -fi
  36403. + for depmode in $am_compiler_list; do
  36404. + # Setup a source with many dependencies, because some compilers
  36405. + # like to wrap large dependency lists on column 80 (with \), and
  36406. + # we should not choose a depcomp mode which is confused by this.
  36407. + #
  36408. + # We need to recreate these files for each test, as the compiler may
  36409. + # overwrite some of them when testing with obscure command lines.
  36410. + # This happens at least with the AIX C compiler.
  36411. + : > sub/conftest.c
  36412. + for i in 1 2 3 4 5 6; do
  36413. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  36414. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  36415. + # Solaris 8's {/usr,}/bin/sh.
  36416. + touch sub/conftst$i.h
  36417. + done
  36418. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  36419. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  36420. + # mode. It turns out that the SunPro C++ compiler does not properly
  36421. + # handle `-M -o', and we need to detect this. Also, some Intel
  36422. + # versions had trouble with output in subdirs
  36423. + am__obj=sub/conftest.${OBJEXT-o}
  36424. + am__minus_obj="-o $am__obj"
  36425. + case $depmode in
  36426. + gcc)
  36427. + # This depmode causes a compiler race in universal mode.
  36428. + test "$am__universal" = false || continue
  36429. + ;;
  36430. + nosideeffect)
  36431. + # after this tag, mechanisms are not by side-effect, so they'll
  36432. + # only be used when explicitly requested
  36433. + if test "x$enable_dependency_tracking" = xyes; then
  36434. + continue
  36435. + else
  36436. + break
  36437. + fi
  36438. + ;;
  36439. + msvisualcpp | msvcmsys)
  36440. + # This compiler won't grok `-c -o', but also, the minuso test has
  36441. + # not run yet. These depmodes are late enough in the game, and
  36442. + # so weak that their functioning should not be impacted.
  36443. + am__obj=conftest.${OBJEXT-o}
  36444. + am__minus_obj=
  36445. + ;;
  36446. + none) break ;;
  36447. + esac
  36448. + if depmode=$depmode \
  36449. + source=sub/conftest.c object=$am__obj \
  36450. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  36451. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  36452. + >/dev/null 2>conftest.err &&
  36453. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  36454. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  36455. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  36456. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  36457. + # icc doesn't choke on unknown options, it will just issue warnings
  36458. + # or remarks (even with -Werror). So we grep stderr for any message
  36459. + # that says an option was ignored or not supported.
  36460. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  36461. + # icc: Command line warning: ignoring option '-M'; no argument required
  36462. + # The diagnosis changed in icc 8.0:
  36463. + # icc: Command line remark: option '-MP' not supported
  36464. + if (grep 'ignoring option' conftest.err ||
  36465. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  36466. + am_cv_CC_dependencies_compiler_type=$depmode
  36467. + break
  36468. + fi
  36469. + fi
  36470. + done
  36471. -fi
  36472. -if test -z "$ac_cv_prog_CC"; then
  36473. - ac_ct_CC=$CC
  36474. - # Extract the first word of "gcc", so it can be a program name with args.
  36475. -set dummy gcc; ac_word=$2
  36476. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  36477. -$as_echo_n "checking for $ac_word... " >&6; }
  36478. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  36479. - $as_echo_n "(cached) " >&6
  36480. -else
  36481. - if test -n "$ac_ct_CC"; then
  36482. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  36483. + cd ..
  36484. + rm -rf conftest.dir
  36485. else
  36486. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36487. -for as_dir in $PATH
  36488. -do
  36489. - IFS=$as_save_IFS
  36490. - test -z "$as_dir" && as_dir=.
  36491. - for ac_exec_ext in '' $ac_executable_extensions; do
  36492. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36493. - ac_cv_prog_ac_ct_CC="gcc"
  36494. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36495. - break 2
  36496. - fi
  36497. -done
  36498. -done
  36499. -IFS=$as_save_IFS
  36500. -
  36501. -fi
  36502. + am_cv_CC_dependencies_compiler_type=none
  36503. fi
  36504. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  36505. -if test -n "$ac_ct_CC"; then
  36506. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  36507. -$as_echo "$ac_ct_CC" >&6; }
  36508. -else
  36509. - { $as_echo "$as_me:$LINENO: result: no" >&5
  36510. -$as_echo "no" >&6; }
  36511. +
  36512. fi
  36513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  36514. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  36515. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  36516. - if test "x$ac_ct_CC" = x; then
  36517. - CC=""
  36518. - else
  36519. - case $cross_compiling:$ac_tool_warned in
  36520. -yes:)
  36521. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  36522. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36523. -ac_tool_warned=yes ;;
  36524. -esac
  36525. - CC=$ac_ct_CC
  36526. - fi
  36527. + if
  36528. + test "x$enable_dependency_tracking" != xno \
  36529. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  36530. + am__fastdepCC_TRUE=
  36531. + am__fastdepCC_FALSE='#'
  36532. else
  36533. - CC="$ac_cv_prog_CC"
  36534. + am__fastdepCC_TRUE='#'
  36535. + am__fastdepCC_FALSE=
  36536. fi
  36537. -if test -z "$CC"; then
  36538. - if test -n "$ac_tool_prefix"; then
  36539. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  36540. -set dummy ${ac_tool_prefix}cc; ac_word=$2
  36541. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  36542. +
  36543. +if test -n "$ac_tool_prefix"; then
  36544. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  36545. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  36546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36547. $as_echo_n "checking for $ac_word... " >&6; }
  36548. -if test "${ac_cv_prog_CC+set}" = set; then
  36549. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  36550. $as_echo_n "(cached) " >&6
  36551. else
  36552. - if test -n "$CC"; then
  36553. - ac_cv_prog_CC="$CC" # Let the user override the test.
  36554. + if test -n "$RANLIB"; then
  36555. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  36556. else
  36557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36558. for as_dir in $PATH
  36559. do
  36560. IFS=$as_save_IFS
  36561. test -z "$as_dir" && as_dir=.
  36562. - for ac_exec_ext in '' $ac_executable_extensions; do
  36563. + for ac_exec_ext in '' $ac_executable_extensions; do
  36564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36565. - ac_cv_prog_CC="${ac_tool_prefix}cc"
  36566. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36567. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  36568. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36569. break 2
  36570. fi
  36571. done
  36572. -done
  36573. + done
  36574. IFS=$as_save_IFS
  36575. fi
  36576. fi
  36577. -CC=$ac_cv_prog_CC
  36578. -if test -n "$CC"; then
  36579. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  36580. -$as_echo "$CC" >&6; }
  36581. +RANLIB=$ac_cv_prog_RANLIB
  36582. +if test -n "$RANLIB"; then
  36583. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  36584. +$as_echo "$RANLIB" >&6; }
  36585. else
  36586. - { $as_echo "$as_me:$LINENO: result: no" >&5
  36587. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36588. $as_echo "no" >&6; }
  36589. fi
  36590. - fi
  36591. fi
  36592. -if test -z "$CC"; then
  36593. - # Extract the first word of "cc", so it can be a program name with args.
  36594. -set dummy cc; ac_word=$2
  36595. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  36596. +if test -z "$ac_cv_prog_RANLIB"; then
  36597. + ac_ct_RANLIB=$RANLIB
  36598. + # Extract the first word of "ranlib", so it can be a program name with args.
  36599. +set dummy ranlib; ac_word=$2
  36600. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36601. $as_echo_n "checking for $ac_word... " >&6; }
  36602. -if test "${ac_cv_prog_CC+set}" = set; then
  36603. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  36604. $as_echo_n "(cached) " >&6
  36605. else
  36606. - if test -n "$CC"; then
  36607. - ac_cv_prog_CC="$CC" # Let the user override the test.
  36608. + if test -n "$ac_ct_RANLIB"; then
  36609. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  36610. else
  36611. - ac_prog_rejected=no
  36612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36613. for as_dir in $PATH
  36614. do
  36615. IFS=$as_save_IFS
  36616. test -z "$as_dir" && as_dir=.
  36617. - for ac_exec_ext in '' $ac_executable_extensions; do
  36618. + for ac_exec_ext in '' $ac_executable_extensions; do
  36619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36620. - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  36621. - ac_prog_rejected=yes
  36622. - continue
  36623. - fi
  36624. - ac_cv_prog_CC="cc"
  36625. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36626. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  36627. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36628. break 2
  36629. fi
  36630. done
  36631. -done
  36632. + done
  36633. IFS=$as_save_IFS
  36634. -if test $ac_prog_rejected = yes; then
  36635. - # We found a bogon in the path, so make sure we never use it.
  36636. - set dummy $ac_cv_prog_CC
  36637. - shift
  36638. - if test $# != 0; then
  36639. - # We chose a different compiler from the bogus one.
  36640. - # However, it has the same basename, so the bogon will be chosen
  36641. - # first if we set CC to just the basename; use the full file name.
  36642. - shift
  36643. - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  36644. - fi
  36645. -fi
  36646. fi
  36647. fi
  36648. -CC=$ac_cv_prog_CC
  36649. -if test -n "$CC"; then
  36650. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  36651. -$as_echo "$CC" >&6; }
  36652. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  36653. +if test -n "$ac_ct_RANLIB"; then
  36654. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  36655. +$as_echo "$ac_ct_RANLIB" >&6; }
  36656. else
  36657. - { $as_echo "$as_me:$LINENO: result: no" >&5
  36658. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36659. $as_echo "no" >&6; }
  36660. fi
  36661. -
  36662. + if test "x$ac_ct_RANLIB" = x; then
  36663. + RANLIB=":"
  36664. + else
  36665. + case $cross_compiling:$ac_tool_warned in
  36666. +yes:)
  36667. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36668. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36669. +ac_tool_warned=yes ;;
  36670. +esac
  36671. + RANLIB=$ac_ct_RANLIB
  36672. + fi
  36673. +else
  36674. + RANLIB="$ac_cv_prog_RANLIB"
  36675. fi
  36676. -if test -z "$CC"; then
  36677. - if test -n "$ac_tool_prefix"; then
  36678. - for ac_prog in cl.exe
  36679. - do
  36680. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  36681. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  36682. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  36683. +
  36684. +
  36685. +# Checks for libraries.
  36686. +
  36687. +
  36688. +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  36689. + if test -n "$ac_tool_prefix"; then
  36690. + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  36691. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  36692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36693. $as_echo_n "checking for $ac_word... " >&6; }
  36694. -if test "${ac_cv_prog_CC+set}" = set; then
  36695. +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  36696. $as_echo_n "(cached) " >&6
  36697. else
  36698. - if test -n "$CC"; then
  36699. - ac_cv_prog_CC="$CC" # Let the user override the test.
  36700. -else
  36701. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36702. + case $PKG_CONFIG in
  36703. + [\\/]* | ?:[\\/]*)
  36704. + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  36705. + ;;
  36706. + *)
  36707. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36708. for as_dir in $PATH
  36709. do
  36710. IFS=$as_save_IFS
  36711. test -z "$as_dir" && as_dir=.
  36712. - for ac_exec_ext in '' $ac_executable_extensions; do
  36713. + for ac_exec_ext in '' $ac_executable_extensions; do
  36714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36715. - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  36716. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36717. + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  36718. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36719. break 2
  36720. fi
  36721. done
  36722. -done
  36723. + done
  36724. IFS=$as_save_IFS
  36725. + ;;
  36726. +esac
  36727. fi
  36728. -fi
  36729. -CC=$ac_cv_prog_CC
  36730. -if test -n "$CC"; then
  36731. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  36732. -$as_echo "$CC" >&6; }
  36733. +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  36734. +if test -n "$PKG_CONFIG"; then
  36735. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  36736. +$as_echo "$PKG_CONFIG" >&6; }
  36737. else
  36738. - { $as_echo "$as_me:$LINENO: result: no" >&5
  36739. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36740. $as_echo "no" >&6; }
  36741. fi
  36742. - test -n "$CC" && break
  36743. - done
  36744. fi
  36745. -if test -z "$CC"; then
  36746. - ac_ct_CC=$CC
  36747. - for ac_prog in cl.exe
  36748. -do
  36749. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  36750. -set dummy $ac_prog; ac_word=$2
  36751. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  36752. +if test -z "$ac_cv_path_PKG_CONFIG"; then
  36753. + ac_pt_PKG_CONFIG=$PKG_CONFIG
  36754. + # Extract the first word of "pkg-config", so it can be a program name with args.
  36755. +set dummy pkg-config; ac_word=$2
  36756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36757. $as_echo_n "checking for $ac_word... " >&6; }
  36758. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  36759. +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  36760. $as_echo_n "(cached) " >&6
  36761. else
  36762. - if test -n "$ac_ct_CC"; then
  36763. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  36764. -else
  36765. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36766. + case $ac_pt_PKG_CONFIG in
  36767. + [\\/]* | ?:[\\/]*)
  36768. + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  36769. + ;;
  36770. + *)
  36771. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36772. for as_dir in $PATH
  36773. do
  36774. IFS=$as_save_IFS
  36775. test -z "$as_dir" && as_dir=.
  36776. - for ac_exec_ext in '' $ac_executable_extensions; do
  36777. + for ac_exec_ext in '' $ac_executable_extensions; do
  36778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36779. - ac_cv_prog_ac_ct_CC="$ac_prog"
  36780. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36781. + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  36782. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36783. break 2
  36784. fi
  36785. done
  36786. -done
  36787. + done
  36788. IFS=$as_save_IFS
  36789. + ;;
  36790. +esac
  36791. fi
  36792. -fi
  36793. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  36794. -if test -n "$ac_ct_CC"; then
  36795. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  36796. -$as_echo "$ac_ct_CC" >&6; }
  36797. +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  36798. +if test -n "$ac_pt_PKG_CONFIG"; then
  36799. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  36800. +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  36801. else
  36802. - { $as_echo "$as_me:$LINENO: result: no" >&5
  36803. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36804. $as_echo "no" >&6; }
  36805. fi
  36806. -
  36807. - test -n "$ac_ct_CC" && break
  36808. -done
  36809. -
  36810. - if test "x$ac_ct_CC" = x; then
  36811. - CC=""
  36812. + if test "x$ac_pt_PKG_CONFIG" = x; then
  36813. + PKG_CONFIG=""
  36814. else
  36815. case $cross_compiling:$ac_tool_warned in
  36816. yes:)
  36817. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  36818. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36820. ac_tool_warned=yes ;;
  36821. esac
  36822. - CC=$ac_ct_CC
  36823. + PKG_CONFIG=$ac_pt_PKG_CONFIG
  36824. fi
  36825. +else
  36826. + PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  36827. fi
  36828. fi
  36829. +if test -n "$PKG_CONFIG"; then
  36830. + _pkg_min_version=0.9.0
  36831. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  36832. +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  36833. + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  36834. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36835. +$as_echo "yes" >&6; }
  36836. + else
  36837. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36838. +$as_echo "no" >&6; }
  36839. + PKG_CONFIG=""
  36840. + fi
  36841. +fi
  36842. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  36843. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  36844. -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  36845. -See \`config.log' for more details." >&5
  36846. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  36847. -See \`config.log' for more details." >&2;}
  36848. - { (exit 1); exit 1; }; }; }
  36849. +pkg_failed=no
  36850. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
  36851. +$as_echo_n "checking for GSSGLUE... " >&6; }
  36852. -# Provide some information about the compiler.
  36853. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  36854. -set X $ac_compile
  36855. -ac_compiler=$2
  36856. -{ (ac_try="$ac_compiler --version >&5"
  36857. -case "(($ac_try" in
  36858. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36859. - *) ac_try_echo=$ac_try;;
  36860. -esac
  36861. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36862. -$as_echo "$ac_try_echo") >&5
  36863. - (eval "$ac_compiler --version >&5") 2>&5
  36864. - ac_status=$?
  36865. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36866. - (exit $ac_status); }
  36867. -{ (ac_try="$ac_compiler -v >&5"
  36868. -case "(($ac_try" in
  36869. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36870. - *) ac_try_echo=$ac_try;;
  36871. -esac
  36872. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36873. -$as_echo "$ac_try_echo") >&5
  36874. - (eval "$ac_compiler -v >&5") 2>&5
  36875. - ac_status=$?
  36876. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36877. - (exit $ac_status); }
  36878. -{ (ac_try="$ac_compiler -V >&5"
  36879. -case "(($ac_try" in
  36880. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36881. - *) ac_try_echo=$ac_try;;
  36882. -esac
  36883. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36884. -$as_echo "$ac_try_echo") >&5
  36885. - (eval "$ac_compiler -V >&5") 2>&5
  36886. +if test -n "$PKG_CONFIG"; then
  36887. + if test -n "$GSSGLUE_CFLAGS"; then
  36888. + pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
  36889. + else
  36890. + if test -n "$PKG_CONFIG" && \
  36891. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
  36892. + ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
  36893. ac_status=$?
  36894. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36895. - (exit $ac_status); }
  36896. -
  36897. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  36898. -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  36899. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  36900. - $as_echo_n "(cached) " >&6
  36901. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36902. + test $ac_status = 0; }; then
  36903. + pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
  36904. else
  36905. - cat >conftest.$ac_ext <<_ACEOF
  36906. -/* confdefs.h. */
  36907. -_ACEOF
  36908. -cat confdefs.h >>conftest.$ac_ext
  36909. -cat >>conftest.$ac_ext <<_ACEOF
  36910. -/* end confdefs.h. */
  36911. -
  36912. -int
  36913. -main ()
  36914. -{
  36915. -#ifndef __GNUC__
  36916. - choke me
  36917. -#endif
  36918. -
  36919. - ;
  36920. - return 0;
  36921. -}
  36922. -_ACEOF
  36923. -rm -f conftest.$ac_objext
  36924. -if { (ac_try="$ac_compile"
  36925. -case "(($ac_try" in
  36926. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36927. - *) ac_try_echo=$ac_try;;
  36928. -esac
  36929. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36930. -$as_echo "$ac_try_echo") >&5
  36931. - (eval "$ac_compile") 2>conftest.er1
  36932. + pkg_failed=yes
  36933. +fi
  36934. + fi
  36935. +else
  36936. + pkg_failed=untried
  36937. +fi
  36938. +if test -n "$PKG_CONFIG"; then
  36939. + if test -n "$GSSGLUE_LIBS"; then
  36940. + pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
  36941. + else
  36942. + if test -n "$PKG_CONFIG" && \
  36943. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
  36944. + ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
  36945. ac_status=$?
  36946. - grep -v '^ *+' conftest.er1 >conftest.err
  36947. - rm -f conftest.er1
  36948. - cat conftest.err >&5
  36949. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36950. - (exit $ac_status); } && {
  36951. - test -z "$ac_c_werror_flag" ||
  36952. - test ! -s conftest.err
  36953. - } && test -s conftest.$ac_objext; then
  36954. - ac_compiler_gnu=yes
  36955. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36956. + test $ac_status = 0; }; then
  36957. + pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
  36958. else
  36959. - $as_echo "$as_me: failed program was:" >&5
  36960. -sed 's/^/| /' conftest.$ac_ext >&5
  36961. -
  36962. - ac_compiler_gnu=no
  36963. + pkg_failed=yes
  36964. +fi
  36965. + fi
  36966. +else
  36967. + pkg_failed=untried
  36968. fi
  36969. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36970. -ac_cv_c_compiler_gnu=$ac_compiler_gnu
  36971. +
  36972. +if test $pkg_failed = yes; then
  36973. +
  36974. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  36975. + _pkg_short_errors_supported=yes
  36976. +else
  36977. + _pkg_short_errors_supported=no
  36978. fi
  36979. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  36980. -$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  36981. -if test $ac_compiler_gnu = yes; then
  36982. - GCC=yes
  36983. + if test $_pkg_short_errors_supported = yes; then
  36984. + GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
  36985. + else
  36986. + GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
  36987. + fi
  36988. + # Put the nasty error message in config.log where it belongs
  36989. + echo "$GSSGLUE_PKG_ERRORS" >&5
  36990. +
  36991. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36992. +$as_echo "no" >&6; }
  36993. + as_fn_error "Unable to locate information required to use libgssglue.
  36994. + If you have pkgconfig installed, you might try setting environment
  36995. + variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" "$LINENO" 5
  36996. +elif test $pkg_failed = untried; then
  36997. + as_fn_error "Unable to locate information required to use libgssglue.
  36998. + If you have pkgconfig installed, you might try setting environment
  36999. + variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" "$LINENO" 5
  37000. else
  37001. - GCC=
  37002. + GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
  37003. + GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
  37004. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37005. +$as_echo "yes" >&6; }
  37006. + :
  37007. fi
  37008. -ac_test_CFLAGS=${CFLAGS+set}
  37009. -ac_save_CFLAGS=$CFLAGS
  37010. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  37011. -$as_echo_n "checking whether $CC accepts -g... " >&6; }
  37012. -if test "${ac_cv_prog_cc_g+set}" = set; then
  37013. +
  37014. +# Checks for header files.
  37015. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  37016. +$as_echo_n "checking for ANSI C header files... " >&6; }
  37017. +if test "${ac_cv_header_stdc+set}" = set; then :
  37018. $as_echo_n "(cached) " >&6
  37019. -else
  37020. - ac_save_c_werror_flag=$ac_c_werror_flag
  37021. - ac_c_werror_flag=yes
  37022. - ac_cv_prog_cc_g=no
  37023. - CFLAGS="-g"
  37024. - cat >conftest.$ac_ext <<_ACEOF
  37025. -/* confdefs.h. */
  37026. -_ACEOF
  37027. -cat confdefs.h >>conftest.$ac_ext
  37028. -cat >>conftest.$ac_ext <<_ACEOF
  37029. +else
  37030. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37031. /* end confdefs.h. */
  37032. +#include <stdlib.h>
  37033. +#include <stdarg.h>
  37034. +#include <string.h>
  37035. +#include <float.h>
  37036. int
  37037. main ()
  37038. @@ -20395,3238 +11438,2601 @@
  37039. return 0;
  37040. }
  37041. _ACEOF
  37042. -rm -f conftest.$ac_objext
  37043. -if { (ac_try="$ac_compile"
  37044. -case "(($ac_try" in
  37045. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37046. - *) ac_try_echo=$ac_try;;
  37047. -esac
  37048. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37049. -$as_echo "$ac_try_echo") >&5
  37050. - (eval "$ac_compile") 2>conftest.er1
  37051. - ac_status=$?
  37052. - grep -v '^ *+' conftest.er1 >conftest.err
  37053. - rm -f conftest.er1
  37054. - cat conftest.err >&5
  37055. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37056. - (exit $ac_status); } && {
  37057. - test -z "$ac_c_werror_flag" ||
  37058. - test ! -s conftest.err
  37059. - } && test -s conftest.$ac_objext; then
  37060. - ac_cv_prog_cc_g=yes
  37061. +if ac_fn_c_try_compile "$LINENO"; then :
  37062. + ac_cv_header_stdc=yes
  37063. else
  37064. - $as_echo "$as_me: failed program was:" >&5
  37065. -sed 's/^/| /' conftest.$ac_ext >&5
  37066. + ac_cv_header_stdc=no
  37067. +fi
  37068. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37069. +
  37070. +if test $ac_cv_header_stdc = yes; then
  37071. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  37072. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37073. +/* end confdefs.h. */
  37074. +#include <string.h>
  37075. +
  37076. +_ACEOF
  37077. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37078. + $EGREP "memchr" >/dev/null 2>&1; then :
  37079. +
  37080. +else
  37081. + ac_cv_header_stdc=no
  37082. +fi
  37083. +rm -f conftest*
  37084. +
  37085. +fi
  37086. +
  37087. +if test $ac_cv_header_stdc = yes; then
  37088. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  37089. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37090. +/* end confdefs.h. */
  37091. +#include <stdlib.h>
  37092. - CFLAGS=""
  37093. - cat >conftest.$ac_ext <<_ACEOF
  37094. -/* confdefs.h. */
  37095. _ACEOF
  37096. -cat confdefs.h >>conftest.$ac_ext
  37097. -cat >>conftest.$ac_ext <<_ACEOF
  37098. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37099. + $EGREP "free" >/dev/null 2>&1; then :
  37100. +
  37101. +else
  37102. + ac_cv_header_stdc=no
  37103. +fi
  37104. +rm -f conftest*
  37105. +
  37106. +fi
  37107. +
  37108. +if test $ac_cv_header_stdc = yes; then
  37109. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  37110. + if test "$cross_compiling" = yes; then :
  37111. + :
  37112. +else
  37113. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37114. /* end confdefs.h. */
  37115. +#include <ctype.h>
  37116. +#include <stdlib.h>
  37117. +#if ((' ' & 0x0FF) == 0x020)
  37118. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  37119. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  37120. +#else
  37121. +# define ISLOWER(c) \
  37122. + (('a' <= (c) && (c) <= 'i') \
  37123. + || ('j' <= (c) && (c) <= 'r') \
  37124. + || ('s' <= (c) && (c) <= 'z'))
  37125. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  37126. +#endif
  37127. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  37128. int
  37129. main ()
  37130. {
  37131. -
  37132. - ;
  37133. + int i;
  37134. + for (i = 0; i < 256; i++)
  37135. + if (XOR (islower (i), ISLOWER (i))
  37136. + || toupper (i) != TOUPPER (i))
  37137. + return 2;
  37138. return 0;
  37139. }
  37140. _ACEOF
  37141. -rm -f conftest.$ac_objext
  37142. -if { (ac_try="$ac_compile"
  37143. -case "(($ac_try" in
  37144. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37145. - *) ac_try_echo=$ac_try;;
  37146. -esac
  37147. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37148. -$as_echo "$ac_try_echo") >&5
  37149. - (eval "$ac_compile") 2>conftest.er1
  37150. - ac_status=$?
  37151. - grep -v '^ *+' conftest.er1 >conftest.err
  37152. - rm -f conftest.er1
  37153. - cat conftest.err >&5
  37154. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37155. - (exit $ac_status); } && {
  37156. - test -z "$ac_c_werror_flag" ||
  37157. - test ! -s conftest.err
  37158. - } && test -s conftest.$ac_objext; then
  37159. - :
  37160. +if ac_fn_c_try_run "$LINENO"; then :
  37161. +
  37162. else
  37163. - $as_echo "$as_me: failed program was:" >&5
  37164. -sed 's/^/| /' conftest.$ac_ext >&5
  37165. + ac_cv_header_stdc=no
  37166. +fi
  37167. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  37168. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  37169. +fi
  37170. - ac_c_werror_flag=$ac_save_c_werror_flag
  37171. - CFLAGS="-g"
  37172. - cat >conftest.$ac_ext <<_ACEOF
  37173. -/* confdefs.h. */
  37174. +fi
  37175. +fi
  37176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  37177. +$as_echo "$ac_cv_header_stdc" >&6; }
  37178. +if test $ac_cv_header_stdc = yes; then
  37179. +
  37180. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  37181. +
  37182. +fi
  37183. +
  37184. +for ac_header in stddef.h stdlib.h string.h unistd.h
  37185. +do :
  37186. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37187. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  37188. +eval as_val=\$$as_ac_Header
  37189. + if test "x$as_val" = x""yes; then :
  37190. + cat >>confdefs.h <<_ACEOF
  37191. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37192. _ACEOF
  37193. -cat confdefs.h >>conftest.$ac_ext
  37194. -cat >>conftest.$ac_ext <<_ACEOF
  37195. +
  37196. +fi
  37197. +
  37198. +done
  37199. +
  37200. +
  37201. +# Checks for typedefs, structures, and compiler characteristics.
  37202. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  37203. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  37204. +if test "${ac_cv_c_const+set}" = set; then :
  37205. + $as_echo_n "(cached) " >&6
  37206. +else
  37207. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37208. /* end confdefs.h. */
  37209. int
  37210. main ()
  37211. {
  37212. +/* FIXME: Include the comments suggested by Paul. */
  37213. +#ifndef __cplusplus
  37214. + /* Ultrix mips cc rejects this. */
  37215. + typedef int charset[2];
  37216. + const charset cs;
  37217. + /* SunOS 4.1.1 cc rejects this. */
  37218. + char const *const *pcpcc;
  37219. + char **ppc;
  37220. + /* NEC SVR4.0.2 mips cc rejects this. */
  37221. + struct point {int x, y;};
  37222. + static struct point const zero = {0,0};
  37223. + /* AIX XL C 1.02.0.0 rejects this.
  37224. + It does not let you subtract one const X* pointer from another in
  37225. + an arm of an if-expression whose if-part is not a constant
  37226. + expression */
  37227. + const char *g = "string";
  37228. + pcpcc = &g + (g ? g-g : 0);
  37229. + /* HPUX 7.0 cc rejects these. */
  37230. + ++pcpcc;
  37231. + ppc = (char**) pcpcc;
  37232. + pcpcc = (char const *const *) ppc;
  37233. + { /* SCO 3.2v4 cc rejects this. */
  37234. + char *t;
  37235. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  37236. +
  37237. + *t++ = 0;
  37238. + if (s) return 0;
  37239. + }
  37240. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  37241. + int x[] = {25, 17};
  37242. + const int *foo = &x[0];
  37243. + ++foo;
  37244. + }
  37245. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  37246. + typedef const int *iptr;
  37247. + iptr p = 0;
  37248. + ++p;
  37249. + }
  37250. + { /* AIX XL C 1.02.0.0 rejects this saying
  37251. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  37252. + struct s { int j; const int *ap[3]; };
  37253. + struct s *b; b->j = 5;
  37254. + }
  37255. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  37256. + const int foo = 10;
  37257. + if (!foo) return 0;
  37258. + }
  37259. + return !cs[0] && !zero.x;
  37260. +#endif
  37261. ;
  37262. return 0;
  37263. }
  37264. _ACEOF
  37265. -rm -f conftest.$ac_objext
  37266. -if { (ac_try="$ac_compile"
  37267. -case "(($ac_try" in
  37268. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37269. - *) ac_try_echo=$ac_try;;
  37270. -esac
  37271. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37272. -$as_echo "$ac_try_echo") >&5
  37273. - (eval "$ac_compile") 2>conftest.er1
  37274. - ac_status=$?
  37275. - grep -v '^ *+' conftest.er1 >conftest.err
  37276. - rm -f conftest.er1
  37277. - cat conftest.err >&5
  37278. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37279. - (exit $ac_status); } && {
  37280. - test -z "$ac_c_werror_flag" ||
  37281. - test ! -s conftest.err
  37282. - } && test -s conftest.$ac_objext; then
  37283. - ac_cv_prog_cc_g=yes
  37284. +if ac_fn_c_try_compile "$LINENO"; then :
  37285. + ac_cv_c_const=yes
  37286. else
  37287. - $as_echo "$as_me: failed program was:" >&5
  37288. -sed 's/^/| /' conftest.$ac_ext >&5
  37289. -
  37290. -
  37291. + ac_cv_c_const=no
  37292. fi
  37293. -
  37294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37295. fi
  37296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  37297. +$as_echo "$ac_cv_c_const" >&6; }
  37298. +if test $ac_cv_c_const = no; then
  37299. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37300. -fi
  37301. +$as_echo "#define const /**/" >>confdefs.h
  37302. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37303. - ac_c_werror_flag=$ac_save_c_werror_flag
  37304. fi
  37305. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  37306. -$as_echo "$ac_cv_prog_cc_g" >&6; }
  37307. -if test "$ac_test_CFLAGS" = set; then
  37308. - CFLAGS=$ac_save_CFLAGS
  37309. -elif test $ac_cv_prog_cc_g = yes; then
  37310. - if test "$GCC" = yes; then
  37311. - CFLAGS="-g -O2"
  37312. - else
  37313. - CFLAGS="-g"
  37314. - fi
  37315. +
  37316. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  37317. +if test "x$ac_cv_type_size_t" = x""yes; then :
  37318. +
  37319. else
  37320. - if test "$GCC" = yes; then
  37321. - CFLAGS="-O2"
  37322. - else
  37323. - CFLAGS=
  37324. - fi
  37325. +
  37326. +cat >>confdefs.h <<_ACEOF
  37327. +#define size_t unsigned int
  37328. +_ACEOF
  37329. +
  37330. fi
  37331. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  37332. -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  37333. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  37334. +
  37335. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  37336. +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  37337. +if test "${ac_cv_type_uid_t+set}" = set; then :
  37338. $as_echo_n "(cached) " >&6
  37339. else
  37340. - ac_cv_prog_cc_c89=no
  37341. -ac_save_CC=$CC
  37342. -cat >conftest.$ac_ext <<_ACEOF
  37343. -/* confdefs.h. */
  37344. -_ACEOF
  37345. -cat confdefs.h >>conftest.$ac_ext
  37346. -cat >>conftest.$ac_ext <<_ACEOF
  37347. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37348. /* end confdefs.h. */
  37349. -#include <stdarg.h>
  37350. -#include <stdio.h>
  37351. #include <sys/types.h>
  37352. -#include <sys/stat.h>
  37353. -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  37354. -struct buf { int x; };
  37355. -FILE * (*rcsopen) (struct buf *, struct stat *, int);
  37356. -static char *e (p, i)
  37357. - char **p;
  37358. - int i;
  37359. -{
  37360. - return p[i];
  37361. -}
  37362. -static char *f (char * (*g) (char **, int), char **p, ...)
  37363. -{
  37364. - char *s;
  37365. - va_list v;
  37366. - va_start (v,p);
  37367. - s = g (p, va_arg (v,int));
  37368. - va_end (v);
  37369. - return s;
  37370. -}
  37371. -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  37372. - function prototypes and stuff, but not '\xHH' hex character constants.
  37373. - These don't provoke an error unfortunately, instead are silently treated
  37374. - as 'x'. The following induces an error, until -std is added to get
  37375. - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  37376. - array size at least. It's necessary to write '\x00'==0 to get something
  37377. - that's true only with -std. */
  37378. -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  37379. +_ACEOF
  37380. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37381. + $EGREP "uid_t" >/dev/null 2>&1; then :
  37382. + ac_cv_type_uid_t=yes
  37383. +else
  37384. + ac_cv_type_uid_t=no
  37385. +fi
  37386. +rm -f conftest*
  37387. +
  37388. +fi
  37389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  37390. +$as_echo "$ac_cv_type_uid_t" >&6; }
  37391. +if test $ac_cv_type_uid_t = no; then
  37392. +
  37393. +$as_echo "#define uid_t int" >>confdefs.h
  37394. +
  37395. +
  37396. +$as_echo "#define gid_t int" >>confdefs.h
  37397. +
  37398. +fi
  37399. +
  37400. +
  37401. +# Checks for library functions.
  37402. +for ac_header in stdlib.h
  37403. +do :
  37404. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  37405. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  37406. + cat >>confdefs.h <<_ACEOF
  37407. +#define HAVE_STDLIB_H 1
  37408. +_ACEOF
  37409. -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  37410. - inside strings and character constants. */
  37411. -#define FOO(x) 'x'
  37412. -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  37413. +fi
  37414. +
  37415. +done
  37416. +
  37417. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  37418. +$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  37419. +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  37420. + $as_echo_n "(cached) " >&6
  37421. +else
  37422. + if test "$cross_compiling" = yes; then :
  37423. + ac_cv_func_malloc_0_nonnull=no
  37424. +else
  37425. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37426. +/* end confdefs.h. */
  37427. +#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  37428. +# include <stdlib.h>
  37429. +#else
  37430. +char *malloc ();
  37431. +#endif
  37432. -int test (int i, double x);
  37433. -struct s1 {int (*f) (int a);};
  37434. -struct s2 {int (*f) (double a);};
  37435. -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  37436. -int argc;
  37437. -char **argv;
  37438. int
  37439. main ()
  37440. {
  37441. -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  37442. +return ! malloc (0);
  37443. ;
  37444. return 0;
  37445. }
  37446. _ACEOF
  37447. -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  37448. - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  37449. -do
  37450. - CC="$ac_save_CC $ac_arg"
  37451. - rm -f conftest.$ac_objext
  37452. -if { (ac_try="$ac_compile"
  37453. -case "(($ac_try" in
  37454. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37455. - *) ac_try_echo=$ac_try;;
  37456. -esac
  37457. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37458. -$as_echo "$ac_try_echo") >&5
  37459. - (eval "$ac_compile") 2>conftest.er1
  37460. - ac_status=$?
  37461. - grep -v '^ *+' conftest.er1 >conftest.err
  37462. - rm -f conftest.er1
  37463. - cat conftest.err >&5
  37464. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37465. - (exit $ac_status); } && {
  37466. - test -z "$ac_c_werror_flag" ||
  37467. - test ! -s conftest.err
  37468. - } && test -s conftest.$ac_objext; then
  37469. - ac_cv_prog_cc_c89=$ac_arg
  37470. +if ac_fn_c_try_run "$LINENO"; then :
  37471. + ac_cv_func_malloc_0_nonnull=yes
  37472. else
  37473. - $as_echo "$as_me: failed program was:" >&5
  37474. -sed 's/^/| /' conftest.$ac_ext >&5
  37475. -
  37476. + ac_cv_func_malloc_0_nonnull=no
  37477. +fi
  37478. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  37479. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  37480. +fi
  37481. fi
  37482. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  37483. +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  37484. +if test $ac_cv_func_malloc_0_nonnull = yes; then :
  37485. -rm -f core conftest.err conftest.$ac_objext
  37486. - test "x$ac_cv_prog_cc_c89" != "xno" && break
  37487. -done
  37488. -rm -f conftest.$ac_ext
  37489. -CC=$ac_save_CC
  37490. +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  37491. -fi
  37492. -# AC_CACHE_VAL
  37493. -case "x$ac_cv_prog_cc_c89" in
  37494. - x)
  37495. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  37496. -$as_echo "none needed" >&6; } ;;
  37497. - xno)
  37498. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  37499. -$as_echo "unsupported" >&6; } ;;
  37500. - *)
  37501. - CC="$CC $ac_cv_prog_cc_c89"
  37502. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  37503. -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  37504. +else
  37505. + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  37506. +
  37507. + case " $LIBOBJS " in
  37508. + *" malloc.$ac_objext "* ) ;;
  37509. + *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  37510. + ;;
  37511. esac
  37512. -ac_ext=c
  37513. -ac_cpp='$CPP $CPPFLAGS'
  37514. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37515. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37516. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37517. +$as_echo "#define malloc rpl_malloc" >>confdefs.h
  37518. -depcc="$CC" am_compiler_list=
  37519. +fi
  37520. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  37521. -$as_echo_n "checking dependency style of $depcc... " >&6; }
  37522. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  37523. +
  37524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  37525. +$as_echo_n "checking for working memcmp... " >&6; }
  37526. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  37527. $as_echo_n "(cached) " >&6
  37528. else
  37529. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  37530. - # We make a subdir and do the tests there. Otherwise we can end up
  37531. - # making bogus files that we don't know about and never remove. For
  37532. - # instance it was reported that on HP-UX the gcc test will end up
  37533. - # making a dummy file named `D' -- because `-MD' means `put the output
  37534. - # in D'.
  37535. - mkdir conftest.dir
  37536. - # Copy depcomp to subdir because otherwise we won't find it if we're
  37537. - # using a relative directory.
  37538. - cp "$am_depcomp" conftest.dir
  37539. - cd conftest.dir
  37540. - # We will build objects and dependencies in a subdirectory because
  37541. - # it helps to detect inapplicable dependency modes. For instance
  37542. - # both Tru64's cc and ICC support -MD to output dependencies as a
  37543. - # side effect of compilation, but ICC will put the dependencies in
  37544. - # the current directory while Tru64 will put them in the object
  37545. - # directory.
  37546. - mkdir sub
  37547. -
  37548. - am_cv_CC_dependencies_compiler_type=none
  37549. - if test "$am_compiler_list" = ""; then
  37550. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  37551. - fi
  37552. - am__universal=false
  37553. - case " $depcc " in #(
  37554. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  37555. - esac
  37556. + if test "$cross_compiling" = yes; then :
  37557. + ac_cv_func_memcmp_working=no
  37558. +else
  37559. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37560. +/* end confdefs.h. */
  37561. +$ac_includes_default
  37562. +int
  37563. +main ()
  37564. +{
  37565. - for depmode in $am_compiler_list; do
  37566. - # Setup a source with many dependencies, because some compilers
  37567. - # like to wrap large dependency lists on column 80 (with \), and
  37568. - # we should not choose a depcomp mode which is confused by this.
  37569. - #
  37570. - # We need to recreate these files for each test, as the compiler may
  37571. - # overwrite some of them when testing with obscure command lines.
  37572. - # This happens at least with the AIX C compiler.
  37573. - : > sub/conftest.c
  37574. - for i in 1 2 3 4 5 6; do
  37575. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  37576. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  37577. - # Solaris 8's {/usr,}/bin/sh.
  37578. - touch sub/conftst$i.h
  37579. - done
  37580. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  37581. + /* Some versions of memcmp are not 8-bit clean. */
  37582. + char c0 = '\100', c1 = '\200', c2 = '\201';
  37583. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  37584. + return 1;
  37585. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  37586. - # mode. It turns out that the SunPro C++ compiler does not properly
  37587. - # handle `-M -o', and we need to detect this. Also, some Intel
  37588. - # versions had trouble with output in subdirs
  37589. - am__obj=sub/conftest.${OBJEXT-o}
  37590. - am__minus_obj="-o $am__obj"
  37591. - case $depmode in
  37592. - gcc)
  37593. - # This depmode causes a compiler race in universal mode.
  37594. - test "$am__universal" = false || continue
  37595. - ;;
  37596. - nosideeffect)
  37597. - # after this tag, mechanisms are not by side-effect, so they'll
  37598. - # only be used when explicitly requested
  37599. - if test "x$enable_dependency_tracking" = xyes; then
  37600. - continue
  37601. - else
  37602. - break
  37603. - fi
  37604. - ;;
  37605. - msvisualcpp | msvcmsys)
  37606. - # This compiler won't grok `-c -o', but also, the minuso test has
  37607. - # not run yet. These depmodes are late enough in the game, and
  37608. - # so weak that their functioning should not be impacted.
  37609. - am__obj=conftest.${OBJEXT-o}
  37610. - am__minus_obj=
  37611. - ;;
  37612. - none) break ;;
  37613. - esac
  37614. - if depmode=$depmode \
  37615. - source=sub/conftest.c object=$am__obj \
  37616. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  37617. - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  37618. - >/dev/null 2>conftest.err &&
  37619. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  37620. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  37621. - grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  37622. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  37623. - # icc doesn't choke on unknown options, it will just issue warnings
  37624. - # or remarks (even with -Werror). So we grep stderr for any message
  37625. - # that says an option was ignored or not supported.
  37626. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  37627. - # icc: Command line warning: ignoring option '-M'; no argument required
  37628. - # The diagnosis changed in icc 8.0:
  37629. - # icc: Command line remark: option '-MP' not supported
  37630. - if (grep 'ignoring option' conftest.err ||
  37631. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  37632. - am_cv_CC_dependencies_compiler_type=$depmode
  37633. - break
  37634. - fi
  37635. - fi
  37636. - done
  37637. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  37638. + or more and with at least one buffer not starting on a 4-byte boundary.
  37639. + William Lewis provided this test program. */
  37640. + {
  37641. + char foo[21];
  37642. + char bar[21];
  37643. + int i;
  37644. + for (i = 0; i < 4; i++)
  37645. + {
  37646. + char *a = foo + i;
  37647. + char *b = bar + i;
  37648. + strcpy (a, "--------01111111");
  37649. + strcpy (b, "--------10000000");
  37650. + if (memcmp (a, b, 16) >= 0)
  37651. + return 1;
  37652. + }
  37653. + return 0;
  37654. + }
  37655. - cd ..
  37656. - rm -rf conftest.dir
  37657. + ;
  37658. + return 0;
  37659. +}
  37660. +_ACEOF
  37661. +if ac_fn_c_try_run "$LINENO"; then :
  37662. + ac_cv_func_memcmp_working=yes
  37663. else
  37664. - am_cv_CC_dependencies_compiler_type=none
  37665. + ac_cv_func_memcmp_working=no
  37666. fi
  37667. -
  37668. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  37669. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  37670. fi
  37671. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  37672. -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  37673. -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  37674. - if
  37675. - test "x$enable_dependency_tracking" != xno \
  37676. - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  37677. - am__fastdepCC_TRUE=
  37678. - am__fastdepCC_FALSE='#'
  37679. -else
  37680. - am__fastdepCC_TRUE='#'
  37681. - am__fastdepCC_FALSE=
  37682. fi
  37683. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  37684. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  37685. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  37686. + *" memcmp.$ac_objext "* ) ;;
  37687. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  37688. + ;;
  37689. +esac
  37690. -if test -n "$ac_tool_prefix"; then
  37691. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  37692. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  37693. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  37694. -$as_echo_n "checking for $ac_word... " >&6; }
  37695. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  37696. - $as_echo_n "(cached) " >&6
  37697. -else
  37698. - if test -n "$RANLIB"; then
  37699. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  37700. -else
  37701. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37702. -for as_dir in $PATH
  37703. -do
  37704. - IFS=$as_save_IFS
  37705. - test -z "$as_dir" && as_dir=.
  37706. - for ac_exec_ext in '' $ac_executable_extensions; do
  37707. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37708. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  37709. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37710. - break 2
  37711. - fi
  37712. -done
  37713. -done
  37714. -IFS=$as_save_IFS
  37715. +for ac_header in stdlib.h
  37716. +do :
  37717. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  37718. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  37719. + cat >>confdefs.h <<_ACEOF
  37720. +#define HAVE_STDLIB_H 1
  37721. +_ACEOF
  37722. fi
  37723. -fi
  37724. -RANLIB=$ac_cv_prog_RANLIB
  37725. -if test -n "$RANLIB"; then
  37726. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  37727. -$as_echo "$RANLIB" >&6; }
  37728. -else
  37729. - { $as_echo "$as_me:$LINENO: result: no" >&5
  37730. -$as_echo "no" >&6; }
  37731. -fi
  37732. +done
  37733. -fi
  37734. -if test -z "$ac_cv_prog_RANLIB"; then
  37735. - ac_ct_RANLIB=$RANLIB
  37736. - # Extract the first word of "ranlib", so it can be a program name with args.
  37737. -set dummy ranlib; ac_word=$2
  37738. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  37739. -$as_echo_n "checking for $ac_word... " >&6; }
  37740. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  37741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  37742. +$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  37743. +if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
  37744. $as_echo_n "(cached) " >&6
  37745. else
  37746. - if test -n "$ac_ct_RANLIB"; then
  37747. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  37748. + if test "$cross_compiling" = yes; then :
  37749. + ac_cv_func_realloc_0_nonnull=no
  37750. else
  37751. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37752. -for as_dir in $PATH
  37753. -do
  37754. - IFS=$as_save_IFS
  37755. - test -z "$as_dir" && as_dir=.
  37756. - for ac_exec_ext in '' $ac_executable_extensions; do
  37757. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37758. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  37759. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37760. - break 2
  37761. - fi
  37762. -done
  37763. -done
  37764. -IFS=$as_save_IFS
  37765. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37766. +/* end confdefs.h. */
  37767. +#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  37768. +# include <stdlib.h>
  37769. +#else
  37770. +char *realloc ();
  37771. +#endif
  37772. -fi
  37773. -fi
  37774. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  37775. -if test -n "$ac_ct_RANLIB"; then
  37776. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  37777. -$as_echo "$ac_ct_RANLIB" >&6; }
  37778. +int
  37779. +main ()
  37780. +{
  37781. +return ! realloc (0, 0);
  37782. + ;
  37783. + return 0;
  37784. +}
  37785. +_ACEOF
  37786. +if ac_fn_c_try_run "$LINENO"; then :
  37787. + ac_cv_func_realloc_0_nonnull=yes
  37788. else
  37789. - { $as_echo "$as_me:$LINENO: result: no" >&5
  37790. -$as_echo "no" >&6; }
  37791. + ac_cv_func_realloc_0_nonnull=no
  37792. fi
  37793. -
  37794. - if test "x$ac_ct_RANLIB" = x; then
  37795. - RANLIB=":"
  37796. - else
  37797. - case $cross_compiling:$ac_tool_warned in
  37798. -yes:)
  37799. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  37800. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  37801. -ac_tool_warned=yes ;;
  37802. -esac
  37803. - RANLIB=$ac_ct_RANLIB
  37804. - fi
  37805. -else
  37806. - RANLIB="$ac_cv_prog_RANLIB"
  37807. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  37808. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  37809. fi
  37810. +fi
  37811. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  37812. +$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  37813. +if test $ac_cv_func_realloc_0_nonnull = yes; then :
  37814. -# Checks for libraries.
  37815. -
  37816. +$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  37817. -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  37818. - if test -n "$ac_tool_prefix"; then
  37819. - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  37820. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  37821. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  37822. -$as_echo_n "checking for $ac_word... " >&6; }
  37823. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  37824. - $as_echo_n "(cached) " >&6
  37825. else
  37826. - case $PKG_CONFIG in
  37827. - [\\/]* | ?:[\\/]*)
  37828. - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  37829. - ;;
  37830. - *)
  37831. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37832. -for as_dir in $PATH
  37833. -do
  37834. - IFS=$as_save_IFS
  37835. - test -z "$as_dir" && as_dir=.
  37836. - for ac_exec_ext in '' $ac_executable_extensions; do
  37837. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37838. - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  37839. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37840. - break 2
  37841. - fi
  37842. -done
  37843. -done
  37844. -IFS=$as_save_IFS
  37845. + $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  37846. - ;;
  37847. + case " $LIBOBJS " in
  37848. + *" realloc.$ac_objext "* ) ;;
  37849. + *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  37850. + ;;
  37851. esac
  37852. -fi
  37853. -PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  37854. -if test -n "$PKG_CONFIG"; then
  37855. - { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  37856. -$as_echo "$PKG_CONFIG" >&6; }
  37857. -else
  37858. - { $as_echo "$as_me:$LINENO: result: no" >&5
  37859. -$as_echo "no" >&6; }
  37860. +
  37861. +
  37862. +$as_echo "#define realloc rpl_realloc" >>confdefs.h
  37863. +
  37864. fi
  37865. +for ac_func in memset strerror
  37866. +do :
  37867. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37868. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  37869. +eval as_val=\$$as_ac_var
  37870. + if test "x$as_val" = x""yes; then :
  37871. + cat >>confdefs.h <<_ACEOF
  37872. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  37873. +_ACEOF
  37874. +
  37875. fi
  37876. -if test -z "$ac_cv_path_PKG_CONFIG"; then
  37877. - ac_pt_PKG_CONFIG=$PKG_CONFIG
  37878. - # Extract the first word of "pkg-config", so it can be a program name with args.
  37879. -set dummy pkg-config; ac_word=$2
  37880. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  37881. -$as_echo_n "checking for $ac_word... " >&6; }
  37882. -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  37883. - $as_echo_n "(cached) " >&6
  37884. -else
  37885. - case $ac_pt_PKG_CONFIG in
  37886. - [\\/]* | ?:[\\/]*)
  37887. - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  37888. - ;;
  37889. - *)
  37890. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37891. -for as_dir in $PATH
  37892. -do
  37893. - IFS=$as_save_IFS
  37894. - test -z "$as_dir" && as_dir=.
  37895. - for ac_exec_ext in '' $ac_executable_extensions; do
  37896. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37897. - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  37898. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37899. - break 2
  37900. - fi
  37901. done
  37902. -done
  37903. -IFS=$as_save_IFS
  37904. - ;;
  37905. -esac
  37906. -fi
  37907. -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  37908. -if test -n "$ac_pt_PKG_CONFIG"; then
  37909. - { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  37910. -$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  37911. -else
  37912. - { $as_echo "$as_me:$LINENO: result: no" >&5
  37913. -$as_echo "no" >&6; }
  37914. +
  37915. +ac_config_files="$ac_config_files Makefile src/Makefile"
  37916. +
  37917. +
  37918. +ac_config_files="$ac_config_files librpcsecgss.pc"
  37919. +
  37920. +cat >confcache <<\_ACEOF
  37921. +# This file is a shell script that caches the results of configure
  37922. +# tests run on this system so they can be shared between configure
  37923. +# scripts and configure runs, see configure's option --config-cache.
  37924. +# It is not useful on other systems. If it contains results you don't
  37925. +# want to keep, you may remove or edit it.
  37926. +#
  37927. +# config.status only pays attention to the cache file if you give it
  37928. +# the --recheck option to rerun configure.
  37929. +#
  37930. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  37931. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  37932. +# following values.
  37933. +
  37934. +_ACEOF
  37935. +
  37936. +# The following way of writing the cache mishandles newlines in values,
  37937. +# but we know of no workaround that is simple, portable, and efficient.
  37938. +# So, we kill variables containing newlines.
  37939. +# Ultrix sh set writes to stderr and can't be redirected directly,
  37940. +# and sets the high bit in the cache file unless we assign to the vars.
  37941. +(
  37942. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  37943. + eval ac_val=\$$ac_var
  37944. + case $ac_val in #(
  37945. + *${as_nl}*)
  37946. + case $ac_var in #(
  37947. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  37948. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  37949. + esac
  37950. + case $ac_var in #(
  37951. + _ | IFS | as_nl) ;; #(
  37952. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  37953. + *) { eval $ac_var=; unset $ac_var;} ;;
  37954. + esac ;;
  37955. + esac
  37956. + done
  37957. +
  37958. + (set) 2>&1 |
  37959. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  37960. + *${as_nl}ac_space=\ *)
  37961. + # `set' does not quote correctly, so add quotes: double-quote
  37962. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  37963. + sed -n \
  37964. + "s/'/'\\\\''/g;
  37965. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  37966. + ;; #(
  37967. + *)
  37968. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  37969. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  37970. + ;;
  37971. + esac |
  37972. + sort
  37973. +) |
  37974. + sed '
  37975. + /^ac_cv_env_/b end
  37976. + t clear
  37977. + :clear
  37978. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  37979. + t end
  37980. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  37981. + :end' >>confcache
  37982. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  37983. + if test -w "$cache_file"; then
  37984. + test "x$cache_file" != "x/dev/null" &&
  37985. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  37986. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  37987. + cat confcache >$cache_file
  37988. + else
  37989. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  37990. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  37991. + fi
  37992. fi
  37993. +rm -f confcache
  37994. +
  37995. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  37996. +# Let make expand exec_prefix.
  37997. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  37998. +
  37999. +# Transform confdefs.h into DEFS.
  38000. +# Protect against shell expansion while executing Makefile rules.
  38001. +# Protect against Makefile macro expansion.
  38002. +#
  38003. +# If the first sed substitution is executed (which looks for macros that
  38004. +# take arguments), then branch to the quote section. Otherwise,
  38005. +# look for a macro that doesn't take arguments.
  38006. +ac_script='
  38007. +:mline
  38008. +/\\$/{
  38009. + N
  38010. + s,\\\n,,
  38011. + b mline
  38012. +}
  38013. +t clear
  38014. +:clear
  38015. +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  38016. +t quote
  38017. +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  38018. +t quote
  38019. +b any
  38020. +:quote
  38021. +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  38022. +s/\[/\\&/g
  38023. +s/\]/\\&/g
  38024. +s/\$/$$/g
  38025. +H
  38026. +:any
  38027. +${
  38028. + g
  38029. + s/^\n//
  38030. + s/\n/ /g
  38031. + p
  38032. +}
  38033. +'
  38034. +DEFS=`sed -n "$ac_script" confdefs.h`
  38035. - if test "x$ac_pt_PKG_CONFIG" = x; then
  38036. - PKG_CONFIG=""
  38037. - else
  38038. - case $cross_compiling:$ac_tool_warned in
  38039. -yes:)
  38040. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  38041. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  38042. -ac_tool_warned=yes ;;
  38043. -esac
  38044. - PKG_CONFIG=$ac_pt_PKG_CONFIG
  38045. - fi
  38046. -else
  38047. - PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  38048. -fi
  38049. -fi
  38050. -if test -n "$PKG_CONFIG"; then
  38051. - _pkg_min_version=0.9.0
  38052. - { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  38053. -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  38054. - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  38055. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  38056. -$as_echo "yes" >&6; }
  38057. - else
  38058. - { $as_echo "$as_me:$LINENO: result: no" >&5
  38059. -$as_echo "no" >&6; }
  38060. - PKG_CONFIG=""
  38061. - fi
  38062. +ac_libobjs=
  38063. +ac_ltlibobjs=
  38064. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  38065. + # 1. Remove the extension, and $U if already installed.
  38066. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  38067. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  38068. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  38069. + # will be set to the directory where LIBOBJS objects are built.
  38070. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  38071. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  38072. +done
  38073. +LIBOBJS=$ac_libobjs
  38074. -fi
  38075. +LTLIBOBJS=$ac_ltlibobjs
  38076. -pkg_failed=no
  38077. -{ $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
  38078. -$as_echo_n "checking for GSSGLUE... " >&6; }
  38079. -if test -n "$GSSGLUE_CFLAGS"; then
  38080. - pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
  38081. - elif test -n "$PKG_CONFIG"; then
  38082. - if test -n "$PKG_CONFIG" && \
  38083. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
  38084. - ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
  38085. - ac_status=$?
  38086. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38087. - (exit $ac_status); }; then
  38088. - pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
  38089. + if test -n "$EXEEXT"; then
  38090. + am__EXEEXT_TRUE=
  38091. + am__EXEEXT_FALSE='#'
  38092. else
  38093. - pkg_failed=yes
  38094. + am__EXEEXT_TRUE='#'
  38095. + am__EXEEXT_FALSE=
  38096. fi
  38097. - else
  38098. - pkg_failed=untried
  38099. +
  38100. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  38101. + as_fn_error "conditional \"AMDEP\" was never defined.
  38102. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38103. fi
  38104. -if test -n "$GSSGLUE_LIBS"; then
  38105. - pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
  38106. - elif test -n "$PKG_CONFIG"; then
  38107. - if test -n "$PKG_CONFIG" && \
  38108. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
  38109. - ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
  38110. - ac_status=$?
  38111. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38112. - (exit $ac_status); }; then
  38113. - pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
  38114. -else
  38115. - pkg_failed=yes
  38116. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  38117. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  38118. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38119. fi
  38120. - else
  38121. - pkg_failed=untried
  38122. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  38123. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  38124. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38125. fi
  38126. +: ${CONFIG_STATUS=./config.status}
  38127. +ac_write_fail=0
  38128. +ac_clean_files_save=$ac_clean_files
  38129. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  38130. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  38131. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  38132. +as_write_fail=0
  38133. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  38134. +#! $SHELL
  38135. +# Generated by $as_me.
  38136. +# Run this file to recreate the current configuration.
  38137. +# Compiler output produced by configure, useful for debugging
  38138. +# configure, is in config.log if it exists.
  38139. +debug=false
  38140. +ac_cs_recheck=false
  38141. +ac_cs_silent=false
  38142. -if test $pkg_failed = yes; then
  38143. -
  38144. -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  38145. - _pkg_short_errors_supported=yes
  38146. -else
  38147. - _pkg_short_errors_supported=no
  38148. -fi
  38149. - if test $_pkg_short_errors_supported = yes; then
  38150. - GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
  38151. - else
  38152. - GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
  38153. - fi
  38154. - # Put the nasty error message in config.log where it belongs
  38155. - echo "$GSSGLUE_PKG_ERRORS" >&5
  38156. -
  38157. - { $as_echo "$as_me:$LINENO: result: no" >&5
  38158. -$as_echo "no" >&6; }
  38159. - { { $as_echo "$as_me:$LINENO: error: Unable to locate information required to use libgssglue.
  38160. - If you have pkgconfig installed, you might try setting environment
  38161. - variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
  38162. -$as_echo "$as_me: error: Unable to locate information required to use libgssglue.
  38163. - If you have pkgconfig installed, you might try setting environment
  38164. - variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
  38165. - { (exit 1); exit 1; }; }
  38166. -elif test $pkg_failed = untried; then
  38167. - { { $as_echo "$as_me:$LINENO: error: Unable to locate information required to use libgssglue.
  38168. - If you have pkgconfig installed, you might try setting environment
  38169. - variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
  38170. -$as_echo "$as_me: error: Unable to locate information required to use libgssglue.
  38171. - If you have pkgconfig installed, you might try setting environment
  38172. - variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
  38173. - { (exit 1); exit 1; }; }
  38174. -else
  38175. - GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
  38176. - GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
  38177. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  38178. -$as_echo "yes" >&6; }
  38179. - :
  38180. -fi
  38181. +SHELL=\${CONFIG_SHELL-$SHELL}
  38182. +export SHELL
  38183. +_ASEOF
  38184. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  38185. +## -------------------- ##
  38186. +## M4sh Initialization. ##
  38187. +## -------------------- ##
  38188. -# Checks for header files.
  38189. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  38190. -$as_echo_n "checking for ANSI C header files... " >&6; }
  38191. -if test "${ac_cv_header_stdc+set}" = set; then
  38192. - $as_echo_n "(cached) " >&6
  38193. +# Be more Bourne compatible
  38194. +DUALCASE=1; export DUALCASE # for MKS sh
  38195. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  38196. + emulate sh
  38197. + NULLCMD=:
  38198. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  38199. + # is contrary to our usage. Disable this feature.
  38200. + alias -g '${1+"$@"}'='"$@"'
  38201. + setopt NO_GLOB_SUBST
  38202. else
  38203. - cat >conftest.$ac_ext <<_ACEOF
  38204. -/* confdefs.h. */
  38205. -_ACEOF
  38206. -cat confdefs.h >>conftest.$ac_ext
  38207. -cat >>conftest.$ac_ext <<_ACEOF
  38208. -/* end confdefs.h. */
  38209. -#include <stdlib.h>
  38210. -#include <stdarg.h>
  38211. -#include <string.h>
  38212. -#include <float.h>
  38213. -
  38214. -int
  38215. -main ()
  38216. -{
  38217. -
  38218. - ;
  38219. - return 0;
  38220. -}
  38221. -_ACEOF
  38222. -rm -f conftest.$ac_objext
  38223. -if { (ac_try="$ac_compile"
  38224. -case "(($ac_try" in
  38225. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38226. - *) ac_try_echo=$ac_try;;
  38227. + case `(set -o) 2>/dev/null` in #(
  38228. + *posix*) :
  38229. + set -o posix ;; #(
  38230. + *) :
  38231. + ;;
  38232. esac
  38233. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38234. -$as_echo "$ac_try_echo") >&5
  38235. - (eval "$ac_compile") 2>conftest.er1
  38236. - ac_status=$?
  38237. - grep -v '^ *+' conftest.er1 >conftest.err
  38238. - rm -f conftest.er1
  38239. - cat conftest.err >&5
  38240. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38241. - (exit $ac_status); } && {
  38242. - test -z "$ac_c_werror_flag" ||
  38243. - test ! -s conftest.err
  38244. - } && test -s conftest.$ac_objext; then
  38245. - ac_cv_header_stdc=yes
  38246. -else
  38247. - $as_echo "$as_me: failed program was:" >&5
  38248. -sed 's/^/| /' conftest.$ac_ext >&5
  38249. -
  38250. - ac_cv_header_stdc=no
  38251. -fi
  38252. -
  38253. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38254. -
  38255. -if test $ac_cv_header_stdc = yes; then
  38256. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  38257. - cat >conftest.$ac_ext <<_ACEOF
  38258. -/* confdefs.h. */
  38259. -_ACEOF
  38260. -cat confdefs.h >>conftest.$ac_ext
  38261. -cat >>conftest.$ac_ext <<_ACEOF
  38262. -/* end confdefs.h. */
  38263. -#include <string.h>
  38264. -
  38265. -_ACEOF
  38266. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38267. - $EGREP "memchr" >/dev/null 2>&1; then
  38268. - :
  38269. -else
  38270. - ac_cv_header_stdc=no
  38271. -fi
  38272. -rm -f conftest*
  38273. -
  38274. fi
  38275. -if test $ac_cv_header_stdc = yes; then
  38276. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  38277. - cat >conftest.$ac_ext <<_ACEOF
  38278. -/* confdefs.h. */
  38279. -_ACEOF
  38280. -cat confdefs.h >>conftest.$ac_ext
  38281. -cat >>conftest.$ac_ext <<_ACEOF
  38282. -/* end confdefs.h. */
  38283. -#include <stdlib.h>
  38284. -_ACEOF
  38285. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38286. - $EGREP "free" >/dev/null 2>&1; then
  38287. - :
  38288. +as_nl='
  38289. +'
  38290. +export as_nl
  38291. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  38292. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38293. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  38294. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38295. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  38296. +# but without wasting forks for bash or zsh.
  38297. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  38298. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  38299. + as_echo='print -r --'
  38300. + as_echo_n='print -rn --'
  38301. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  38302. + as_echo='printf %s\n'
  38303. + as_echo_n='printf %s'
  38304. else
  38305. - ac_cv_header_stdc=no
  38306. -fi
  38307. -rm -f conftest*
  38308. -
  38309. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  38310. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  38311. + as_echo_n='/usr/ucb/echo -n'
  38312. + else
  38313. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  38314. + as_echo_n_body='eval
  38315. + arg=$1;
  38316. + case $arg in #(
  38317. + *"$as_nl"*)
  38318. + expr "X$arg" : "X\\(.*\\)$as_nl";
  38319. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  38320. + esac;
  38321. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  38322. + '
  38323. + export as_echo_n_body
  38324. + as_echo_n='sh -c $as_echo_n_body as_echo'
  38325. + fi
  38326. + export as_echo_body
  38327. + as_echo='sh -c $as_echo_body as_echo'
  38328. fi
  38329. -if test $ac_cv_header_stdc = yes; then
  38330. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  38331. - if test "$cross_compiling" = yes; then
  38332. - :
  38333. -else
  38334. - cat >conftest.$ac_ext <<_ACEOF
  38335. -/* confdefs.h. */
  38336. -_ACEOF
  38337. -cat confdefs.h >>conftest.$ac_ext
  38338. -cat >>conftest.$ac_ext <<_ACEOF
  38339. -/* end confdefs.h. */
  38340. -#include <ctype.h>
  38341. -#include <stdlib.h>
  38342. -#if ((' ' & 0x0FF) == 0x020)
  38343. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  38344. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  38345. -#else
  38346. -# define ISLOWER(c) \
  38347. - (('a' <= (c) && (c) <= 'i') \
  38348. - || ('j' <= (c) && (c) <= 'r') \
  38349. - || ('s' <= (c) && (c) <= 'z'))
  38350. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  38351. -#endif
  38352. -
  38353. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  38354. -int
  38355. -main ()
  38356. -{
  38357. - int i;
  38358. - for (i = 0; i < 256; i++)
  38359. - if (XOR (islower (i), ISLOWER (i))
  38360. - || toupper (i) != TOUPPER (i))
  38361. - return 2;
  38362. - return 0;
  38363. -}
  38364. -_ACEOF
  38365. -rm -f conftest$ac_exeext
  38366. -if { (ac_try="$ac_link"
  38367. -case "(($ac_try" in
  38368. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38369. - *) ac_try_echo=$ac_try;;
  38370. -esac
  38371. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38372. -$as_echo "$ac_try_echo") >&5
  38373. - (eval "$ac_link") 2>&5
  38374. - ac_status=$?
  38375. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38376. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  38377. - { (case "(($ac_try" in
  38378. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38379. - *) ac_try_echo=$ac_try;;
  38380. -esac
  38381. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38382. -$as_echo "$ac_try_echo") >&5
  38383. - (eval "$ac_try") 2>&5
  38384. - ac_status=$?
  38385. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38386. - (exit $ac_status); }; }; then
  38387. - :
  38388. -else
  38389. - $as_echo "$as_me: program exited with status $ac_status" >&5
  38390. -$as_echo "$as_me: failed program was:" >&5
  38391. -sed 's/^/| /' conftest.$ac_ext >&5
  38392. -
  38393. -( exit $ac_status )
  38394. -ac_cv_header_stdc=no
  38395. -fi
  38396. -rm -rf conftest.dSYM
  38397. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  38398. +# The user is always right.
  38399. +if test "${PATH_SEPARATOR+set}" != set; then
  38400. + PATH_SEPARATOR=:
  38401. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  38402. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  38403. + PATH_SEPARATOR=';'
  38404. + }
  38405. fi
  38406. -fi
  38407. -fi
  38408. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  38409. -$as_echo "$ac_cv_header_stdc" >&6; }
  38410. -if test $ac_cv_header_stdc = yes; then
  38411. +# IFS
  38412. +# We need space, tab and new line, in precisely that order. Quoting is
  38413. +# there to prevent editors from complaining about space-tab.
  38414. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  38415. +# splitting by setting IFS to empty value.)
  38416. +IFS=" "" $as_nl"
  38417. -cat >>confdefs.h <<\_ACEOF
  38418. -#define STDC_HEADERS 1
  38419. -_ACEOF
  38420. +# Find who we are. Look in the path if we contain no directory separator.
  38421. +case $0 in #((
  38422. + *[\\/]* ) as_myself=$0 ;;
  38423. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38424. +for as_dir in $PATH
  38425. +do
  38426. + IFS=$as_save_IFS
  38427. + test -z "$as_dir" && as_dir=.
  38428. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  38429. + done
  38430. +IFS=$as_save_IFS
  38431. + ;;
  38432. +esac
  38433. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  38434. +# in which case we are not to be found in the path.
  38435. +if test "x$as_myself" = x; then
  38436. + as_myself=$0
  38437. +fi
  38438. +if test ! -f "$as_myself"; then
  38439. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  38440. + exit 1
  38441. fi
  38442. +# Unset variables that we do not need and which cause bugs (e.g. in
  38443. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  38444. +# suppresses any "Segmentation fault" message there. '((' could
  38445. +# trigger a bug in pdksh 5.2.14.
  38446. +for as_var in BASH_ENV ENV MAIL MAILPATH
  38447. +do eval test x\${$as_var+set} = xset \
  38448. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  38449. +done
  38450. +PS1='$ '
  38451. +PS2='> '
  38452. +PS4='+ '
  38453. +# NLS nuisances.
  38454. +LC_ALL=C
  38455. +export LC_ALL
  38456. +LANGUAGE=C
  38457. +export LANGUAGE
  38458. +# CDPATH.
  38459. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  38460. -for ac_header in stddef.h stdlib.h string.h unistd.h
  38461. -do
  38462. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38463. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38464. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  38465. -$as_echo_n "checking for $ac_header... " >&6; }
  38466. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38467. - $as_echo_n "(cached) " >&6
  38468. -fi
  38469. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  38470. - $as_echo "$as_val"'`
  38471. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38472. -$as_echo "$ac_res" >&6; }
  38473. -else
  38474. - # Is the header compilable?
  38475. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38476. -$as_echo_n "checking $ac_header usability... " >&6; }
  38477. -cat >conftest.$ac_ext <<_ACEOF
  38478. -/* confdefs.h. */
  38479. -_ACEOF
  38480. -cat confdefs.h >>conftest.$ac_ext
  38481. -cat >>conftest.$ac_ext <<_ACEOF
  38482. -/* end confdefs.h. */
  38483. -$ac_includes_default
  38484. -#include <$ac_header>
  38485. -_ACEOF
  38486. -rm -f conftest.$ac_objext
  38487. -if { (ac_try="$ac_compile"
  38488. -case "(($ac_try" in
  38489. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38490. - *) ac_try_echo=$ac_try;;
  38491. -esac
  38492. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38493. -$as_echo "$ac_try_echo") >&5
  38494. - (eval "$ac_compile") 2>conftest.er1
  38495. - ac_status=$?
  38496. - grep -v '^ *+' conftest.er1 >conftest.err
  38497. - rm -f conftest.er1
  38498. - cat conftest.err >&5
  38499. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38500. - (exit $ac_status); } && {
  38501. - test -z "$ac_c_werror_flag" ||
  38502. - test ! -s conftest.err
  38503. - } && test -s conftest.$ac_objext; then
  38504. - ac_header_compiler=yes
  38505. +# as_fn_error ERROR [LINENO LOG_FD]
  38506. +# ---------------------------------
  38507. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  38508. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  38509. +# script with status $?, using 1 if that was 0.
  38510. +as_fn_error ()
  38511. +{
  38512. + as_status=$?; test $as_status -eq 0 && as_status=1
  38513. + if test "$3"; then
  38514. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  38515. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  38516. + fi
  38517. + $as_echo "$as_me: error: $1" >&2
  38518. + as_fn_exit $as_status
  38519. +} # as_fn_error
  38520. +
  38521. +
  38522. +# as_fn_set_status STATUS
  38523. +# -----------------------
  38524. +# Set $? to STATUS, without forking.
  38525. +as_fn_set_status ()
  38526. +{
  38527. + return $1
  38528. +} # as_fn_set_status
  38529. +
  38530. +# as_fn_exit STATUS
  38531. +# -----------------
  38532. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  38533. +as_fn_exit ()
  38534. +{
  38535. + set +e
  38536. + as_fn_set_status $1
  38537. + exit $1
  38538. +} # as_fn_exit
  38539. +
  38540. +# as_fn_unset VAR
  38541. +# ---------------
  38542. +# Portably unset VAR.
  38543. +as_fn_unset ()
  38544. +{
  38545. + { eval $1=; unset $1;}
  38546. +}
  38547. +as_unset=as_fn_unset
  38548. +# as_fn_append VAR VALUE
  38549. +# ----------------------
  38550. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  38551. +# advantage of any shell optimizations that allow amortized linear growth over
  38552. +# repeated appends, instead of the typical quadratic growth present in naive
  38553. +# implementations.
  38554. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  38555. + eval 'as_fn_append ()
  38556. + {
  38557. + eval $1+=\$2
  38558. + }'
  38559. else
  38560. - $as_echo "$as_me: failed program was:" >&5
  38561. -sed 's/^/| /' conftest.$ac_ext >&5
  38562. + as_fn_append ()
  38563. + {
  38564. + eval $1=\$$1\$2
  38565. + }
  38566. +fi # as_fn_append
  38567. - ac_header_compiler=no
  38568. -fi
  38569. +# as_fn_arith ARG...
  38570. +# ------------------
  38571. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  38572. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  38573. +# must be portable across $(()) and expr.
  38574. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  38575. + eval 'as_fn_arith ()
  38576. + {
  38577. + as_val=$(( $* ))
  38578. + }'
  38579. +else
  38580. + as_fn_arith ()
  38581. + {
  38582. + as_val=`expr "$@" || test $? -eq 1`
  38583. + }
  38584. +fi # as_fn_arith
  38585. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38586. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38587. -$as_echo "$ac_header_compiler" >&6; }
  38588. -# Is the header present?
  38589. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38590. -$as_echo_n "checking $ac_header presence... " >&6; }
  38591. -cat >conftest.$ac_ext <<_ACEOF
  38592. -/* confdefs.h. */
  38593. -_ACEOF
  38594. -cat confdefs.h >>conftest.$ac_ext
  38595. -cat >>conftest.$ac_ext <<_ACEOF
  38596. -/* end confdefs.h. */
  38597. -#include <$ac_header>
  38598. -_ACEOF
  38599. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38600. -case "(($ac_try" in
  38601. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38602. - *) ac_try_echo=$ac_try;;
  38603. -esac
  38604. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38605. -$as_echo "$ac_try_echo") >&5
  38606. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38607. - ac_status=$?
  38608. - grep -v '^ *+' conftest.er1 >conftest.err
  38609. - rm -f conftest.er1
  38610. - cat conftest.err >&5
  38611. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38612. - (exit $ac_status); } >/dev/null && {
  38613. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38614. - test ! -s conftest.err
  38615. - }; then
  38616. - ac_header_preproc=yes
  38617. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  38618. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  38619. + as_expr=expr
  38620. else
  38621. - $as_echo "$as_me: failed program was:" >&5
  38622. -sed 's/^/| /' conftest.$ac_ext >&5
  38623. -
  38624. - ac_header_preproc=no
  38625. + as_expr=false
  38626. fi
  38627. -rm -f conftest.err conftest.$ac_ext
  38628. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38629. -$as_echo "$ac_header_preproc" >&6; }
  38630. -
  38631. -# So? What about this header?
  38632. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38633. - yes:no: )
  38634. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38635. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38636. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38637. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38638. - ac_header_preproc=yes
  38639. - ;;
  38640. - no:yes:* )
  38641. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38642. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38643. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38644. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38645. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38646. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38647. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38648. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38649. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38650. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38651. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38652. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  38653. - ( cat <<\_ASBOX
  38654. -## -------------------------------------- ##
  38655. -## Report this to nfsv4-wg@citi.umich.edu ##
  38656. -## -------------------------------------- ##
  38657. -_ASBOX
  38658. - ) | sed "s/^/$as_me: WARNING: /" >&2
  38659. - ;;
  38660. -esac
  38661. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  38662. -$as_echo_n "checking for $ac_header... " >&6; }
  38663. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38664. - $as_echo_n "(cached) " >&6
  38665. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  38666. + as_basename=basename
  38667. else
  38668. - eval "$as_ac_Header=\$ac_header_preproc"
  38669. + as_basename=false
  38670. fi
  38671. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  38672. - $as_echo "$as_val"'`
  38673. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38674. -$as_echo "$ac_res" >&6; }
  38675. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  38676. + as_dirname=dirname
  38677. +else
  38678. + as_dirname=false
  38679. fi
  38680. -as_val=`eval 'as_val=${'$as_ac_Header'}
  38681. - $as_echo "$as_val"'`
  38682. - if test "x$as_val" = x""yes; then
  38683. - cat >>confdefs.h <<_ACEOF
  38684. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38685. -_ACEOF
  38686. -fi
  38687. +as_me=`$as_basename -- "$0" ||
  38688. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  38689. + X"$0" : 'X\(//\)$' \| \
  38690. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  38691. +$as_echo X/"$0" |
  38692. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  38693. + s//\1/
  38694. + q
  38695. + }
  38696. + /^X\/\(\/\/\)$/{
  38697. + s//\1/
  38698. + q
  38699. + }
  38700. + /^X\/\(\/\).*/{
  38701. + s//\1/
  38702. + q
  38703. + }
  38704. + s/.*/./; q'`
  38705. -done
  38706. +# Avoid depending upon Character Ranges.
  38707. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  38708. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  38709. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  38710. +as_cr_digits='0123456789'
  38711. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  38712. +ECHO_C= ECHO_N= ECHO_T=
  38713. +case `echo -n x` in #(((((
  38714. +-n*)
  38715. + case `echo 'xy\c'` in
  38716. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  38717. + xy) ECHO_C='\c';;
  38718. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  38719. + ECHO_T=' ';;
  38720. + esac;;
  38721. +*)
  38722. + ECHO_N='-n';;
  38723. +esac
  38724. -# Checks for typedefs, structures, and compiler characteristics.
  38725. -{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  38726. -$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  38727. -if test "${ac_cv_c_const+set}" = set; then
  38728. - $as_echo_n "(cached) " >&6
  38729. +rm -f conf$$ conf$$.exe conf$$.file
  38730. +if test -d conf$$.dir; then
  38731. + rm -f conf$$.dir/conf$$.file
  38732. else
  38733. - cat >conftest.$ac_ext <<_ACEOF
  38734. -/* confdefs.h. */
  38735. -_ACEOF
  38736. -cat confdefs.h >>conftest.$ac_ext
  38737. -cat >>conftest.$ac_ext <<_ACEOF
  38738. -/* end confdefs.h. */
  38739. + rm -f conf$$.dir
  38740. + mkdir conf$$.dir 2>/dev/null
  38741. +fi
  38742. +if (echo >conf$$.file) 2>/dev/null; then
  38743. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  38744. + as_ln_s='ln -s'
  38745. + # ... but there are two gotchas:
  38746. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  38747. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  38748. + # In both cases, we have to default to `cp -p'.
  38749. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  38750. + as_ln_s='cp -p'
  38751. + elif ln conf$$.file conf$$ 2>/dev/null; then
  38752. + as_ln_s=ln
  38753. + else
  38754. + as_ln_s='cp -p'
  38755. + fi
  38756. +else
  38757. + as_ln_s='cp -p'
  38758. +fi
  38759. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  38760. +rmdir conf$$.dir 2>/dev/null
  38761. -int
  38762. -main ()
  38763. +
  38764. +# as_fn_mkdir_p
  38765. +# -------------
  38766. +# Create "$as_dir" as a directory, including parents if necessary.
  38767. +as_fn_mkdir_p ()
  38768. {
  38769. -/* FIXME: Include the comments suggested by Paul. */
  38770. -#ifndef __cplusplus
  38771. - /* Ultrix mips cc rejects this. */
  38772. - typedef int charset[2];
  38773. - const charset cs;
  38774. - /* SunOS 4.1.1 cc rejects this. */
  38775. - char const *const *pcpcc;
  38776. - char **ppc;
  38777. - /* NEC SVR4.0.2 mips cc rejects this. */
  38778. - struct point {int x, y;};
  38779. - static struct point const zero = {0,0};
  38780. - /* AIX XL C 1.02.0.0 rejects this.
  38781. - It does not let you subtract one const X* pointer from another in
  38782. - an arm of an if-expression whose if-part is not a constant
  38783. - expression */
  38784. - const char *g = "string";
  38785. - pcpcc = &g + (g ? g-g : 0);
  38786. - /* HPUX 7.0 cc rejects these. */
  38787. - ++pcpcc;
  38788. - ppc = (char**) pcpcc;
  38789. - pcpcc = (char const *const *) ppc;
  38790. - { /* SCO 3.2v4 cc rejects this. */
  38791. - char *t;
  38792. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  38793. - *t++ = 0;
  38794. - if (s) return 0;
  38795. - }
  38796. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  38797. - int x[] = {25, 17};
  38798. - const int *foo = &x[0];
  38799. - ++foo;
  38800. - }
  38801. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  38802. - typedef const int *iptr;
  38803. - iptr p = 0;
  38804. - ++p;
  38805. - }
  38806. - { /* AIX XL C 1.02.0.0 rejects this saying
  38807. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  38808. - struct s { int j; const int *ap[3]; };
  38809. - struct s *b; b->j = 5;
  38810. - }
  38811. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  38812. - const int foo = 10;
  38813. - if (!foo) return 0;
  38814. - }
  38815. - return !cs[0] && !zero.x;
  38816. -#endif
  38817. + case $as_dir in #(
  38818. + -*) as_dir=./$as_dir;;
  38819. + esac
  38820. + test -d "$as_dir" || eval $as_mkdir_p || {
  38821. + as_dirs=
  38822. + while :; do
  38823. + case $as_dir in #(
  38824. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  38825. + *) as_qdir=$as_dir;;
  38826. + esac
  38827. + as_dirs="'$as_qdir' $as_dirs"
  38828. + as_dir=`$as_dirname -- "$as_dir" ||
  38829. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38830. + X"$as_dir" : 'X\(//\)[^/]' \| \
  38831. + X"$as_dir" : 'X\(//\)$' \| \
  38832. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38833. +$as_echo X"$as_dir" |
  38834. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38835. + s//\1/
  38836. + q
  38837. + }
  38838. + /^X\(\/\/\)[^/].*/{
  38839. + s//\1/
  38840. + q
  38841. + }
  38842. + /^X\(\/\/\)$/{
  38843. + s//\1/
  38844. + q
  38845. + }
  38846. + /^X\(\/\).*/{
  38847. + s//\1/
  38848. + q
  38849. + }
  38850. + s/.*/./; q'`
  38851. + test -d "$as_dir" && break
  38852. + done
  38853. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  38854. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  38855. - ;
  38856. - return 0;
  38857. -}
  38858. -_ACEOF
  38859. -rm -f conftest.$ac_objext
  38860. -if { (ac_try="$ac_compile"
  38861. -case "(($ac_try" in
  38862. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38863. - *) ac_try_echo=$ac_try;;
  38864. -esac
  38865. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38866. -$as_echo "$ac_try_echo") >&5
  38867. - (eval "$ac_compile") 2>conftest.er1
  38868. - ac_status=$?
  38869. - grep -v '^ *+' conftest.er1 >conftest.err
  38870. - rm -f conftest.er1
  38871. - cat conftest.err >&5
  38872. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38873. - (exit $ac_status); } && {
  38874. - test -z "$ac_c_werror_flag" ||
  38875. - test ! -s conftest.err
  38876. - } && test -s conftest.$ac_objext; then
  38877. - ac_cv_c_const=yes
  38878. -else
  38879. - $as_echo "$as_me: failed program was:" >&5
  38880. -sed 's/^/| /' conftest.$ac_ext >&5
  38881. - ac_cv_c_const=no
  38882. +} # as_fn_mkdir_p
  38883. +if mkdir -p . 2>/dev/null; then
  38884. + as_mkdir_p='mkdir -p "$as_dir"'
  38885. +else
  38886. + test -d ./-p && rmdir ./-p
  38887. + as_mkdir_p=false
  38888. fi
  38889. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38890. +if test -x / >/dev/null 2>&1; then
  38891. + as_test_x='test -x'
  38892. +else
  38893. + if ls -dL / >/dev/null 2>&1; then
  38894. + as_ls_L_option=L
  38895. + else
  38896. + as_ls_L_option=
  38897. + fi
  38898. + as_test_x='
  38899. + eval sh -c '\''
  38900. + if test -d "$1"; then
  38901. + test -d "$1/.";
  38902. + else
  38903. + case $1 in #(
  38904. + -*)set "./$1";;
  38905. + esac;
  38906. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  38907. + ???[sx]*):;;*)false;;esac;fi
  38908. + '\'' sh
  38909. + '
  38910. fi
  38911. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  38912. -$as_echo "$ac_cv_c_const" >&6; }
  38913. -if test $ac_cv_c_const = no; then
  38914. -
  38915. -cat >>confdefs.h <<\_ACEOF
  38916. -#define const /**/
  38917. -_ACEOF
  38918. +as_executable_p=$as_test_x
  38919. -fi
  38920. +# Sed expression to map a string onto a valid CPP name.
  38921. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  38922. -{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
  38923. -$as_echo_n "checking for size_t... " >&6; }
  38924. -if test "${ac_cv_type_size_t+set}" = set; then
  38925. - $as_echo_n "(cached) " >&6
  38926. -else
  38927. - ac_cv_type_size_t=no
  38928. -cat >conftest.$ac_ext <<_ACEOF
  38929. -/* confdefs.h. */
  38930. -_ACEOF
  38931. -cat confdefs.h >>conftest.$ac_ext
  38932. -cat >>conftest.$ac_ext <<_ACEOF
  38933. -/* end confdefs.h. */
  38934. -$ac_includes_default
  38935. -int
  38936. -main ()
  38937. -{
  38938. -if (sizeof (size_t))
  38939. - return 0;
  38940. - ;
  38941. - return 0;
  38942. -}
  38943. -_ACEOF
  38944. -rm -f conftest.$ac_objext
  38945. -if { (ac_try="$ac_compile"
  38946. -case "(($ac_try" in
  38947. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38948. - *) ac_try_echo=$ac_try;;
  38949. -esac
  38950. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38951. -$as_echo "$ac_try_echo") >&5
  38952. - (eval "$ac_compile") 2>conftest.er1
  38953. - ac_status=$?
  38954. - grep -v '^ *+' conftest.er1 >conftest.err
  38955. - rm -f conftest.er1
  38956. - cat conftest.err >&5
  38957. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38958. - (exit $ac_status); } && {
  38959. - test -z "$ac_c_werror_flag" ||
  38960. - test ! -s conftest.err
  38961. - } && test -s conftest.$ac_objext; then
  38962. - cat >conftest.$ac_ext <<_ACEOF
  38963. -/* confdefs.h. */
  38964. -_ACEOF
  38965. -cat confdefs.h >>conftest.$ac_ext
  38966. -cat >>conftest.$ac_ext <<_ACEOF
  38967. -/* end confdefs.h. */
  38968. -$ac_includes_default
  38969. -int
  38970. -main ()
  38971. -{
  38972. -if (sizeof ((size_t)))
  38973. - return 0;
  38974. - ;
  38975. - return 0;
  38976. -}
  38977. -_ACEOF
  38978. -rm -f conftest.$ac_objext
  38979. -if { (ac_try="$ac_compile"
  38980. -case "(($ac_try" in
  38981. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38982. - *) ac_try_echo=$ac_try;;
  38983. -esac
  38984. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38985. -$as_echo "$ac_try_echo") >&5
  38986. - (eval "$ac_compile") 2>conftest.er1
  38987. - ac_status=$?
  38988. - grep -v '^ *+' conftest.er1 >conftest.err
  38989. - rm -f conftest.er1
  38990. - cat conftest.err >&5
  38991. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38992. - (exit $ac_status); } && {
  38993. - test -z "$ac_c_werror_flag" ||
  38994. - test ! -s conftest.err
  38995. - } && test -s conftest.$ac_objext; then
  38996. - :
  38997. -else
  38998. - $as_echo "$as_me: failed program was:" >&5
  38999. -sed 's/^/| /' conftest.$ac_ext >&5
  39000. +# Sed expression to map a string onto a valid variable name.
  39001. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  39002. - ac_cv_type_size_t=yes
  39003. -fi
  39004. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39005. -else
  39006. - $as_echo "$as_me: failed program was:" >&5
  39007. -sed 's/^/| /' conftest.$ac_ext >&5
  39008. +exec 6>&1
  39009. +## ----------------------------------- ##
  39010. +## Main body of $CONFIG_STATUS script. ##
  39011. +## ----------------------------------- ##
  39012. +_ASEOF
  39013. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  39014. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39015. +# Save the log message, to keep $0 and so on meaningful, and to
  39016. +# report actual input values of CONFIG_FILES etc. instead of their
  39017. +# values after options handling.
  39018. +ac_log="
  39019. +This file was extended by librpcsecgss $as_me 0.19, which was
  39020. +generated by GNU Autoconf 2.65. Invocation command line was
  39021. -fi
  39022. + CONFIG_FILES = $CONFIG_FILES
  39023. + CONFIG_HEADERS = $CONFIG_HEADERS
  39024. + CONFIG_LINKS = $CONFIG_LINKS
  39025. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  39026. + $ $0 $@
  39027. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39028. -fi
  39029. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  39030. -$as_echo "$ac_cv_type_size_t" >&6; }
  39031. -if test "x$ac_cv_type_size_t" = x""yes; then
  39032. - :
  39033. -else
  39034. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  39035. +"
  39036. -cat >>confdefs.h <<_ACEOF
  39037. -#define size_t unsigned int
  39038. _ACEOF
  39039. -fi
  39040. +case $ac_config_files in *"
  39041. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  39042. +esac
  39043. -{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  39044. -$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  39045. -if test "${ac_cv_type_uid_t+set}" = set; then
  39046. - $as_echo_n "(cached) " >&6
  39047. -else
  39048. - cat >conftest.$ac_ext <<_ACEOF
  39049. -/* confdefs.h. */
  39050. -_ACEOF
  39051. -cat confdefs.h >>conftest.$ac_ext
  39052. -cat >>conftest.$ac_ext <<_ACEOF
  39053. -/* end confdefs.h. */
  39054. -#include <sys/types.h>
  39055. -_ACEOF
  39056. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  39057. - $EGREP "uid_t" >/dev/null 2>&1; then
  39058. - ac_cv_type_uid_t=yes
  39059. -else
  39060. - ac_cv_type_uid_t=no
  39061. -fi
  39062. -rm -f conftest*
  39063. -fi
  39064. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  39065. -$as_echo "$ac_cv_type_uid_t" >&6; }
  39066. -if test $ac_cv_type_uid_t = no; then
  39067. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39068. +# Files that config.status was made for.
  39069. +config_files="$ac_config_files"
  39070. +config_commands="$ac_config_commands"
  39071. -cat >>confdefs.h <<\_ACEOF
  39072. -#define uid_t int
  39073. _ACEOF
  39074. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39075. +ac_cs_usage="\
  39076. +\`$as_me' instantiates files and other configuration actions
  39077. +from templates according to the current configuration. Unless the files
  39078. +and actions are specified as TAGs, all are instantiated by default.
  39079. -cat >>confdefs.h <<\_ACEOF
  39080. -#define gid_t int
  39081. -_ACEOF
  39082. +Usage: $0 [OPTION]... [TAG]...
  39083. -fi
  39084. + -h, --help print this help, then exit
  39085. + -V, --version print version number and configuration settings, then exit
  39086. + --config print configuration, then exit
  39087. + -q, --quiet, --silent
  39088. + do not print progress messages
  39089. + -d, --debug don't remove temporary files
  39090. + --recheck update $as_me by reconfiguring in the same conditions
  39091. + --file=FILE[:TEMPLATE]
  39092. + instantiate the configuration file FILE
  39093. +Configuration files:
  39094. +$config_files
  39095. -# Checks for library functions.
  39096. +Configuration commands:
  39097. +$config_commands
  39098. +
  39099. +Report bugs to <nfsv4-wg@citi.umich.edu>."
  39100. -for ac_header in stdlib.h
  39101. -do
  39102. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39103. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39104. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  39105. -$as_echo_n "checking for $ac_header... " >&6; }
  39106. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39107. - $as_echo_n "(cached) " >&6
  39108. -fi
  39109. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  39110. - $as_echo "$as_val"'`
  39111. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39112. -$as_echo "$ac_res" >&6; }
  39113. -else
  39114. - # Is the header compilable?
  39115. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39116. -$as_echo_n "checking $ac_header usability... " >&6; }
  39117. -cat >conftest.$ac_ext <<_ACEOF
  39118. -/* confdefs.h. */
  39119. _ACEOF
  39120. -cat confdefs.h >>conftest.$ac_ext
  39121. -cat >>conftest.$ac_ext <<_ACEOF
  39122. -/* end confdefs.h. */
  39123. -$ac_includes_default
  39124. -#include <$ac_header>
  39125. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39126. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  39127. +ac_cs_version="\\
  39128. +librpcsecgss config.status 0.19
  39129. +configured by $0, generated by GNU Autoconf 2.65,
  39130. + with options \\"\$ac_cs_config\\"
  39131. +
  39132. +Copyright (C) 2009 Free Software Foundation, Inc.
  39133. +This config.status script is free software; the Free Software Foundation
  39134. +gives unlimited permission to copy, distribute and modify it."
  39135. +
  39136. +ac_pwd='$ac_pwd'
  39137. +srcdir='$srcdir'
  39138. +INSTALL='$INSTALL'
  39139. +MKDIR_P='$MKDIR_P'
  39140. +AWK='$AWK'
  39141. +test -n "\$AWK" || AWK=awk
  39142. _ACEOF
  39143. -rm -f conftest.$ac_objext
  39144. -if { (ac_try="$ac_compile"
  39145. -case "(($ac_try" in
  39146. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39147. - *) ac_try_echo=$ac_try;;
  39148. -esac
  39149. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39150. -$as_echo "$ac_try_echo") >&5
  39151. - (eval "$ac_compile") 2>conftest.er1
  39152. - ac_status=$?
  39153. - grep -v '^ *+' conftest.er1 >conftest.err
  39154. - rm -f conftest.er1
  39155. - cat conftest.err >&5
  39156. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39157. - (exit $ac_status); } && {
  39158. - test -z "$ac_c_werror_flag" ||
  39159. - test ! -s conftest.err
  39160. - } && test -s conftest.$ac_objext; then
  39161. - ac_header_compiler=yes
  39162. -else
  39163. - $as_echo "$as_me: failed program was:" >&5
  39164. -sed 's/^/| /' conftest.$ac_ext >&5
  39165. - ac_header_compiler=no
  39166. -fi
  39167. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39168. +# The default lists apply if the user does not specify any file.
  39169. +ac_need_defaults=:
  39170. +while test $# != 0
  39171. +do
  39172. + case $1 in
  39173. + --*=*)
  39174. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  39175. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  39176. + ac_shift=:
  39177. + ;;
  39178. + *)
  39179. + ac_option=$1
  39180. + ac_optarg=$2
  39181. + ac_shift=shift
  39182. + ;;
  39183. + esac
  39184. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39185. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39186. -$as_echo "$ac_header_compiler" >&6; }
  39187. + case $ac_option in
  39188. + # Handling of the options.
  39189. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  39190. + ac_cs_recheck=: ;;
  39191. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  39192. + $as_echo "$ac_cs_version"; exit ;;
  39193. + --config | --confi | --conf | --con | --co | --c )
  39194. + $as_echo "$ac_cs_config"; exit ;;
  39195. + --debug | --debu | --deb | --de | --d | -d )
  39196. + debug=: ;;
  39197. + --file | --fil | --fi | --f )
  39198. + $ac_shift
  39199. + case $ac_optarg in
  39200. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  39201. + esac
  39202. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  39203. + ac_need_defaults=false;;
  39204. + --he | --h | --help | --hel | -h )
  39205. + $as_echo "$ac_cs_usage"; exit ;;
  39206. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  39207. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  39208. + ac_cs_silent=: ;;
  39209. -# Is the header present?
  39210. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39211. -$as_echo_n "checking $ac_header presence... " >&6; }
  39212. -cat >conftest.$ac_ext <<_ACEOF
  39213. -/* confdefs.h. */
  39214. -_ACEOF
  39215. -cat confdefs.h >>conftest.$ac_ext
  39216. -cat >>conftest.$ac_ext <<_ACEOF
  39217. -/* end confdefs.h. */
  39218. -#include <$ac_header>
  39219. -_ACEOF
  39220. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39221. -case "(($ac_try" in
  39222. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39223. - *) ac_try_echo=$ac_try;;
  39224. -esac
  39225. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39226. -$as_echo "$ac_try_echo") >&5
  39227. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39228. - ac_status=$?
  39229. - grep -v '^ *+' conftest.er1 >conftest.err
  39230. - rm -f conftest.er1
  39231. - cat conftest.err >&5
  39232. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39233. - (exit $ac_status); } >/dev/null && {
  39234. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39235. - test ! -s conftest.err
  39236. - }; then
  39237. - ac_header_preproc=yes
  39238. -else
  39239. - $as_echo "$as_me: failed program was:" >&5
  39240. -sed 's/^/| /' conftest.$ac_ext >&5
  39241. + # This is an error.
  39242. + -*) as_fn_error "unrecognized option: \`$1'
  39243. +Try \`$0 --help' for more information." ;;
  39244. - ac_header_preproc=no
  39245. -fi
  39246. + *) as_fn_append ac_config_targets " $1"
  39247. + ac_need_defaults=false ;;
  39248. -rm -f conftest.err conftest.$ac_ext
  39249. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39250. -$as_echo "$ac_header_preproc" >&6; }
  39251. + esac
  39252. + shift
  39253. +done
  39254. -# So? What about this header?
  39255. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39256. - yes:no: )
  39257. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39258. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39259. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39260. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39261. - ac_header_preproc=yes
  39262. - ;;
  39263. - no:yes:* )
  39264. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39265. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39266. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39267. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39268. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39269. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39270. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39271. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39272. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39273. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39274. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39275. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39276. - ( cat <<\_ASBOX
  39277. -## -------------------------------------- ##
  39278. -## Report this to nfsv4-wg@citi.umich.edu ##
  39279. -## -------------------------------------- ##
  39280. -_ASBOX
  39281. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39282. - ;;
  39283. -esac
  39284. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  39285. -$as_echo_n "checking for $ac_header... " >&6; }
  39286. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39287. - $as_echo_n "(cached) " >&6
  39288. -else
  39289. - eval "$as_ac_Header=\$ac_header_preproc"
  39290. -fi
  39291. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  39292. - $as_echo "$as_val"'`
  39293. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39294. -$as_echo "$ac_res" >&6; }
  39295. +ac_configure_extra_args=
  39296. +if $ac_cs_silent; then
  39297. + exec 6>/dev/null
  39298. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  39299. fi
  39300. -as_val=`eval 'as_val=${'$as_ac_Header'}
  39301. - $as_echo "$as_val"'`
  39302. - if test "x$as_val" = x""yes; then
  39303. - cat >>confdefs.h <<_ACEOF
  39304. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39305. -_ACEOF
  39306. +_ACEOF
  39307. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39308. +if \$ac_cs_recheck; then
  39309. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  39310. + shift
  39311. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  39312. + CONFIG_SHELL='$SHELL'
  39313. + export CONFIG_SHELL
  39314. + exec "\$@"
  39315. fi
  39316. -done
  39317. -
  39318. -{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  39319. -$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  39320. -if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  39321. - $as_echo_n "(cached) " >&6
  39322. -else
  39323. - if test "$cross_compiling" = yes; then
  39324. - ac_cv_func_malloc_0_nonnull=no
  39325. -else
  39326. - cat >conftest.$ac_ext <<_ACEOF
  39327. -/* confdefs.h. */
  39328. _ACEOF
  39329. -cat confdefs.h >>conftest.$ac_ext
  39330. -cat >>conftest.$ac_ext <<_ACEOF
  39331. -/* end confdefs.h. */
  39332. -#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  39333. -# include <stdlib.h>
  39334. -#else
  39335. -char *malloc ();
  39336. -#endif
  39337. -
  39338. -int
  39339. -main ()
  39340. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39341. +exec 5>>config.log
  39342. {
  39343. -return ! malloc (0);
  39344. - ;
  39345. - return 0;
  39346. -}
  39347. -_ACEOF
  39348. -rm -f conftest$ac_exeext
  39349. -if { (ac_try="$ac_link"
  39350. -case "(($ac_try" in
  39351. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39352. - *) ac_try_echo=$ac_try;;
  39353. -esac
  39354. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39355. -$as_echo "$ac_try_echo") >&5
  39356. - (eval "$ac_link") 2>&5
  39357. - ac_status=$?
  39358. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39359. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39360. - { (case "(($ac_try" in
  39361. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39362. - *) ac_try_echo=$ac_try;;
  39363. -esac
  39364. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39365. -$as_echo "$ac_try_echo") >&5
  39366. - (eval "$ac_try") 2>&5
  39367. - ac_status=$?
  39368. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39369. - (exit $ac_status); }; }; then
  39370. - ac_cv_func_malloc_0_nonnull=yes
  39371. -else
  39372. - $as_echo "$as_me: program exited with status $ac_status" >&5
  39373. -$as_echo "$as_me: failed program was:" >&5
  39374. -sed 's/^/| /' conftest.$ac_ext >&5
  39375. + echo
  39376. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  39377. +## Running $as_me. ##
  39378. +_ASBOX
  39379. + $as_echo "$ac_log"
  39380. +} >&5
  39381. -( exit $ac_status )
  39382. -ac_cv_func_malloc_0_nonnull=no
  39383. -fi
  39384. -rm -rf conftest.dSYM
  39385. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39386. -fi
  39387. +_ACEOF
  39388. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39389. +#
  39390. +# INIT-COMMANDS
  39391. +#
  39392. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  39393. -fi
  39394. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  39395. -$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  39396. -if test $ac_cv_func_malloc_0_nonnull = yes; then
  39397. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  39398. +# if CDPATH is set.
  39399. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  39400. -cat >>confdefs.h <<\_ACEOF
  39401. -#define HAVE_MALLOC 1
  39402. -_ACEOF
  39403. +sed_quote_subst='$sed_quote_subst'
  39404. +double_quote_subst='$double_quote_subst'
  39405. +delay_variable_subst='$delay_variable_subst'
  39406. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  39407. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  39408. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  39409. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  39410. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  39411. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  39412. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  39413. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  39414. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  39415. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  39416. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  39417. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  39418. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  39419. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  39420. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  39421. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  39422. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  39423. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  39424. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  39425. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  39426. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  39427. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  39428. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  39429. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  39430. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  39431. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  39432. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39433. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39434. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  39435. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  39436. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  39437. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  39438. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  39439. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  39440. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  39441. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39442. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39443. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39444. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  39445. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  39446. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  39447. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  39448. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  39449. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  39450. +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"`'
  39451. +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"`'
  39452. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  39453. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  39454. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  39455. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  39456. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39457. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  39458. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  39459. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  39460. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  39461. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  39462. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  39463. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  39464. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  39465. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  39466. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  39467. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  39468. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39469. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39470. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  39471. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  39472. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39473. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39474. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  39475. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39476. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39477. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39478. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39479. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39480. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39481. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  39482. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39483. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39484. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39485. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  39486. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  39487. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  39488. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  39489. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  39490. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39491. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  39492. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  39493. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  39494. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  39495. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  39496. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39497. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  39498. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  39499. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39500. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39501. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  39502. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  39503. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  39504. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  39505. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39506. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39507. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  39508. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39509. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39510. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39511. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39512. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39513. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39514. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  39515. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  39516. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39517. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39518. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  39519. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  39520. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  39521. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  39522. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  39523. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  39524. +
  39525. +LTCC='$LTCC'
  39526. +LTCFLAGS='$LTCFLAGS'
  39527. +compiler='$compiler_DEFAULT'
  39528. +
  39529. +# Quote evaled strings.
  39530. +for var in SED \
  39531. +GREP \
  39532. +EGREP \
  39533. +FGREP \
  39534. +LD \
  39535. +NM \
  39536. +LN_S \
  39537. +lt_SP2NL \
  39538. +lt_NL2SP \
  39539. +reload_flag \
  39540. +OBJDUMP \
  39541. +deplibs_check_method \
  39542. +file_magic_cmd \
  39543. +AR \
  39544. +AR_FLAGS \
  39545. +STRIP \
  39546. +RANLIB \
  39547. +CC \
  39548. +CFLAGS \
  39549. +compiler \
  39550. +lt_cv_sys_global_symbol_pipe \
  39551. +lt_cv_sys_global_symbol_to_cdecl \
  39552. +lt_cv_sys_global_symbol_to_c_name_address \
  39553. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  39554. +SHELL \
  39555. +ECHO \
  39556. +lt_prog_compiler_no_builtin_flag \
  39557. +lt_prog_compiler_wl \
  39558. +lt_prog_compiler_pic \
  39559. +lt_prog_compiler_static \
  39560. +lt_cv_prog_compiler_c_o \
  39561. +need_locks \
  39562. +DSYMUTIL \
  39563. +NMEDIT \
  39564. +LIPO \
  39565. +OTOOL \
  39566. +OTOOL64 \
  39567. +shrext_cmds \
  39568. +export_dynamic_flag_spec \
  39569. +whole_archive_flag_spec \
  39570. +compiler_needs_object \
  39571. +with_gnu_ld \
  39572. +allow_undefined_flag \
  39573. +no_undefined_flag \
  39574. +hardcode_libdir_flag_spec \
  39575. +hardcode_libdir_flag_spec_ld \
  39576. +hardcode_libdir_separator \
  39577. +fix_srcfile_path \
  39578. +exclude_expsyms \
  39579. +include_expsyms \
  39580. +file_list_spec \
  39581. +variables_saved_for_relink \
  39582. +libname_spec \
  39583. +library_names_spec \
  39584. +soname_spec \
  39585. +finish_eval \
  39586. +old_striplib \
  39587. +striplib; do
  39588. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  39589. + *[\\\\\\\`\\"\\\$]*)
  39590. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  39591. + ;;
  39592. + *)
  39593. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39594. + ;;
  39595. + esac
  39596. +done
  39597. -else
  39598. - cat >>confdefs.h <<\_ACEOF
  39599. -#define HAVE_MALLOC 0
  39600. -_ACEOF
  39601. +# Double-quote double-evaled strings.
  39602. +for var in reload_cmds \
  39603. +old_postinstall_cmds \
  39604. +old_postuninstall_cmds \
  39605. +old_archive_cmds \
  39606. +extract_expsyms_cmds \
  39607. +old_archive_from_new_cmds \
  39608. +old_archive_from_expsyms_cmds \
  39609. +archive_cmds \
  39610. +archive_expsym_cmds \
  39611. +module_cmds \
  39612. +module_expsym_cmds \
  39613. +export_symbols_cmds \
  39614. +prelink_cmds \
  39615. +postinstall_cmds \
  39616. +postuninstall_cmds \
  39617. +finish_cmds \
  39618. +sys_lib_search_path_spec \
  39619. +sys_lib_dlsearch_path_spec; do
  39620. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  39621. + *[\\\\\\\`\\"\\\$]*)
  39622. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  39623. + ;;
  39624. + *)
  39625. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39626. + ;;
  39627. + esac
  39628. +done
  39629. - case " $LIBOBJS " in
  39630. - *" malloc.$ac_objext "* ) ;;
  39631. - *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  39632. - ;;
  39633. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  39634. +case \$lt_ECHO in
  39635. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  39636. + ;;
  39637. esac
  39638. +ac_aux_dir='$ac_aux_dir'
  39639. +xsi_shell='$xsi_shell'
  39640. +lt_shell_append='$lt_shell_append'
  39641. -cat >>confdefs.h <<\_ACEOF
  39642. -#define malloc rpl_malloc
  39643. -_ACEOF
  39644. -
  39645. +# See if we are running on zsh, and set the options which allow our
  39646. +# commands through without removal of \ escapes INIT.
  39647. +if test -n "\${ZSH_VERSION+set}" ; then
  39648. + setopt NO_GLOB_SUBST
  39649. fi
  39650. + PACKAGE='$PACKAGE'
  39651. + VERSION='$VERSION'
  39652. + TIMESTAMP='$TIMESTAMP'
  39653. + RM='$RM'
  39654. + ofile='$ofile'
  39655. -{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  39656. -$as_echo_n "checking for working memcmp... " >&6; }
  39657. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  39658. - $as_echo_n "(cached) " >&6
  39659. -else
  39660. - if test "$cross_compiling" = yes; then
  39661. - ac_cv_func_memcmp_working=no
  39662. -else
  39663. - cat >conftest.$ac_ext <<_ACEOF
  39664. -/* confdefs.h. */
  39665. -_ACEOF
  39666. -cat confdefs.h >>conftest.$ac_ext
  39667. -cat >>conftest.$ac_ext <<_ACEOF
  39668. -/* end confdefs.h. */
  39669. -$ac_includes_default
  39670. -int
  39671. -main ()
  39672. -{
  39673. - /* Some versions of memcmp are not 8-bit clean. */
  39674. - char c0 = '\100', c1 = '\200', c2 = '\201';
  39675. - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  39676. - return 1;
  39677. - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  39678. - or more and with at least one buffer not starting on a 4-byte boundary.
  39679. - William Lewis provided this test program. */
  39680. - {
  39681. - char foo[21];
  39682. - char bar[21];
  39683. - int i;
  39684. - for (i = 0; i < 4; i++)
  39685. - {
  39686. - char *a = foo + i;
  39687. - char *b = bar + i;
  39688. - strcpy (a, "--------01111111");
  39689. - strcpy (b, "--------10000000");
  39690. - if (memcmp (a, b, 16) >= 0)
  39691. - return 1;
  39692. - }
  39693. - return 0;
  39694. - }
  39695. - ;
  39696. - return 0;
  39697. -}
  39698. _ACEOF
  39699. -rm -f conftest$ac_exeext
  39700. -if { (ac_try="$ac_link"
  39701. -case "(($ac_try" in
  39702. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39703. - *) ac_try_echo=$ac_try;;
  39704. -esac
  39705. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39706. -$as_echo "$ac_try_echo") >&5
  39707. - (eval "$ac_link") 2>&5
  39708. - ac_status=$?
  39709. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39710. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39711. - { (case "(($ac_try" in
  39712. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39713. - *) ac_try_echo=$ac_try;;
  39714. -esac
  39715. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39716. -$as_echo "$ac_try_echo") >&5
  39717. - (eval "$ac_try") 2>&5
  39718. - ac_status=$?
  39719. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39720. - (exit $ac_status); }; }; then
  39721. - ac_cv_func_memcmp_working=yes
  39722. -else
  39723. - $as_echo "$as_me: program exited with status $ac_status" >&5
  39724. -$as_echo "$as_me: failed program was:" >&5
  39725. -sed 's/^/| /' conftest.$ac_ext >&5
  39726. -
  39727. -( exit $ac_status )
  39728. -ac_cv_func_memcmp_working=no
  39729. -fi
  39730. -rm -rf conftest.dSYM
  39731. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39732. -fi
  39733. -
  39734. -fi
  39735. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  39736. -$as_echo "$ac_cv_func_memcmp_working" >&6; }
  39737. -test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  39738. - *" memcmp.$ac_objext "* ) ;;
  39739. - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  39740. - ;;
  39741. -esac
  39742. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39743. +# Handling of arguments.
  39744. +for ac_config_target in $ac_config_targets
  39745. +do
  39746. + case $ac_config_target in
  39747. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  39748. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  39749. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  39750. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  39751. + "librpcsecgss.pc") CONFIG_FILES="$CONFIG_FILES librpcsecgss.pc" ;;
  39752. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  39753. + esac
  39754. +done
  39755. -for ac_header in stdlib.h
  39756. -do
  39757. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39758. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39759. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  39760. -$as_echo_n "checking for $ac_header... " >&6; }
  39761. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39762. - $as_echo_n "(cached) " >&6
  39763. -fi
  39764. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  39765. - $as_echo "$as_val"'`
  39766. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39767. -$as_echo "$ac_res" >&6; }
  39768. -else
  39769. - # Is the header compilable?
  39770. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39771. -$as_echo_n "checking $ac_header usability... " >&6; }
  39772. -cat >conftest.$ac_ext <<_ACEOF
  39773. -/* confdefs.h. */
  39774. -_ACEOF
  39775. -cat confdefs.h >>conftest.$ac_ext
  39776. -cat >>conftest.$ac_ext <<_ACEOF
  39777. -/* end confdefs.h. */
  39778. -$ac_includes_default
  39779. -#include <$ac_header>
  39780. -_ACEOF
  39781. -rm -f conftest.$ac_objext
  39782. -if { (ac_try="$ac_compile"
  39783. -case "(($ac_try" in
  39784. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39785. - *) ac_try_echo=$ac_try;;
  39786. -esac
  39787. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39788. -$as_echo "$ac_try_echo") >&5
  39789. - (eval "$ac_compile") 2>conftest.er1
  39790. - ac_status=$?
  39791. - grep -v '^ *+' conftest.er1 >conftest.err
  39792. - rm -f conftest.er1
  39793. - cat conftest.err >&5
  39794. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39795. - (exit $ac_status); } && {
  39796. - test -z "$ac_c_werror_flag" ||
  39797. - test ! -s conftest.err
  39798. - } && test -s conftest.$ac_objext; then
  39799. - ac_header_compiler=yes
  39800. -else
  39801. - $as_echo "$as_me: failed program was:" >&5
  39802. -sed 's/^/| /' conftest.$ac_ext >&5
  39803. - ac_header_compiler=no
  39804. +# If the user did not use the arguments to specify the items to instantiate,
  39805. +# then the envvar interface is used. Set only those that are not.
  39806. +# We use the long form for the default assignment because of an extremely
  39807. +# bizarre bug on SunOS 4.1.3.
  39808. +if $ac_need_defaults; then
  39809. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  39810. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  39811. fi
  39812. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39813. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39814. -$as_echo "$ac_header_compiler" >&6; }
  39815. +# Have a temporary directory for convenience. Make it in the build tree
  39816. +# simply because there is no reason against having it here, and in addition,
  39817. +# creating and moving files from /tmp can sometimes cause problems.
  39818. +# Hook for its removal unless debugging.
  39819. +# Note that there is a small window in which the directory will not be cleaned:
  39820. +# after its creation but before its name has been assigned to `$tmp'.
  39821. +$debug ||
  39822. +{
  39823. + tmp=
  39824. + trap 'exit_status=$?
  39825. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  39826. +' 0
  39827. + trap 'as_fn_exit 1' 1 2 13 15
  39828. +}
  39829. +# Create a (secure) tmp directory for tmp files.
  39830. -# Is the header present?
  39831. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39832. -$as_echo_n "checking $ac_header presence... " >&6; }
  39833. -cat >conftest.$ac_ext <<_ACEOF
  39834. -/* confdefs.h. */
  39835. -_ACEOF
  39836. -cat confdefs.h >>conftest.$ac_ext
  39837. -cat >>conftest.$ac_ext <<_ACEOF
  39838. -/* end confdefs.h. */
  39839. -#include <$ac_header>
  39840. -_ACEOF
  39841. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39842. -case "(($ac_try" in
  39843. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39844. - *) ac_try_echo=$ac_try;;
  39845. -esac
  39846. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39847. -$as_echo "$ac_try_echo") >&5
  39848. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39849. - ac_status=$?
  39850. - grep -v '^ *+' conftest.er1 >conftest.err
  39851. - rm -f conftest.er1
  39852. - cat conftest.err >&5
  39853. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39854. - (exit $ac_status); } >/dev/null && {
  39855. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39856. - test ! -s conftest.err
  39857. - }; then
  39858. - ac_header_preproc=yes
  39859. -else
  39860. - $as_echo "$as_me: failed program was:" >&5
  39861. -sed 's/^/| /' conftest.$ac_ext >&5
  39862. +{
  39863. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  39864. + test -n "$tmp" && test -d "$tmp"
  39865. +} ||
  39866. +{
  39867. + tmp=./conf$$-$RANDOM
  39868. + (umask 077 && mkdir "$tmp")
  39869. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  39870. - ac_header_preproc=no
  39871. -fi
  39872. +# Set up the scripts for CONFIG_FILES section.
  39873. +# No need to generate them if there are no CONFIG_FILES.
  39874. +# This happens for instance with `./config.status config.h'.
  39875. +if test -n "$CONFIG_FILES"; then
  39876. -rm -f conftest.err conftest.$ac_ext
  39877. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39878. -$as_echo "$ac_header_preproc" >&6; }
  39879. -# So? What about this header?
  39880. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39881. - yes:no: )
  39882. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39883. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39884. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39885. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39886. - ac_header_preproc=yes
  39887. - ;;
  39888. - no:yes:* )
  39889. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39890. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39891. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39892. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39893. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39894. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39895. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39896. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39897. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39898. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39899. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39900. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39901. - ( cat <<\_ASBOX
  39902. -## -------------------------------------- ##
  39903. -## Report this to nfsv4-wg@citi.umich.edu ##
  39904. -## -------------------------------------- ##
  39905. -_ASBOX
  39906. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39907. - ;;
  39908. -esac
  39909. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  39910. -$as_echo_n "checking for $ac_header... " >&6; }
  39911. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39912. - $as_echo_n "(cached) " >&6
  39913. +ac_cr=`echo X | tr X '\015'`
  39914. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  39915. +# But we know of no other shell where ac_cr would be empty at this
  39916. +# point, so we can use a bashism as a fallback.
  39917. +if test "x$ac_cr" = x; then
  39918. + eval ac_cr=\$\'\\r\'
  39919. +fi
  39920. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  39921. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  39922. + ac_cs_awk_cr='\r'
  39923. else
  39924. - eval "$as_ac_Header=\$ac_header_preproc"
  39925. + ac_cs_awk_cr=$ac_cr
  39926. fi
  39927. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  39928. - $as_echo "$as_val"'`
  39929. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39930. -$as_echo "$ac_res" >&6; }
  39931. -fi
  39932. -as_val=`eval 'as_val=${'$as_ac_Header'}
  39933. - $as_echo "$as_val"'`
  39934. - if test "x$as_val" = x""yes; then
  39935. - cat >>confdefs.h <<_ACEOF
  39936. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39937. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  39938. _ACEOF
  39939. -fi
  39940. +{
  39941. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  39942. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  39943. + echo "_ACEOF"
  39944. +} >conf$$subs.sh ||
  39945. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39946. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  39947. +ac_delim='%!_!# '
  39948. +for ac_last_try in false false false false false :; do
  39949. + . ./conf$$subs.sh ||
  39950. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39951. +
  39952. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  39953. + if test $ac_delim_n = $ac_delim_num; then
  39954. + break
  39955. + elif $ac_last_try; then
  39956. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39957. + else
  39958. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39959. + fi
  39960. done
  39961. +rm -f conf$$subs.sh
  39962. -{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  39963. -$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  39964. -if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  39965. - $as_echo_n "(cached) " >&6
  39966. -else
  39967. - if test "$cross_compiling" = yes; then
  39968. - ac_cv_func_realloc_0_nonnull=no
  39969. -else
  39970. - cat >conftest.$ac_ext <<_ACEOF
  39971. -/* confdefs.h. */
  39972. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39973. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  39974. _ACEOF
  39975. -cat confdefs.h >>conftest.$ac_ext
  39976. -cat >>conftest.$ac_ext <<_ACEOF
  39977. -/* end confdefs.h. */
  39978. -#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  39979. -# include <stdlib.h>
  39980. -#else
  39981. -char *realloc ();
  39982. -#endif
  39983. +sed -n '
  39984. +h
  39985. +s/^/S["/; s/!.*/"]=/
  39986. +p
  39987. +g
  39988. +s/^[^!]*!//
  39989. +:repl
  39990. +t repl
  39991. +s/'"$ac_delim"'$//
  39992. +t delim
  39993. +:nl
  39994. +h
  39995. +s/\(.\{148\}\)..*/\1/
  39996. +t more1
  39997. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  39998. +p
  39999. +n
  40000. +b repl
  40001. +:more1
  40002. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  40003. +p
  40004. +g
  40005. +s/.\{148\}//
  40006. +t nl
  40007. +:delim
  40008. +h
  40009. +s/\(.\{148\}\)..*/\1/
  40010. +t more2
  40011. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  40012. +p
  40013. +b
  40014. +:more2
  40015. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  40016. +p
  40017. +g
  40018. +s/.\{148\}//
  40019. +t delim
  40020. +' <conf$$subs.awk | sed '
  40021. +/^[^""]/{
  40022. + N
  40023. + s/\n//
  40024. +}
  40025. +' >>$CONFIG_STATUS || ac_write_fail=1
  40026. +rm -f conf$$subs.awk
  40027. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40028. +_ACAWK
  40029. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  40030. + for (key in S) S_is_set[key] = 1
  40031. + FS = ""
  40032. -int
  40033. -main ()
  40034. +}
  40035. {
  40036. -return ! realloc (0, 0);
  40037. - ;
  40038. - return 0;
  40039. + line = $ 0
  40040. + nfields = split(line, field, "@")
  40041. + substed = 0
  40042. + len = length(field[1])
  40043. + for (i = 2; i < nfields; i++) {
  40044. + key = field[i]
  40045. + keylen = length(key)
  40046. + if (S_is_set[key]) {
  40047. + value = S[key]
  40048. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  40049. + len += length(value) + length(field[++i])
  40050. + substed = 1
  40051. + } else
  40052. + len += 1 + keylen
  40053. + }
  40054. +
  40055. + print line
  40056. }
  40057. +
  40058. +_ACAWK
  40059. _ACEOF
  40060. -rm -f conftest$ac_exeext
  40061. -if { (ac_try="$ac_link"
  40062. -case "(($ac_try" in
  40063. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40064. - *) ac_try_echo=$ac_try;;
  40065. -esac
  40066. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40067. -$as_echo "$ac_try_echo") >&5
  40068. - (eval "$ac_link") 2>&5
  40069. - ac_status=$?
  40070. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40071. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40072. - { (case "(($ac_try" in
  40073. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40074. - *) ac_try_echo=$ac_try;;
  40075. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40076. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  40077. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  40078. +else
  40079. + cat
  40080. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  40081. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  40082. +_ACEOF
  40083. +
  40084. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  40085. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  40086. +# trailing colons and then remove the whole line if VPATH becomes empty
  40087. +# (actually we leave an empty line to preserve line numbers).
  40088. +if test "x$srcdir" = x.; then
  40089. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  40090. +s/:*\$(srcdir):*/:/
  40091. +s/:*\${srcdir}:*/:/
  40092. +s/:*@srcdir@:*/:/
  40093. +s/^\([^=]*=[ ]*\):*/\1/
  40094. +s/:*$//
  40095. +s/^[^=]*=[ ]*$//
  40096. +}'
  40097. +fi
  40098. +
  40099. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40100. +fi # test -n "$CONFIG_FILES"
  40101. +
  40102. +
  40103. +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  40104. +shift
  40105. +for ac_tag
  40106. +do
  40107. + case $ac_tag in
  40108. + :[FHLC]) ac_mode=$ac_tag; continue;;
  40109. + esac
  40110. + case $ac_mode$ac_tag in
  40111. + :[FHL]*:*);;
  40112. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  40113. + :[FH]-) ac_tag=-:-;;
  40114. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  40115. + esac
  40116. + ac_save_IFS=$IFS
  40117. + IFS=:
  40118. + set x $ac_tag
  40119. + IFS=$ac_save_IFS
  40120. + shift
  40121. + ac_file=$1
  40122. + shift
  40123. +
  40124. + case $ac_mode in
  40125. + :L) ac_source=$1;;
  40126. + :[FH])
  40127. + ac_file_inputs=
  40128. + for ac_f
  40129. + do
  40130. + case $ac_f in
  40131. + -) ac_f="$tmp/stdin";;
  40132. + *) # Look for the file first in the build tree, then in the source tree
  40133. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  40134. + # because $ac_f cannot contain `:'.
  40135. + test -f "$ac_f" ||
  40136. + case $ac_f in
  40137. + [\\/$]*) false;;
  40138. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  40139. + esac ||
  40140. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  40141. + esac
  40142. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  40143. + as_fn_append ac_file_inputs " '$ac_f'"
  40144. + done
  40145. +
  40146. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  40147. + # use $as_me), people would be surprised to read:
  40148. + # /* config.h. Generated by config.status. */
  40149. + configure_input='Generated from '`
  40150. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  40151. + `' by configure.'
  40152. + if test x"$ac_file" != x-; then
  40153. + configure_input="$ac_file. $configure_input"
  40154. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  40155. +$as_echo "$as_me: creating $ac_file" >&6;}
  40156. + fi
  40157. + # Neutralize special characters interpreted by sed in replacement strings.
  40158. + case $configure_input in #(
  40159. + *\&* | *\|* | *\\* )
  40160. + ac_sed_conf_input=`$as_echo "$configure_input" |
  40161. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  40162. + *) ac_sed_conf_input=$configure_input;;
  40163. + esac
  40164. +
  40165. + case $ac_tag in
  40166. + *:-:* | *:-) cat >"$tmp/stdin" \
  40167. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  40168. + esac
  40169. + ;;
  40170. + esac
  40171. +
  40172. + ac_dir=`$as_dirname -- "$ac_file" ||
  40173. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40174. + X"$ac_file" : 'X\(//\)[^/]' \| \
  40175. + X"$ac_file" : 'X\(//\)$' \| \
  40176. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  40177. +$as_echo X"$ac_file" |
  40178. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40179. + s//\1/
  40180. + q
  40181. + }
  40182. + /^X\(\/\/\)[^/].*/{
  40183. + s//\1/
  40184. + q
  40185. + }
  40186. + /^X\(\/\/\)$/{
  40187. + s//\1/
  40188. + q
  40189. + }
  40190. + /^X\(\/\).*/{
  40191. + s//\1/
  40192. + q
  40193. + }
  40194. + s/.*/./; q'`
  40195. + as_dir="$ac_dir"; as_fn_mkdir_p
  40196. + ac_builddir=.
  40197. +
  40198. +case "$ac_dir" in
  40199. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40200. +*)
  40201. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  40202. + # A ".." for each directory in $ac_dir_suffix.
  40203. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  40204. + case $ac_top_builddir_sub in
  40205. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40206. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  40207. + esac ;;
  40208. esac
  40209. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40210. -$as_echo "$ac_try_echo") >&5
  40211. - (eval "$ac_try") 2>&5
  40212. - ac_status=$?
  40213. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40214. - (exit $ac_status); }; }; then
  40215. - ac_cv_func_realloc_0_nonnull=yes
  40216. -else
  40217. - $as_echo "$as_me: program exited with status $ac_status" >&5
  40218. -$as_echo "$as_me: failed program was:" >&5
  40219. -sed 's/^/| /' conftest.$ac_ext >&5
  40220. +ac_abs_top_builddir=$ac_pwd
  40221. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  40222. +# for backward compatibility:
  40223. +ac_top_builddir=$ac_top_build_prefix
  40224. -( exit $ac_status )
  40225. -ac_cv_func_realloc_0_nonnull=no
  40226. -fi
  40227. -rm -rf conftest.dSYM
  40228. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40229. -fi
  40230. +case $srcdir in
  40231. + .) # We are building in place.
  40232. + ac_srcdir=.
  40233. + ac_top_srcdir=$ac_top_builddir_sub
  40234. + ac_abs_top_srcdir=$ac_pwd ;;
  40235. + [\\/]* | ?:[\\/]* ) # Absolute name.
  40236. + ac_srcdir=$srcdir$ac_dir_suffix;
  40237. + ac_top_srcdir=$srcdir
  40238. + ac_abs_top_srcdir=$srcdir ;;
  40239. + *) # Relative name.
  40240. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  40241. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  40242. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  40243. +esac
  40244. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  40245. -fi
  40246. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  40247. -$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  40248. -if test $ac_cv_func_realloc_0_nonnull = yes; then
  40249. + case $ac_mode in
  40250. + :F)
  40251. + #
  40252. + # CONFIG_FILE
  40253. + #
  40254. -cat >>confdefs.h <<\_ACEOF
  40255. -#define HAVE_REALLOC 1
  40256. + case $INSTALL in
  40257. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  40258. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  40259. + esac
  40260. + ac_MKDIR_P=$MKDIR_P
  40261. + case $MKDIR_P in
  40262. + [\\/$]* | ?:[\\/]* ) ;;
  40263. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  40264. + esac
  40265. _ACEOF
  40266. -else
  40267. - cat >>confdefs.h <<\_ACEOF
  40268. -#define HAVE_REALLOC 0
  40269. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40270. +# If the template does not know about datarootdir, expand it.
  40271. +# FIXME: This hack should be removed a few years after 2.60.
  40272. +ac_datarootdir_hack=; ac_datarootdir_seen=
  40273. +ac_sed_dataroot='
  40274. +/datarootdir/ {
  40275. + p
  40276. + q
  40277. +}
  40278. +/@datadir@/p
  40279. +/@docdir@/p
  40280. +/@infodir@/p
  40281. +/@localedir@/p
  40282. +/@mandir@/p'
  40283. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  40284. +*datarootdir*) ac_datarootdir_seen=yes;;
  40285. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  40286. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  40287. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  40288. _ACEOF
  40289. -
  40290. - case " $LIBOBJS " in
  40291. - *" realloc.$ac_objext "* ) ;;
  40292. - *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  40293. - ;;
  40294. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40295. + ac_datarootdir_hack='
  40296. + s&@datadir@&$datadir&g
  40297. + s&@docdir@&$docdir&g
  40298. + s&@infodir@&$infodir&g
  40299. + s&@localedir@&$localedir&g
  40300. + s&@mandir@&$mandir&g
  40301. + s&\\\${datarootdir}&$datarootdir&g' ;;
  40302. esac
  40303. -
  40304. -
  40305. -cat >>confdefs.h <<\_ACEOF
  40306. -#define realloc rpl_realloc
  40307. _ACEOF
  40308. -fi
  40309. -
  40310. -
  40311. -
  40312. -
  40313. -
  40314. -for ac_func in memset strerror
  40315. -do
  40316. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40317. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  40318. -$as_echo_n "checking for $ac_func... " >&6; }
  40319. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  40320. - $as_echo_n "(cached) " >&6
  40321. -else
  40322. - cat >conftest.$ac_ext <<_ACEOF
  40323. -/* confdefs.h. */
  40324. +# Neutralize VPATH when `$srcdir' = `.'.
  40325. +# Shell code in configure.ac might set extrasub.
  40326. +# FIXME: do we really want to maintain this feature?
  40327. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40328. +ac_sed_extra="$ac_vpsub
  40329. +$extrasub
  40330. _ACEOF
  40331. -cat confdefs.h >>conftest.$ac_ext
  40332. -cat >>conftest.$ac_ext <<_ACEOF
  40333. -/* end confdefs.h. */
  40334. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  40335. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40336. -#define $ac_func innocuous_$ac_func
  40337. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40338. +:t
  40339. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  40340. +s|@configure_input@|$ac_sed_conf_input|;t t
  40341. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  40342. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  40343. +s&@srcdir@&$ac_srcdir&;t t
  40344. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  40345. +s&@top_srcdir@&$ac_top_srcdir&;t t
  40346. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  40347. +s&@builddir@&$ac_builddir&;t t
  40348. +s&@abs_builddir@&$ac_abs_builddir&;t t
  40349. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  40350. +s&@INSTALL@&$ac_INSTALL&;t t
  40351. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  40352. +$ac_datarootdir_hack
  40353. +"
  40354. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  40355. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  40356. -/* System header to define __stub macros and hopefully few prototypes,
  40357. - which can conflict with char $ac_func (); below.
  40358. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40359. - <limits.h> exists even on freestanding compilers. */
  40360. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  40361. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  40362. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  40363. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40364. +which seems to be undefined. Please make sure it is defined." >&5
  40365. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40366. +which seems to be undefined. Please make sure it is defined." >&2;}
  40367. -#ifdef __STDC__
  40368. -# include <limits.h>
  40369. -#else
  40370. -# include <assert.h>
  40371. -#endif
  40372. + rm -f "$tmp/stdin"
  40373. + case $ac_file in
  40374. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  40375. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  40376. + esac \
  40377. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  40378. + ;;
  40379. -#undef $ac_func
  40380. -/* Override any GCC internal prototype to avoid an error.
  40381. - Use char because int might match the return type of a GCC
  40382. - builtin and then its argument prototype would still apply. */
  40383. -#ifdef __cplusplus
  40384. -extern "C"
  40385. -#endif
  40386. -char $ac_func ();
  40387. -/* The GNU C library defines this for functions which it implements
  40388. - to always fail with ENOSYS. Some functions are actually named
  40389. - something starting with __ and the normal name is an alias. */
  40390. -#if defined __stub_$ac_func || defined __stub___$ac_func
  40391. -choke me
  40392. -#endif
  40393. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  40394. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  40395. + ;;
  40396. + esac
  40397. -int
  40398. -main ()
  40399. -{
  40400. -return $ac_func ();
  40401. - ;
  40402. - return 0;
  40403. +
  40404. + case $ac_file$ac_mode in
  40405. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  40406. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  40407. + # are listed without --file. Let's play safe and only enable the eval
  40408. + # if we detect the quoting.
  40409. + case $CONFIG_FILES in
  40410. + *\'*) eval set x "$CONFIG_FILES" ;;
  40411. + *) set x $CONFIG_FILES ;;
  40412. + esac
  40413. + shift
  40414. + for mf
  40415. + do
  40416. + # Strip MF so we end up with the name of the file.
  40417. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  40418. + # Check whether this is an Automake generated Makefile or not.
  40419. + # We used to match only the files named `Makefile.in', but
  40420. + # some people rename them; so instead we look at the file content.
  40421. + # Grep'ing the first line is not enough: some people post-process
  40422. + # each Makefile.in and add a new line on top of each file to say so.
  40423. + # Grep'ing the whole file is not good either: AIX grep has a line
  40424. + # limit of 2048, but all sed's we know have understand at least 4000.
  40425. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  40426. + dirpart=`$as_dirname -- "$mf" ||
  40427. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40428. + X"$mf" : 'X\(//\)[^/]' \| \
  40429. + X"$mf" : 'X\(//\)$' \| \
  40430. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  40431. +$as_echo X"$mf" |
  40432. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40433. + s//\1/
  40434. + q
  40435. + }
  40436. + /^X\(\/\/\)[^/].*/{
  40437. + s//\1/
  40438. + q
  40439. + }
  40440. + /^X\(\/\/\)$/{
  40441. + s//\1/
  40442. + q
  40443. + }
  40444. + /^X\(\/\).*/{
  40445. + s//\1/
  40446. + q
  40447. + }
  40448. + s/.*/./; q'`
  40449. + else
  40450. + continue
  40451. + fi
  40452. + # Extract the definition of DEPDIR, am__include, and am__quote
  40453. + # from the Makefile without running `make'.
  40454. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  40455. + test -z "$DEPDIR" && continue
  40456. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  40457. + test -z "am__include" && continue
  40458. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  40459. + # When using ansi2knr, U may be empty or an underscore; expand it
  40460. + U=`sed -n 's/^U = //p' < "$mf"`
  40461. + # Find all dependency output files, they are included files with
  40462. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  40463. + # simplest approach to changing $(DEPDIR) to its actual value in the
  40464. + # expansion.
  40465. + for file in `sed -n "
  40466. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  40467. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  40468. + # Make sure the directory exists.
  40469. + test -f "$dirpart/$file" && continue
  40470. + fdir=`$as_dirname -- "$file" ||
  40471. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40472. + X"$file" : 'X\(//\)[^/]' \| \
  40473. + X"$file" : 'X\(//\)$' \| \
  40474. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  40475. +$as_echo X"$file" |
  40476. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40477. + s//\1/
  40478. + q
  40479. + }
  40480. + /^X\(\/\/\)[^/].*/{
  40481. + s//\1/
  40482. + q
  40483. + }
  40484. + /^X\(\/\/\)$/{
  40485. + s//\1/
  40486. + q
  40487. + }
  40488. + /^X\(\/\).*/{
  40489. + s//\1/
  40490. + q
  40491. + }
  40492. + s/.*/./; q'`
  40493. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  40494. + # echo "creating $dirpart/$file"
  40495. + echo '# dummy' > "$dirpart/$file"
  40496. + done
  40497. + done
  40498. }
  40499. -_ACEOF
  40500. -rm -f conftest.$ac_objext conftest$ac_exeext
  40501. -if { (ac_try="$ac_link"
  40502. -case "(($ac_try" in
  40503. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40504. - *) ac_try_echo=$ac_try;;
  40505. -esac
  40506. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40507. -$as_echo "$ac_try_echo") >&5
  40508. - (eval "$ac_link") 2>conftest.er1
  40509. - ac_status=$?
  40510. - grep -v '^ *+' conftest.er1 >conftest.err
  40511. - rm -f conftest.er1
  40512. - cat conftest.err >&5
  40513. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40514. - (exit $ac_status); } && {
  40515. - test -z "$ac_c_werror_flag" ||
  40516. - test ! -s conftest.err
  40517. - } && test -s conftest$ac_exeext && {
  40518. - test "$cross_compiling" = yes ||
  40519. - $as_test_x conftest$ac_exeext
  40520. - }; then
  40521. - eval "$as_ac_var=yes"
  40522. -else
  40523. - $as_echo "$as_me: failed program was:" >&5
  40524. -sed 's/^/| /' conftest.$ac_ext >&5
  40525. + ;;
  40526. + "libtool":C)
  40527. - eval "$as_ac_var=no"
  40528. -fi
  40529. + # See if we are running on zsh, and set the options which allow our
  40530. + # commands through without removal of \ escapes.
  40531. + if test -n "${ZSH_VERSION+set}" ; then
  40532. + setopt NO_GLOB_SUBST
  40533. + fi
  40534. -rm -rf conftest.dSYM
  40535. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40536. - conftest$ac_exeext conftest.$ac_ext
  40537. -fi
  40538. -ac_res=`eval 'as_val=${'$as_ac_var'}
  40539. - $as_echo "$as_val"'`
  40540. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40541. -$as_echo "$ac_res" >&6; }
  40542. -as_val=`eval 'as_val=${'$as_ac_var'}
  40543. - $as_echo "$as_val"'`
  40544. - if test "x$as_val" = x""yes; then
  40545. - cat >>confdefs.h <<_ACEOF
  40546. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40547. -_ACEOF
  40548. + cfgfile="${ofile}T"
  40549. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  40550. + $RM "$cfgfile"
  40551. -fi
  40552. -done
  40553. + cat <<_LT_EOF >> "$cfgfile"
  40554. +#! $SHELL
  40555. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  40556. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  40557. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  40558. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  40559. +#
  40560. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40561. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  40562. +# Written by Gordon Matzigkeit, 1996
  40563. +#
  40564. +# This file is part of GNU Libtool.
  40565. +#
  40566. +# GNU Libtool is free software; you can redistribute it and/or
  40567. +# modify it under the terms of the GNU General Public License as
  40568. +# published by the Free Software Foundation; either version 2 of
  40569. +# the License, or (at your option) any later version.
  40570. +#
  40571. +# As a special exception to the GNU General Public License,
  40572. +# if you distribute this file as part of a program or library that
  40573. +# is built using GNU Libtool, you may include this file under the
  40574. +# same distribution terms that you use for the rest of that program.
  40575. +#
  40576. +# GNU Libtool is distributed in the hope that it will be useful,
  40577. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  40578. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  40579. +# GNU General Public License for more details.
  40580. +#
  40581. +# You should have received a copy of the GNU General Public License
  40582. +# along with GNU Libtool; see the file COPYING. If not, a copy
  40583. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  40584. +# obtained by writing to the Free Software Foundation, Inc.,
  40585. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  40586. -ac_config_files="$ac_config_files Makefile src/Makefile"
  40587. +# The names of the tagged configurations supported by this script.
  40588. +available_tags=""
  40589. -ac_config_files="$ac_config_files librpcsecgss.pc"
  40590. +# ### BEGIN LIBTOOL CONFIG
  40591. -cat >confcache <<\_ACEOF
  40592. -# This file is a shell script that caches the results of configure
  40593. -# tests run on this system so they can be shared between configure
  40594. -# scripts and configure runs, see configure's option --config-cache.
  40595. -# It is not useful on other systems. If it contains results you don't
  40596. -# want to keep, you may remove or edit it.
  40597. -#
  40598. -# config.status only pays attention to the cache file if you give it
  40599. -# the --recheck option to rerun configure.
  40600. -#
  40601. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  40602. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  40603. -# following values.
  40604. +# Which release of libtool.m4 was used?
  40605. +macro_version=$macro_version
  40606. +macro_revision=$macro_revision
  40607. -_ACEOF
  40608. +# Whether or not to build shared libraries.
  40609. +build_libtool_libs=$enable_shared
  40610. -# The following way of writing the cache mishandles newlines in values,
  40611. -# but we know of no workaround that is simple, portable, and efficient.
  40612. -# So, we kill variables containing newlines.
  40613. -# Ultrix sh set writes to stderr and can't be redirected directly,
  40614. -# and sets the high bit in the cache file unless we assign to the vars.
  40615. -(
  40616. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  40617. - eval ac_val=\$$ac_var
  40618. - case $ac_val in #(
  40619. - *${as_nl}*)
  40620. - case $ac_var in #(
  40621. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  40622. -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  40623. - esac
  40624. - case $ac_var in #(
  40625. - _ | IFS | as_nl) ;; #(
  40626. - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  40627. - *) $as_unset $ac_var ;;
  40628. - esac ;;
  40629. - esac
  40630. - done
  40631. +# Whether or not to build static libraries.
  40632. +build_old_libs=$enable_static
  40633. - (set) 2>&1 |
  40634. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  40635. - *${as_nl}ac_space=\ *)
  40636. - # `set' does not quote correctly, so add quotes (double-quote
  40637. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  40638. - sed -n \
  40639. - "s/'/'\\\\''/g;
  40640. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  40641. - ;; #(
  40642. - *)
  40643. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  40644. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  40645. - ;;
  40646. - esac |
  40647. - sort
  40648. -) |
  40649. - sed '
  40650. - /^ac_cv_env_/b end
  40651. - t clear
  40652. - :clear
  40653. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  40654. - t end
  40655. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  40656. - :end' >>confcache
  40657. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  40658. - if test -w "$cache_file"; then
  40659. - test "x$cache_file" != "x/dev/null" &&
  40660. - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  40661. -$as_echo "$as_me: updating cache $cache_file" >&6;}
  40662. - cat confcache >$cache_file
  40663. - else
  40664. - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  40665. -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  40666. - fi
  40667. -fi
  40668. -rm -f confcache
  40669. +# What type of objects to build.
  40670. +pic_mode=$pic_mode
  40671. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  40672. -# Let make expand exec_prefix.
  40673. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  40674. +# Whether or not to optimize for fast installation.
  40675. +fast_install=$enable_fast_install
  40676. -# Transform confdefs.h into DEFS.
  40677. -# Protect against shell expansion while executing Makefile rules.
  40678. -# Protect against Makefile macro expansion.
  40679. -#
  40680. -# If the first sed substitution is executed (which looks for macros that
  40681. -# take arguments), then branch to the quote section. Otherwise,
  40682. -# look for a macro that doesn't take arguments.
  40683. -ac_script='
  40684. -:mline
  40685. -/\\$/{
  40686. - N
  40687. - s,\\\n,,
  40688. - b mline
  40689. -}
  40690. -t clear
  40691. -:clear
  40692. -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  40693. -t quote
  40694. -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  40695. -t quote
  40696. -b any
  40697. -:quote
  40698. -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  40699. -s/\[/\\&/g
  40700. -s/\]/\\&/g
  40701. -s/\$/$$/g
  40702. -H
  40703. -:any
  40704. -${
  40705. - g
  40706. - s/^\n//
  40707. - s/\n/ /g
  40708. - p
  40709. -}
  40710. -'
  40711. -DEFS=`sed -n "$ac_script" confdefs.h`
  40712. +# The host system.
  40713. +host_alias=$host_alias
  40714. +host=$host
  40715. +host_os=$host_os
  40716. +# The build system.
  40717. +build_alias=$build_alias
  40718. +build=$build
  40719. +build_os=$build_os
  40720. -ac_libobjs=
  40721. -ac_ltlibobjs=
  40722. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  40723. - # 1. Remove the extension, and $U if already installed.
  40724. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  40725. - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  40726. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  40727. - # will be set to the directory where LIBOBJS objects are built.
  40728. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  40729. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  40730. -done
  40731. -LIBOBJS=$ac_libobjs
  40732. +# A sed program that does not truncate output.
  40733. +SED=$lt_SED
  40734. -LTLIBOBJS=$ac_ltlibobjs
  40735. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  40736. +Xsed="\$SED -e 1s/^X//"
  40737. +# A grep program that handles long lines.
  40738. +GREP=$lt_GREP
  40739. - if test -n "$EXEEXT"; then
  40740. - am__EXEEXT_TRUE=
  40741. - am__EXEEXT_FALSE='#'
  40742. -else
  40743. - am__EXEEXT_TRUE='#'
  40744. - am__EXEEXT_FALSE=
  40745. -fi
  40746. +# An ERE matcher.
  40747. +EGREP=$lt_EGREP
  40748. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  40749. - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  40750. -Usually this means the macro was only invoked conditionally." >&5
  40751. -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  40752. -Usually this means the macro was only invoked conditionally." >&2;}
  40753. - { (exit 1); exit 1; }; }
  40754. -fi
  40755. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  40756. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  40757. -Usually this means the macro was only invoked conditionally." >&5
  40758. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  40759. -Usually this means the macro was only invoked conditionally." >&2;}
  40760. - { (exit 1); exit 1; }; }
  40761. -fi
  40762. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  40763. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  40764. -Usually this means the macro was only invoked conditionally." >&5
  40765. -$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  40766. -Usually this means the macro was only invoked conditionally." >&2;}
  40767. - { (exit 1); exit 1; }; }
  40768. -fi
  40769. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  40770. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  40771. -Usually this means the macro was only invoked conditionally." >&5
  40772. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  40773. -Usually this means the macro was only invoked conditionally." >&2;}
  40774. - { (exit 1); exit 1; }; }
  40775. -fi
  40776. +# A literal string matcher.
  40777. +FGREP=$lt_FGREP
  40778. -: ${CONFIG_STATUS=./config.status}
  40779. -ac_write_fail=0
  40780. -ac_clean_files_save=$ac_clean_files
  40781. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  40782. -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  40783. -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  40784. -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40785. -#! $SHELL
  40786. -# Generated by $as_me.
  40787. -# Run this file to recreate the current configuration.
  40788. -# Compiler output produced by configure, useful for debugging
  40789. -# configure, is in config.log if it exists.
  40790. +# A BSD- or MS-compatible name lister.
  40791. +NM=$lt_NM
  40792. -debug=false
  40793. -ac_cs_recheck=false
  40794. -ac_cs_silent=false
  40795. -SHELL=\${CONFIG_SHELL-$SHELL}
  40796. -_ACEOF
  40797. +# Whether we need soft or hard links.
  40798. +LN_S=$lt_LN_S
  40799. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40800. -## --------------------- ##
  40801. -## M4sh Initialization. ##
  40802. -## --------------------- ##
  40803. +# What is the maximum length of a command?
  40804. +max_cmd_len=$max_cmd_len
  40805. -# Be more Bourne compatible
  40806. -DUALCASE=1; export DUALCASE # for MKS sh
  40807. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  40808. - emulate sh
  40809. - NULLCMD=:
  40810. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  40811. - # is contrary to our usage. Disable this feature.
  40812. - alias -g '${1+"$@"}'='"$@"'
  40813. - setopt NO_GLOB_SUBST
  40814. -else
  40815. - case `(set -o) 2>/dev/null` in
  40816. - *posix*) set -o posix ;;
  40817. -esac
  40818. +# Object file suffix (normally "o").
  40819. +objext=$ac_objext
  40820. -fi
  40821. +# Executable file suffix (normally "").
  40822. +exeext=$exeext
  40823. +# whether the shell understands "unset".
  40824. +lt_unset=$lt_unset
  40825. +# turn spaces into newlines.
  40826. +SP2NL=$lt_lt_SP2NL
  40827. +# turn newlines into spaces.
  40828. +NL2SP=$lt_lt_NL2SP
  40829. -# PATH needs CR
  40830. -# Avoid depending upon Character Ranges.
  40831. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  40832. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  40833. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  40834. -as_cr_digits='0123456789'
  40835. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  40836. +# How to create reloadable object files.
  40837. +reload_flag=$lt_reload_flag
  40838. +reload_cmds=$lt_reload_cmds
  40839. -as_nl='
  40840. -'
  40841. -export as_nl
  40842. -# Printing a long string crashes Solaris 7 /usr/bin/printf.
  40843. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40844. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40845. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40846. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  40847. - as_echo='printf %s\n'
  40848. - as_echo_n='printf %s'
  40849. -else
  40850. - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  40851. - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  40852. - as_echo_n='/usr/ucb/echo -n'
  40853. - else
  40854. - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  40855. - as_echo_n_body='eval
  40856. - arg=$1;
  40857. - case $arg in
  40858. - *"$as_nl"*)
  40859. - expr "X$arg" : "X\\(.*\\)$as_nl";
  40860. - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  40861. - esac;
  40862. - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  40863. - '
  40864. - export as_echo_n_body
  40865. - as_echo_n='sh -c $as_echo_n_body as_echo'
  40866. - fi
  40867. - export as_echo_body
  40868. - as_echo='sh -c $as_echo_body as_echo'
  40869. -fi
  40870. +# An object symbol dumper.
  40871. +OBJDUMP=$lt_OBJDUMP
  40872. -# The user is always right.
  40873. -if test "${PATH_SEPARATOR+set}" != set; then
  40874. - PATH_SEPARATOR=:
  40875. - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  40876. - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  40877. - PATH_SEPARATOR=';'
  40878. - }
  40879. -fi
  40880. +# Method to check whether dependent libraries are shared objects.
  40881. +deplibs_check_method=$lt_deplibs_check_method
  40882. -# Support unset when possible.
  40883. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  40884. - as_unset=unset
  40885. -else
  40886. - as_unset=false
  40887. -fi
  40888. +# Command to use when deplibs_check_method == "file_magic".
  40889. +file_magic_cmd=$lt_file_magic_cmd
  40890. +# The archiver.
  40891. +AR=$lt_AR
  40892. +AR_FLAGS=$lt_AR_FLAGS
  40893. -# IFS
  40894. -# We need space, tab and new line, in precisely that order. Quoting is
  40895. -# there to prevent editors from complaining about space-tab.
  40896. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  40897. -# splitting by setting IFS to empty value.)
  40898. -IFS=" "" $as_nl"
  40899. +# A symbol stripping program.
  40900. +STRIP=$lt_STRIP
  40901. -# Find who we are. Look in the path if we contain no directory separator.
  40902. -case $0 in
  40903. - *[\\/]* ) as_myself=$0 ;;
  40904. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40905. -for as_dir in $PATH
  40906. -do
  40907. - IFS=$as_save_IFS
  40908. - test -z "$as_dir" && as_dir=.
  40909. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  40910. -done
  40911. -IFS=$as_save_IFS
  40912. +# Commands used to install an old-style archive.
  40913. +RANLIB=$lt_RANLIB
  40914. +old_postinstall_cmds=$lt_old_postinstall_cmds
  40915. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40916. - ;;
  40917. -esac
  40918. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  40919. -# in which case we are not to be found in the path.
  40920. -if test "x$as_myself" = x; then
  40921. - as_myself=$0
  40922. -fi
  40923. -if test ! -f "$as_myself"; then
  40924. - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  40925. - { (exit 1); exit 1; }
  40926. -fi
  40927. +# A C compiler.
  40928. +LTCC=$lt_CC
  40929. -# Work around bugs in pre-3.0 UWIN ksh.
  40930. -for as_var in ENV MAIL MAILPATH
  40931. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  40932. -done
  40933. -PS1='$ '
  40934. -PS2='> '
  40935. -PS4='+ '
  40936. +# LTCC compiler flags.
  40937. +LTCFLAGS=$lt_CFLAGS
  40938. -# NLS nuisances.
  40939. -LC_ALL=C
  40940. -export LC_ALL
  40941. -LANGUAGE=C
  40942. -export LANGUAGE
  40943. +# Take the output of nm and produce a listing of raw symbols and C names.
  40944. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  40945. -# Required to use basename.
  40946. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  40947. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  40948. - as_expr=expr
  40949. -else
  40950. - as_expr=false
  40951. -fi
  40952. +# Transform the output of nm in a proper C declaration.
  40953. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  40954. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  40955. - as_basename=basename
  40956. -else
  40957. - as_basename=false
  40958. -fi
  40959. +# Transform the output of nm in a C name address pair.
  40960. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  40961. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  40962. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  40963. -# Name of the executable.
  40964. -as_me=`$as_basename -- "$0" ||
  40965. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  40966. - X"$0" : 'X\(//\)$' \| \
  40967. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  40968. -$as_echo X/"$0" |
  40969. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  40970. - s//\1/
  40971. - q
  40972. - }
  40973. - /^X\/\(\/\/\)$/{
  40974. - s//\1/
  40975. - q
  40976. - }
  40977. - /^X\/\(\/\).*/{
  40978. - s//\1/
  40979. - q
  40980. - }
  40981. - s/.*/./; q'`
  40982. +# The name of the directory that contains temporary libtool files.
  40983. +objdir=$objdir
  40984. -# CDPATH.
  40985. -$as_unset CDPATH
  40986. +# Shell to use when invoking shell scripts.
  40987. +SHELL=$lt_SHELL
  40988. +# An echo program that does not interpret backslashes.
  40989. +ECHO=$lt_ECHO
  40990. +# Used to examine libraries when file_magic_cmd begins with "file".
  40991. +MAGIC_CMD=$MAGIC_CMD
  40992. - as_lineno_1=$LINENO
  40993. - as_lineno_2=$LINENO
  40994. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  40995. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  40996. -
  40997. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  40998. - # uniformly replaced by the line number. The first 'sed' inserts a
  40999. - # line-number line after each line using $LINENO; the second 'sed'
  41000. - # does the real work. The second script uses 'N' to pair each
  41001. - # line-number line with the line containing $LINENO, and appends
  41002. - # trailing '-' during substitution so that $LINENO is not a special
  41003. - # case at line end.
  41004. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  41005. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  41006. - # E. McMahon (1931-1989) for sed's syntax. :-)
  41007. - sed -n '
  41008. - p
  41009. - /[$]LINENO/=
  41010. - ' <$as_myself |
  41011. - sed '
  41012. - s/[$]LINENO.*/&-/
  41013. - t lineno
  41014. - b
  41015. - :lineno
  41016. - N
  41017. - :loop
  41018. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  41019. - t loop
  41020. - s/-\n.*//
  41021. - ' >$as_me.lineno &&
  41022. - chmod +x "$as_me.lineno" ||
  41023. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  41024. - { (exit 1); exit 1; }; }
  41025. +# Must we lock files when doing compilation?
  41026. +need_locks=$lt_need_locks
  41027. - # Don't try to exec as it changes $[0], causing all sort of problems
  41028. - # (the dirname of $[0] is not the place where we might find the
  41029. - # original and so on. Autoconf is especially sensitive to this).
  41030. - . "./$as_me.lineno"
  41031. - # Exit status is that of the last command.
  41032. - exit
  41033. -}
  41034. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  41035. +DSYMUTIL=$lt_DSYMUTIL
  41036. +# Tool to change global to local symbols on Mac OS X.
  41037. +NMEDIT=$lt_NMEDIT
  41038. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  41039. - as_dirname=dirname
  41040. -else
  41041. - as_dirname=false
  41042. -fi
  41043. +# Tool to manipulate fat objects and archives on Mac OS X.
  41044. +LIPO=$lt_LIPO
  41045. -ECHO_C= ECHO_N= ECHO_T=
  41046. -case `echo -n x` in
  41047. --n*)
  41048. - case `echo 'x\c'` in
  41049. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  41050. - *) ECHO_C='\c';;
  41051. - esac;;
  41052. -*)
  41053. - ECHO_N='-n';;
  41054. -esac
  41055. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  41056. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  41057. - as_expr=expr
  41058. -else
  41059. - as_expr=false
  41060. -fi
  41061. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  41062. +OTOOL=$lt_OTOOL
  41063. -rm -f conf$$ conf$$.exe conf$$.file
  41064. -if test -d conf$$.dir; then
  41065. - rm -f conf$$.dir/conf$$.file
  41066. -else
  41067. - rm -f conf$$.dir
  41068. - mkdir conf$$.dir 2>/dev/null
  41069. -fi
  41070. -if (echo >conf$$.file) 2>/dev/null; then
  41071. - if ln -s conf$$.file conf$$ 2>/dev/null; then
  41072. - as_ln_s='ln -s'
  41073. - # ... but there are two gotchas:
  41074. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  41075. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  41076. - # In both cases, we have to default to `cp -p'.
  41077. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  41078. - as_ln_s='cp -p'
  41079. - elif ln conf$$.file conf$$ 2>/dev/null; then
  41080. - as_ln_s=ln
  41081. - else
  41082. - as_ln_s='cp -p'
  41083. - fi
  41084. -else
  41085. - as_ln_s='cp -p'
  41086. -fi
  41087. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  41088. -rmdir conf$$.dir 2>/dev/null
  41089. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  41090. +OTOOL64=$lt_OTOOL64
  41091. -if mkdir -p . 2>/dev/null; then
  41092. - as_mkdir_p=:
  41093. -else
  41094. - test -d ./-p && rmdir ./-p
  41095. - as_mkdir_p=false
  41096. -fi
  41097. +# Old archive suffix (normally "a").
  41098. +libext=$libext
  41099. -if test -x / >/dev/null 2>&1; then
  41100. - as_test_x='test -x'
  41101. -else
  41102. - if ls -dL / >/dev/null 2>&1; then
  41103. - as_ls_L_option=L
  41104. - else
  41105. - as_ls_L_option=
  41106. - fi
  41107. - as_test_x='
  41108. - eval sh -c '\''
  41109. - if test -d "$1"; then
  41110. - test -d "$1/.";
  41111. - else
  41112. - case $1 in
  41113. - -*)set "./$1";;
  41114. - esac;
  41115. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  41116. - ???[sx]*):;;*)false;;esac;fi
  41117. - '\'' sh
  41118. - '
  41119. -fi
  41120. -as_executable_p=$as_test_x
  41121. +# Shared library suffix (normally ".so").
  41122. +shrext_cmds=$lt_shrext_cmds
  41123. -# Sed expression to map a string onto a valid CPP name.
  41124. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  41125. +# The commands to extract the exported symbol list from a shared archive.
  41126. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  41127. -# Sed expression to map a string onto a valid variable name.
  41128. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  41129. +# Variables whose values should be saved in libtool wrapper scripts and
  41130. +# restored at link time.
  41131. +variables_saved_for_relink=$lt_variables_saved_for_relink
  41132. +# Do we need the "lib" prefix for modules?
  41133. +need_lib_prefix=$need_lib_prefix
  41134. -exec 6>&1
  41135. +# Do we need a version for libraries?
  41136. +need_version=$need_version
  41137. -# Save the log message, to keep $[0] and so on meaningful, and to
  41138. -# report actual input values of CONFIG_FILES etc. instead of their
  41139. -# values after options handling.
  41140. -ac_log="
  41141. -This file was extended by librpcsecgss $as_me 0.19, which was
  41142. -generated by GNU Autoconf 2.63. Invocation command line was
  41143. +# Library versioning type.
  41144. +version_type=$version_type
  41145. - CONFIG_FILES = $CONFIG_FILES
  41146. - CONFIG_HEADERS = $CONFIG_HEADERS
  41147. - CONFIG_LINKS = $CONFIG_LINKS
  41148. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  41149. - $ $0 $@
  41150. +# Shared library runtime path variable.
  41151. +runpath_var=$runpath_var
  41152. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  41153. -"
  41154. +# Shared library path variable.
  41155. +shlibpath_var=$shlibpath_var
  41156. -_ACEOF
  41157. +# Is shlibpath searched before the hard-coded library search path?
  41158. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  41159. -case $ac_config_files in *"
  41160. -"*) set x $ac_config_files; shift; ac_config_files=$*;;
  41161. -esac
  41162. +# Format of library name prefix.
  41163. +libname_spec=$lt_libname_spec
  41164. +# List of archive names. First name is the real one, the rest are links.
  41165. +# The last name is the one that the linker finds with -lNAME
  41166. +library_names_spec=$lt_library_names_spec
  41167. +# The coded name of the library, if different from the real name.
  41168. +soname_spec=$lt_soname_spec
  41169. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41170. -# Files that config.status was made for.
  41171. -config_files="$ac_config_files"
  41172. -config_commands="$ac_config_commands"
  41173. +# Command to use after installation of a shared archive.
  41174. +postinstall_cmds=$lt_postinstall_cmds
  41175. -_ACEOF
  41176. +# Command to use after uninstallation of a shared archive.
  41177. +postuninstall_cmds=$lt_postuninstall_cmds
  41178. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41179. -ac_cs_usage="\
  41180. -\`$as_me' instantiates files from templates according to the
  41181. -current configuration.
  41182. +# Commands used to finish a libtool library installation in a directory.
  41183. +finish_cmds=$lt_finish_cmds
  41184. -Usage: $0 [OPTION]... [FILE]...
  41185. +# As "finish_cmds", except a single script fragment to be evaled but
  41186. +# not shown.
  41187. +finish_eval=$lt_finish_eval
  41188. - -h, --help print this help, then exit
  41189. - -V, --version print version number and configuration settings, then exit
  41190. - -q, --quiet, --silent
  41191. - do not print progress messages
  41192. - -d, --debug don't remove temporary files
  41193. - --recheck update $as_me by reconfiguring in the same conditions
  41194. - --file=FILE[:TEMPLATE]
  41195. - instantiate the configuration file FILE
  41196. +# Whether we should hardcode library paths into libraries.
  41197. +hardcode_into_libs=$hardcode_into_libs
  41198. -Configuration files:
  41199. -$config_files
  41200. +# Compile-time system search path for libraries.
  41201. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  41202. -Configuration commands:
  41203. -$config_commands
  41204. +# Run-time system search path for libraries.
  41205. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  41206. -Report bugs to <bug-autoconf@gnu.org>."
  41207. +# Whether dlopen is supported.
  41208. +dlopen_support=$enable_dlopen
  41209. -_ACEOF
  41210. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41211. -ac_cs_version="\\
  41212. -librpcsecgss config.status 0.19
  41213. -configured by $0, generated by GNU Autoconf 2.63,
  41214. - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  41215. +# Whether dlopen of programs is supported.
  41216. +dlopen_self=$enable_dlopen_self
  41217. -Copyright (C) 2008 Free Software Foundation, Inc.
  41218. -This config.status script is free software; the Free Software Foundation
  41219. -gives unlimited permission to copy, distribute and modify it."
  41220. +# Whether dlopen of statically linked programs is supported.
  41221. +dlopen_self_static=$enable_dlopen_self_static
  41222. -ac_pwd='$ac_pwd'
  41223. -srcdir='$srcdir'
  41224. -INSTALL='$INSTALL'
  41225. -MKDIR_P='$MKDIR_P'
  41226. -AWK='$AWK'
  41227. -test -n "\$AWK" || AWK=awk
  41228. -_ACEOF
  41229. +# Commands to strip libraries.
  41230. +old_striplib=$lt_old_striplib
  41231. +striplib=$lt_striplib
  41232. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41233. -# The default lists apply if the user does not specify any file.
  41234. -ac_need_defaults=:
  41235. -while test $# != 0
  41236. -do
  41237. - case $1 in
  41238. - --*=*)
  41239. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  41240. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  41241. - ac_shift=:
  41242. - ;;
  41243. - *)
  41244. - ac_option=$1
  41245. - ac_optarg=$2
  41246. - ac_shift=shift
  41247. - ;;
  41248. - esac
  41249. - case $ac_option in
  41250. - # Handling of the options.
  41251. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  41252. - ac_cs_recheck=: ;;
  41253. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  41254. - $as_echo "$ac_cs_version"; exit ;;
  41255. - --debug | --debu | --deb | --de | --d | -d )
  41256. - debug=: ;;
  41257. - --file | --fil | --fi | --f )
  41258. - $ac_shift
  41259. - case $ac_optarg in
  41260. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  41261. - esac
  41262. - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  41263. - ac_need_defaults=false;;
  41264. - --he | --h | --help | --hel | -h )
  41265. - $as_echo "$ac_cs_usage"; exit ;;
  41266. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  41267. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  41268. - ac_cs_silent=: ;;
  41269. +# The linker used to build libraries.
  41270. +LD=$lt_LD
  41271. - # This is an error.
  41272. - -*) { $as_echo "$as_me: error: unrecognized option: $1
  41273. -Try \`$0 --help' for more information." >&2
  41274. - { (exit 1); exit 1; }; } ;;
  41275. +# Commands used to build an old-style archive.
  41276. +old_archive_cmds=$lt_old_archive_cmds
  41277. - *) ac_config_targets="$ac_config_targets $1"
  41278. - ac_need_defaults=false ;;
  41279. +# A language specific compiler.
  41280. +CC=$lt_compiler
  41281. - esac
  41282. - shift
  41283. -done
  41284. +# Is the compiler the GNU compiler?
  41285. +with_gcc=$GCC
  41286. -ac_configure_extra_args=
  41287. +# Compiler flag to turn off builtin functions.
  41288. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  41289. -if $ac_cs_silent; then
  41290. - exec 6>/dev/null
  41291. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  41292. -fi
  41293. +# How to pass a linker flag through the compiler.
  41294. +wl=$lt_lt_prog_compiler_wl
  41295. -_ACEOF
  41296. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41297. -if \$ac_cs_recheck; then
  41298. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  41299. - shift
  41300. - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  41301. - CONFIG_SHELL='$SHELL'
  41302. - export CONFIG_SHELL
  41303. - exec "\$@"
  41304. -fi
  41305. +# Additional compiler flags for building library objects.
  41306. +pic_flag=$lt_lt_prog_compiler_pic
  41307. -_ACEOF
  41308. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41309. -exec 5>>config.log
  41310. -{
  41311. - echo
  41312. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  41313. -## Running $as_me. ##
  41314. -_ASBOX
  41315. - $as_echo "$ac_log"
  41316. -} >&5
  41317. +# Compiler flag to prevent dynamic linking.
  41318. +link_static_flag=$lt_lt_prog_compiler_static
  41319. -_ACEOF
  41320. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41321. -#
  41322. -# INIT-COMMANDS
  41323. -#
  41324. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  41325. +# Does compiler simultaneously support -c and -o options?
  41326. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  41327. -_ACEOF
  41328. +# Whether or not to add -lc for building shared libraries.
  41329. +build_libtool_need_lc=$archive_cmds_need_lc
  41330. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41331. +# Whether or not to disallow shared libs when runtime libs are static.
  41332. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  41333. -# Handling of arguments.
  41334. -for ac_config_target in $ac_config_targets
  41335. -do
  41336. - case $ac_config_target in
  41337. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  41338. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  41339. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  41340. - "librpcsecgss.pc") CONFIG_FILES="$CONFIG_FILES librpcsecgss.pc" ;;
  41341. +# Compiler flag to allow reflexive dlopens.
  41342. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  41343. - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  41344. -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  41345. - { (exit 1); exit 1; }; };;
  41346. - esac
  41347. -done
  41348. +# Compiler flag to generate shared objects directly from archives.
  41349. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  41350. +# Whether the compiler copes with passing no objects directly.
  41351. +compiler_needs_object=$lt_compiler_needs_object
  41352. -# If the user did not use the arguments to specify the items to instantiate,
  41353. -# then the envvar interface is used. Set only those that are not.
  41354. -# We use the long form for the default assignment because of an extremely
  41355. -# bizarre bug on SunOS 4.1.3.
  41356. -if $ac_need_defaults; then
  41357. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  41358. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  41359. -fi
  41360. +# Create an old-style archive from a shared archive.
  41361. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  41362. -# Have a temporary directory for convenience. Make it in the build tree
  41363. -# simply because there is no reason against having it here, and in addition,
  41364. -# creating and moving files from /tmp can sometimes cause problems.
  41365. -# Hook for its removal unless debugging.
  41366. -# Note that there is a small window in which the directory will not be cleaned:
  41367. -# after its creation but before its name has been assigned to `$tmp'.
  41368. -$debug ||
  41369. -{
  41370. - tmp=
  41371. - trap 'exit_status=$?
  41372. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  41373. -' 0
  41374. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  41375. -}
  41376. -# Create a (secure) tmp directory for tmp files.
  41377. +# Create a temporary old-style archive to link instead of a shared archive.
  41378. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  41379. -{
  41380. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  41381. - test -n "$tmp" && test -d "$tmp"
  41382. -} ||
  41383. -{
  41384. - tmp=./conf$$-$RANDOM
  41385. - (umask 077 && mkdir "$tmp")
  41386. -} ||
  41387. -{
  41388. - $as_echo "$as_me: cannot create a temporary directory in ." >&2
  41389. - { (exit 1); exit 1; }
  41390. -}
  41391. +# Commands used to build a shared archive.
  41392. +archive_cmds=$lt_archive_cmds
  41393. +archive_expsym_cmds=$lt_archive_expsym_cmds
  41394. -# Set up the scripts for CONFIG_FILES section.
  41395. -# No need to generate them if there are no CONFIG_FILES.
  41396. -# This happens for instance with `./config.status config.h'.
  41397. -if test -n "$CONFIG_FILES"; then
  41398. +# Commands used to build a loadable module if different from building
  41399. +# a shared archive.
  41400. +module_cmds=$lt_module_cmds
  41401. +module_expsym_cmds=$lt_module_expsym_cmds
  41402. +# Whether we are building with GNU ld or not.
  41403. +with_gnu_ld=$lt_with_gnu_ld
  41404. -ac_cr=' '
  41405. -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  41406. -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  41407. - ac_cs_awk_cr='\\r'
  41408. -else
  41409. - ac_cs_awk_cr=$ac_cr
  41410. -fi
  41411. +# Flag that allows shared libraries with undefined symbols to be built.
  41412. +allow_undefined_flag=$lt_allow_undefined_flag
  41413. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  41414. -_ACEOF
  41415. +# Flag that enforces no undefined symbols.
  41416. +no_undefined_flag=$lt_no_undefined_flag
  41417. +# Flag to hardcode \$libdir into a binary during linking.
  41418. +# This must work even if \$libdir does not exist
  41419. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  41420. -{
  41421. - echo "cat >conf$$subs.awk <<_ACEOF" &&
  41422. - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  41423. - echo "_ACEOF"
  41424. -} >conf$$subs.sh ||
  41425. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  41426. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  41427. - { (exit 1); exit 1; }; }
  41428. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  41429. -ac_delim='%!_!# '
  41430. -for ac_last_try in false false false false false :; do
  41431. - . ./conf$$subs.sh ||
  41432. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  41433. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  41434. - { (exit 1); exit 1; }; }
  41435. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  41436. +# during linking. This must work even if \$libdir does not exist.
  41437. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  41438. - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  41439. - if test $ac_delim_n = $ac_delim_num; then
  41440. - break
  41441. - elif $ac_last_try; then
  41442. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  41443. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  41444. - { (exit 1); exit 1; }; }
  41445. - else
  41446. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41447. - fi
  41448. -done
  41449. -rm -f conf$$subs.sh
  41450. +# Whether we need a single "-rpath" flag with a separated argument.
  41451. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  41452. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41453. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  41454. -_ACEOF
  41455. -sed -n '
  41456. -h
  41457. -s/^/S["/; s/!.*/"]=/
  41458. -p
  41459. -g
  41460. -s/^[^!]*!//
  41461. -:repl
  41462. -t repl
  41463. -s/'"$ac_delim"'$//
  41464. -t delim
  41465. -:nl
  41466. -h
  41467. -s/\(.\{148\}\).*/\1/
  41468. -t more1
  41469. -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  41470. -p
  41471. -n
  41472. -b repl
  41473. -:more1
  41474. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41475. -p
  41476. -g
  41477. -s/.\{148\}//
  41478. -t nl
  41479. -:delim
  41480. -h
  41481. -s/\(.\{148\}\).*/\1/
  41482. -t more2
  41483. -s/["\\]/\\&/g; s/^/"/; s/$/"/
  41484. -p
  41485. -b
  41486. -:more2
  41487. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41488. -p
  41489. -g
  41490. -s/.\{148\}//
  41491. -t delim
  41492. -' <conf$$subs.awk | sed '
  41493. -/^[^""]/{
  41494. - N
  41495. - s/\n//
  41496. -}
  41497. -' >>$CONFIG_STATUS || ac_write_fail=1
  41498. -rm -f conf$$subs.awk
  41499. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41500. -_ACAWK
  41501. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  41502. - for (key in S) S_is_set[key] = 1
  41503. - FS = ""
  41504. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  41505. +# DIR into the resulting binary.
  41506. +hardcode_direct=$hardcode_direct
  41507. -}
  41508. -{
  41509. - line = $ 0
  41510. - nfields = split(line, field, "@")
  41511. - substed = 0
  41512. - len = length(field[1])
  41513. - for (i = 2; i < nfields; i++) {
  41514. - key = field[i]
  41515. - keylen = length(key)
  41516. - if (S_is_set[key]) {
  41517. - value = S[key]
  41518. - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  41519. - len += length(value) + length(field[++i])
  41520. - substed = 1
  41521. - } else
  41522. - len += 1 + keylen
  41523. - }
  41524. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  41525. +# DIR into the resulting binary and the resulting library dependency is
  41526. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  41527. +# library is relocated.
  41528. +hardcode_direct_absolute=$hardcode_direct_absolute
  41529. - print line
  41530. -}
  41531. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  41532. +# into the resulting binary.
  41533. +hardcode_minus_L=$hardcode_minus_L
  41534. -_ACAWK
  41535. -_ACEOF
  41536. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41537. -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  41538. - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  41539. -else
  41540. - cat
  41541. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  41542. - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  41543. -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  41544. - { (exit 1); exit 1; }; }
  41545. -_ACEOF
  41546. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  41547. +# into the resulting binary.
  41548. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  41549. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  41550. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  41551. -# trailing colons and then remove the whole line if VPATH becomes empty
  41552. -# (actually we leave an empty line to preserve line numbers).
  41553. -if test "x$srcdir" = x.; then
  41554. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  41555. -s/:*\$(srcdir):*/:/
  41556. -s/:*\${srcdir}:*/:/
  41557. -s/:*@srcdir@:*/:/
  41558. -s/^\([^=]*=[ ]*\):*/\1/
  41559. -s/:*$//
  41560. -s/^[^=]*=[ ]*$//
  41561. -}'
  41562. -fi
  41563. +# Set to "yes" if building a shared library automatically hardcodes DIR
  41564. +# into the library and all subsequent libraries and executables linked
  41565. +# against it.
  41566. +hardcode_automatic=$hardcode_automatic
  41567. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41568. -fi # test -n "$CONFIG_FILES"
  41569. +# Set to yes if linker adds runtime paths of dependent libraries
  41570. +# to runtime path list.
  41571. +inherit_rpath=$inherit_rpath
  41572. +# Whether libtool must link a program against all its dependency libraries.
  41573. +link_all_deplibs=$link_all_deplibs
  41574. -eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  41575. -shift
  41576. -for ac_tag
  41577. -do
  41578. - case $ac_tag in
  41579. - :[FHLC]) ac_mode=$ac_tag; continue;;
  41580. - esac
  41581. - case $ac_mode$ac_tag in
  41582. - :[FHL]*:*);;
  41583. - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  41584. -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  41585. - { (exit 1); exit 1; }; };;
  41586. - :[FH]-) ac_tag=-:-;;
  41587. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  41588. - esac
  41589. - ac_save_IFS=$IFS
  41590. - IFS=:
  41591. - set x $ac_tag
  41592. - IFS=$ac_save_IFS
  41593. - shift
  41594. - ac_file=$1
  41595. - shift
  41596. +# Fix the shell variable \$srcfile for the compiler.
  41597. +fix_srcfile_path=$lt_fix_srcfile_path
  41598. - case $ac_mode in
  41599. - :L) ac_source=$1;;
  41600. - :[FH])
  41601. - ac_file_inputs=
  41602. - for ac_f
  41603. - do
  41604. - case $ac_f in
  41605. - -) ac_f="$tmp/stdin";;
  41606. - *) # Look for the file first in the build tree, then in the source tree
  41607. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  41608. - # because $ac_f cannot contain `:'.
  41609. - test -f "$ac_f" ||
  41610. - case $ac_f in
  41611. - [\\/$]*) false;;
  41612. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  41613. - esac ||
  41614. - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  41615. -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  41616. - { (exit 1); exit 1; }; };;
  41617. - esac
  41618. - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  41619. - ac_file_inputs="$ac_file_inputs '$ac_f'"
  41620. - done
  41621. +# Set to "yes" if exported symbols are required.
  41622. +always_export_symbols=$always_export_symbols
  41623. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  41624. - # use $as_me), people would be surprised to read:
  41625. - # /* config.h. Generated by config.status. */
  41626. - configure_input='Generated from '`
  41627. - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  41628. - `' by configure.'
  41629. - if test x"$ac_file" != x-; then
  41630. - configure_input="$ac_file. $configure_input"
  41631. - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  41632. -$as_echo "$as_me: creating $ac_file" >&6;}
  41633. - fi
  41634. - # Neutralize special characters interpreted by sed in replacement strings.
  41635. - case $configure_input in #(
  41636. - *\&* | *\|* | *\\* )
  41637. - ac_sed_conf_input=`$as_echo "$configure_input" |
  41638. - sed 's/[\\\\&|]/\\\\&/g'`;; #(
  41639. - *) ac_sed_conf_input=$configure_input;;
  41640. - esac
  41641. +# The commands to list exported symbols.
  41642. +export_symbols_cmds=$lt_export_symbols_cmds
  41643. - case $ac_tag in
  41644. - *:-:* | *:-) cat >"$tmp/stdin" \
  41645. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  41646. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  41647. - { (exit 1); exit 1; }; } ;;
  41648. - esac
  41649. +# Symbols that should not be listed in the preloaded symbols.
  41650. +exclude_expsyms=$lt_exclude_expsyms
  41651. +
  41652. +# Symbols that must always be exported.
  41653. +include_expsyms=$lt_include_expsyms
  41654. +
  41655. +# Commands necessary for linking programs (against libraries) with templates.
  41656. +prelink_cmds=$lt_prelink_cmds
  41657. +
  41658. +# Specify filename containing input files.
  41659. +file_list_spec=$lt_file_list_spec
  41660. +
  41661. +# How to hardcode a shared library path into an executable.
  41662. +hardcode_action=$hardcode_action
  41663. +
  41664. +# ### END LIBTOOL CONFIG
  41665. +
  41666. +_LT_EOF
  41667. +
  41668. + case $host_os in
  41669. + aix3*)
  41670. + cat <<\_LT_EOF >> "$cfgfile"
  41671. +# AIX sometimes has problems with the GCC collect2 program. For some
  41672. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  41673. +# vanish in a puff of smoke.
  41674. +if test "X${COLLECT_NAMES+set}" != Xset; then
  41675. + COLLECT_NAMES=
  41676. + export COLLECT_NAMES
  41677. +fi
  41678. +_LT_EOF
  41679. ;;
  41680. esac
  41681. - ac_dir=`$as_dirname -- "$ac_file" ||
  41682. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41683. - X"$ac_file" : 'X\(//\)[^/]' \| \
  41684. - X"$ac_file" : 'X\(//\)$' \| \
  41685. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  41686. -$as_echo X"$ac_file" |
  41687. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41688. - s//\1/
  41689. - q
  41690. - }
  41691. - /^X\(\/\/\)[^/].*/{
  41692. - s//\1/
  41693. - q
  41694. - }
  41695. - /^X\(\/\/\)$/{
  41696. - s//\1/
  41697. - q
  41698. - }
  41699. - /^X\(\/\).*/{
  41700. - s//\1/
  41701. - q
  41702. - }
  41703. - s/.*/./; q'`
  41704. - { as_dir="$ac_dir"
  41705. - case $as_dir in #(
  41706. - -*) as_dir=./$as_dir;;
  41707. +
  41708. +ltmain="$ac_aux_dir/ltmain.sh"
  41709. +
  41710. +
  41711. + # We use sed instead of cat because bash on DJGPP gets confused if
  41712. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  41713. + # text mode, it properly converts lines to CR/LF. This bash problem
  41714. + # is reportedly fixed, but why not run on old versions too?
  41715. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  41716. + || (rm -f "$cfgfile"; exit 1)
  41717. +
  41718. + case $xsi_shell in
  41719. + yes)
  41720. + cat << \_LT_EOF >> "$cfgfile"
  41721. +
  41722. +# func_dirname file append nondir_replacement
  41723. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  41724. +# otherwise set result to NONDIR_REPLACEMENT.
  41725. +func_dirname ()
  41726. +{
  41727. + case ${1} in
  41728. + */*) func_dirname_result="${1%/*}${2}" ;;
  41729. + * ) func_dirname_result="${3}" ;;
  41730. esac
  41731. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  41732. - as_dirs=
  41733. - while :; do
  41734. - case $as_dir in #(
  41735. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  41736. - *) as_qdir=$as_dir;;
  41737. - esac
  41738. - as_dirs="'$as_qdir' $as_dirs"
  41739. - as_dir=`$as_dirname -- "$as_dir" ||
  41740. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41741. - X"$as_dir" : 'X\(//\)[^/]' \| \
  41742. - X"$as_dir" : 'X\(//\)$' \| \
  41743. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  41744. -$as_echo X"$as_dir" |
  41745. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41746. - s//\1/
  41747. - q
  41748. - }
  41749. - /^X\(\/\/\)[^/].*/{
  41750. - s//\1/
  41751. - q
  41752. - }
  41753. - /^X\(\/\/\)$/{
  41754. - s//\1/
  41755. - q
  41756. - }
  41757. - /^X\(\/\).*/{
  41758. - s//\1/
  41759. - q
  41760. - }
  41761. - s/.*/./; q'`
  41762. - test -d "$as_dir" && break
  41763. - done
  41764. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  41765. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  41766. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  41767. - { (exit 1); exit 1; }; }; }
  41768. - ac_builddir=.
  41769. +}
  41770. -case "$ac_dir" in
  41771. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  41772. -*)
  41773. - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  41774. - # A ".." for each directory in $ac_dir_suffix.
  41775. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  41776. - case $ac_top_builddir_sub in
  41777. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  41778. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  41779. - esac ;;
  41780. -esac
  41781. -ac_abs_top_builddir=$ac_pwd
  41782. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  41783. -# for backward compatibility:
  41784. -ac_top_builddir=$ac_top_build_prefix
  41785. +# func_basename file
  41786. +func_basename ()
  41787. +{
  41788. + func_basename_result="${1##*/}"
  41789. +}
  41790. -case $srcdir in
  41791. - .) # We are building in place.
  41792. - ac_srcdir=.
  41793. - ac_top_srcdir=$ac_top_builddir_sub
  41794. - ac_abs_top_srcdir=$ac_pwd ;;
  41795. - [\\/]* | ?:[\\/]* ) # Absolute name.
  41796. - ac_srcdir=$srcdir$ac_dir_suffix;
  41797. - ac_top_srcdir=$srcdir
  41798. - ac_abs_top_srcdir=$srcdir ;;
  41799. - *) # Relative name.
  41800. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  41801. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  41802. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  41803. -esac
  41804. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  41805. +# func_dirname_and_basename file append nondir_replacement
  41806. +# perform func_basename and func_dirname in a single function
  41807. +# call:
  41808. +# dirname: Compute the dirname of FILE. If nonempty,
  41809. +# add APPEND to the result, otherwise set result
  41810. +# to NONDIR_REPLACEMENT.
  41811. +# value returned in "$func_dirname_result"
  41812. +# basename: Compute filename of FILE.
  41813. +# value retuned in "$func_basename_result"
  41814. +# Implementation must be kept synchronized with func_dirname
  41815. +# and func_basename. For efficiency, we do not delegate to
  41816. +# those functions but instead duplicate the functionality here.
  41817. +func_dirname_and_basename ()
  41818. +{
  41819. + case ${1} in
  41820. + */*) func_dirname_result="${1%/*}${2}" ;;
  41821. + * ) func_dirname_result="${3}" ;;
  41822. + esac
  41823. + func_basename_result="${1##*/}"
  41824. +}
  41825. +
  41826. +# func_stripname prefix suffix name
  41827. +# strip PREFIX and SUFFIX off of NAME.
  41828. +# PREFIX and SUFFIX must not contain globbing or regex special
  41829. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  41830. +# dot (in which case that matches only a dot).
  41831. +func_stripname ()
  41832. +{
  41833. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  41834. + # positional parameters, so assign one to ordinary parameter first.
  41835. + func_stripname_result=${3}
  41836. + func_stripname_result=${func_stripname_result#"${1}"}
  41837. + func_stripname_result=${func_stripname_result%"${2}"}
  41838. +}
  41839. +
  41840. +# func_opt_split
  41841. +func_opt_split ()
  41842. +{
  41843. + func_opt_split_opt=${1%%=*}
  41844. + func_opt_split_arg=${1#*=}
  41845. +}
  41846. +
  41847. +# func_lo2o object
  41848. +func_lo2o ()
  41849. +{
  41850. + case ${1} in
  41851. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  41852. + *) func_lo2o_result=${1} ;;
  41853. + esac
  41854. +}
  41855. +
  41856. +# func_xform libobj-or-source
  41857. +func_xform ()
  41858. +{
  41859. + func_xform_result=${1%.*}.lo
  41860. +}
  41861. +# func_arith arithmetic-term...
  41862. +func_arith ()
  41863. +{
  41864. + func_arith_result=$(( $* ))
  41865. +}
  41866. - case $ac_mode in
  41867. - :F)
  41868. - #
  41869. - # CONFIG_FILE
  41870. - #
  41871. +# func_len string
  41872. +# STRING may not start with a hyphen.
  41873. +func_len ()
  41874. +{
  41875. + func_len_result=${#1}
  41876. +}
  41877. - case $INSTALL in
  41878. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  41879. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  41880. - esac
  41881. - ac_MKDIR_P=$MKDIR_P
  41882. - case $MKDIR_P in
  41883. - [\\/$]* | ?:[\\/]* ) ;;
  41884. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  41885. +_LT_EOF
  41886. + ;;
  41887. + *) # Bourne compatible functions.
  41888. + cat << \_LT_EOF >> "$cfgfile"
  41889. +
  41890. +# func_dirname file append nondir_replacement
  41891. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  41892. +# otherwise set result to NONDIR_REPLACEMENT.
  41893. +func_dirname ()
  41894. +{
  41895. + # Extract subdirectory from the argument.
  41896. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  41897. + if test "X$func_dirname_result" = "X${1}"; then
  41898. + func_dirname_result="${3}"
  41899. + else
  41900. + func_dirname_result="$func_dirname_result${2}"
  41901. + fi
  41902. +}
  41903. +
  41904. +# func_basename file
  41905. +func_basename ()
  41906. +{
  41907. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  41908. +}
  41909. +
  41910. +
  41911. +# func_stripname prefix suffix name
  41912. +# strip PREFIX and SUFFIX off of NAME.
  41913. +# PREFIX and SUFFIX must not contain globbing or regex special
  41914. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  41915. +# dot (in which case that matches only a dot).
  41916. +# func_strip_suffix prefix name
  41917. +func_stripname ()
  41918. +{
  41919. + case ${2} in
  41920. + .*) func_stripname_result=`$ECHO "X${3}" \
  41921. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  41922. + *) func_stripname_result=`$ECHO "X${3}" \
  41923. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  41924. esac
  41925. -_ACEOF
  41926. +}
  41927. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41928. -# If the template does not know about datarootdir, expand it.
  41929. -# FIXME: This hack should be removed a few years after 2.60.
  41930. -ac_datarootdir_hack=; ac_datarootdir_seen=
  41931. +# sed scripts:
  41932. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  41933. +my_sed_long_arg='1s/^-[^=]*=//'
  41934. -ac_sed_dataroot='
  41935. -/datarootdir/ {
  41936. - p
  41937. - q
  41938. +# func_opt_split
  41939. +func_opt_split ()
  41940. +{
  41941. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  41942. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  41943. }
  41944. -/@datadir@/p
  41945. -/@docdir@/p
  41946. -/@infodir@/p
  41947. -/@localedir@/p
  41948. -/@mandir@/p
  41949. -'
  41950. -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  41951. -*datarootdir*) ac_datarootdir_seen=yes;;
  41952. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  41953. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  41954. -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  41955. -_ACEOF
  41956. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41957. - ac_datarootdir_hack='
  41958. - s&@datadir@&$datadir&g
  41959. - s&@docdir@&$docdir&g
  41960. - s&@infodir@&$infodir&g
  41961. - s&@localedir@&$localedir&g
  41962. - s&@mandir@&$mandir&g
  41963. - s&\\\${datarootdir}&$datarootdir&g' ;;
  41964. -esac
  41965. -_ACEOF
  41966. -# Neutralize VPATH when `$srcdir' = `.'.
  41967. -# Shell code in configure.ac might set extrasub.
  41968. -# FIXME: do we really want to maintain this feature?
  41969. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41970. -ac_sed_extra="$ac_vpsub
  41971. -$extrasub
  41972. -_ACEOF
  41973. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41974. -:t
  41975. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  41976. -s|@configure_input@|$ac_sed_conf_input|;t t
  41977. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  41978. -s&@top_build_prefix@&$ac_top_build_prefix&;t t
  41979. -s&@srcdir@&$ac_srcdir&;t t
  41980. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  41981. -s&@top_srcdir@&$ac_top_srcdir&;t t
  41982. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  41983. -s&@builddir@&$ac_builddir&;t t
  41984. -s&@abs_builddir@&$ac_abs_builddir&;t t
  41985. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  41986. -s&@INSTALL@&$ac_INSTALL&;t t
  41987. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  41988. -$ac_datarootdir_hack
  41989. -"
  41990. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  41991. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  41992. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  41993. - { (exit 1); exit 1; }; }
  41994. +# func_lo2o object
  41995. +func_lo2o ()
  41996. +{
  41997. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  41998. +}
  41999. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  42000. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  42001. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  42002. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42003. -which seems to be undefined. Please make sure it is defined." >&5
  42004. -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42005. -which seems to be undefined. Please make sure it is defined." >&2;}
  42006. +# func_xform libobj-or-source
  42007. +func_xform ()
  42008. +{
  42009. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  42010. +}
  42011. - rm -f "$tmp/stdin"
  42012. - case $ac_file in
  42013. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  42014. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  42015. - esac \
  42016. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  42017. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  42018. - { (exit 1); exit 1; }; }
  42019. - ;;
  42020. +# func_arith arithmetic-term...
  42021. +func_arith ()
  42022. +{
  42023. + func_arith_result=`expr "$@"`
  42024. +}
  42025. +# func_len string
  42026. +# STRING may not start with a hyphen.
  42027. +func_len ()
  42028. +{
  42029. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  42030. +}
  42031. - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  42032. -$as_echo "$as_me: executing $ac_file commands" >&6;}
  42033. - ;;
  42034. - esac
  42035. +_LT_EOF
  42036. +esac
  42037. +case $lt_shell_append in
  42038. + yes)
  42039. + cat << \_LT_EOF >> "$cfgfile"
  42040. +
  42041. +# func_append var value
  42042. +# Append VALUE to the end of shell variable VAR.
  42043. +func_append ()
  42044. +{
  42045. + eval "$1+=\$2"
  42046. +}
  42047. +_LT_EOF
  42048. + ;;
  42049. + *)
  42050. + cat << \_LT_EOF >> "$cfgfile"
  42051. - case $ac_file$ac_mode in
  42052. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  42053. - # Autoconf 2.62 quotes --file arguments for eval, but not when files
  42054. - # are listed without --file. Let's play safe and only enable the eval
  42055. - # if we detect the quoting.
  42056. - case $CONFIG_FILES in
  42057. - *\'*) eval set x "$CONFIG_FILES" ;;
  42058. - *) set x $CONFIG_FILES ;;
  42059. - esac
  42060. - shift
  42061. - for mf
  42062. - do
  42063. - # Strip MF so we end up with the name of the file.
  42064. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  42065. - # Check whether this is an Automake generated Makefile or not.
  42066. - # We used to match only the files named `Makefile.in', but
  42067. - # some people rename them; so instead we look at the file content.
  42068. - # Grep'ing the first line is not enough: some people post-process
  42069. - # each Makefile.in and add a new line on top of each file to say so.
  42070. - # Grep'ing the whole file is not good either: AIX grep has a line
  42071. - # limit of 2048, but all sed's we know have understand at least 4000.
  42072. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  42073. - dirpart=`$as_dirname -- "$mf" ||
  42074. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42075. - X"$mf" : 'X\(//\)[^/]' \| \
  42076. - X"$mf" : 'X\(//\)$' \| \
  42077. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  42078. -$as_echo X"$mf" |
  42079. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42080. - s//\1/
  42081. - q
  42082. - }
  42083. - /^X\(\/\/\)[^/].*/{
  42084. - s//\1/
  42085. - q
  42086. - }
  42087. - /^X\(\/\/\)$/{
  42088. - s//\1/
  42089. - q
  42090. - }
  42091. - /^X\(\/\).*/{
  42092. - s//\1/
  42093. - q
  42094. - }
  42095. - s/.*/./; q'`
  42096. - else
  42097. - continue
  42098. - fi
  42099. - # Extract the definition of DEPDIR, am__include, and am__quote
  42100. - # from the Makefile without running `make'.
  42101. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  42102. - test -z "$DEPDIR" && continue
  42103. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  42104. - test -z "am__include" && continue
  42105. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  42106. - # When using ansi2knr, U may be empty or an underscore; expand it
  42107. - U=`sed -n 's/^U = //p' < "$mf"`
  42108. - # Find all dependency output files, they are included files with
  42109. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  42110. - # simplest approach to changing $(DEPDIR) to its actual value in the
  42111. - # expansion.
  42112. - for file in `sed -n "
  42113. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  42114. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  42115. - # Make sure the directory exists.
  42116. - test -f "$dirpart/$file" && continue
  42117. - fdir=`$as_dirname -- "$file" ||
  42118. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42119. - X"$file" : 'X\(//\)[^/]' \| \
  42120. - X"$file" : 'X\(//\)$' \| \
  42121. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  42122. -$as_echo X"$file" |
  42123. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42124. - s//\1/
  42125. - q
  42126. - }
  42127. - /^X\(\/\/\)[^/].*/{
  42128. - s//\1/
  42129. - q
  42130. - }
  42131. - /^X\(\/\/\)$/{
  42132. - s//\1/
  42133. - q
  42134. - }
  42135. - /^X\(\/\).*/{
  42136. - s//\1/
  42137. - q
  42138. - }
  42139. - s/.*/./; q'`
  42140. - { as_dir=$dirpart/$fdir
  42141. - case $as_dir in #(
  42142. - -*) as_dir=./$as_dir;;
  42143. - esac
  42144. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  42145. - as_dirs=
  42146. - while :; do
  42147. - case $as_dir in #(
  42148. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  42149. - *) as_qdir=$as_dir;;
  42150. - esac
  42151. - as_dirs="'$as_qdir' $as_dirs"
  42152. - as_dir=`$as_dirname -- "$as_dir" ||
  42153. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42154. - X"$as_dir" : 'X\(//\)[^/]' \| \
  42155. - X"$as_dir" : 'X\(//\)$' \| \
  42156. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  42157. -$as_echo X"$as_dir" |
  42158. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42159. - s//\1/
  42160. - q
  42161. - }
  42162. - /^X\(\/\/\)[^/].*/{
  42163. - s//\1/
  42164. - q
  42165. - }
  42166. - /^X\(\/\/\)$/{
  42167. - s//\1/
  42168. - q
  42169. - }
  42170. - /^X\(\/\).*/{
  42171. - s//\1/
  42172. - q
  42173. - }
  42174. - s/.*/./; q'`
  42175. - test -d "$as_dir" && break
  42176. - done
  42177. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  42178. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  42179. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  42180. - { (exit 1); exit 1; }; }; }
  42181. - # echo "creating $dirpart/$file"
  42182. - echo '# dummy' > "$dirpart/$file"
  42183. - done
  42184. - done
  42185. +# func_append var value
  42186. +# Append VALUE to the end of shell variable VAR.
  42187. +func_append ()
  42188. +{
  42189. + eval "$1=\$$1\$2"
  42190. }
  42191. +
  42192. +_LT_EOF
  42193. + ;;
  42194. + esac
  42195. +
  42196. +
  42197. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  42198. + || (rm -f "$cfgfile"; exit 1)
  42199. +
  42200. + mv -f "$cfgfile" "$ofile" ||
  42201. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  42202. + chmod +x "$ofile"
  42203. +
  42204. ;;
  42205. esac
  42206. done # for ac_tag
  42207. -{ (exit 0); exit 0; }
  42208. +as_fn_exit 0
  42209. _ACEOF
  42210. -chmod +x $CONFIG_STATUS
  42211. ac_clean_files=$ac_clean_files_save
  42212. test $ac_write_fail = 0 ||
  42213. - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  42214. -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  42215. - { (exit 1); exit 1; }; }
  42216. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  42217. # configure is writing to config.log, and then calls config.status.
  42218. @@ -23647,10 +14053,10 @@
  42219. exec 5>>config.log
  42220. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  42221. # would make configure fail if this is the last instruction.
  42222. - $ac_cs_success || { (exit 1); exit 1; }
  42223. + $ac_cs_success || as_fn_exit $?
  42224. fi
  42225. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  42226. - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  42227. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  42228. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  42229. fi
  42230. diff -Nur librpcsecgss-0.19.orig/INSTALL librpcsecgss-0.19/INSTALL
  42231. --- librpcsecgss-0.19.orig/INSTALL 2009-05-13 23:33:08.000000000 +0200
  42232. +++ librpcsecgss-0.19/INSTALL 2011-02-17 18:22:25.993552263 +0100
  42233. @@ -1,48 +1,80 @@
  42234. +Installation Instructions
  42235. +*************************
  42236. +
  42237. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  42238. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  42239. +
  42240. + Copying and distribution of this file, with or without modification,
  42241. +are permitted in any medium without royalty provided the copyright
  42242. +notice and this notice are preserved. This file is offered as-is,
  42243. +without warranty of any kind.
  42244. +
  42245. Basic Installation
  42246. ==================
  42247. - These are generic installation instructions.
  42248. + Briefly, the shell commands `./configure; make; make install' should
  42249. +configure, build, and install this package. The following
  42250. +more-detailed instructions are generic; see the `README' file for
  42251. +instructions specific to this package. Some packages provide this
  42252. +`INSTALL' file but do not implement all of the features documented
  42253. +below. The lack of an optional feature in a given package is not
  42254. +necessarily a bug. More recommendations for GNU packages can be found
  42255. +in *note Makefile Conventions: (standards)Makefile Conventions.
  42256. The `configure' shell script attempts to guess correct values for
  42257. various system-dependent variables used during compilation. It uses
  42258. those values to create a `Makefile' in each directory of the package.
  42259. It may also create one or more `.h' files containing system-dependent
  42260. definitions. Finally, it creates a shell script `config.status' that
  42261. -you can run in the future to recreate the current configuration, a file
  42262. -`config.cache' that saves the results of its tests to speed up
  42263. -reconfiguring, and a file `config.log' containing compiler output
  42264. -(useful mainly for debugging `configure').
  42265. +you can run in the future to recreate the current configuration, and a
  42266. +file `config.log' containing compiler output (useful mainly for
  42267. +debugging `configure').
  42268. +
  42269. + It can also use an optional file (typically called `config.cache'
  42270. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  42271. +the results of its tests to speed up reconfiguring. Caching is
  42272. +disabled by default to prevent problems with accidental use of stale
  42273. +cache files.
  42274. If you need to do unusual things to compile the package, please try
  42275. to figure out how `configure' could check whether to do them, and mail
  42276. diffs or instructions to the address given in the `README' so they can
  42277. -be considered for the next release. If at some point `config.cache'
  42278. -contains results you don't want to keep, you may remove or edit it.
  42279. -
  42280. - The file `configure.in' is used to create `configure' by a program
  42281. -called `autoconf'. You only need `configure.in' if you want to change
  42282. -it or regenerate `configure' using a newer version of `autoconf'.
  42283. +be considered for the next release. If you are using the cache, and at
  42284. +some point `config.cache' contains results you don't want to keep, you
  42285. +may remove or edit it.
  42286. +
  42287. + The file `configure.ac' (or `configure.in') is used to create
  42288. +`configure' by a program called `autoconf'. You need `configure.ac' if
  42289. +you want to change it or regenerate `configure' using a newer version
  42290. +of `autoconf'.
  42291. -The simplest way to compile this package is:
  42292. + The simplest way to compile this package is:
  42293. 1. `cd' to the directory containing the package's source code and type
  42294. - `./configure' to configure the package for your system. If you're
  42295. - using `csh' on an old version of System V, you might need to type
  42296. - `sh ./configure' instead to prevent `csh' from trying to execute
  42297. - `configure' itself.
  42298. + `./configure' to configure the package for your system.
  42299. - Running `configure' takes awhile. While running, it prints some
  42300. - messages telling which features it is checking for.
  42301. + Running `configure' might take a while. While running, it prints
  42302. + some messages telling which features it is checking for.
  42303. 2. Type `make' to compile the package.
  42304. 3. Optionally, type `make check' to run any self-tests that come with
  42305. - the package.
  42306. + the package, generally using the just-built uninstalled binaries.
  42307. 4. Type `make install' to install the programs and any data files and
  42308. - documentation.
  42309. + documentation. When installing into a prefix owned by root, it is
  42310. + recommended that the package be configured and built as a regular
  42311. + user, and only the `make install' phase executed with root
  42312. + privileges.
  42313. +
  42314. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  42315. + this time using the binaries in their final installed location.
  42316. + This target does not install anything. Running this target as a
  42317. + regular user, particularly if the prior `make install' required
  42318. + root privileges, verifies that the installation completed
  42319. + correctly.
  42320. - 5. You can remove the program binaries and object files from the
  42321. + 6. You can remove the program binaries and object files from the
  42322. source code directory by typing `make clean'. To also remove the
  42323. files that `configure' created (so you can compile the package for
  42324. a different kind of computer), type `make distclean'. There is
  42325. @@ -51,62 +83,119 @@
  42326. all sorts of other programs in order to regenerate files that came
  42327. with the distribution.
  42328. + 7. Often, you can also type `make uninstall' to remove the installed
  42329. + files again. In practice, not all packages have tested that
  42330. + uninstallation works correctly, even though it is required by the
  42331. + GNU Coding Standards.
  42332. +
  42333. + 8. Some packages, particularly those that use Automake, provide `make
  42334. + distcheck', which can by used by developers to test that all other
  42335. + targets like `make install' and `make uninstall' work correctly.
  42336. + This target is generally not run by end users.
  42337. +
  42338. Compilers and Options
  42339. =====================
  42340. Some systems require unusual options for compilation or linking that
  42341. -the `configure' script does not know about. You can give `configure'
  42342. -initial values for variables by setting them in the environment. Using
  42343. -a Bourne-compatible shell, you can do that on the command line like
  42344. -this:
  42345. - CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
  42346. +the `configure' script does not know about. Run `./configure --help'
  42347. +for details on some of the pertinent environment variables.
  42348. +
  42349. + You can give `configure' initial values for configuration parameters
  42350. +by setting variables in the command line or in the environment. Here
  42351. +is an example:
  42352. -Or on systems that have the `env' program, you can do it like this:
  42353. - env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
  42354. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  42355. +
  42356. + *Note Defining Variables::, for more details.
  42357. Compiling For Multiple Architectures
  42358. ====================================
  42359. You can compile the package for more than one kind of computer at the
  42360. same time, by placing the object files for each architecture in their
  42361. -own directory. To do this, you must use a version of `make' that
  42362. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  42363. +own directory. To do this, you can use GNU `make'. `cd' to the
  42364. directory where you want the object files and executables to go and run
  42365. the `configure' script. `configure' automatically checks for the
  42366. -source code in the directory that `configure' is in and in `..'.
  42367. +source code in the directory that `configure' is in and in `..'. This
  42368. +is known as a "VPATH" build.
  42369. +
  42370. + With a non-GNU `make', it is safer to compile the package for one
  42371. +architecture at a time in the source code directory. After you have
  42372. +installed the package for one architecture, use `make distclean' before
  42373. +reconfiguring for another architecture.
  42374. +
  42375. + On MacOS X 10.5 and later systems, you can create libraries and
  42376. +executables that work on multiple system types--known as "fat" or
  42377. +"universal" binaries--by specifying multiple `-arch' options to the
  42378. +compiler but only a single `-arch' option to the preprocessor. Like
  42379. +this:
  42380. - If you have to use a `make' that does not supports the `VPATH'
  42381. -variable, you have to compile the package for one architecture at a time
  42382. -in the source code directory. After you have installed the package for
  42383. -one architecture, use `make distclean' before reconfiguring for another
  42384. -architecture.
  42385. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  42386. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  42387. + CPP="gcc -E" CXXCPP="g++ -E"
  42388. +
  42389. + This is not guaranteed to produce working output in all cases, you
  42390. +may have to build one architecture at a time and combine the results
  42391. +using the `lipo' tool if you have problems.
  42392. Installation Names
  42393. ==================
  42394. - By default, `make install' will install the package's files in
  42395. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  42396. -installation prefix other than `/usr/local' by giving `configure' the
  42397. -option `--prefix=PATH'.
  42398. + By default, `make install' installs the package's commands under
  42399. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  42400. +can specify an installation prefix other than `/usr/local' by giving
  42401. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  42402. +absolute file name.
  42403. You can specify separate installation prefixes for
  42404. architecture-specific files and architecture-independent files. If you
  42405. -give `configure' the option `--exec-prefix=PATH', the package will use
  42406. -PATH as the prefix for installing programs and libraries.
  42407. -Documentation and other data files will still use the regular prefix.
  42408. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  42409. +PREFIX as the prefix for installing programs and libraries.
  42410. +Documentation and other data files still use the regular prefix.
  42411. In addition, if you use an unusual directory layout you can give
  42412. -options like `--bindir=PATH' to specify different values for particular
  42413. +options like `--bindir=DIR' to specify different values for particular
  42414. kinds of files. Run `configure --help' for a list of the directories
  42415. -you can set and what kinds of files go in them.
  42416. +you can set and what kinds of files go in them. In general, the
  42417. +default for these options is expressed in terms of `${prefix}', so that
  42418. +specifying just `--prefix' will affect all of the other directory
  42419. +specifications that were not explicitly provided.
  42420. +
  42421. + The most portable way to affect installation locations is to pass the
  42422. +correct locations to `configure'; however, many packages provide one or
  42423. +both of the following shortcuts of passing variable assignments to the
  42424. +`make install' command line to change installation locations without
  42425. +having to reconfigure or recompile.
  42426. +
  42427. + The first method involves providing an override variable for each
  42428. +affected directory. For example, `make install
  42429. +prefix=/alternate/directory' will choose an alternate location for all
  42430. +directory configuration variables that were expressed in terms of
  42431. +`${prefix}'. Any directories that were specified during `configure',
  42432. +but not in terms of `${prefix}', must each be overridden at install
  42433. +time for the entire installation to be relocated. The approach of
  42434. +makefile variable overrides for each directory variable is required by
  42435. +the GNU Coding Standards, and ideally causes no recompilation.
  42436. +However, some platforms have known limitations with the semantics of
  42437. +shared libraries that end up requiring recompilation when using this
  42438. +method, particularly noticeable in packages that use GNU Libtool.
  42439. +
  42440. + The second method involves providing the `DESTDIR' variable. For
  42441. +example, `make install DESTDIR=/alternate/directory' will prepend
  42442. +`/alternate/directory' before all installation names. The approach of
  42443. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  42444. +does not work on platforms that have drive letters. On the other hand,
  42445. +it does better at avoiding recompilation issues, and works well even
  42446. +when some directory options were not specified in terms of `${prefix}'
  42447. +at `configure' time.
  42448. +
  42449. +Optional Features
  42450. +=================
  42451. If the package supports it, you can cause programs to be installed
  42452. with an extra prefix or suffix on their names by giving `configure' the
  42453. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  42454. -Optional Features
  42455. -=================
  42456. -
  42457. Some packages pay attention to `--enable-FEATURE' options to
  42458. `configure', where FEATURE indicates an optional part of the package.
  42459. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  42460. @@ -119,25 +208,75 @@
  42461. you can use the `configure' options `--x-includes=DIR' and
  42462. `--x-libraries=DIR' to specify their locations.
  42463. + Some packages offer the ability to configure how verbose the
  42464. +execution of `make' will be. For these packages, running `./configure
  42465. +--enable-silent-rules' sets the default to minimal output, which can be
  42466. +overridden with `make V=1'; while running `./configure
  42467. +--disable-silent-rules' sets the default to verbose, which can be
  42468. +overridden with `make V=0'.
  42469. +
  42470. +Particular systems
  42471. +==================
  42472. +
  42473. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  42474. +CC is not installed, it is recommended to use the following options in
  42475. +order to use an ANSI C compiler:
  42476. +
  42477. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  42478. +
  42479. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  42480. +
  42481. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  42482. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  42483. +a workaround. If GNU CC is not installed, it is therefore recommended
  42484. +to try
  42485. +
  42486. + ./configure CC="cc"
  42487. +
  42488. +and if that doesn't work, try
  42489. +
  42490. + ./configure CC="cc -nodtk"
  42491. +
  42492. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  42493. +directory contains several dysfunctional programs; working variants of
  42494. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  42495. +in your `PATH', put it _after_ `/usr/bin'.
  42496. +
  42497. + On Haiku, software installed for all users goes in `/boot/common',
  42498. +not `/usr/local'. It is recommended to use the following options:
  42499. +
  42500. + ./configure --prefix=/boot/common
  42501. +
  42502. Specifying the System Type
  42503. ==========================
  42504. - There may be some features `configure' can not figure out
  42505. -automatically, but needs to determine by the type of host the package
  42506. -will run on. Usually `configure' can figure that out, but if it prints
  42507. -a message saying it can not guess the host type, give it the
  42508. -`--host=TYPE' option. TYPE can either be a short name for the system
  42509. -type, such as `sun4', or a canonical name with three fields:
  42510. + There may be some features `configure' cannot figure out
  42511. +automatically, but needs to determine by the type of machine the package
  42512. +will run on. Usually, assuming the package is built to be run on the
  42513. +_same_ architectures, `configure' can figure that out, but if it prints
  42514. +a message saying it cannot guess the machine type, give it the
  42515. +`--build=TYPE' option. TYPE can either be a short name for the system
  42516. +type, such as `sun4', or a canonical name which has the form:
  42517. +
  42518. CPU-COMPANY-SYSTEM
  42519. -See the file `config.sub' for the possible values of each field. If
  42520. +where SYSTEM can have one of these forms:
  42521. +
  42522. + OS
  42523. + KERNEL-OS
  42524. +
  42525. + See the file `config.sub' for the possible values of each field. If
  42526. `config.sub' isn't included in this package, then this package doesn't
  42527. -need to know the host type.
  42528. +need to know the machine type.
  42529. - If you are building compiler tools for cross-compiling, you can also
  42530. -use the `--target=TYPE' option to select the type of system they will
  42531. -produce code for and the `--build=TYPE' option to select the type of
  42532. -system on which you are compiling the package.
  42533. + If you are _building_ compiler tools for cross-compiling, you should
  42534. +use the option `--target=TYPE' to select the type of system they will
  42535. +produce code for.
  42536. +
  42537. + If you want to _use_ a cross compiler, that generates code for a
  42538. +platform different from the build platform, you should specify the
  42539. +"host" platform (i.e., that on which the generated programs will
  42540. +eventually be run) with `--host=TYPE'.
  42541. Sharing Defaults
  42542. ================
  42543. @@ -150,19 +289,55 @@
  42544. `CONFIG_SITE' environment variable to the location of the site script.
  42545. A warning: not all `configure' scripts look for a site script.
  42546. -Operation Controls
  42547. +Defining Variables
  42548. ==================
  42549. + Variables not defined in a site shell script can be set in the
  42550. +environment passed to `configure'. However, some packages may run
  42551. +configure again during the build, and the customized values of these
  42552. +variables may be lost. In order to avoid this problem, you should set
  42553. +them in the `configure' command line, using `VAR=value'. For example:
  42554. +
  42555. + ./configure CC=/usr/local2/bin/gcc
  42556. +
  42557. +causes the specified `gcc' to be used as the C compiler (unless it is
  42558. +overridden in the site shell script).
  42559. +
  42560. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  42561. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  42562. +
  42563. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  42564. +
  42565. +`configure' Invocation
  42566. +======================
  42567. +
  42568. `configure' recognizes the following options to control how it
  42569. operates.
  42570. -`--cache-file=FILE'
  42571. - Use and save the results of the tests in FILE instead of
  42572. - `./config.cache'. Set FILE to `/dev/null' to disable caching, for
  42573. - debugging `configure'.
  42574. -
  42575. `--help'
  42576. - Print a summary of the options to `configure', and exit.
  42577. +`-h'
  42578. + Print a summary of all of the options to `configure', and exit.
  42579. +
  42580. +`--help=short'
  42581. +`--help=recursive'
  42582. + Print a summary of the options unique to this package's
  42583. + `configure', and exit. The `short' variant lists options used
  42584. + only in the top level, while the `recursive' variant lists options
  42585. + also present in any nested packages.
  42586. +
  42587. +`--version'
  42588. +`-V'
  42589. + Print the version of Autoconf used to generate the `configure'
  42590. + script, and exit.
  42591. +
  42592. +`--cache-file=FILE'
  42593. + Enable the cache: use and save the results of the tests in FILE,
  42594. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  42595. + disable caching.
  42596. +
  42597. +`--config-cache'
  42598. +`-C'
  42599. + Alias for `--cache-file=config.cache'.
  42600. `--quiet'
  42601. `--silent'
  42602. @@ -175,8 +350,16 @@
  42603. Look for the package's source code in directory DIR. Usually
  42604. `configure' can determine that directory automatically.
  42605. -`--version'
  42606. - Print the version of Autoconf used to generate the `configure'
  42607. - script, and exit.
  42608. +`--prefix=DIR'
  42609. + Use DIR as the installation prefix. *note Installation Names::
  42610. + for more details, including other options available for fine-tuning
  42611. + the installation locations.
  42612. +
  42613. +`--no-create'
  42614. +`-n'
  42615. + Run the configure checks, but stop before creating any output
  42616. + files.
  42617. +
  42618. +`configure' also accepts some other, not widely useful, options. Run
  42619. +`configure --help' for more details.
  42620. -`configure' also accepts some other, not widely useful, options.
  42621. diff -Nur librpcsecgss-0.19.orig/install-sh librpcsecgss-0.19/install-sh
  42622. --- librpcsecgss-0.19.orig/install-sh 2009-05-13 23:33:08.000000000 +0200
  42623. +++ librpcsecgss-0.19/install-sh 2011-02-17 18:22:25.856052456 +0100
  42624. @@ -1,7 +1,8 @@
  42625. #!/bin/sh
  42626. -#
  42627. # install - install a program, script, or datafile
  42628. -#
  42629. +
  42630. +scriptversion=2009-04-28.21; # UTC
  42631. +
  42632. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  42633. # later released in X11R6 (xc/config/util/install.sh) with the
  42634. # following copyright and license.
  42635. @@ -38,232 +39,482 @@
  42636. # when there is no Makefile.
  42637. #
  42638. # This script is compatible with the BSD install script, but was written
  42639. -# from scratch. It can only install one file at a time, a restriction
  42640. -# shared with many OS's install programs.
  42641. +# from scratch.
  42642. +nl='
  42643. +'
  42644. +IFS=" "" $nl"
  42645. # set DOITPROG to echo to test this script
  42646. # Don't use :- since 4.3BSD and earlier shells don't like it.
  42647. -doit="${DOITPROG-}"
  42648. +doit=${DOITPROG-}
  42649. +if test -z "$doit"; then
  42650. + doit_exec=exec
  42651. +else
  42652. + doit_exec=$doit
  42653. +fi
  42654. +# Put in absolute file names if you don't have them in your path;
  42655. +# or use environment vars.
  42656. -# put in absolute paths if you don't have them in your path; or use env. vars.
  42657. +chgrpprog=${CHGRPPROG-chgrp}
  42658. +chmodprog=${CHMODPROG-chmod}
  42659. +chownprog=${CHOWNPROG-chown}
  42660. +cmpprog=${CMPPROG-cmp}
  42661. +cpprog=${CPPROG-cp}
  42662. +mkdirprog=${MKDIRPROG-mkdir}
  42663. +mvprog=${MVPROG-mv}
  42664. +rmprog=${RMPROG-rm}
  42665. +stripprog=${STRIPPROG-strip}
  42666. +
  42667. +posix_glob='?'
  42668. +initialize_posix_glob='
  42669. + test "$posix_glob" != "?" || {
  42670. + if (set -f) 2>/dev/null; then
  42671. + posix_glob=
  42672. + else
  42673. + posix_glob=:
  42674. + fi
  42675. + }
  42676. +'
  42677. -mvprog="${MVPROG-mv}"
  42678. -cpprog="${CPPROG-cp}"
  42679. -chmodprog="${CHMODPROG-chmod}"
  42680. -chownprog="${CHOWNPROG-chown}"
  42681. -chgrpprog="${CHGRPPROG-chgrp}"
  42682. -stripprog="${STRIPPROG-strip}"
  42683. -rmprog="${RMPROG-rm}"
  42684. -mkdirprog="${MKDIRPROG-mkdir}"
  42685. -
  42686. -transformbasename=""
  42687. -transform_arg=""
  42688. -instcmd="$mvprog"
  42689. -chmodcmd="$chmodprog 0755"
  42690. -chowncmd=""
  42691. -chgrpcmd=""
  42692. -stripcmd=""
  42693. +posix_mkdir=
  42694. +
  42695. +# Desired mode of installed file.
  42696. +mode=0755
  42697. +
  42698. +chgrpcmd=
  42699. +chmodcmd=$chmodprog
  42700. +chowncmd=
  42701. +mvcmd=$mvprog
  42702. rmcmd="$rmprog -f"
  42703. -mvcmd="$mvprog"
  42704. -src=""
  42705. -dst=""
  42706. -dir_arg=""
  42707. -
  42708. -while [ x"$1" != x ]; do
  42709. - case $1 in
  42710. - -c) instcmd="$cpprog"
  42711. - shift
  42712. - continue;;
  42713. -
  42714. - -d) dir_arg=true
  42715. - shift
  42716. - continue;;
  42717. -
  42718. - -m) chmodcmd="$chmodprog $2"
  42719. - shift
  42720. - shift
  42721. - continue;;
  42722. -
  42723. - -o) chowncmd="$chownprog $2"
  42724. - shift
  42725. - shift
  42726. - continue;;
  42727. -
  42728. - -g) chgrpcmd="$chgrpprog $2"
  42729. - shift
  42730. - shift
  42731. - continue;;
  42732. -
  42733. - -s) stripcmd="$stripprog"
  42734. - shift
  42735. - continue;;
  42736. -
  42737. - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  42738. - shift
  42739. - continue;;
  42740. -
  42741. - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  42742. - shift
  42743. - continue;;
  42744. +stripcmd=
  42745. - *) if [ x"$src" = x ]
  42746. - then
  42747. - src=$1
  42748. - else
  42749. - # this colon is to work around a 386BSD /bin/sh bug
  42750. - :
  42751. - dst=$1
  42752. - fi
  42753. - shift
  42754. - continue;;
  42755. - esac
  42756. -done
  42757. +src=
  42758. +dst=
  42759. +dir_arg=
  42760. +dst_arg=
  42761. -if [ x"$src" = x ]
  42762. -then
  42763. - echo "install: no input file specified"
  42764. - exit 1
  42765. -else
  42766. - true
  42767. -fi
  42768. +copy_on_change=false
  42769. +no_target_directory=
  42770. -if [ x"$dir_arg" != x ]; then
  42771. - dst=$src
  42772. - src=""
  42773. -
  42774. - if [ -d $dst ]; then
  42775. - instcmd=:
  42776. - chmodcmd=""
  42777. - else
  42778. - instcmd=mkdir
  42779. - fi
  42780. -else
  42781. +usage="\
  42782. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  42783. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  42784. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  42785. + or: $0 [OPTION]... -d DIRECTORIES...
  42786. -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  42787. -# might cause directories to be created, which would be especially bad
  42788. -# if $src (and thus $dsttmp) contains '*'.
  42789. -
  42790. - if [ -f $src -o -d $src ]
  42791. - then
  42792. - true
  42793. - else
  42794. - echo "install: $src does not exist"
  42795. - exit 1
  42796. - fi
  42797. -
  42798. - if [ x"$dst" = x ]
  42799. - then
  42800. - echo "install: no destination specified"
  42801. - exit 1
  42802. - else
  42803. - true
  42804. - fi
  42805. +In the 1st form, copy SRCFILE to DSTFILE.
  42806. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  42807. +In the 4th, create DIRECTORIES.
  42808. -# If destination is a directory, append the input filename; if your system
  42809. -# does not like double slashes in filenames, you may need to add some logic
  42810. +Options:
  42811. + --help display this help and exit.
  42812. + --version display version info and exit.
  42813. - if [ -d $dst ]
  42814. - then
  42815. - dst="$dst"/`basename $src`
  42816. - else
  42817. - true
  42818. - fi
  42819. -fi
  42820. + -c (ignored)
  42821. + -C install only if different (preserve the last data modification time)
  42822. + -d create directories instead of installing files.
  42823. + -g GROUP $chgrpprog installed files to GROUP.
  42824. + -m MODE $chmodprog installed files to MODE.
  42825. + -o USER $chownprog installed files to USER.
  42826. + -s $stripprog installed files.
  42827. + -t DIRECTORY install into DIRECTORY.
  42828. + -T report an error if DSTFILE is a directory.
  42829. -## this sed command emulates the dirname command
  42830. -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  42831. +Environment variables override the default commands:
  42832. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  42833. + RMPROG STRIPPROG
  42834. +"
  42835. -# Make sure that the destination directory exists.
  42836. -# this part is taken from Noah Friedman's mkinstalldirs script
  42837. +while test $# -ne 0; do
  42838. + case $1 in
  42839. + -c) ;;
  42840. -# Skip lots of stat calls in the usual case.
  42841. -if [ ! -d "$dstdir" ]; then
  42842. -defaultIFS='
  42843. -'
  42844. -IFS="${IFS-${defaultIFS}}"
  42845. + -C) copy_on_change=true;;
  42846. -oIFS="${IFS}"
  42847. -# Some sh's can't handle IFS=/ for some reason.
  42848. -IFS='%'
  42849. -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  42850. -IFS="${oIFS}"
  42851. -
  42852. -pathcomp=''
  42853. -
  42854. -while [ $# -ne 0 ] ; do
  42855. - pathcomp="${pathcomp}${1}"
  42856. - shift
  42857. -
  42858. - if [ ! -d "${pathcomp}" ] ;
  42859. - then
  42860. - $mkdirprog "${pathcomp}"
  42861. - else
  42862. - true
  42863. - fi
  42864. + -d) dir_arg=true;;
  42865. - pathcomp="${pathcomp}/"
  42866. -done
  42867. -fi
  42868. + -g) chgrpcmd="$chgrpprog $2"
  42869. + shift;;
  42870. -if [ x"$dir_arg" != x ]
  42871. -then
  42872. - $doit $instcmd $dst &&
  42873. -
  42874. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
  42875. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
  42876. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
  42877. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
  42878. -else
  42879. + --help) echo "$usage"; exit $?;;
  42880. -# If we're going to rename the final executable, determine the name now.
  42881. + -m) mode=$2
  42882. + case $mode in
  42883. + *' '* | *' '* | *'
  42884. +'* | *'*'* | *'?'* | *'['*)
  42885. + echo "$0: invalid mode: $mode" >&2
  42886. + exit 1;;
  42887. + esac
  42888. + shift;;
  42889. - if [ x"$transformarg" = x ]
  42890. - then
  42891. - dstfile=`basename $dst`
  42892. - else
  42893. - dstfile=`basename $dst $transformbasename |
  42894. - sed $transformarg`$transformbasename
  42895. - fi
  42896. + -o) chowncmd="$chownprog $2"
  42897. + shift;;
  42898. -# don't allow the sed command to completely eliminate the filename
  42899. + -s) stripcmd=$stripprog;;
  42900. - if [ x"$dstfile" = x ]
  42901. - then
  42902. - dstfile=`basename $dst`
  42903. - else
  42904. - true
  42905. - fi
  42906. + -t) dst_arg=$2
  42907. + shift;;
  42908. +
  42909. + -T) no_target_directory=true;;
  42910. +
  42911. + --version) echo "$0 $scriptversion"; exit $?;;
  42912. -# Make a temp file name in the proper directory.
  42913. + --) shift
  42914. + break;;
  42915. +
  42916. + -*) echo "$0: invalid option: $1" >&2
  42917. + exit 1;;
  42918. +
  42919. + *) break;;
  42920. + esac
  42921. + shift
  42922. +done
  42923. - dsttmp=$dstdir/#inst.$$#
  42924. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  42925. + # When -d is used, all remaining arguments are directories to create.
  42926. + # When -t is used, the destination is already specified.
  42927. + # Otherwise, the last argument is the destination. Remove it from $@.
  42928. + for arg
  42929. + do
  42930. + if test -n "$dst_arg"; then
  42931. + # $@ is not empty: it contains at least $arg.
  42932. + set fnord "$@" "$dst_arg"
  42933. + shift # fnord
  42934. + fi
  42935. + shift # arg
  42936. + dst_arg=$arg
  42937. + done
  42938. +fi
  42939. -# Move or copy the file name to the temp name
  42940. +if test $# -eq 0; then
  42941. + if test -z "$dir_arg"; then
  42942. + echo "$0: no input file specified." >&2
  42943. + exit 1
  42944. + fi
  42945. + # It's OK to call `install-sh -d' without argument.
  42946. + # This can happen when creating conditional directories.
  42947. + exit 0
  42948. +fi
  42949. - $doit $instcmd $src $dsttmp &&
  42950. +if test -z "$dir_arg"; then
  42951. + trap '(exit $?); exit' 1 2 13 15
  42952. - trap "rm -f ${dsttmp}" 0 &&
  42953. + # Set umask so as not to create temps with too-generous modes.
  42954. + # However, 'strip' requires both read and write access to temps.
  42955. + case $mode in
  42956. + # Optimize common cases.
  42957. + *644) cp_umask=133;;
  42958. + *755) cp_umask=22;;
  42959. +
  42960. + *[0-7])
  42961. + if test -z "$stripcmd"; then
  42962. + u_plus_rw=
  42963. + else
  42964. + u_plus_rw='% 200'
  42965. + fi
  42966. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  42967. + *)
  42968. + if test -z "$stripcmd"; then
  42969. + u_plus_rw=
  42970. + else
  42971. + u_plus_rw=,u+rw
  42972. + fi
  42973. + cp_umask=$mode$u_plus_rw;;
  42974. + esac
  42975. +fi
  42976. -# and set any options; do chmod last to preserve setuid bits
  42977. +for src
  42978. +do
  42979. + # Protect names starting with `-'.
  42980. + case $src in
  42981. + -*) src=./$src;;
  42982. + esac
  42983. +
  42984. + if test -n "$dir_arg"; then
  42985. + dst=$src
  42986. + dstdir=$dst
  42987. + test -d "$dstdir"
  42988. + dstdir_status=$?
  42989. + else
  42990. +
  42991. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  42992. + # might cause directories to be created, which would be especially bad
  42993. + # if $src (and thus $dsttmp) contains '*'.
  42994. + if test ! -f "$src" && test ! -d "$src"; then
  42995. + echo "$0: $src does not exist." >&2
  42996. + exit 1
  42997. + fi
  42998. +
  42999. + if test -z "$dst_arg"; then
  43000. + echo "$0: no destination specified." >&2
  43001. + exit 1
  43002. + fi
  43003. +
  43004. + dst=$dst_arg
  43005. + # Protect names starting with `-'.
  43006. + case $dst in
  43007. + -*) dst=./$dst;;
  43008. + esac
  43009. -# If any of these fail, we abort the whole thing. If we want to
  43010. -# ignore errors from any of these, just make sure not to ignore
  43011. -# errors from the above "$doit $instcmd $src $dsttmp" command.
  43012. + # If destination is a directory, append the input filename; won't work
  43013. + # if double slashes aren't ignored.
  43014. + if test -d "$dst"; then
  43015. + if test -n "$no_target_directory"; then
  43016. + echo "$0: $dst_arg: Is a directory" >&2
  43017. + exit 1
  43018. + fi
  43019. + dstdir=$dst
  43020. + dst=$dstdir/`basename "$src"`
  43021. + dstdir_status=0
  43022. + else
  43023. + # Prefer dirname, but fall back on a substitute if dirname fails.
  43024. + dstdir=`
  43025. + (dirname "$dst") 2>/dev/null ||
  43026. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43027. + X"$dst" : 'X\(//\)[^/]' \| \
  43028. + X"$dst" : 'X\(//\)$' \| \
  43029. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  43030. + echo X"$dst" |
  43031. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43032. + s//\1/
  43033. + q
  43034. + }
  43035. + /^X\(\/\/\)[^/].*/{
  43036. + s//\1/
  43037. + q
  43038. + }
  43039. + /^X\(\/\/\)$/{
  43040. + s//\1/
  43041. + q
  43042. + }
  43043. + /^X\(\/\).*/{
  43044. + s//\1/
  43045. + q
  43046. + }
  43047. + s/.*/./; q'
  43048. + `
  43049. +
  43050. + test -d "$dstdir"
  43051. + dstdir_status=$?
  43052. + fi
  43053. + fi
  43054. +
  43055. + obsolete_mkdir_used=false
  43056. +
  43057. + if test $dstdir_status != 0; then
  43058. + case $posix_mkdir in
  43059. + '')
  43060. + # Create intermediate dirs using mode 755 as modified by the umask.
  43061. + # This is like FreeBSD 'install' as of 1997-10-28.
  43062. + umask=`umask`
  43063. + case $stripcmd.$umask in
  43064. + # Optimize common cases.
  43065. + *[2367][2367]) mkdir_umask=$umask;;
  43066. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  43067. +
  43068. + *[0-7])
  43069. + mkdir_umask=`expr $umask + 22 \
  43070. + - $umask % 100 % 40 + $umask % 20 \
  43071. + - $umask % 10 % 4 + $umask % 2
  43072. + `;;
  43073. + *) mkdir_umask=$umask,go-w;;
  43074. + esac
  43075. +
  43076. + # With -d, create the new directory with the user-specified mode.
  43077. + # Otherwise, rely on $mkdir_umask.
  43078. + if test -n "$dir_arg"; then
  43079. + mkdir_mode=-m$mode
  43080. + else
  43081. + mkdir_mode=
  43082. + fi
  43083. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
  43084. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
  43085. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
  43086. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
  43087. + posix_mkdir=false
  43088. + case $umask in
  43089. + *[123567][0-7][0-7])
  43090. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  43091. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  43092. + ;;
  43093. + *)
  43094. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  43095. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  43096. -# Now rename the file to the real destination.
  43097. + if (umask $mkdir_umask &&
  43098. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  43099. + then
  43100. + if test -z "$dir_arg" || {
  43101. + # Check for POSIX incompatibilities with -m.
  43102. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  43103. + # other-writeable bit of parent directory when it shouldn't.
  43104. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  43105. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  43106. + case $ls_ld_tmpdir in
  43107. + d????-?r-*) different_mode=700;;
  43108. + d????-?--*) different_mode=755;;
  43109. + *) false;;
  43110. + esac &&
  43111. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  43112. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  43113. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  43114. + }
  43115. + }
  43116. + then posix_mkdir=:
  43117. + fi
  43118. + rmdir "$tmpdir/d" "$tmpdir"
  43119. + else
  43120. + # Remove any dirs left behind by ancient mkdir implementations.
  43121. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  43122. + fi
  43123. + trap '' 0;;
  43124. + esac;;
  43125. + esac
  43126. - $doit $rmcmd -f $dstdir/$dstfile &&
  43127. - $doit $mvcmd $dsttmp $dstdir/$dstfile
  43128. + if
  43129. + $posix_mkdir && (
  43130. + umask $mkdir_umask &&
  43131. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  43132. + )
  43133. + then :
  43134. + else
  43135. +
  43136. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  43137. + # or it failed possibly due to a race condition. Create the
  43138. + # directory the slow way, step by step, checking for races as we go.
  43139. +
  43140. + case $dstdir in
  43141. + /*) prefix='/';;
  43142. + -*) prefix='./';;
  43143. + *) prefix='';;
  43144. + esac
  43145. +
  43146. + eval "$initialize_posix_glob"
  43147. +
  43148. + oIFS=$IFS
  43149. + IFS=/
  43150. + $posix_glob set -f
  43151. + set fnord $dstdir
  43152. + shift
  43153. + $posix_glob set +f
  43154. + IFS=$oIFS
  43155. +
  43156. + prefixes=
  43157. +
  43158. + for d
  43159. + do
  43160. + test -z "$d" && continue
  43161. +
  43162. + prefix=$prefix$d
  43163. + if test -d "$prefix"; then
  43164. + prefixes=
  43165. + else
  43166. + if $posix_mkdir; then
  43167. + (umask=$mkdir_umask &&
  43168. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  43169. + # Don't fail if two instances are running concurrently.
  43170. + test -d "$prefix" || exit 1
  43171. + else
  43172. + case $prefix in
  43173. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  43174. + *) qprefix=$prefix;;
  43175. + esac
  43176. + prefixes="$prefixes '$qprefix'"
  43177. + fi
  43178. + fi
  43179. + prefix=$prefix/
  43180. + done
  43181. -fi &&
  43182. + if test -n "$prefixes"; then
  43183. + # Don't fail if two instances are running concurrently.
  43184. + (umask $mkdir_umask &&
  43185. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  43186. + test -d "$dstdir" || exit 1
  43187. + obsolete_mkdir_used=true
  43188. + fi
  43189. + fi
  43190. + fi
  43191. +
  43192. + if test -n "$dir_arg"; then
  43193. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  43194. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  43195. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  43196. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  43197. + else
  43198. +
  43199. + # Make a couple of temp file names in the proper directory.
  43200. + dsttmp=$dstdir/_inst.$$_
  43201. + rmtmp=$dstdir/_rm.$$_
  43202. +
  43203. + # Trap to clean up those temp files at exit.
  43204. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  43205. +
  43206. + # Copy the file name to the temp name.
  43207. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  43208. +
  43209. + # and set any options; do chmod last to preserve setuid bits.
  43210. + #
  43211. + # If any of these fail, we abort the whole thing. If we want to
  43212. + # ignore errors from any of these, just make sure not to ignore
  43213. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  43214. + #
  43215. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  43216. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  43217. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  43218. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  43219. +
  43220. + # If -C, don't bother to copy if it wouldn't change the file.
  43221. + if $copy_on_change &&
  43222. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  43223. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  43224. +
  43225. + eval "$initialize_posix_glob" &&
  43226. + $posix_glob set -f &&
  43227. + set X $old && old=:$2:$4:$5:$6 &&
  43228. + set X $new && new=:$2:$4:$5:$6 &&
  43229. + $posix_glob set +f &&
  43230. +
  43231. + test "$old" = "$new" &&
  43232. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  43233. + then
  43234. + rm -f "$dsttmp"
  43235. + else
  43236. + # Rename the file to the real destination.
  43237. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  43238. +
  43239. + # The rename failed, perhaps because mv can't rename something else
  43240. + # to itself, or perhaps because mv is so ancient that it does not
  43241. + # support -f.
  43242. + {
  43243. + # Now remove or move aside any old file at destination location.
  43244. + # We try this two ways since rm can't unlink itself on some
  43245. + # systems and the destination file might be busy for other
  43246. + # reasons. In this case, the final cleanup might fail but the new
  43247. + # file should still install successfully.
  43248. + {
  43249. + test ! -f "$dst" ||
  43250. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  43251. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  43252. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  43253. + } ||
  43254. + { echo "$0: cannot unlink or rename $dst" >&2
  43255. + (exit 1); exit 1
  43256. + }
  43257. + } &&
  43258. +
  43259. + # Now rename the file to the real destination.
  43260. + $doit $mvcmd "$dsttmp" "$dst"
  43261. + }
  43262. + fi || exit 1
  43263. + trap '' 0
  43264. + fi
  43265. +done
  43266. -exit 0
  43267. +# Local variables:
  43268. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  43269. +# time-stamp-start: "scriptversion="
  43270. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  43271. +# time-stamp-time-zone: "UTC"
  43272. +# time-stamp-end: "; # UTC"
  43273. +# End:
  43274. diff -Nur librpcsecgss-0.19.orig/ltmain.sh librpcsecgss-0.19/ltmain.sh
  43275. --- librpcsecgss-0.19.orig/ltmain.sh 2009-05-13 23:33:08.000000000 +0200
  43276. +++ librpcsecgss-0.19/ltmain.sh 2011-02-17 18:22:23.023552052 +0100
  43277. @@ -1,4600 +1,3140 @@
  43278. -# ltmain.sh - Provide generalized library-building support services.
  43279. -# NOTE: Changing this file will not affect anything until you rerun configure.
  43280. -#
  43281. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
  43282. -# Free Software Foundation, Inc.
  43283. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  43284. -#
  43285. -# This program is free software; you can redistribute it and/or modify
  43286. +# Generated from ltmain.m4sh.
  43287. +
  43288. +# ltmain.sh (GNU libtool) 2.2.6b
  43289. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  43290. +
  43291. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  43292. +# This is free software; see the source for copying conditions. There is NO
  43293. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  43294. +
  43295. +# GNU Libtool is free software; you can redistribute it and/or modify
  43296. # it under the terms of the GNU General Public License as published by
  43297. # the Free Software Foundation; either version 2 of the License, or
  43298. # (at your option) any later version.
  43299. #
  43300. -# This program is distributed in the hope that it will be useful, but
  43301. +# As a special exception to the GNU General Public License,
  43302. +# if you distribute this file as part of a program or library that
  43303. +# is built using GNU Libtool, you may include this file under the
  43304. +# same distribution terms that you use for the rest of that program.
  43305. +#
  43306. +# GNU Libtool is distributed in the hope that it will be useful, but
  43307. # WITHOUT ANY WARRANTY; without even the implied warranty of
  43308. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  43309. # General Public License for more details.
  43310. #
  43311. # You should have received a copy of the GNU General Public License
  43312. -# along with this program; if not, write to the Free Software
  43313. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  43314. +# along with GNU Libtool; see the file COPYING. If not, a copy
  43315. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  43316. +# or obtained by writing to the Free Software Foundation, Inc.,
  43317. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  43318. +
  43319. +# Usage: $progname [OPTION]... [MODE-ARG]...
  43320. +#
  43321. +# Provide generalized library-building support services.
  43322. #
  43323. -# As a special exception to the GNU General Public License, if you
  43324. -# distribute this file as part of a program that contains a
  43325. -# configuration script generated by Autoconf, you may include it under
  43326. -# the same distribution terms that you use for the rest of that program.
  43327. +# --config show all configuration variables
  43328. +# --debug enable verbose shell tracing
  43329. +# -n, --dry-run display commands without modifying any files
  43330. +# --features display basic configuration information and exit
  43331. +# --mode=MODE use operation mode MODE
  43332. +# --preserve-dup-deps don't remove duplicate dependency libraries
  43333. +# --quiet, --silent don't print informational messages
  43334. +# --tag=TAG use configuration variables from tag TAG
  43335. +# -v, --verbose print informational messages (default)
  43336. +# --version print version information
  43337. +# -h, --help print short or long help message
  43338. +#
  43339. +# MODE must be one of the following:
  43340. +#
  43341. +# clean remove files from the build directory
  43342. +# compile compile a source file into a libtool object
  43343. +# execute automatically set library path, then run a program
  43344. +# finish complete the installation of libtool libraries
  43345. +# install install libraries or executables
  43346. +# link create a library or an executable
  43347. +# uninstall remove libraries from an installed directory
  43348. +#
  43349. +# MODE-ARGS vary depending on the MODE.
  43350. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  43351. +#
  43352. +# When reporting a bug, please describe a test case to reproduce it and
  43353. +# include the following information:
  43354. +#
  43355. +# host-triplet: $host
  43356. +# shell: $SHELL
  43357. +# compiler: $LTCC
  43358. +# compiler flags: $LTCFLAGS
  43359. +# linker: $LD (gnu? $with_gnu_ld)
  43360. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  43361. +# automake: $automake_version
  43362. +# autoconf: $autoconf_version
  43363. +#
  43364. +# Report bugs to <bug-libtool@gnu.org>.
  43365. +
  43366. +PROGRAM=ltmain.sh
  43367. +PACKAGE=libtool
  43368. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  43369. +TIMESTAMP=""
  43370. +package_revision=1.3017
  43371. +
  43372. +# Be Bourne compatible
  43373. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  43374. + emulate sh
  43375. + NULLCMD=:
  43376. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  43377. + # is contrary to our usage. Disable this feature.
  43378. + alias -g '${1+"$@"}'='"$@"'
  43379. + setopt NO_GLOB_SUBST
  43380. +else
  43381. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  43382. +fi
  43383. +BIN_SH=xpg4; export BIN_SH # for Tru64
  43384. +DUALCASE=1; export DUALCASE # for MKS sh
  43385. +
  43386. +# NLS nuisances: We save the old values to restore during execute mode.
  43387. +# Only set LANG and LC_ALL to C if already set.
  43388. +# These must not be set unconditionally because not all systems understand
  43389. +# e.g. LANG=C (notably SCO).
  43390. +lt_user_locale=
  43391. +lt_safe_locale=
  43392. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  43393. +do
  43394. + eval "if test \"\${$lt_var+set}\" = set; then
  43395. + save_$lt_var=\$$lt_var
  43396. + $lt_var=C
  43397. + export $lt_var
  43398. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  43399. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  43400. + fi"
  43401. +done
  43402. -basename="s,^.*/,,g"
  43403. +$lt_unset CDPATH
  43404. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  43405. -# is ksh but when the shell is invoked as "sh" and the current value of
  43406. -# the _XPG environment variable is not equal to 1 (one), the special
  43407. -# positional parameter $0, within a function call, is the name of the
  43408. -# function.
  43409. -progpath="$0"
  43410. -# The name of this program:
  43411. -progname=`echo "$progpath" | $SED $basename`
  43412. -modename="$progname"
  43413. +
  43414. +
  43415. +
  43416. +: ${CP="cp -f"}
  43417. +: ${ECHO="echo"}
  43418. +: ${EGREP="/bin/grep -E"}
  43419. +: ${FGREP="/bin/grep -F"}
  43420. +: ${GREP="/bin/grep"}
  43421. +: ${LN_S="ln -s"}
  43422. +: ${MAKE="make"}
  43423. +: ${MKDIR="mkdir"}
  43424. +: ${MV="mv -f"}
  43425. +: ${RM="rm -f"}
  43426. +: ${SED="/bin/sed"}
  43427. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  43428. +: ${Xsed="$SED -e 1s/^X//"}
  43429. # Global variables:
  43430. EXIT_SUCCESS=0
  43431. EXIT_FAILURE=1
  43432. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  43433. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  43434. -PROGRAM=ltmain.sh
  43435. -PACKAGE=libtool
  43436. -VERSION=1.5.6
  43437. -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 215 $"
  43438. +exit_status=$EXIT_SUCCESS
  43439. +# Make sure IFS has a sensible default
  43440. +lt_nl='
  43441. +'
  43442. +IFS=" $lt_nl"
  43443. +
  43444. +dirname="s,/[^/]*$,,"
  43445. +basename="s,^.*/,,"
  43446. +
  43447. +# func_dirname_and_basename file append nondir_replacement
  43448. +# perform func_basename and func_dirname in a single function
  43449. +# call:
  43450. +# dirname: Compute the dirname of FILE. If nonempty,
  43451. +# add APPEND to the result, otherwise set result
  43452. +# to NONDIR_REPLACEMENT.
  43453. +# value returned in "$func_dirname_result"
  43454. +# basename: Compute filename of FILE.
  43455. +# value retuned in "$func_basename_result"
  43456. +# Implementation must be kept synchronized with func_dirname
  43457. +# and func_basename. For efficiency, we do not delegate to
  43458. +# those functions but instead duplicate the functionality here.
  43459. +func_dirname_and_basename ()
  43460. +{
  43461. + # Extract subdirectory from the argument.
  43462. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  43463. + if test "X$func_dirname_result" = "X${1}"; then
  43464. + func_dirname_result="${3}"
  43465. + else
  43466. + func_dirname_result="$func_dirname_result${2}"
  43467. + fi
  43468. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  43469. +}
  43470. -# Check that we have a working $echo.
  43471. -if test "X$1" = X--no-reexec; then
  43472. - # Discard the --no-reexec flag, and continue.
  43473. - shift
  43474. -elif test "X$1" = X--fallback-echo; then
  43475. - # Avoid inline document here, it may be left over
  43476. - :
  43477. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  43478. - # Yippee, $echo works!
  43479. - :
  43480. -else
  43481. - # Restart under the correct shell, and then maybe $echo will work.
  43482. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  43483. -fi
  43484. +# Generated shell functions inserted here.
  43485. -if test "X$1" = X--fallback-echo; then
  43486. - # used as fallback echo
  43487. - shift
  43488. - cat <<EOF
  43489. -$*
  43490. -EOF
  43491. - exit $EXIT_SUCCESS
  43492. -fi
  43493. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  43494. +# is ksh but when the shell is invoked as "sh" and the current value of
  43495. +# the _XPG environment variable is not equal to 1 (one), the special
  43496. +# positional parameter $0, within a function call, is the name of the
  43497. +# function.
  43498. +progpath="$0"
  43499. -default_mode=
  43500. -help="Try \`$progname --help' for more information."
  43501. -magic="%%%MAGIC variable%%%"
  43502. -mkdir="mkdir"
  43503. -mv="mv -f"
  43504. -rm="rm -f"
  43505. +# The name of this program:
  43506. +# In the unlikely event $progname began with a '-', it would play havoc with
  43507. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  43508. +func_dirname_and_basename "$progpath"
  43509. +progname=$func_basename_result
  43510. +case $progname in
  43511. + -*) progname=./$progname ;;
  43512. +esac
  43513. +
  43514. +# Make sure we have an absolute path for reexecution:
  43515. +case $progpath in
  43516. + [\\/]*|[A-Za-z]:\\*) ;;
  43517. + *[\\/]*)
  43518. + progdir=$func_dirname_result
  43519. + progdir=`cd "$progdir" && pwd`
  43520. + progpath="$progdir/$progname"
  43521. + ;;
  43522. + *)
  43523. + save_IFS="$IFS"
  43524. + IFS=:
  43525. + for progdir in $PATH; do
  43526. + IFS="$save_IFS"
  43527. + test -x "$progdir/$progname" && break
  43528. + done
  43529. + IFS="$save_IFS"
  43530. + test -n "$progdir" || progdir=`pwd`
  43531. + progpath="$progdir/$progname"
  43532. + ;;
  43533. +esac
  43534. # Sed substitution that helps us do robust quoting. It backslashifies
  43535. # metacharacters that are still active within double-quoted strings.
  43536. Xsed="${SED}"' -e 1s/^X//'
  43537. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  43538. -# test EBCDIC or ASCII
  43539. -case `echo A|tr A '\301'` in
  43540. - A) # EBCDIC based system
  43541. - SP2NL="tr '\100' '\n'"
  43542. - NL2SP="tr '\r\n' '\100\100'"
  43543. - ;;
  43544. - *) # Assume ASCII based system
  43545. - SP2NL="tr '\040' '\012'"
  43546. - NL2SP="tr '\015\012' '\040\040'"
  43547. - ;;
  43548. -esac
  43549. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  43550. -# NLS nuisances.
  43551. -# Only set LANG and LC_ALL to C if already set.
  43552. -# These must not be set unconditionally because not all systems understand
  43553. -# e.g. LANG=C (notably SCO).
  43554. -# We save the old values to restore during execute mode.
  43555. -if test "${LC_ALL+set}" = set; then
  43556. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  43557. -fi
  43558. -if test "${LANG+set}" = set; then
  43559. - save_LANG="$LANG"; LANG=C; export LANG
  43560. -fi
  43561. +# Same as above, but do not quote variable references.
  43562. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  43563. -# Make sure IFS has a sensible default
  43564. -: ${IFS="
  43565. -"}
  43566. +# Re-`\' parameter expansions in output of double_quote_subst that were
  43567. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  43568. +# in input to double_quote_subst, that '$' was protected from expansion.
  43569. +# Since each input `\' is now two `\'s, look for any number of runs of
  43570. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  43571. +bs='\\'
  43572. +bs2='\\\\'
  43573. +bs4='\\\\\\\\'
  43574. +dollar='\$'
  43575. +sed_double_backslash="\
  43576. + s/$bs4/&\\
  43577. +/g
  43578. + s/^$bs2$dollar/$bs&/
  43579. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  43580. + s/\n//g"
  43581. +
  43582. +# Standard options:
  43583. +opt_dry_run=false
  43584. +opt_help=false
  43585. +opt_quiet=false
  43586. +opt_verbose=false
  43587. +opt_warning=:
  43588. +
  43589. +# func_echo arg...
  43590. +# Echo program name prefixed message, along with the current mode
  43591. +# name if it has been set yet.
  43592. +func_echo ()
  43593. +{
  43594. + $ECHO "$progname${mode+: }$mode: $*"
  43595. +}
  43596. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  43597. - $echo "$modename: not configured to build any kind of library" 1>&2
  43598. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  43599. - exit $EXIT_FAILURE
  43600. -fi
  43601. +# func_verbose arg...
  43602. +# Echo program name prefixed message in verbose mode only.
  43603. +func_verbose ()
  43604. +{
  43605. + $opt_verbose && func_echo ${1+"$@"}
  43606. -# Global variables.
  43607. -mode=$default_mode
  43608. -nonopt=
  43609. -prev=
  43610. -prevopt=
  43611. -run=
  43612. -show="$echo"
  43613. -show_help=
  43614. -execute_dlfiles=
  43615. -lo2o="s/\\.lo\$/.${objext}/"
  43616. -o2lo="s/\\.${objext}\$/.lo/"
  43617. + # A bug in bash halts the script if the last line of a function
  43618. + # fails when set -e is in force, so we need another command to
  43619. + # work around that:
  43620. + :
  43621. +}
  43622. -#####################################
  43623. -# Shell function definitions:
  43624. -# This seems to be the best place for them
  43625. +# func_error arg...
  43626. +# Echo program name prefixed message to standard error.
  43627. +func_error ()
  43628. +{
  43629. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  43630. +}
  43631. -# func_win32_libid arg
  43632. -# return the library type of file 'arg'
  43633. -#
  43634. -# Need a lot of goo to handle *both* DLLs and import libs
  43635. -# Has to be a shell function in order to 'eat' the argument
  43636. -# that is supplied when $file_magic_command is called.
  43637. -func_win32_libid () {
  43638. - win32_libid_type="unknown"
  43639. - win32_fileres=`file -L $1 2>/dev/null`
  43640. - case $win32_fileres in
  43641. - *ar\ archive\ import\ library*) # definitely import
  43642. - win32_libid_type="x86 archive import"
  43643. - ;;
  43644. - *ar\ archive*) # could be an import, or static
  43645. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  43646. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  43647. - win32_nmres=`eval $NM -f posix -A $1 | \
  43648. - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
  43649. - if test "X$win32_nmres" = "Ximport" ; then
  43650. - win32_libid_type="x86 archive import"
  43651. - else
  43652. - win32_libid_type="x86 archive static"
  43653. - fi
  43654. - fi
  43655. - ;;
  43656. - *DLL*)
  43657. - win32_libid_type="x86 DLL"
  43658. - ;;
  43659. - *executable*) # but shell scripts are "executable" too...
  43660. - case $win32_fileres in
  43661. - *MS\ Windows\ PE\ Intel*)
  43662. - win32_libid_type="x86 DLL"
  43663. - ;;
  43664. - esac
  43665. - ;;
  43666. - esac
  43667. - $echo $win32_libid_type
  43668. +# func_warning arg...
  43669. +# Echo program name prefixed warning message to standard error.
  43670. +func_warning ()
  43671. +{
  43672. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  43673. +
  43674. + # bash bug again:
  43675. + :
  43676. }
  43677. +# func_fatal_error arg...
  43678. +# Echo program name prefixed message to standard error, and exit.
  43679. +func_fatal_error ()
  43680. +{
  43681. + func_error ${1+"$@"}
  43682. + exit $EXIT_FAILURE
  43683. +}
  43684. -# func_infer_tag arg
  43685. -# Infer tagged configuration to use if any are available and
  43686. -# if one wasn't chosen via the "--tag" command line option.
  43687. -# Only attempt this if the compiler in the base compile
  43688. -# command doesn't match the default compiler.
  43689. -# arg is usually of the form 'gcc ...'
  43690. -func_infer_tag () {
  43691. - if test -n "$available_tags" && test -z "$tagname"; then
  43692. - CC_quoted=
  43693. - for arg in $CC; do
  43694. - case $arg in
  43695. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43696. - arg="\"$arg\""
  43697. - ;;
  43698. - esac
  43699. - CC_quoted="$CC_quoted $arg"
  43700. - done
  43701. - case $@ in
  43702. - # Blanks in the command may have been stripped by the calling shell,
  43703. - # but not from the CC environment variable when configure was run.
  43704. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  43705. - # Blanks at the start of $base_compile will cause this to fail
  43706. - # if we don't check for them as well.
  43707. - *)
  43708. - for z in $available_tags; do
  43709. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  43710. - # Evaluate the configuration.
  43711. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  43712. - CC_quoted=
  43713. - for arg in $CC; do
  43714. - # Double-quote args containing other shell metacharacters.
  43715. - case $arg in
  43716. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43717. - arg="\"$arg\""
  43718. - ;;
  43719. - esac
  43720. - CC_quoted="$CC_quoted $arg"
  43721. - done
  43722. - case "$@ " in
  43723. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  43724. - # The compiler in the base compile command matches
  43725. - # the one in the tagged configuration.
  43726. - # Assume this is the tagged configuration we want.
  43727. - tagname=$z
  43728. - break
  43729. - ;;
  43730. - esac
  43731. - fi
  43732. - done
  43733. - # If $tagname still isn't set, then no tagged configuration
  43734. - # was found and let the user know that the "--tag" command
  43735. - # line option must be used.
  43736. - if test -z "$tagname"; then
  43737. - $echo "$modename: unable to infer tagged configuration"
  43738. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  43739. - exit $EXIT_FAILURE
  43740. -# else
  43741. -# $echo "$modename: using $tagname tagged configuration"
  43742. - fi
  43743. - ;;
  43744. - esac
  43745. - fi
  43746. +# func_fatal_help arg...
  43747. +# Echo program name prefixed message to standard error, followed by
  43748. +# a help hint, and exit.
  43749. +func_fatal_help ()
  43750. +{
  43751. + func_error ${1+"$@"}
  43752. + func_fatal_error "$help"
  43753. }
  43754. -# End of Shell function definitions
  43755. -#####################################
  43756. +help="Try \`$progname --help' for more information." ## default
  43757. -# Darwin sucks
  43758. -eval std_shrext=\"$shrext_cmds\"
  43759. -# Parse our command line options once, thoroughly.
  43760. -while test "$#" -gt 0
  43761. -do
  43762. - arg="$1"
  43763. - shift
  43764. +# func_grep expression filename
  43765. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  43766. +func_grep ()
  43767. +{
  43768. + $GREP "$1" "$2" >/dev/null 2>&1
  43769. +}
  43770. - case $arg in
  43771. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  43772. - *) optarg= ;;
  43773. - esac
  43774. - # If the previous option needs an argument, assign it.
  43775. - if test -n "$prev"; then
  43776. - case $prev in
  43777. - execute_dlfiles)
  43778. - execute_dlfiles="$execute_dlfiles $arg"
  43779. - ;;
  43780. - tag)
  43781. - tagname="$arg"
  43782. - preserve_args="${preserve_args}=$arg"
  43783. -
  43784. - # Check whether tagname contains only valid characters
  43785. - case $tagname in
  43786. - *[!-_A-Za-z0-9,/]*)
  43787. - $echo "$progname: invalid tag name: $tagname" 1>&2
  43788. - exit $EXIT_FAILURE
  43789. - ;;
  43790. - esac
  43791. +# func_mkdir_p directory-path
  43792. +# Make sure the entire path to DIRECTORY-PATH is available.
  43793. +func_mkdir_p ()
  43794. +{
  43795. + my_directory_path="$1"
  43796. + my_dir_list=
  43797. - case $tagname in
  43798. - CC)
  43799. - # Don't test for the "default" C tag, as we know, it's there, but
  43800. - # not specially marked.
  43801. - ;;
  43802. - *)
  43803. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  43804. - taglist="$taglist $tagname"
  43805. - # Evaluate the configuration.
  43806. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  43807. - else
  43808. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  43809. - fi
  43810. - ;;
  43811. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  43812. +
  43813. + # Protect directory names starting with `-'
  43814. + case $my_directory_path in
  43815. + -*) my_directory_path="./$my_directory_path" ;;
  43816. esac
  43817. - ;;
  43818. - *)
  43819. - eval "$prev=\$arg"
  43820. - ;;
  43821. - esac
  43822. - prev=
  43823. - prevopt=
  43824. - continue
  43825. - fi
  43826. + # While some portion of DIR does not yet exist...
  43827. + while test ! -d "$my_directory_path"; do
  43828. + # ...make a list in topmost first order. Use a colon delimited
  43829. + # list incase some portion of path contains whitespace.
  43830. + my_dir_list="$my_directory_path:$my_dir_list"
  43831. - # Have we seen a non-optional argument yet?
  43832. - case $arg in
  43833. - --help)
  43834. - show_help=yes
  43835. - ;;
  43836. + # If the last portion added has no slash in it, the list is done
  43837. + case $my_directory_path in */*) ;; *) break ;; esac
  43838. - --version)
  43839. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  43840. - $echo
  43841. - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
  43842. - $echo "This is free software; see the source for copying conditions. There is NO"
  43843. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  43844. - exit $EXIT_SUCCESS
  43845. - ;;
  43846. + # ...otherwise throw away the child directory and loop
  43847. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  43848. + done
  43849. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  43850. - --config)
  43851. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  43852. - # Now print the configurations for the tags.
  43853. - for tagname in $taglist; do
  43854. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  43855. - done
  43856. - exit $EXIT_SUCCESS
  43857. - ;;
  43858. + save_mkdir_p_IFS="$IFS"; IFS=':'
  43859. + for my_dir in $my_dir_list; do
  43860. + IFS="$save_mkdir_p_IFS"
  43861. + # mkdir can fail with a `File exist' error if two processes
  43862. + # try to create one of the directories concurrently. Don't
  43863. + # stop in that case!
  43864. + $MKDIR "$my_dir" 2>/dev/null || :
  43865. + done
  43866. + IFS="$save_mkdir_p_IFS"
  43867. - --debug)
  43868. - $echo "$progname: enabling shell trace mode"
  43869. - set -x
  43870. - preserve_args="$preserve_args $arg"
  43871. - ;;
  43872. + # Bail out if we (or some other process) failed to create a directory.
  43873. + test -d "$my_directory_path" || \
  43874. + func_fatal_error "Failed to create \`$1'"
  43875. + fi
  43876. +}
  43877. - --dry-run | -n)
  43878. - run=:
  43879. - ;;
  43880. - --features)
  43881. - $echo "host: $host"
  43882. - if test "$build_libtool_libs" = yes; then
  43883. - $echo "enable shared libraries"
  43884. - else
  43885. - $echo "disable shared libraries"
  43886. - fi
  43887. - if test "$build_old_libs" = yes; then
  43888. - $echo "enable static libraries"
  43889. +# func_mktempdir [string]
  43890. +# Make a temporary directory that won't clash with other running
  43891. +# libtool processes, and avoids race conditions if possible. If
  43892. +# given, STRING is the basename for that directory.
  43893. +func_mktempdir ()
  43894. +{
  43895. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  43896. +
  43897. + if test "$opt_dry_run" = ":"; then
  43898. + # Return a directory name, but don't create it in dry-run mode
  43899. + my_tmpdir="${my_template}-$$"
  43900. else
  43901. - $echo "disable static libraries"
  43902. - fi
  43903. - exit $EXIT_SUCCESS
  43904. - ;;
  43905. - --finish) mode="finish" ;;
  43906. + # If mktemp works, use that first and foremost
  43907. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  43908. - --mode) prevopt="--mode" prev=mode ;;
  43909. - --mode=*) mode="$optarg" ;;
  43910. + if test ! -d "$my_tmpdir"; then
  43911. + # Failing that, at least try and use $RANDOM to avoid a race
  43912. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  43913. - --preserve-dup-deps) duplicate_deps="yes" ;;
  43914. + save_mktempdir_umask=`umask`
  43915. + umask 0077
  43916. + $MKDIR "$my_tmpdir"
  43917. + umask $save_mktempdir_umask
  43918. + fi
  43919. - --quiet | --silent)
  43920. - show=:
  43921. - preserve_args="$preserve_args $arg"
  43922. - ;;
  43923. + # If we're not in dry-run mode, bomb out on failure
  43924. + test -d "$my_tmpdir" || \
  43925. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  43926. + fi
  43927. - --tag) prevopt="--tag" prev=tag ;;
  43928. - --tag=*)
  43929. - set tag "$optarg" ${1+"$@"}
  43930. - shift
  43931. - prev=tag
  43932. - preserve_args="$preserve_args --tag"
  43933. - ;;
  43934. + $ECHO "X$my_tmpdir" | $Xsed
  43935. +}
  43936. - -dlopen)
  43937. - prevopt="-dlopen"
  43938. - prev=execute_dlfiles
  43939. - ;;
  43940. - -*)
  43941. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  43942. - $echo "$help" 1>&2
  43943. - exit $EXIT_FAILURE
  43944. - ;;
  43945. +# func_quote_for_eval arg
  43946. +# Aesthetically quote ARG to be evaled later.
  43947. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  43948. +# is double-quoted, suitable for a subsequent eval, whereas
  43949. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  43950. +# which are still active within double quotes backslashified.
  43951. +func_quote_for_eval ()
  43952. +{
  43953. + case $1 in
  43954. + *[\\\`\"\$]*)
  43955. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  43956. + *)
  43957. + func_quote_for_eval_unquoted_result="$1" ;;
  43958. + esac
  43959. - *)
  43960. - nonopt="$arg"
  43961. - break
  43962. - ;;
  43963. - esac
  43964. -done
  43965. + case $func_quote_for_eval_unquoted_result in
  43966. + # Double-quote args containing shell metacharacters to delay
  43967. + # word splitting, command substitution and and variable
  43968. + # expansion for a subsequent eval.
  43969. + # Many Bourne shells cannot handle close brackets correctly
  43970. + # in scan sets, so we specify it separately.
  43971. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43972. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  43973. + ;;
  43974. + *)
  43975. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  43976. + esac
  43977. +}
  43978. -if test -n "$prevopt"; then
  43979. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  43980. - $echo "$help" 1>&2
  43981. - exit $EXIT_FAILURE
  43982. -fi
  43983. -# If this variable is set in any of the actions, the command in it
  43984. -# will be execed at the end. This prevents here-documents from being
  43985. -# left over by shells.
  43986. -exec_cmd=
  43987. +# func_quote_for_expand arg
  43988. +# Aesthetically quote ARG to be evaled later; same as above,
  43989. +# but do not quote variable references.
  43990. +func_quote_for_expand ()
  43991. +{
  43992. + case $1 in
  43993. + *[\\\`\"]*)
  43994. + my_arg=`$ECHO "X$1" | $Xsed \
  43995. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  43996. + *)
  43997. + my_arg="$1" ;;
  43998. + esac
  43999. -if test -z "$show_help"; then
  44000. + case $my_arg in
  44001. + # Double-quote args containing shell metacharacters to delay
  44002. + # word splitting and command substitution for a subsequent eval.
  44003. + # Many Bourne shells cannot handle close brackets correctly
  44004. + # in scan sets, so we specify it separately.
  44005. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44006. + my_arg="\"$my_arg\""
  44007. + ;;
  44008. + esac
  44009. - # Infer the operation mode.
  44010. - if test -z "$mode"; then
  44011. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  44012. - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
  44013. - case $nonopt in
  44014. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  44015. - mode=link
  44016. - for arg
  44017. - do
  44018. - case $arg in
  44019. - -c)
  44020. - mode=compile
  44021. - break
  44022. - ;;
  44023. - esac
  44024. - done
  44025. - ;;
  44026. - *db | *dbx | *strace | *truss)
  44027. - mode=execute
  44028. - ;;
  44029. - *install*|cp|mv)
  44030. - mode=install
  44031. - ;;
  44032. - *rm)
  44033. - mode=uninstall
  44034. - ;;
  44035. - *)
  44036. - # If we have no mode, but dlfiles were specified, then do execute mode.
  44037. - test -n "$execute_dlfiles" && mode=execute
  44038. + func_quote_for_expand_result="$my_arg"
  44039. +}
  44040. - # Just use the default operation mode.
  44041. - if test -z "$mode"; then
  44042. - if test -n "$nonopt"; then
  44043. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  44044. - else
  44045. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  44046. - fi
  44047. +
  44048. +# func_show_eval cmd [fail_exp]
  44049. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  44050. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  44051. +# is given, then evaluate it.
  44052. +func_show_eval ()
  44053. +{
  44054. + my_cmd="$1"
  44055. + my_fail_exp="${2-:}"
  44056. +
  44057. + ${opt_silent-false} || {
  44058. + func_quote_for_expand "$my_cmd"
  44059. + eval "func_echo $func_quote_for_expand_result"
  44060. + }
  44061. +
  44062. + if ${opt_dry_run-false}; then :; else
  44063. + eval "$my_cmd"
  44064. + my_status=$?
  44065. + if test "$my_status" -eq 0; then :; else
  44066. + eval "(exit $my_status); $my_fail_exp"
  44067. fi
  44068. - ;;
  44069. - esac
  44070. - fi
  44071. + fi
  44072. +}
  44073. - # Only execute mode is allowed to have -dlopen flags.
  44074. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  44075. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  44076. - $echo "$help" 1>&2
  44077. - exit $EXIT_FAILURE
  44078. - fi
  44079. - # Change the help message to a mode-specific one.
  44080. - generic_help="$help"
  44081. - help="Try \`$modename --help --mode=$mode' for more information."
  44082. +# func_show_eval_locale cmd [fail_exp]
  44083. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  44084. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  44085. +# is given, then evaluate it. Use the saved locale for evaluation.
  44086. +func_show_eval_locale ()
  44087. +{
  44088. + my_cmd="$1"
  44089. + my_fail_exp="${2-:}"
  44090. - # These modes are in order of execution frequency so that they run quickly.
  44091. - case $mode in
  44092. - # libtool compile mode
  44093. - compile)
  44094. - modename="$modename: compile"
  44095. - # Get the compilation command and the source file.
  44096. - base_compile=
  44097. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  44098. - suppress_opt=yes
  44099. - suppress_output=
  44100. - arg_mode=normal
  44101. - libobj=
  44102. - later=
  44103. + ${opt_silent-false} || {
  44104. + func_quote_for_expand "$my_cmd"
  44105. + eval "func_echo $func_quote_for_expand_result"
  44106. + }
  44107. +
  44108. + if ${opt_dry_run-false}; then :; else
  44109. + eval "$lt_user_locale
  44110. + $my_cmd"
  44111. + my_status=$?
  44112. + eval "$lt_safe_locale"
  44113. + if test "$my_status" -eq 0; then :; else
  44114. + eval "(exit $my_status); $my_fail_exp"
  44115. + fi
  44116. + fi
  44117. +}
  44118. - for arg
  44119. - do
  44120. - case "$arg_mode" in
  44121. - arg )
  44122. - # do not "continue". Instead, add this to base_compile
  44123. - lastarg="$arg"
  44124. - arg_mode=normal
  44125. - ;;
  44126. - target )
  44127. - libobj="$arg"
  44128. - arg_mode=normal
  44129. - continue
  44130. - ;;
  44131. - normal )
  44132. - # Accept any command-line options.
  44133. - case $arg in
  44134. - -o)
  44135. - if test -n "$libobj" ; then
  44136. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  44137. - exit $EXIT_FAILURE
  44138. - fi
  44139. - arg_mode=target
  44140. - continue
  44141. - ;;
  44142. - -static | -prefer-pic | -prefer-non-pic)
  44143. - later="$later $arg"
  44144. - continue
  44145. - ;;
  44146. - -no-suppress)
  44147. - suppress_opt=no
  44148. - continue
  44149. - ;;
  44150. +# func_version
  44151. +# Echo version message to standard output and exit.
  44152. +func_version ()
  44153. +{
  44154. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  44155. + s/^# //
  44156. + s/^# *$//
  44157. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  44158. + p
  44159. + }' < "$progpath"
  44160. + exit $?
  44161. +}
  44162. - -Xcompiler)
  44163. - arg_mode=arg # the next one goes into the "base_compile" arg list
  44164. - continue # The current "srcfile" will either be retained or
  44165. - ;; # replaced later. I would guess that would be a bug.
  44166. +# func_usage
  44167. +# Echo short help message to standard output and exit.
  44168. +func_usage ()
  44169. +{
  44170. + $SED -n '/^# Usage:/,/# -h/ {
  44171. + s/^# //
  44172. + s/^# *$//
  44173. + s/\$progname/'$progname'/
  44174. + p
  44175. + }' < "$progpath"
  44176. + $ECHO
  44177. + $ECHO "run \`$progname --help | more' for full usage"
  44178. + exit $?
  44179. +}
  44180. - -Wc,*)
  44181. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  44182. - lastarg=
  44183. - save_ifs="$IFS"; IFS=','
  44184. - for arg in $args; do
  44185. - IFS="$save_ifs"
  44186. +# func_help
  44187. +# Echo long help message to standard output and exit.
  44188. +func_help ()
  44189. +{
  44190. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  44191. + s/^# //
  44192. + s/^# *$//
  44193. + s*\$progname*'$progname'*
  44194. + s*\$host*'"$host"'*
  44195. + s*\$SHELL*'"$SHELL"'*
  44196. + s*\$LTCC*'"$LTCC"'*
  44197. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  44198. + s*\$LD*'"$LD"'*
  44199. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  44200. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  44201. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  44202. + p
  44203. + }' < "$progpath"
  44204. + exit $?
  44205. +}
  44206. - # Double-quote args containing other shell metacharacters.
  44207. - # Many Bourne shells cannot handle close brackets correctly
  44208. - # in scan sets, so we specify it separately.
  44209. - case $arg in
  44210. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44211. - arg="\"$arg\""
  44212. - ;;
  44213. - esac
  44214. - lastarg="$lastarg $arg"
  44215. - done
  44216. - IFS="$save_ifs"
  44217. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  44218. +# func_missing_arg argname
  44219. +# Echo program name prefixed message to standard error and set global
  44220. +# exit_cmd.
  44221. +func_missing_arg ()
  44222. +{
  44223. + func_error "missing argument for $1"
  44224. + exit_cmd=exit
  44225. +}
  44226. - # Add the arguments to base_compile.
  44227. - base_compile="$base_compile $lastarg"
  44228. - continue
  44229. - ;;
  44230. +exit_cmd=:
  44231. - * )
  44232. - # Accept the current argument as the source file.
  44233. - # The previous "srcfile" becomes the current argument.
  44234. - #
  44235. - lastarg="$srcfile"
  44236. - srcfile="$arg"
  44237. - ;;
  44238. - esac # case $arg
  44239. - ;;
  44240. - esac # case $arg_mode
  44241. - # Aesthetically quote the previous argument.
  44242. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  44243. - case $lastarg in
  44244. - # Double-quote args containing other shell metacharacters.
  44245. - # Many Bourne shells cannot handle close brackets correctly
  44246. - # in scan sets, so we specify it separately.
  44247. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44248. - lastarg="\"$lastarg\""
  44249. - ;;
  44250. - esac
  44251. - base_compile="$base_compile $lastarg"
  44252. - done # for arg
  44253. - case $arg_mode in
  44254. - arg)
  44255. - $echo "$modename: you must specify an argument for -Xcompile"
  44256. - exit $EXIT_FAILURE
  44257. - ;;
  44258. - target)
  44259. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  44260. - exit $EXIT_FAILURE
  44261. - ;;
  44262. - *)
  44263. - # Get the name of the library object.
  44264. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  44265. - ;;
  44266. - esac
  44267. +# Check that we have a working $ECHO.
  44268. +if test "X$1" = X--no-reexec; then
  44269. + # Discard the --no-reexec flag, and continue.
  44270. + shift
  44271. +elif test "X$1" = X--fallback-echo; then
  44272. + # Avoid inline document here, it may be left over
  44273. + :
  44274. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  44275. + # Yippee, $ECHO works!
  44276. + :
  44277. +else
  44278. + # Restart under the correct shell, and then maybe $ECHO will work.
  44279. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  44280. +fi
  44281. - # Recognize several different file suffixes.
  44282. - # If the user specifies -o file.o, it is replaced with file.lo
  44283. - xform='[cCFSifmso]'
  44284. - case $libobj in
  44285. - *.ada) xform=ada ;;
  44286. - *.adb) xform=adb ;;
  44287. - *.ads) xform=ads ;;
  44288. - *.asm) xform=asm ;;
  44289. - *.c++) xform=c++ ;;
  44290. - *.cc) xform=cc ;;
  44291. - *.ii) xform=ii ;;
  44292. - *.class) xform=class ;;
  44293. - *.cpp) xform=cpp ;;
  44294. - *.cxx) xform=cxx ;;
  44295. - *.f90) xform=f90 ;;
  44296. - *.for) xform=for ;;
  44297. - *.java) xform=java ;;
  44298. - esac
  44299. +if test "X$1" = X--fallback-echo; then
  44300. + # used as fallback echo
  44301. + shift
  44302. + cat <<EOF
  44303. +$*
  44304. +EOF
  44305. + exit $EXIT_SUCCESS
  44306. +fi
  44307. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  44308. +magic="%%%MAGIC variable%%%"
  44309. +magic_exe="%%%MAGIC EXE variable%%%"
  44310. - case $libobj in
  44311. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  44312. - *)
  44313. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  44314. - exit $EXIT_FAILURE
  44315. - ;;
  44316. - esac
  44317. +# Global variables.
  44318. +# $mode is unset
  44319. +nonopt=
  44320. +execute_dlfiles=
  44321. +preserve_args=
  44322. +lo2o="s/\\.lo\$/.${objext}/"
  44323. +o2lo="s/\\.${objext}\$/.lo/"
  44324. +extracted_archives=
  44325. +extracted_serial=0
  44326. - func_infer_tag $base_compile
  44327. +opt_dry_run=false
  44328. +opt_duplicate_deps=false
  44329. +opt_silent=false
  44330. +opt_debug=:
  44331. - for arg in $later; do
  44332. - case $arg in
  44333. - -static)
  44334. - build_old_libs=yes
  44335. - continue
  44336. - ;;
  44337. +# If this variable is set in any of the actions, the command in it
  44338. +# will be execed at the end. This prevents here-documents from being
  44339. +# left over by shells.
  44340. +exec_cmd=
  44341. - -prefer-pic)
  44342. - pic_mode=yes
  44343. - continue
  44344. - ;;
  44345. +# func_fatal_configuration arg...
  44346. +# Echo program name prefixed message to standard error, followed by
  44347. +# a configuration failure hint, and exit.
  44348. +func_fatal_configuration ()
  44349. +{
  44350. + func_error ${1+"$@"}
  44351. + func_error "See the $PACKAGE documentation for more information."
  44352. + func_fatal_error "Fatal configuration error."
  44353. +}
  44354. - -prefer-non-pic)
  44355. - pic_mode=no
  44356. - continue
  44357. - ;;
  44358. - esac
  44359. +
  44360. +# func_config
  44361. +# Display the configuration for all the tags in this script.
  44362. +func_config ()
  44363. +{
  44364. + re_begincf='^# ### BEGIN LIBTOOL'
  44365. + re_endcf='^# ### END LIBTOOL'
  44366. +
  44367. + # Default configuration.
  44368. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  44369. +
  44370. + # Now print the configurations for the tags.
  44371. + for tagname in $taglist; do
  44372. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  44373. done
  44374. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  44375. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  44376. - if test "X$xdir" = "X$obj"; then
  44377. - xdir=
  44378. - else
  44379. - xdir=$xdir/
  44380. - fi
  44381. - lobj=${xdir}$objdir/$objname
  44382. + exit $?
  44383. +}
  44384. - if test -z "$base_compile"; then
  44385. - $echo "$modename: you must specify a compilation command" 1>&2
  44386. - $echo "$help" 1>&2
  44387. - exit $EXIT_FAILURE
  44388. +# func_features
  44389. +# Display the features supported by this script.
  44390. +func_features ()
  44391. +{
  44392. + $ECHO "host: $host"
  44393. + if test "$build_libtool_libs" = yes; then
  44394. + $ECHO "enable shared libraries"
  44395. + else
  44396. + $ECHO "disable shared libraries"
  44397. fi
  44398. -
  44399. - # Delete any leftover library objects.
  44400. if test "$build_old_libs" = yes; then
  44401. - removelist="$obj $lobj $libobj ${libobj}T"
  44402. + $ECHO "enable static libraries"
  44403. else
  44404. - removelist="$lobj $libobj ${libobj}T"
  44405. + $ECHO "disable static libraries"
  44406. fi
  44407. - $run $rm $removelist
  44408. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  44409. -
  44410. - # On Cygwin there's no "real" PIC flag so we must build both object types
  44411. - case $host_os in
  44412. - cygwin* | mingw* | pw32* | os2*)
  44413. - pic_mode=default
  44414. - ;;
  44415. - esac
  44416. - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  44417. - # non-PIC code in shared libraries is not supported
  44418. - pic_mode=default
  44419. - fi
  44420. + exit $?
  44421. +}
  44422. - # Calculate the filename of the output object if compiler does
  44423. - # not support -o with -c
  44424. - if test "$compiler_c_o" = no; then
  44425. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  44426. - lockfile="$output_obj.lock"
  44427. - removelist="$removelist $output_obj $lockfile"
  44428. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  44429. - else
  44430. - output_obj=
  44431. - need_locks=no
  44432. - lockfile=
  44433. - fi
  44434. +# func_enable_tag tagname
  44435. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  44436. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  44437. +# variable here.
  44438. +func_enable_tag ()
  44439. +{
  44440. + # Global variable:
  44441. + tagname="$1"
  44442. - # Lock this critical section if it is needed
  44443. - # We use this script file to make the link, it avoids creating a new file
  44444. - if test "$need_locks" = yes; then
  44445. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  44446. - $show "Waiting for $lockfile to be removed"
  44447. - sleep 2
  44448. - done
  44449. - elif test "$need_locks" = warn; then
  44450. - if test -f "$lockfile"; then
  44451. - $echo "\
  44452. -*** ERROR, $lockfile exists and contains:
  44453. -`cat $lockfile 2>/dev/null`
  44454. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  44455. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  44456. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  44457. +
  44458. + # Validate tagname.
  44459. + case $tagname in
  44460. + *[!-_A-Za-z0-9,/]*)
  44461. + func_fatal_error "invalid tag name: $tagname"
  44462. + ;;
  44463. + esac
  44464. -This indicates that another process is trying to use the same
  44465. -temporary object file, and libtool could not work around it because
  44466. -your compiler does not support \`-c' and \`-o' together. If you
  44467. -repeat this compilation, it may succeed, by chance, but you had better
  44468. -avoid parallel builds (make -j) in this platform, or get a better
  44469. -compiler."
  44470. + # Don't test for the "default" C tag, as we know it's
  44471. + # there but not specially marked.
  44472. + case $tagname in
  44473. + CC) ;;
  44474. + *)
  44475. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  44476. + taglist="$taglist $tagname"
  44477. - $run $rm $removelist
  44478. - exit $EXIT_FAILURE
  44479. + # Evaluate the configuration. Be careful to quote the path
  44480. + # and the sed script, to avoid splitting on whitespace, but
  44481. + # also don't use non-portable quotes within backquotes within
  44482. + # quotes we have to do it in 2 steps:
  44483. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  44484. + eval "$extractedcf"
  44485. + else
  44486. + func_error "ignoring unknown tag $tagname"
  44487. fi
  44488. - $echo $srcfile > "$lockfile"
  44489. - fi
  44490. + ;;
  44491. + esac
  44492. +}
  44493. - if test -n "$fix_srcfile_path"; then
  44494. - eval srcfile=\"$fix_srcfile_path\"
  44495. - fi
  44496. +# Parse options once, thoroughly. This comes as soon as possible in
  44497. +# the script to make things like `libtool --version' happen quickly.
  44498. +{
  44499. - $run $rm "$libobj" "${libobj}T"
  44500. + # Shorthand for --mode=foo, only valid as the first argument
  44501. + case $1 in
  44502. + clean|clea|cle|cl)
  44503. + shift; set dummy --mode clean ${1+"$@"}; shift
  44504. + ;;
  44505. + compile|compil|compi|comp|com|co|c)
  44506. + shift; set dummy --mode compile ${1+"$@"}; shift
  44507. + ;;
  44508. + execute|execut|execu|exec|exe|ex|e)
  44509. + shift; set dummy --mode execute ${1+"$@"}; shift
  44510. + ;;
  44511. + finish|finis|fini|fin|fi|f)
  44512. + shift; set dummy --mode finish ${1+"$@"}; shift
  44513. + ;;
  44514. + install|instal|insta|inst|ins|in|i)
  44515. + shift; set dummy --mode install ${1+"$@"}; shift
  44516. + ;;
  44517. + link|lin|li|l)
  44518. + shift; set dummy --mode link ${1+"$@"}; shift
  44519. + ;;
  44520. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  44521. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  44522. + ;;
  44523. + esac
  44524. - # Create a libtool object file (analogous to a ".la" file),
  44525. - # but don't create it if we're doing a dry run.
  44526. - test -z "$run" && cat > ${libobj}T <<EOF
  44527. -# $libobj - a libtool object file
  44528. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  44529. -#
  44530. -# Please DO NOT delete this file!
  44531. -# It is necessary for linking the library.
  44532. + # Parse non-mode specific arguments:
  44533. + while test "$#" -gt 0; do
  44534. + opt="$1"
  44535. + shift
  44536. -# Name of the PIC object.
  44537. -EOF
  44538. + case $opt in
  44539. + --config) func_config ;;
  44540. - # Only build a PIC object if we are building libtool libraries.
  44541. - if test "$build_libtool_libs" = yes; then
  44542. - # Without this assignment, base_compile gets emptied.
  44543. - fbsd_hideous_sh_bug=$base_compile
  44544. + --debug) preserve_args="$preserve_args $opt"
  44545. + func_echo "enabling shell trace mode"
  44546. + opt_debug='set -x'
  44547. + $opt_debug
  44548. + ;;
  44549. - if test "$pic_mode" != no; then
  44550. - command="$base_compile $srcfile $pic_flag"
  44551. - else
  44552. - # Don't build PIC code
  44553. - command="$base_compile $srcfile"
  44554. - fi
  44555. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  44556. + execute_dlfiles="$execute_dlfiles $1"
  44557. + shift
  44558. + ;;
  44559. - if test ! -d "${xdir}$objdir"; then
  44560. - $show "$mkdir ${xdir}$objdir"
  44561. - $run $mkdir ${xdir}$objdir
  44562. - status=$?
  44563. - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
  44564. - exit $status
  44565. - fi
  44566. - fi
  44567. + --dry-run | -n) opt_dry_run=: ;;
  44568. + --features) func_features ;;
  44569. + --finish) mode="finish" ;;
  44570. +
  44571. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  44572. + case $1 in
  44573. + # Valid mode arguments:
  44574. + clean) ;;
  44575. + compile) ;;
  44576. + execute) ;;
  44577. + finish) ;;
  44578. + install) ;;
  44579. + link) ;;
  44580. + relink) ;;
  44581. + uninstall) ;;
  44582. +
  44583. + # Catch anything else as an error
  44584. + *) func_error "invalid argument for $opt"
  44585. + exit_cmd=exit
  44586. + break
  44587. + ;;
  44588. + esac
  44589. - if test -z "$output_obj"; then
  44590. - # Place PIC objects in $objdir
  44591. - command="$command -o $lobj"
  44592. - fi
  44593. + mode="$1"
  44594. + shift
  44595. + ;;
  44596. - $run $rm "$lobj" "$output_obj"
  44597. + --preserve-dup-deps)
  44598. + opt_duplicate_deps=: ;;
  44599. - $show "$command"
  44600. - if $run eval "$command"; then :
  44601. - else
  44602. - test -n "$output_obj" && $run $rm $removelist
  44603. - exit $EXIT_FAILURE
  44604. - fi
  44605. + --quiet|--silent) preserve_args="$preserve_args $opt"
  44606. + opt_silent=:
  44607. + ;;
  44608. - if test "$need_locks" = warn &&
  44609. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  44610. - $echo "\
  44611. -*** ERROR, $lockfile contains:
  44612. -`cat $lockfile 2>/dev/null`
  44613. + --verbose| -v) preserve_args="$preserve_args $opt"
  44614. + opt_silent=false
  44615. + ;;
  44616. -but it should contain:
  44617. -$srcfile
  44618. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  44619. + preserve_args="$preserve_args $opt $1"
  44620. + func_enable_tag "$1" # tagname is set here
  44621. + shift
  44622. + ;;
  44623. -This indicates that another process is trying to use the same
  44624. -temporary object file, and libtool could not work around it because
  44625. -your compiler does not support \`-c' and \`-o' together. If you
  44626. -repeat this compilation, it may succeed, by chance, but you had better
  44627. -avoid parallel builds (make -j) in this platform, or get a better
  44628. -compiler."
  44629. + # Separate optargs to long options:
  44630. + -dlopen=*|--mode=*|--tag=*)
  44631. + func_opt_split "$opt"
  44632. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  44633. + shift
  44634. + ;;
  44635. - $run $rm $removelist
  44636. - exit $EXIT_FAILURE
  44637. - fi
  44638. + -\?|-h) func_usage ;;
  44639. + --help) opt_help=: ;;
  44640. + --version) func_version ;;
  44641. - # Just move the object if needed, then go on to compile the next one
  44642. - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  44643. - $show "$mv $output_obj $lobj"
  44644. - if $run $mv $output_obj $lobj; then :
  44645. - else
  44646. - error=$?
  44647. - $run $rm $removelist
  44648. - exit $error
  44649. - fi
  44650. - fi
  44651. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  44652. - # Append the name of the PIC object to the libtool object file.
  44653. - test -z "$run" && cat >> ${libobj}T <<EOF
  44654. -pic_object='$objdir/$objname'
  44655. + *) nonopt="$opt"
  44656. + break
  44657. + ;;
  44658. + esac
  44659. + done
  44660. -EOF
  44661. - # Allow error messages only from the first compilation.
  44662. - if test "$suppress_opt" = yes; then
  44663. - suppress_output=' >/dev/null 2>&1'
  44664. - fi
  44665. - else
  44666. - # No PIC object so indicate it doesn't exist in the libtool
  44667. - # object file.
  44668. - test -z "$run" && cat >> ${libobj}T <<EOF
  44669. -pic_object=none
  44670. + case $host in
  44671. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  44672. + # don't eliminate duplications in $postdeps and $predeps
  44673. + opt_duplicate_compiler_generated_deps=:
  44674. + ;;
  44675. + *)
  44676. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  44677. + ;;
  44678. + esac
  44679. -EOF
  44680. - fi
  44681. + # Having warned about all mis-specified options, bail out if
  44682. + # anything was wrong.
  44683. + $exit_cmd $EXIT_FAILURE
  44684. +}
  44685. - # Only build a position-dependent object if we build old libraries.
  44686. - if test "$build_old_libs" = yes; then
  44687. - if test "$pic_mode" != yes; then
  44688. - # Don't build PIC code
  44689. - command="$base_compile $srcfile"
  44690. +# func_check_version_match
  44691. +# Ensure that we are using m4 macros, and libtool script from the same
  44692. +# release of libtool.
  44693. +func_check_version_match ()
  44694. +{
  44695. + if test "$package_revision" != "$macro_revision"; then
  44696. + if test "$VERSION" != "$macro_version"; then
  44697. + if test -z "$macro_version"; then
  44698. + cat >&2 <<_LT_EOF
  44699. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  44700. +$progname: definition of this LT_INIT comes from an older release.
  44701. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  44702. +$progname: and run autoconf again.
  44703. +_LT_EOF
  44704. else
  44705. - command="$base_compile $srcfile $pic_flag"
  44706. - fi
  44707. - if test "$compiler_c_o" = yes; then
  44708. - command="$command -o $obj"
  44709. + cat >&2 <<_LT_EOF
  44710. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  44711. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  44712. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  44713. +$progname: and run autoconf again.
  44714. +_LT_EOF
  44715. fi
  44716. + else
  44717. + cat >&2 <<_LT_EOF
  44718. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  44719. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  44720. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  44721. +$progname: of $PACKAGE $VERSION and run autoconf again.
  44722. +_LT_EOF
  44723. + fi
  44724. - # Suppress compiler output if we already did a PIC compilation.
  44725. - command="$command$suppress_output"
  44726. - $run $rm "$obj" "$output_obj"
  44727. - $show "$command"
  44728. - if $run eval "$command"; then :
  44729. - else
  44730. - $run $rm $removelist
  44731. - exit $EXIT_FAILURE
  44732. - fi
  44733. + exit $EXIT_MISMATCH
  44734. + fi
  44735. +}
  44736. - if test "$need_locks" = warn &&
  44737. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  44738. - $echo "\
  44739. -*** ERROR, $lockfile contains:
  44740. -`cat $lockfile 2>/dev/null`
  44741. -but it should contain:
  44742. -$srcfile
  44743. +## ----------- ##
  44744. +## Main. ##
  44745. +## ----------- ##
  44746. +
  44747. +$opt_help || {
  44748. + # Sanity checks first:
  44749. + func_check_version_match
  44750. -This indicates that another process is trying to use the same
  44751. -temporary object file, and libtool could not work around it because
  44752. -your compiler does not support \`-c' and \`-o' together. If you
  44753. -repeat this compilation, it may succeed, by chance, but you had better
  44754. -avoid parallel builds (make -j) in this platform, or get a better
  44755. -compiler."
  44756. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  44757. + func_fatal_configuration "not configured to build any kind of library"
  44758. + fi
  44759. - $run $rm $removelist
  44760. - exit $EXIT_FAILURE
  44761. - fi
  44762. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  44763. - # Just move the object if needed
  44764. - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  44765. - $show "$mv $output_obj $obj"
  44766. - if $run $mv $output_obj $obj; then :
  44767. - else
  44768. - error=$?
  44769. - $run $rm $removelist
  44770. - exit $error
  44771. - fi
  44772. - fi
  44773. - # Append the name of the non-PIC object the libtool object file.
  44774. - # Only append if the libtool object file exists.
  44775. - test -z "$run" && cat >> ${libobj}T <<EOF
  44776. -# Name of the non-PIC object.
  44777. -non_pic_object='$objname'
  44778. + # Darwin sucks
  44779. + eval std_shrext=\"$shrext_cmds\"
  44780. -EOF
  44781. - else
  44782. - # Append the name of the non-PIC object the libtool object file.
  44783. - # Only append if the libtool object file exists.
  44784. - test -z "$run" && cat >> ${libobj}T <<EOF
  44785. -# Name of the non-PIC object.
  44786. -non_pic_object=none
  44787. -EOF
  44788. + # Only execute mode is allowed to have -dlopen flags.
  44789. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  44790. + func_error "unrecognized option \`-dlopen'"
  44791. + $ECHO "$help" 1>&2
  44792. + exit $EXIT_FAILURE
  44793. + fi
  44794. +
  44795. + # Change the help message to a mode-specific one.
  44796. + generic_help="$help"
  44797. + help="Try \`$progname --help --mode=$mode' for more information."
  44798. +}
  44799. +
  44800. +
  44801. +# func_lalib_p file
  44802. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  44803. +# This function is only a basic sanity check; it will hardly flush out
  44804. +# determined imposters.
  44805. +func_lalib_p ()
  44806. +{
  44807. + test -f "$1" &&
  44808. + $SED -e 4q "$1" 2>/dev/null \
  44809. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  44810. +}
  44811. +
  44812. +# func_lalib_unsafe_p file
  44813. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  44814. +# This function implements the same check as func_lalib_p without
  44815. +# resorting to external programs. To this end, it redirects stdin and
  44816. +# closes it afterwards, without saving the original file descriptor.
  44817. +# As a safety measure, use it only where a negative result would be
  44818. +# fatal anyway. Works if `file' does not exist.
  44819. +func_lalib_unsafe_p ()
  44820. +{
  44821. + lalib_p=no
  44822. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  44823. + for lalib_p_l in 1 2 3 4
  44824. + do
  44825. + read lalib_p_line
  44826. + case "$lalib_p_line" in
  44827. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  44828. + esac
  44829. + done
  44830. + exec 0<&5 5<&-
  44831. fi
  44832. + test "$lalib_p" = yes
  44833. +}
  44834. +
  44835. +# func_ltwrapper_script_p file
  44836. +# True iff FILE is a libtool wrapper script
  44837. +# This function is only a basic sanity check; it will hardly flush out
  44838. +# determined imposters.
  44839. +func_ltwrapper_script_p ()
  44840. +{
  44841. + func_lalib_p "$1"
  44842. +}
  44843. - $run $mv "${libobj}T" "${libobj}"
  44844. +# func_ltwrapper_executable_p file
  44845. +# True iff FILE is a libtool wrapper executable
  44846. +# This function is only a basic sanity check; it will hardly flush out
  44847. +# determined imposters.
  44848. +func_ltwrapper_executable_p ()
  44849. +{
  44850. + func_ltwrapper_exec_suffix=
  44851. + case $1 in
  44852. + *.exe) ;;
  44853. + *) func_ltwrapper_exec_suffix=.exe ;;
  44854. + esac
  44855. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  44856. +}
  44857. - # Unlock the critical section if it was locked
  44858. - if test "$need_locks" != no; then
  44859. - $run $rm "$lockfile"
  44860. +# func_ltwrapper_scriptname file
  44861. +# Assumes file is an ltwrapper_executable
  44862. +# uses $file to determine the appropriate filename for a
  44863. +# temporary ltwrapper_script.
  44864. +func_ltwrapper_scriptname ()
  44865. +{
  44866. + func_ltwrapper_scriptname_result=""
  44867. + if func_ltwrapper_executable_p "$1"; then
  44868. + func_dirname_and_basename "$1" "" "."
  44869. + func_stripname '' '.exe' "$func_basename_result"
  44870. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  44871. fi
  44872. +}
  44873. - exit $EXIT_SUCCESS
  44874. - ;;
  44875. +# func_ltwrapper_p file
  44876. +# True iff FILE is a libtool wrapper script or wrapper executable
  44877. +# This function is only a basic sanity check; it will hardly flush out
  44878. +# determined imposters.
  44879. +func_ltwrapper_p ()
  44880. +{
  44881. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  44882. +}
  44883. - # libtool link mode
  44884. - link | relink)
  44885. - modename="$modename: link"
  44886. - case $host in
  44887. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  44888. - # It is impossible to link a dll without this setting, and
  44889. - # we shouldn't force the makefile maintainer to figure out
  44890. - # which system we are compiling for in order to pass an extra
  44891. - # flag for every libtool invocation.
  44892. - # allow_undefined=no
  44893. - # FIXME: Unfortunately, there are problems with the above when trying
  44894. - # to make a dll which has undefined symbols, in which case not
  44895. - # even a static library is built. For now, we need to specify
  44896. - # -no-undefined on the libtool link line when we can be certain
  44897. - # that all symbols are satisfied, otherwise we get a static library.
  44898. - allow_undefined=yes
  44899. - ;;
  44900. - *)
  44901. - allow_undefined=yes
  44902. - ;;
  44903. - esac
  44904. - libtool_args="$nonopt"
  44905. - base_compile="$nonopt $@"
  44906. - compile_command="$nonopt"
  44907. - finalize_command="$nonopt"
  44908. +# func_execute_cmds commands fail_cmd
  44909. +# Execute tilde-delimited COMMANDS.
  44910. +# If FAIL_CMD is given, eval that upon failure.
  44911. +# FAIL_CMD may read-access the current command in variable CMD!
  44912. +func_execute_cmds ()
  44913. +{
  44914. + $opt_debug
  44915. + save_ifs=$IFS; IFS='~'
  44916. + for cmd in $1; do
  44917. + IFS=$save_ifs
  44918. + eval cmd=\"$cmd\"
  44919. + func_show_eval "$cmd" "${2-:}"
  44920. + done
  44921. + IFS=$save_ifs
  44922. +}
  44923. - compile_rpath=
  44924. - finalize_rpath=
  44925. - compile_shlibpath=
  44926. - finalize_shlibpath=
  44927. - convenience=
  44928. - old_convenience=
  44929. - deplibs=
  44930. - old_deplibs=
  44931. - compiler_flags=
  44932. - linker_flags=
  44933. - dllsearchpath=
  44934. - lib_search_path=`pwd`
  44935. - inst_prefix_dir=
  44936. - avoid_version=no
  44937. - dlfiles=
  44938. - dlprefiles=
  44939. - dlself=no
  44940. - export_dynamic=no
  44941. - export_symbols=
  44942. - export_symbols_regex=
  44943. - generated=
  44944. - libobjs=
  44945. - ltlibs=
  44946. - module=no
  44947. - no_install=no
  44948. - objs=
  44949. - non_pic_objects=
  44950. - precious_files_regex=
  44951. - prefer_static_libs=no
  44952. - preload=no
  44953. - prev=
  44954. - prevarg=
  44955. - release=
  44956. - rpath=
  44957. - xrpath=
  44958. - perm_rpath=
  44959. - temp_rpath=
  44960. - thread_safe=no
  44961. - vinfo=
  44962. - vinfo_number=no
  44963. +# func_source file
  44964. +# Source FILE, adding directory component if necessary.
  44965. +# Note that it is not necessary on cygwin/mingw to append a dot to
  44966. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  44967. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  44968. +# `FILE.' does not work on cygwin managed mounts.
  44969. +func_source ()
  44970. +{
  44971. + $opt_debug
  44972. + case $1 in
  44973. + */* | *\\*) . "$1" ;;
  44974. + *) . "./$1" ;;
  44975. + esac
  44976. +}
  44977. - func_infer_tag $base_compile
  44978. - # We need to know -static, to get the right output filenames.
  44979. - for arg
  44980. - do
  44981. - case $arg in
  44982. - -all-static | -static)
  44983. - if test "X$arg" = "X-all-static"; then
  44984. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  44985. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  44986. - fi
  44987. - if test -n "$link_static_flag"; then
  44988. - dlopen_self=$dlopen_self_static
  44989. - fi
  44990. - else
  44991. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  44992. - dlopen_self=$dlopen_self_static
  44993. +# func_infer_tag arg
  44994. +# Infer tagged configuration to use if any are available and
  44995. +# if one wasn't chosen via the "--tag" command line option.
  44996. +# Only attempt this if the compiler in the base compile
  44997. +# command doesn't match the default compiler.
  44998. +# arg is usually of the form 'gcc ...'
  44999. +func_infer_tag ()
  45000. +{
  45001. + $opt_debug
  45002. + if test -n "$available_tags" && test -z "$tagname"; then
  45003. + CC_quoted=
  45004. + for arg in $CC; do
  45005. + func_quote_for_eval "$arg"
  45006. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  45007. + done
  45008. + case $@ in
  45009. + # Blanks in the command may have been stripped by the calling shell,
  45010. + # but not from the CC environment variable when configure was run.
  45011. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  45012. + # Blanks at the start of $base_compile will cause this to fail
  45013. + # if we don't check for them as well.
  45014. + *)
  45015. + for z in $available_tags; do
  45016. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  45017. + # Evaluate the configuration.
  45018. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  45019. + CC_quoted=
  45020. + for arg in $CC; do
  45021. + # Double-quote args containing other shell metacharacters.
  45022. + func_quote_for_eval "$arg"
  45023. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  45024. + done
  45025. + case "$@ " in
  45026. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  45027. + # The compiler in the base compile command matches
  45028. + # the one in the tagged configuration.
  45029. + # Assume this is the tagged configuration we want.
  45030. + tagname=$z
  45031. + break
  45032. + ;;
  45033. + esac
  45034. fi
  45035. + done
  45036. + # If $tagname still isn't set, then no tagged configuration
  45037. + # was found and let the user know that the "--tag" command
  45038. + # line option must be used.
  45039. + if test -z "$tagname"; then
  45040. + func_echo "unable to infer tagged configuration"
  45041. + func_fatal_error "specify a tag with \`--tag'"
  45042. +# else
  45043. +# func_verbose "using $tagname tagged configuration"
  45044. fi
  45045. - build_libtool_libs=no
  45046. - build_old_libs=yes
  45047. - prefer_static_libs=yes
  45048. - break
  45049. ;;
  45050. esac
  45051. - done
  45052. -
  45053. - # See if our shared archives depend on static archives.
  45054. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  45055. + fi
  45056. +}
  45057. - # Go through the arguments, transforming them on the way.
  45058. - while test "$#" -gt 0; do
  45059. - arg="$1"
  45060. - shift
  45061. - case $arg in
  45062. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45063. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  45064. - ;;
  45065. - *) qarg=$arg ;;
  45066. - esac
  45067. - libtool_args="$libtool_args $qarg"
  45068. - # If the previous option needs an argument, assign it.
  45069. - if test -n "$prev"; then
  45070. - case $prev in
  45071. - output)
  45072. - compile_command="$compile_command @OUTPUT@"
  45073. - finalize_command="$finalize_command @OUTPUT@"
  45074. - ;;
  45075. - esac
  45076. - case $prev in
  45077. - dlfiles|dlprefiles)
  45078. - if test "$preload" = no; then
  45079. - # Add the symbol object into the linking commands.
  45080. - compile_command="$compile_command @SYMFILE@"
  45081. - finalize_command="$finalize_command @SYMFILE@"
  45082. - preload=yes
  45083. - fi
  45084. - case $arg in
  45085. - *.la | *.lo) ;; # We handle these cases below.
  45086. - force)
  45087. - if test "$dlself" = no; then
  45088. - dlself=needless
  45089. - export_dynamic=yes
  45090. - fi
  45091. - prev=
  45092. - continue
  45093. - ;;
  45094. - self)
  45095. - if test "$prev" = dlprefiles; then
  45096. - dlself=yes
  45097. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  45098. - dlself=yes
  45099. - else
  45100. - dlself=needless
  45101. - export_dynamic=yes
  45102. - fi
  45103. - prev=
  45104. - continue
  45105. - ;;
  45106. - *)
  45107. - if test "$prev" = dlfiles; then
  45108. - dlfiles="$dlfiles $arg"
  45109. - else
  45110. - dlprefiles="$dlprefiles $arg"
  45111. - fi
  45112. - prev=
  45113. - continue
  45114. - ;;
  45115. - esac
  45116. - ;;
  45117. - expsyms)
  45118. - export_symbols="$arg"
  45119. - if test ! -f "$arg"; then
  45120. - $echo "$modename: symbol file \`$arg' does not exist"
  45121. - exit $EXIT_FAILURE
  45122. - fi
  45123. - prev=
  45124. - continue
  45125. - ;;
  45126. - expsyms_regex)
  45127. - export_symbols_regex="$arg"
  45128. - prev=
  45129. - continue
  45130. - ;;
  45131. - inst_prefix)
  45132. - inst_prefix_dir="$arg"
  45133. - prev=
  45134. - continue
  45135. - ;;
  45136. - precious_regex)
  45137. - precious_files_regex="$arg"
  45138. - prev=
  45139. - continue
  45140. - ;;
  45141. - release)
  45142. - release="-$arg"
  45143. - prev=
  45144. - continue
  45145. - ;;
  45146. - objectlist)
  45147. - if test -f "$arg"; then
  45148. - save_arg=$arg
  45149. - moreargs=
  45150. - for fil in `cat $save_arg`
  45151. - do
  45152. -# moreargs="$moreargs $fil"
  45153. - arg=$fil
  45154. - # A libtool-controlled object.
  45155. -
  45156. - # Check to see that this really is a libtool object.
  45157. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  45158. - pic_object=
  45159. - non_pic_object=
  45160. -
  45161. - # Read the .lo file
  45162. - # If there is no directory component, then add one.
  45163. - case $arg in
  45164. - */* | *\\*) . $arg ;;
  45165. - *) . ./$arg ;;
  45166. - esac
  45167. -
  45168. - if test -z "$pic_object" || \
  45169. - test -z "$non_pic_object" ||
  45170. - test "$pic_object" = none && \
  45171. - test "$non_pic_object" = none; then
  45172. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  45173. - exit $EXIT_FAILURE
  45174. - fi
  45175. +# func_write_libtool_object output_name pic_name nonpic_name
  45176. +# Create a libtool object file (analogous to a ".la" file),
  45177. +# but don't create it if we're doing a dry run.
  45178. +func_write_libtool_object ()
  45179. +{
  45180. + write_libobj=${1}
  45181. + if test "$build_libtool_libs" = yes; then
  45182. + write_lobj=\'${2}\'
  45183. + else
  45184. + write_lobj=none
  45185. + fi
  45186. - # Extract subdirectory from the argument.
  45187. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  45188. - if test "X$xdir" = "X$arg"; then
  45189. - xdir=
  45190. - else
  45191. - xdir="$xdir/"
  45192. - fi
  45193. + if test "$build_old_libs" = yes; then
  45194. + write_oldobj=\'${3}\'
  45195. + else
  45196. + write_oldobj=none
  45197. + fi
  45198. - if test "$pic_object" != none; then
  45199. - # Prepend the subdirectory the object is found in.
  45200. - pic_object="$xdir$pic_object"
  45201. + $opt_dry_run || {
  45202. + cat >${write_libobj}T <<EOF
  45203. +# $write_libobj - a libtool object file
  45204. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  45205. +#
  45206. +# Please DO NOT delete this file!
  45207. +# It is necessary for linking the library.
  45208. - if test "$prev" = dlfiles; then
  45209. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  45210. - dlfiles="$dlfiles $pic_object"
  45211. - prev=
  45212. - continue
  45213. - else
  45214. - # If libtool objects are unsupported, then we need to preload.
  45215. - prev=dlprefiles
  45216. - fi
  45217. - fi
  45218. +# Name of the PIC object.
  45219. +pic_object=$write_lobj
  45220. - # CHECK ME: I think I busted this. -Ossama
  45221. - if test "$prev" = dlprefiles; then
  45222. - # Preload the old-style object.
  45223. - dlprefiles="$dlprefiles $pic_object"
  45224. - prev=
  45225. - fi
  45226. +# Name of the non-PIC object
  45227. +non_pic_object=$write_oldobj
  45228. - # A PIC object.
  45229. - libobjs="$libobjs $pic_object"
  45230. - arg="$pic_object"
  45231. - fi
  45232. +EOF
  45233. + $MV "${write_libobj}T" "${write_libobj}"
  45234. + }
  45235. +}
  45236. - # Non-PIC object.
  45237. - if test "$non_pic_object" != none; then
  45238. - # Prepend the subdirectory the object is found in.
  45239. - non_pic_object="$xdir$non_pic_object"
  45240. +# func_mode_compile arg...
  45241. +func_mode_compile ()
  45242. +{
  45243. + $opt_debug
  45244. + # Get the compilation command and the source file.
  45245. + base_compile=
  45246. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  45247. + suppress_opt=yes
  45248. + suppress_output=
  45249. + arg_mode=normal
  45250. + libobj=
  45251. + later=
  45252. + pie_flag=
  45253. - # A standard non-PIC object
  45254. - non_pic_objects="$non_pic_objects $non_pic_object"
  45255. - if test -z "$pic_object" || test "$pic_object" = none ; then
  45256. - arg="$non_pic_object"
  45257. - fi
  45258. - fi
  45259. - else
  45260. - # Only an error if not doing a dry-run.
  45261. - if test -z "$run"; then
  45262. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  45263. - exit $EXIT_FAILURE
  45264. - else
  45265. - # Dry-run case.
  45266. + for arg
  45267. + do
  45268. + case $arg_mode in
  45269. + arg )
  45270. + # do not "continue". Instead, add this to base_compile
  45271. + lastarg="$arg"
  45272. + arg_mode=normal
  45273. + ;;
  45274. - # Extract subdirectory from the argument.
  45275. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  45276. - if test "X$xdir" = "X$arg"; then
  45277. - xdir=
  45278. - else
  45279. - xdir="$xdir/"
  45280. - fi
  45281. + target )
  45282. + libobj="$arg"
  45283. + arg_mode=normal
  45284. + continue
  45285. + ;;
  45286. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  45287. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  45288. - libobjs="$libobjs $pic_object"
  45289. - non_pic_objects="$non_pic_objects $non_pic_object"
  45290. - fi
  45291. - fi
  45292. - done
  45293. - else
  45294. - $echo "$modename: link input file \`$save_arg' does not exist"
  45295. - exit $EXIT_FAILURE
  45296. - fi
  45297. - arg=$save_arg
  45298. - prev=
  45299. - continue
  45300. - ;;
  45301. - rpath | xrpath)
  45302. - # We need an absolute path.
  45303. - case $arg in
  45304. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  45305. - *)
  45306. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  45307. - exit $EXIT_FAILURE
  45308. - ;;
  45309. - esac
  45310. - if test "$prev" = rpath; then
  45311. - case "$rpath " in
  45312. - *" $arg "*) ;;
  45313. - *) rpath="$rpath $arg" ;;
  45314. - esac
  45315. - else
  45316. - case "$xrpath " in
  45317. - *" $arg "*) ;;
  45318. - *) xrpath="$xrpath $arg" ;;
  45319. - esac
  45320. - fi
  45321. - prev=
  45322. + normal )
  45323. + # Accept any command-line options.
  45324. + case $arg in
  45325. + -o)
  45326. + test -n "$libobj" && \
  45327. + func_fatal_error "you cannot specify \`-o' more than once"
  45328. + arg_mode=target
  45329. continue
  45330. ;;
  45331. - xcompiler)
  45332. - compiler_flags="$compiler_flags $qarg"
  45333. - prev=
  45334. - compile_command="$compile_command $qarg"
  45335. - finalize_command="$finalize_command $qarg"
  45336. +
  45337. + -pie | -fpie | -fPIE)
  45338. + pie_flag="$pie_flag $arg"
  45339. continue
  45340. ;;
  45341. - xlinker)
  45342. - linker_flags="$linker_flags $qarg"
  45343. - compiler_flags="$compiler_flags $wl$qarg"
  45344. - prev=
  45345. - compile_command="$compile_command $wl$qarg"
  45346. - finalize_command="$finalize_command $wl$qarg"
  45347. +
  45348. + -shared | -static | -prefer-pic | -prefer-non-pic)
  45349. + later="$later $arg"
  45350. continue
  45351. ;;
  45352. - xcclinker)
  45353. - linker_flags="$linker_flags $qarg"
  45354. - compiler_flags="$compiler_flags $qarg"
  45355. - prev=
  45356. - compile_command="$compile_command $qarg"
  45357. - finalize_command="$finalize_command $qarg"
  45358. +
  45359. + -no-suppress)
  45360. + suppress_opt=no
  45361. continue
  45362. ;;
  45363. - shrext)
  45364. - shrext_cmds="$arg"
  45365. - prev=
  45366. +
  45367. + -Xcompiler)
  45368. + arg_mode=arg # the next one goes into the "base_compile" arg list
  45369. + continue # The current "srcfile" will either be retained or
  45370. + ;; # replaced later. I would guess that would be a bug.
  45371. +
  45372. + -Wc,*)
  45373. + func_stripname '-Wc,' '' "$arg"
  45374. + args=$func_stripname_result
  45375. + lastarg=
  45376. + save_ifs="$IFS"; IFS=','
  45377. + for arg in $args; do
  45378. + IFS="$save_ifs"
  45379. + func_quote_for_eval "$arg"
  45380. + lastarg="$lastarg $func_quote_for_eval_result"
  45381. + done
  45382. + IFS="$save_ifs"
  45383. + func_stripname ' ' '' "$lastarg"
  45384. + lastarg=$func_stripname_result
  45385. +
  45386. + # Add the arguments to base_compile.
  45387. + base_compile="$base_compile $lastarg"
  45388. continue
  45389. ;;
  45390. +
  45391. *)
  45392. - eval "$prev=\"\$arg\""
  45393. - prev=
  45394. - continue
  45395. + # Accept the current argument as the source file.
  45396. + # The previous "srcfile" becomes the current argument.
  45397. + #
  45398. + lastarg="$srcfile"
  45399. + srcfile="$arg"
  45400. ;;
  45401. - esac
  45402. - fi # test -n "$prev"
  45403. -
  45404. - prevarg="$arg"
  45405. -
  45406. - case $arg in
  45407. - -all-static)
  45408. - if test -n "$link_static_flag"; then
  45409. - compile_command="$compile_command $link_static_flag"
  45410. - finalize_command="$finalize_command $link_static_flag"
  45411. - fi
  45412. - continue
  45413. - ;;
  45414. -
  45415. - -allow-undefined)
  45416. - # FIXME: remove this flag sometime in the future.
  45417. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  45418. - continue
  45419. + esac # case $arg
  45420. ;;
  45421. + esac # case $arg_mode
  45422. - -avoid-version)
  45423. - avoid_version=yes
  45424. - continue
  45425. - ;;
  45426. + # Aesthetically quote the previous argument.
  45427. + func_quote_for_eval "$lastarg"
  45428. + base_compile="$base_compile $func_quote_for_eval_result"
  45429. + done # for arg
  45430. - -dlopen)
  45431. - prev=dlfiles
  45432. - continue
  45433. - ;;
  45434. + case $arg_mode in
  45435. + arg)
  45436. + func_fatal_error "you must specify an argument for -Xcompile"
  45437. + ;;
  45438. + target)
  45439. + func_fatal_error "you must specify a target with \`-o'"
  45440. + ;;
  45441. + *)
  45442. + # Get the name of the library object.
  45443. + test -z "$libobj" && {
  45444. + func_basename "$srcfile"
  45445. + libobj="$func_basename_result"
  45446. + }
  45447. + ;;
  45448. + esac
  45449. - -dlpreopen)
  45450. - prev=dlprefiles
  45451. - continue
  45452. - ;;
  45453. + # Recognize several different file suffixes.
  45454. + # If the user specifies -o file.o, it is replaced with file.lo
  45455. + case $libobj in
  45456. + *.[cCFSifmso] | \
  45457. + *.ada | *.adb | *.ads | *.asm | \
  45458. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  45459. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  45460. + func_xform "$libobj"
  45461. + libobj=$func_xform_result
  45462. + ;;
  45463. + esac
  45464. - -export-dynamic)
  45465. - export_dynamic=yes
  45466. - continue
  45467. - ;;
  45468. + case $libobj in
  45469. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  45470. + *)
  45471. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  45472. + ;;
  45473. + esac
  45474. - -export-symbols | -export-symbols-regex)
  45475. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  45476. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  45477. - exit $EXIT_FAILURE
  45478. - fi
  45479. - if test "X$arg" = "X-export-symbols"; then
  45480. - prev=expsyms
  45481. - else
  45482. - prev=expsyms_regex
  45483. - fi
  45484. - continue
  45485. - ;;
  45486. + func_infer_tag $base_compile
  45487. - -inst-prefix-dir)
  45488. - prev=inst_prefix
  45489. + for arg in $later; do
  45490. + case $arg in
  45491. + -shared)
  45492. + test "$build_libtool_libs" != yes && \
  45493. + func_fatal_configuration "can not build a shared library"
  45494. + build_old_libs=no
  45495. continue
  45496. ;;
  45497. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  45498. - # so, if we see these flags be careful not to treat them like -L
  45499. - -L[A-Z][A-Z]*:*)
  45500. - case $with_gcc/$host in
  45501. - no/*-*-irix* | /*-*-irix*)
  45502. - compile_command="$compile_command $arg"
  45503. - finalize_command="$finalize_command $arg"
  45504. - ;;
  45505. - esac
  45506. + -static)
  45507. + build_libtool_libs=no
  45508. + build_old_libs=yes
  45509. continue
  45510. ;;
  45511. - -L*)
  45512. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  45513. - # We need an absolute path.
  45514. - case $dir in
  45515. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  45516. - *)
  45517. - absdir=`cd "$dir" && pwd`
  45518. - if test -z "$absdir"; then
  45519. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  45520. - exit $EXIT_FAILURE
  45521. - fi
  45522. - dir="$absdir"
  45523. - ;;
  45524. - esac
  45525. - case "$deplibs " in
  45526. - *" -L$dir "*) ;;
  45527. - *)
  45528. - deplibs="$deplibs -L$dir"
  45529. - lib_search_path="$lib_search_path $dir"
  45530. - ;;
  45531. - esac
  45532. - case $host in
  45533. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  45534. - case :$dllsearchpath: in
  45535. - *":$dir:"*) ;;
  45536. - *) dllsearchpath="$dllsearchpath:$dir";;
  45537. - esac
  45538. - ;;
  45539. - esac
  45540. + -prefer-pic)
  45541. + pic_mode=yes
  45542. continue
  45543. ;;
  45544. - -l*)
  45545. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  45546. - case $host in
  45547. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  45548. - # These systems don't actually have a C or math library (as such)
  45549. - continue
  45550. - ;;
  45551. - *-*-mingw* | *-*-os2*)
  45552. - # These systems don't actually have a C library (as such)
  45553. - test "X$arg" = "X-lc" && continue
  45554. - ;;
  45555. - *-*-openbsd* | *-*-freebsd*)
  45556. - # Do not include libc due to us having libc/libc_r.
  45557. - test "X$arg" = "X-lc" && continue
  45558. - ;;
  45559. - *-*-rhapsody* | *-*-darwin1.[012])
  45560. - # Rhapsody C and math libraries are in the System framework
  45561. - deplibs="$deplibs -framework System"
  45562. - continue
  45563. - esac
  45564. - elif test "X$arg" = "X-lc_r"; then
  45565. - case $host in
  45566. - *-*-openbsd* | *-*-freebsd*)
  45567. - # Do not include libc_r directly, use -pthread flag.
  45568. - continue
  45569. - ;;
  45570. - esac
  45571. - fi
  45572. - deplibs="$deplibs $arg"
  45573. + -prefer-non-pic)
  45574. + pic_mode=no
  45575. continue
  45576. ;;
  45577. + esac
  45578. + done
  45579. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  45580. - deplibs="$deplibs $arg"
  45581. - continue
  45582. - ;;
  45583. + func_quote_for_eval "$libobj"
  45584. + test "X$libobj" != "X$func_quote_for_eval_result" \
  45585. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  45586. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  45587. + func_dirname_and_basename "$obj" "/" ""
  45588. + objname="$func_basename_result"
  45589. + xdir="$func_dirname_result"
  45590. + lobj=${xdir}$objdir/$objname
  45591. - -module)
  45592. - module=yes
  45593. - continue
  45594. - ;;
  45595. + test -z "$base_compile" && \
  45596. + func_fatal_help "you must specify a compilation command"
  45597. - # gcc -m* arguments should be passed to the linker via $compiler_flags
  45598. - # in order to pass architecture information to the linker
  45599. - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
  45600. - # but this is not reliable with gcc because gcc may use -mfoo to
  45601. - # select a different linker, different libraries, etc, while
  45602. - # -Wl,-mfoo simply passes -mfoo to the linker.
  45603. - -m*)
  45604. - # Unknown arguments in both finalize_command and compile_command need
  45605. - # to be aesthetically quoted because they are evaled later.
  45606. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  45607. - case $arg in
  45608. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45609. - arg="\"$arg\""
  45610. - ;;
  45611. - esac
  45612. - compile_command="$compile_command $arg"
  45613. - finalize_command="$finalize_command $arg"
  45614. - if test "$with_gcc" = "yes" ; then
  45615. - compiler_flags="$compiler_flags $arg"
  45616. - fi
  45617. - continue
  45618. - ;;
  45619. + # Delete any leftover library objects.
  45620. + if test "$build_old_libs" = yes; then
  45621. + removelist="$obj $lobj $libobj ${libobj}T"
  45622. + else
  45623. + removelist="$lobj $libobj ${libobj}T"
  45624. + fi
  45625. - -shrext)
  45626. - prev=shrext
  45627. - continue
  45628. - ;;
  45629. + # On Cygwin there's no "real" PIC flag so we must build both object types
  45630. + case $host_os in
  45631. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  45632. + pic_mode=default
  45633. + ;;
  45634. + esac
  45635. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  45636. + # non-PIC code in shared libraries is not supported
  45637. + pic_mode=default
  45638. + fi
  45639. - -no-fast-install)
  45640. - fast_install=no
  45641. - continue
  45642. - ;;
  45643. + # Calculate the filename of the output object if compiler does
  45644. + # not support -o with -c
  45645. + if test "$compiler_c_o" = no; then
  45646. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  45647. + lockfile="$output_obj.lock"
  45648. + else
  45649. + output_obj=
  45650. + need_locks=no
  45651. + lockfile=
  45652. + fi
  45653. - -no-install)
  45654. - case $host in
  45655. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  45656. - # The PATH hackery in wrapper scripts is required on Windows
  45657. - # in order for the loader to find any dlls it needs.
  45658. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  45659. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  45660. - fast_install=no
  45661. - ;;
  45662. - *) no_install=yes ;;
  45663. - esac
  45664. - continue
  45665. - ;;
  45666. + # Lock this critical section if it is needed
  45667. + # We use this script file to make the link, it avoids creating a new file
  45668. + if test "$need_locks" = yes; then
  45669. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  45670. + func_echo "Waiting for $lockfile to be removed"
  45671. + sleep 2
  45672. + done
  45673. + elif test "$need_locks" = warn; then
  45674. + if test -f "$lockfile"; then
  45675. + $ECHO "\
  45676. +*** ERROR, $lockfile exists and contains:
  45677. +`cat $lockfile 2>/dev/null`
  45678. - -no-undefined)
  45679. - allow_undefined=no
  45680. - continue
  45681. - ;;
  45682. +This indicates that another process is trying to use the same
  45683. +temporary object file, and libtool could not work around it because
  45684. +your compiler does not support \`-c' and \`-o' together. If you
  45685. +repeat this compilation, it may succeed, by chance, but you had better
  45686. +avoid parallel builds (make -j) in this platform, or get a better
  45687. +compiler."
  45688. - -objectlist)
  45689. - prev=objectlist
  45690. - continue
  45691. - ;;
  45692. + $opt_dry_run || $RM $removelist
  45693. + exit $EXIT_FAILURE
  45694. + fi
  45695. + removelist="$removelist $output_obj"
  45696. + $ECHO "$srcfile" > "$lockfile"
  45697. + fi
  45698. - -o) prev=output ;;
  45699. + $opt_dry_run || $RM $removelist
  45700. + removelist="$removelist $lockfile"
  45701. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  45702. - -precious-files-regex)
  45703. - prev=precious_regex
  45704. - continue
  45705. - ;;
  45706. + if test -n "$fix_srcfile_path"; then
  45707. + eval srcfile=\"$fix_srcfile_path\"
  45708. + fi
  45709. + func_quote_for_eval "$srcfile"
  45710. + qsrcfile=$func_quote_for_eval_result
  45711. - -release)
  45712. - prev=release
  45713. - continue
  45714. - ;;
  45715. + # Only build a PIC object if we are building libtool libraries.
  45716. + if test "$build_libtool_libs" = yes; then
  45717. + # Without this assignment, base_compile gets emptied.
  45718. + fbsd_hideous_sh_bug=$base_compile
  45719. - -rpath)
  45720. - prev=rpath
  45721. - continue
  45722. - ;;
  45723. + if test "$pic_mode" != no; then
  45724. + command="$base_compile $qsrcfile $pic_flag"
  45725. + else
  45726. + # Don't build PIC code
  45727. + command="$base_compile $qsrcfile"
  45728. + fi
  45729. - -R)
  45730. - prev=xrpath
  45731. - continue
  45732. - ;;
  45733. + func_mkdir_p "$xdir$objdir"
  45734. - -R*)
  45735. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  45736. - # We need an absolute path.
  45737. - case $dir in
  45738. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  45739. - *)
  45740. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  45741. - exit $EXIT_FAILURE
  45742. - ;;
  45743. - esac
  45744. - case "$xrpath " in
  45745. - *" $dir "*) ;;
  45746. - *) xrpath="$xrpath $dir" ;;
  45747. - esac
  45748. - continue
  45749. - ;;
  45750. + if test -z "$output_obj"; then
  45751. + # Place PIC objects in $objdir
  45752. + command="$command -o $lobj"
  45753. + fi
  45754. - -static)
  45755. - # The effects of -static are defined in a previous loop.
  45756. - # We used to do the same as -all-static on platforms that
  45757. - # didn't have a PIC flag, but the assumption that the effects
  45758. - # would be equivalent was wrong. It would break on at least
  45759. - # Digital Unix and AIX.
  45760. - continue
  45761. - ;;
  45762. + func_show_eval_locale "$command" \
  45763. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  45764. - -thread-safe)
  45765. - thread_safe=yes
  45766. - continue
  45767. - ;;
  45768. + if test "$need_locks" = warn &&
  45769. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  45770. + $ECHO "\
  45771. +*** ERROR, $lockfile contains:
  45772. +`cat $lockfile 2>/dev/null`
  45773. - -version-info)
  45774. - prev=vinfo
  45775. - continue
  45776. - ;;
  45777. - -version-number)
  45778. - prev=vinfo
  45779. - vinfo_number=yes
  45780. - continue
  45781. - ;;
  45782. +but it should contain:
  45783. +$srcfile
  45784. - -Wc,*)
  45785. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  45786. - arg=
  45787. - save_ifs="$IFS"; IFS=','
  45788. - for flag in $args; do
  45789. - IFS="$save_ifs"
  45790. - case $flag in
  45791. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45792. - flag="\"$flag\""
  45793. - ;;
  45794. - esac
  45795. - arg="$arg $wl$flag"
  45796. - compiler_flags="$compiler_flags $flag"
  45797. - done
  45798. - IFS="$save_ifs"
  45799. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  45800. - ;;
  45801. +This indicates that another process is trying to use the same
  45802. +temporary object file, and libtool could not work around it because
  45803. +your compiler does not support \`-c' and \`-o' together. If you
  45804. +repeat this compilation, it may succeed, by chance, but you had better
  45805. +avoid parallel builds (make -j) in this platform, or get a better
  45806. +compiler."
  45807. - -Wl,*)
  45808. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  45809. - arg=
  45810. - save_ifs="$IFS"; IFS=','
  45811. - for flag in $args; do
  45812. - IFS="$save_ifs"
  45813. - case $flag in
  45814. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45815. - flag="\"$flag\""
  45816. - ;;
  45817. - esac
  45818. - arg="$arg $wl$flag"
  45819. - compiler_flags="$compiler_flags $wl$flag"
  45820. - linker_flags="$linker_flags $flag"
  45821. - done
  45822. - IFS="$save_ifs"
  45823. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  45824. - ;;
  45825. + $opt_dry_run || $RM $removelist
  45826. + exit $EXIT_FAILURE
  45827. + fi
  45828. - -Xcompiler)
  45829. - prev=xcompiler
  45830. - continue
  45831. - ;;
  45832. + # Just move the object if needed, then go on to compile the next one
  45833. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  45834. + func_show_eval '$MV "$output_obj" "$lobj"' \
  45835. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  45836. + fi
  45837. - -Xlinker)
  45838. - prev=xlinker
  45839. - continue
  45840. - ;;
  45841. + # Allow error messages only from the first compilation.
  45842. + if test "$suppress_opt" = yes; then
  45843. + suppress_output=' >/dev/null 2>&1'
  45844. + fi
  45845. + fi
  45846. - -XCClinker)
  45847. - prev=xcclinker
  45848. - continue
  45849. - ;;
  45850. + # Only build a position-dependent object if we build old libraries.
  45851. + if test "$build_old_libs" = yes; then
  45852. + if test "$pic_mode" != yes; then
  45853. + # Don't build PIC code
  45854. + command="$base_compile $qsrcfile$pie_flag"
  45855. + else
  45856. + command="$base_compile $qsrcfile $pic_flag"
  45857. + fi
  45858. + if test "$compiler_c_o" = yes; then
  45859. + command="$command -o $obj"
  45860. + fi
  45861. - # Some other compiler flag.
  45862. - -* | +*)
  45863. - # Unknown arguments in both finalize_command and compile_command need
  45864. - # to be aesthetically quoted because they are evaled later.
  45865. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  45866. - case $arg in
  45867. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45868. - arg="\"$arg\""
  45869. - ;;
  45870. - esac
  45871. - ;;
  45872. + # Suppress compiler output if we already did a PIC compilation.
  45873. + command="$command$suppress_output"
  45874. + func_show_eval_locale "$command" \
  45875. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  45876. - *.$objext)
  45877. - # A standard object.
  45878. - objs="$objs $arg"
  45879. - ;;
  45880. + if test "$need_locks" = warn &&
  45881. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  45882. + $ECHO "\
  45883. +*** ERROR, $lockfile contains:
  45884. +`cat $lockfile 2>/dev/null`
  45885. - *.lo)
  45886. - # A libtool-controlled object.
  45887. +but it should contain:
  45888. +$srcfile
  45889. - # Check to see that this really is a libtool object.
  45890. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  45891. - pic_object=
  45892. - non_pic_object=
  45893. +This indicates that another process is trying to use the same
  45894. +temporary object file, and libtool could not work around it because
  45895. +your compiler does not support \`-c' and \`-o' together. If you
  45896. +repeat this compilation, it may succeed, by chance, but you had better
  45897. +avoid parallel builds (make -j) in this platform, or get a better
  45898. +compiler."
  45899. - # Read the .lo file
  45900. - # If there is no directory component, then add one.
  45901. - case $arg in
  45902. - */* | *\\*) . $arg ;;
  45903. - *) . ./$arg ;;
  45904. - esac
  45905. + $opt_dry_run || $RM $removelist
  45906. + exit $EXIT_FAILURE
  45907. + fi
  45908. - if test -z "$pic_object" || \
  45909. - test -z "$non_pic_object" ||
  45910. - test "$pic_object" = none && \
  45911. - test "$non_pic_object" = none; then
  45912. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  45913. - exit $EXIT_FAILURE
  45914. - fi
  45915. + # Just move the object if needed
  45916. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  45917. + func_show_eval '$MV "$output_obj" "$obj"' \
  45918. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  45919. + fi
  45920. + fi
  45921. - # Extract subdirectory from the argument.
  45922. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  45923. - if test "X$xdir" = "X$arg"; then
  45924. - xdir=
  45925. - else
  45926. - xdir="$xdir/"
  45927. - fi
  45928. + $opt_dry_run || {
  45929. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  45930. - if test "$pic_object" != none; then
  45931. - # Prepend the subdirectory the object is found in.
  45932. - pic_object="$xdir$pic_object"
  45933. + # Unlock the critical section if it was locked
  45934. + if test "$need_locks" != no; then
  45935. + removelist=$lockfile
  45936. + $RM "$lockfile"
  45937. + fi
  45938. + }
  45939. - if test "$prev" = dlfiles; then
  45940. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  45941. - dlfiles="$dlfiles $pic_object"
  45942. - prev=
  45943. - continue
  45944. - else
  45945. - # If libtool objects are unsupported, then we need to preload.
  45946. - prev=dlprefiles
  45947. - fi
  45948. - fi
  45949. + exit $EXIT_SUCCESS
  45950. +}
  45951. - # CHECK ME: I think I busted this. -Ossama
  45952. - if test "$prev" = dlprefiles; then
  45953. - # Preload the old-style object.
  45954. - dlprefiles="$dlprefiles $pic_object"
  45955. - prev=
  45956. - fi
  45957. +$opt_help || {
  45958. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  45959. +}
  45960. - # A PIC object.
  45961. - libobjs="$libobjs $pic_object"
  45962. - arg="$pic_object"
  45963. - fi
  45964. +func_mode_help ()
  45965. +{
  45966. + # We need to display help for each of the modes.
  45967. + case $mode in
  45968. + "")
  45969. + # Generic help is extracted from the usage comments
  45970. + # at the start of this file.
  45971. + func_help
  45972. + ;;
  45973. - # Non-PIC object.
  45974. - if test "$non_pic_object" != none; then
  45975. - # Prepend the subdirectory the object is found in.
  45976. - non_pic_object="$xdir$non_pic_object"
  45977. + clean)
  45978. + $ECHO \
  45979. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  45980. - # A standard non-PIC object
  45981. - non_pic_objects="$non_pic_objects $non_pic_object"
  45982. - if test -z "$pic_object" || test "$pic_object" = none ; then
  45983. - arg="$non_pic_object"
  45984. - fi
  45985. - fi
  45986. - else
  45987. - # Only an error if not doing a dry-run.
  45988. - if test -z "$run"; then
  45989. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  45990. - exit $EXIT_FAILURE
  45991. - else
  45992. - # Dry-run case.
  45993. +Remove files from the build directory.
  45994. - # Extract subdirectory from the argument.
  45995. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  45996. - if test "X$xdir" = "X$arg"; then
  45997. - xdir=
  45998. - else
  45999. - xdir="$xdir/"
  46000. - fi
  46001. +RM is the name of the program to use to delete files associated with each FILE
  46002. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  46003. +to RM.
  46004. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  46005. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  46006. - libobjs="$libobjs $pic_object"
  46007. - non_pic_objects="$non_pic_objects $non_pic_object"
  46008. - fi
  46009. - fi
  46010. - ;;
  46011. +If FILE is a libtool library, object or program, all the files associated
  46012. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  46013. + ;;
  46014. - *.$libext)
  46015. - # An archive.
  46016. - deplibs="$deplibs $arg"
  46017. - old_deplibs="$old_deplibs $arg"
  46018. - continue
  46019. - ;;
  46020. + compile)
  46021. + $ECHO \
  46022. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  46023. - *.la)
  46024. - # A libtool-controlled library.
  46025. +Compile a source file into a libtool library object.
  46026. - if test "$prev" = dlfiles; then
  46027. - # This library was specified with -dlopen.
  46028. - dlfiles="$dlfiles $arg"
  46029. - prev=
  46030. - elif test "$prev" = dlprefiles; then
  46031. - # The library was specified with -dlpreopen.
  46032. - dlprefiles="$dlprefiles $arg"
  46033. - prev=
  46034. - else
  46035. - deplibs="$deplibs $arg"
  46036. - fi
  46037. - continue
  46038. - ;;
  46039. +This mode accepts the following additional options:
  46040. - # Some other compiler argument.
  46041. - *)
  46042. - # Unknown arguments in both finalize_command and compile_command need
  46043. - # to be aesthetically quoted because they are evaled later.
  46044. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  46045. - case $arg in
  46046. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46047. - arg="\"$arg\""
  46048. - ;;
  46049. - esac
  46050. - ;;
  46051. - esac # arg
  46052. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  46053. + -no-suppress do not suppress compiler output for multiple passes
  46054. + -prefer-pic try to building PIC objects only
  46055. + -prefer-non-pic try to building non-PIC objects only
  46056. + -shared do not build a \`.o' file suitable for static linking
  46057. + -static only build a \`.o' file suitable for static linking
  46058. - # Now actually substitute the argument into the commands.
  46059. - if test -n "$arg"; then
  46060. - compile_command="$compile_command $arg"
  46061. - finalize_command="$finalize_command $arg"
  46062. - fi
  46063. - done # argument parsing loop
  46064. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  46065. +from the given SOURCEFILE.
  46066. - if test -n "$prev"; then
  46067. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  46068. - $echo "$help" 1>&2
  46069. - exit $EXIT_FAILURE
  46070. - fi
  46071. +The output file name is determined by removing the directory component from
  46072. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  46073. +library object suffix, \`.lo'."
  46074. + ;;
  46075. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  46076. - eval arg=\"$export_dynamic_flag_spec\"
  46077. - compile_command="$compile_command $arg"
  46078. - finalize_command="$finalize_command $arg"
  46079. - fi
  46080. + execute)
  46081. + $ECHO \
  46082. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  46083. - oldlibs=
  46084. - # calculate the name of the file, without its directory
  46085. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  46086. - libobjs_save="$libobjs"
  46087. +Automatically set library path, then run a program.
  46088. - if test -n "$shlibpath_var"; then
  46089. - # get the directories listed in $shlibpath_var
  46090. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  46091. - else
  46092. - shlib_search_path=
  46093. - fi
  46094. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  46095. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  46096. +This mode accepts the following additional options:
  46097. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  46098. - if test "X$output_objdir" = "X$output"; then
  46099. - output_objdir="$objdir"
  46100. - else
  46101. - output_objdir="$output_objdir/$objdir"
  46102. - fi
  46103. - # Create the object directory.
  46104. - if test ! -d "$output_objdir"; then
  46105. - $show "$mkdir $output_objdir"
  46106. - $run $mkdir $output_objdir
  46107. - status=$?
  46108. - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  46109. - exit $status
  46110. - fi
  46111. - fi
  46112. + -dlopen FILE add the directory containing FILE to the library path
  46113. - # Determine the type of output
  46114. - case $output in
  46115. - "")
  46116. - $echo "$modename: you must specify an output file" 1>&2
  46117. - $echo "$help" 1>&2
  46118. - exit $EXIT_FAILURE
  46119. - ;;
  46120. - *.$libext) linkmode=oldlib ;;
  46121. - *.lo | *.$objext) linkmode=obj ;;
  46122. - *.la) linkmode=lib ;;
  46123. - *) linkmode=prog ;; # Anything else should be a program.
  46124. - esac
  46125. +This mode sets the library path environment variable according to \`-dlopen'
  46126. +flags.
  46127. - case $host in
  46128. - *cygwin* | *mingw* | *pw32*)
  46129. - # don't eliminate duplications in $postdeps and $predeps
  46130. - duplicate_compiler_generated_deps=yes
  46131. - ;;
  46132. - *)
  46133. - duplicate_compiler_generated_deps=$duplicate_deps
  46134. - ;;
  46135. - esac
  46136. - specialdeplibs=
  46137. +If any of the ARGS are libtool executable wrappers, then they are translated
  46138. +into their corresponding uninstalled binary, and any of their required library
  46139. +directories are added to the library path.
  46140. - libs=
  46141. - # Find all interdependent deplibs by searching for libraries
  46142. - # that are linked more than once (e.g. -la -lb -la)
  46143. - for deplib in $deplibs; do
  46144. - if test "X$duplicate_deps" = "Xyes" ; then
  46145. - case "$libs " in
  46146. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46147. - esac
  46148. - fi
  46149. - libs="$libs $deplib"
  46150. - done
  46151. +Then, COMMAND is executed, with ARGS as arguments."
  46152. + ;;
  46153. - if test "$linkmode" = lib; then
  46154. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  46155. + finish)
  46156. + $ECHO \
  46157. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  46158. - # Compute libraries that are listed more than once in $predeps
  46159. - # $postdeps and mark them as special (i.e., whose duplicates are
  46160. - # not to be eliminated).
  46161. - pre_post_deps=
  46162. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  46163. - for pre_post_dep in $predeps $postdeps; do
  46164. - case "$pre_post_deps " in
  46165. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  46166. - esac
  46167. - pre_post_deps="$pre_post_deps $pre_post_dep"
  46168. - done
  46169. - fi
  46170. - pre_post_deps=
  46171. - fi
  46172. +Complete the installation of libtool libraries.
  46173. - deplibs=
  46174. - newdependency_libs=
  46175. - newlib_search_path=
  46176. - need_relink=no # whether we're linking any uninstalled libtool libraries
  46177. - notinst_deplibs= # not-installed libtool libraries
  46178. - notinst_path= # paths that contain not-installed libtool libraries
  46179. - case $linkmode in
  46180. - lib)
  46181. - passes="conv link"
  46182. - for file in $dlfiles $dlprefiles; do
  46183. - case $file in
  46184. - *.la) ;;
  46185. - *)
  46186. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  46187. - exit $EXIT_FAILURE
  46188. - ;;
  46189. - esac
  46190. - done
  46191. - ;;
  46192. - prog)
  46193. - compile_deplibs=
  46194. - finalize_deplibs=
  46195. - alldeplibs=no
  46196. - newdlfiles=
  46197. - newdlprefiles=
  46198. - passes="conv scan dlopen dlpreopen link"
  46199. - ;;
  46200. - *) passes="conv"
  46201. - ;;
  46202. - esac
  46203. - for pass in $passes; do
  46204. - if test "$linkmode,$pass" = "lib,link" ||
  46205. - test "$linkmode,$pass" = "prog,scan"; then
  46206. - libs="$deplibs"
  46207. - deplibs=
  46208. - fi
  46209. - if test "$linkmode" = prog; then
  46210. - case $pass in
  46211. - dlopen) libs="$dlfiles" ;;
  46212. - dlpreopen) libs="$dlprefiles" ;;
  46213. - link)
  46214. - libs="$deplibs %DEPLIBS%"
  46215. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  46216. - ;;
  46217. - esac
  46218. - fi
  46219. - if test "$pass" = dlopen; then
  46220. - # Collect dlpreopened libraries
  46221. - save_deplibs="$deplibs"
  46222. - deplibs=
  46223. - fi
  46224. - for deplib in $libs; do
  46225. - lib=
  46226. - found=no
  46227. - case $deplib in
  46228. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  46229. - if test "$linkmode,$pass" = "prog,link"; then
  46230. - compile_deplibs="$deplib $compile_deplibs"
  46231. - finalize_deplibs="$deplib $finalize_deplibs"
  46232. - else
  46233. - deplibs="$deplib $deplibs"
  46234. - fi
  46235. - continue
  46236. - ;;
  46237. - -l*)
  46238. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  46239. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  46240. - continue
  46241. - fi
  46242. - if test "$pass" = conv; then
  46243. - deplibs="$deplib $deplibs"
  46244. - continue
  46245. - fi
  46246. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  46247. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  46248. - for search_ext in .la $std_shrext .so .a; do
  46249. - # Search the libtool library
  46250. - lib="$searchdir/lib${name}${search_ext}"
  46251. - if test -f "$lib"; then
  46252. - if test "$search_ext" = ".la"; then
  46253. - found=yes
  46254. - else
  46255. - found=no
  46256. - fi
  46257. - break 2
  46258. - fi
  46259. - done
  46260. - done
  46261. - if test "$found" != yes; then
  46262. - # deplib doesn't seem to be a libtool library
  46263. - if test "$linkmode,$pass" = "prog,link"; then
  46264. - compile_deplibs="$deplib $compile_deplibs"
  46265. - finalize_deplibs="$deplib $finalize_deplibs"
  46266. - else
  46267. - deplibs="$deplib $deplibs"
  46268. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  46269. - fi
  46270. - continue
  46271. - else # deplib is a libtool library
  46272. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  46273. - # We need to do some special things here, and not later.
  46274. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46275. - case " $predeps $postdeps " in
  46276. - *" $deplib "*)
  46277. - if (${SED} -e '2q' $lib |
  46278. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  46279. - library_names=
  46280. - old_library=
  46281. - case $lib in
  46282. - */* | *\\*) . $lib ;;
  46283. - *) . ./$lib ;;
  46284. - esac
  46285. - for l in $old_library $library_names; do
  46286. - ll="$l"
  46287. - done
  46288. - if test "X$ll" = "X$old_library" ; then # only static version available
  46289. - found=no
  46290. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  46291. - test "X$ladir" = "X$lib" && ladir="."
  46292. - lib=$ladir/$old_library
  46293. - if test "$linkmode,$pass" = "prog,link"; then
  46294. - compile_deplibs="$deplib $compile_deplibs"
  46295. - finalize_deplibs="$deplib $finalize_deplibs"
  46296. - else
  46297. - deplibs="$deplib $deplibs"
  46298. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  46299. - fi
  46300. - continue
  46301. - fi
  46302. - fi
  46303. - ;;
  46304. - *) ;;
  46305. - esac
  46306. - fi
  46307. - fi
  46308. - ;; # -l
  46309. - -L*)
  46310. - case $linkmode in
  46311. - lib)
  46312. - deplibs="$deplib $deplibs"
  46313. - test "$pass" = conv && continue
  46314. - newdependency_libs="$deplib $newdependency_libs"
  46315. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  46316. - ;;
  46317. - prog)
  46318. - if test "$pass" = conv; then
  46319. - deplibs="$deplib $deplibs"
  46320. - continue
  46321. - fi
  46322. - if test "$pass" = scan; then
  46323. - deplibs="$deplib $deplibs"
  46324. - else
  46325. - compile_deplibs="$deplib $compile_deplibs"
  46326. - finalize_deplibs="$deplib $finalize_deplibs"
  46327. - fi
  46328. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  46329. - ;;
  46330. - *)
  46331. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  46332. - ;;
  46333. - esac # linkmode
  46334. - continue
  46335. - ;; # -L
  46336. - -R*)
  46337. - if test "$pass" = link; then
  46338. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  46339. - # Make sure the xrpath contains only unique directories.
  46340. - case "$xrpath " in
  46341. - *" $dir "*) ;;
  46342. - *) xrpath="$xrpath $dir" ;;
  46343. - esac
  46344. - fi
  46345. - deplibs="$deplib $deplibs"
  46346. - continue
  46347. - ;;
  46348. - *.la) lib="$deplib" ;;
  46349. - *.$libext)
  46350. - if test "$pass" = conv; then
  46351. - deplibs="$deplib $deplibs"
  46352. - continue
  46353. - fi
  46354. - case $linkmode in
  46355. - lib)
  46356. - if test "$deplibs_check_method" != pass_all; then
  46357. - $echo
  46358. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  46359. - $echo "*** I have the capability to make that library automatically link in when"
  46360. - $echo "*** you link to this library. But I can only do this if you have a"
  46361. - $echo "*** shared version of the library, which you do not appear to have"
  46362. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  46363. - $echo "*** that it is just a static archive that I should not used here."
  46364. - else
  46365. - $echo
  46366. - $echo "*** Warning: Linking the shared library $output against the"
  46367. - $echo "*** static library $deplib is not portable!"
  46368. - deplibs="$deplib $deplibs"
  46369. - fi
  46370. - continue
  46371. - ;;
  46372. - prog)
  46373. - if test "$pass" != link; then
  46374. - deplibs="$deplib $deplibs"
  46375. - else
  46376. - compile_deplibs="$deplib $compile_deplibs"
  46377. - finalize_deplibs="$deplib $finalize_deplibs"
  46378. - fi
  46379. - continue
  46380. - ;;
  46381. - esac # linkmode
  46382. - ;; # *.$libext
  46383. - *.lo | *.$objext)
  46384. - if test "$pass" = conv; then
  46385. - deplibs="$deplib $deplibs"
  46386. - elif test "$linkmode" = prog; then
  46387. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  46388. - # If there is no dlopen support or we're linking statically,
  46389. - # we need to preload.
  46390. - newdlprefiles="$newdlprefiles $deplib"
  46391. - compile_deplibs="$deplib $compile_deplibs"
  46392. - finalize_deplibs="$deplib $finalize_deplibs"
  46393. - else
  46394. - newdlfiles="$newdlfiles $deplib"
  46395. - fi
  46396. - fi
  46397. - continue
  46398. - ;;
  46399. - %DEPLIBS%)
  46400. - alldeplibs=yes
  46401. - continue
  46402. - ;;
  46403. - esac # case $deplib
  46404. - if test "$found" = yes || test -f "$lib"; then :
  46405. - else
  46406. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  46407. - exit $EXIT_FAILURE
  46408. - fi
  46409. +Each LIBDIR is a directory that contains libtool libraries.
  46410. - # Check to see that this really is a libtool archive.
  46411. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  46412. - else
  46413. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  46414. - exit $EXIT_FAILURE
  46415. - fi
  46416. +The commands that this mode executes may require superuser privileges. Use
  46417. +the \`--dry-run' option if you just want to see what would be executed."
  46418. + ;;
  46419. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  46420. - test "X$ladir" = "X$lib" && ladir="."
  46421. + install)
  46422. + $ECHO \
  46423. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  46424. - dlname=
  46425. - dlopen=
  46426. - dlpreopen=
  46427. - libdir=
  46428. - library_names=
  46429. - old_library=
  46430. - # If the library was installed with an old release of libtool,
  46431. - # it will not redefine variables installed, or shouldnotlink
  46432. - installed=yes
  46433. - shouldnotlink=no
  46434. +Install executables or libraries.
  46435. - # Read the .la file
  46436. - case $lib in
  46437. - */* | *\\*) . $lib ;;
  46438. - *) . ./$lib ;;
  46439. - esac
  46440. +INSTALL-COMMAND is the installation command. The first component should be
  46441. +either the \`install' or \`cp' program.
  46442. - if test "$linkmode,$pass" = "lib,link" ||
  46443. - test "$linkmode,$pass" = "prog,scan" ||
  46444. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  46445. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  46446. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  46447. - fi
  46448. +The following components of INSTALL-COMMAND are treated specially:
  46449. - if test "$pass" = conv; then
  46450. - # Only check for convenience libraries
  46451. - deplibs="$lib $deplibs"
  46452. - if test -z "$libdir"; then
  46453. - if test -z "$old_library"; then
  46454. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  46455. - exit $EXIT_FAILURE
  46456. - fi
  46457. - # It is a libtool convenience library, so add in its objects.
  46458. - convenience="$convenience $ladir/$objdir/$old_library"
  46459. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  46460. - tmp_libs=
  46461. - for deplib in $dependency_libs; do
  46462. - deplibs="$deplib $deplibs"
  46463. - if test "X$duplicate_deps" = "Xyes" ; then
  46464. - case "$tmp_libs " in
  46465. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46466. - esac
  46467. - fi
  46468. - tmp_libs="$tmp_libs $deplib"
  46469. - done
  46470. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  46471. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  46472. - exit $EXIT_FAILURE
  46473. - fi
  46474. - continue
  46475. - fi # $pass = conv
  46476. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  46477. +The rest of the components are interpreted as arguments to that command (only
  46478. +BSD-compatible install options are recognized)."
  46479. + ;;
  46480. - # Get the name of the library we link against.
  46481. - linklib=
  46482. - for l in $old_library $library_names; do
  46483. - linklib="$l"
  46484. - done
  46485. - if test -z "$linklib"; then
  46486. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  46487. - exit $EXIT_FAILURE
  46488. - fi
  46489. + link)
  46490. + $ECHO \
  46491. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  46492. - # This library was specified with -dlopen.
  46493. - if test "$pass" = dlopen; then
  46494. - if test -z "$libdir"; then
  46495. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  46496. - exit $EXIT_FAILURE
  46497. - fi
  46498. - if test -z "$dlname" ||
  46499. - test "$dlopen_support" != yes ||
  46500. - test "$build_libtool_libs" = no; then
  46501. - # If there is no dlname, no dlopen support or we're linking
  46502. - # statically, we need to preload. We also need to preload any
  46503. - # dependent libraries so libltdl's deplib preloader doesn't
  46504. - # bomb out in the load deplibs phase.
  46505. - dlprefiles="$dlprefiles $lib $dependency_libs"
  46506. - else
  46507. - newdlfiles="$newdlfiles $lib"
  46508. - fi
  46509. - continue
  46510. - fi # $pass = dlopen
  46511. +Link object files or libraries together to form another library, or to
  46512. +create an executable program.
  46513. - # We need an absolute path.
  46514. - case $ladir in
  46515. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  46516. - *)
  46517. - abs_ladir=`cd "$ladir" && pwd`
  46518. - if test -z "$abs_ladir"; then
  46519. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  46520. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  46521. - abs_ladir="$ladir"
  46522. - fi
  46523. - ;;
  46524. - esac
  46525. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  46526. +LINK-COMMAND is a command using the C compiler that you would use to create
  46527. +a program from several object files.
  46528. - # Find the relevant object directory and library name.
  46529. - if test "X$installed" = Xyes; then
  46530. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  46531. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  46532. - dir="$ladir"
  46533. - absdir="$abs_ladir"
  46534. - libdir="$abs_ladir"
  46535. - else
  46536. - dir="$libdir"
  46537. - absdir="$libdir"
  46538. - fi
  46539. - else
  46540. - dir="$ladir/$objdir"
  46541. - absdir="$abs_ladir/$objdir"
  46542. - # Remove this search path later
  46543. - notinst_path="$notinst_path $abs_ladir"
  46544. - fi # $installed = yes
  46545. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  46546. +The following components of LINK-COMMAND are treated specially:
  46547. - # This library was specified with -dlpreopen.
  46548. - if test "$pass" = dlpreopen; then
  46549. - if test -z "$libdir"; then
  46550. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  46551. - exit $EXIT_FAILURE
  46552. - fi
  46553. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  46554. - # are required to link).
  46555. - if test -n "$old_library"; then
  46556. - newdlprefiles="$newdlprefiles $dir/$old_library"
  46557. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  46558. - elif test -n "$dlname"; then
  46559. - newdlprefiles="$newdlprefiles $dir/$dlname"
  46560. - else
  46561. - newdlprefiles="$newdlprefiles $dir/$linklib"
  46562. - fi
  46563. - fi # $pass = dlpreopen
  46564. + -all-static do not do any dynamic linking at all
  46565. + -avoid-version do not add a version suffix if possible
  46566. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  46567. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  46568. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  46569. + -export-symbols SYMFILE
  46570. + try to export only the symbols listed in SYMFILE
  46571. + -export-symbols-regex REGEX
  46572. + try to export only the symbols matching REGEX
  46573. + -LLIBDIR search LIBDIR for required installed libraries
  46574. + -lNAME OUTPUT-FILE requires the installed library libNAME
  46575. + -module build a library that can dlopened
  46576. + -no-fast-install disable the fast-install mode
  46577. + -no-install link a not-installable executable
  46578. + -no-undefined declare that a library does not refer to external symbols
  46579. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  46580. + -objectlist FILE Use a list of object files found in FILE to specify objects
  46581. + -precious-files-regex REGEX
  46582. + don't remove output files matching REGEX
  46583. + -release RELEASE specify package release information
  46584. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  46585. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  46586. + -shared only do dynamic linking of libtool libraries
  46587. + -shrext SUFFIX override the standard shared library file extension
  46588. + -static do not do any dynamic linking of uninstalled libtool libraries
  46589. + -static-libtool-libs
  46590. + do not do any dynamic linking of libtool libraries
  46591. + -version-info CURRENT[:REVISION[:AGE]]
  46592. + specify library version info [each variable defaults to 0]
  46593. + -weak LIBNAME declare that the target provides the LIBNAME interface
  46594. - if test -z "$libdir"; then
  46595. - # Link the convenience library
  46596. - if test "$linkmode" = lib; then
  46597. - deplibs="$dir/$old_library $deplibs"
  46598. - elif test "$linkmode,$pass" = "prog,link"; then
  46599. - compile_deplibs="$dir/$old_library $compile_deplibs"
  46600. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  46601. - else
  46602. - deplibs="$lib $deplibs" # used for prog,scan pass
  46603. - fi
  46604. - continue
  46605. - fi
  46606. +All other options (arguments beginning with \`-') are ignored.
  46607. +Every other argument is treated as a filename. Files ending in \`.la' are
  46608. +treated as uninstalled libtool libraries, other files are standard or library
  46609. +object files.
  46610. - if test "$linkmode" = prog && test "$pass" != link; then
  46611. - newlib_search_path="$newlib_search_path $ladir"
  46612. - deplibs="$lib $deplibs"
  46613. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  46614. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  46615. +required, except when creating a convenience library.
  46616. - linkalldeplibs=no
  46617. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  46618. - test "$build_libtool_libs" = no; then
  46619. - linkalldeplibs=yes
  46620. - fi
  46621. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  46622. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  46623. - tmp_libs=
  46624. - for deplib in $dependency_libs; do
  46625. - case $deplib in
  46626. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  46627. - esac
  46628. - # Need to link against all dependency_libs?
  46629. - if test "$linkalldeplibs" = yes; then
  46630. - deplibs="$deplib $deplibs"
  46631. - else
  46632. - # Need to hardcode shared library paths
  46633. - # or/and link against static libraries
  46634. - newdependency_libs="$deplib $newdependency_libs"
  46635. - fi
  46636. - if test "X$duplicate_deps" = "Xyes" ; then
  46637. - case "$tmp_libs " in
  46638. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46639. - esac
  46640. - fi
  46641. - tmp_libs="$tmp_libs $deplib"
  46642. - done # for deplib
  46643. - continue
  46644. - fi # $linkmode = prog...
  46645. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  46646. +is created, otherwise an executable program is created."
  46647. + ;;
  46648. - if test "$linkmode,$pass" = "prog,link"; then
  46649. - if test -n "$library_names" &&
  46650. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  46651. - # We need to hardcode the library path
  46652. - if test -n "$shlibpath_var"; then
  46653. - # Make sure the rpath contains only unique directories.
  46654. - case "$temp_rpath " in
  46655. - *" $dir "*) ;;
  46656. - *" $absdir "*) ;;
  46657. - *) temp_rpath="$temp_rpath $dir" ;;
  46658. - esac
  46659. - fi
  46660. + uninstall)
  46661. + $ECHO \
  46662. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  46663. - # Hardcode the library path.
  46664. - # Skip directories that are in the system default run-time
  46665. - # search path.
  46666. - case " $sys_lib_dlsearch_path " in
  46667. - *" $absdir "*) ;;
  46668. - *)
  46669. - case "$compile_rpath " in
  46670. - *" $absdir "*) ;;
  46671. - *) compile_rpath="$compile_rpath $absdir"
  46672. - esac
  46673. - ;;
  46674. - esac
  46675. - case " $sys_lib_dlsearch_path " in
  46676. - *" $libdir "*) ;;
  46677. - *)
  46678. - case "$finalize_rpath " in
  46679. - *" $libdir "*) ;;
  46680. - *) finalize_rpath="$finalize_rpath $libdir"
  46681. - esac
  46682. - ;;
  46683. - esac
  46684. - fi # $linkmode,$pass = prog,link...
  46685. +Remove libraries from an installation directory.
  46686. - if test "$alldeplibs" = yes &&
  46687. - { test "$deplibs_check_method" = pass_all ||
  46688. - { test "$build_libtool_libs" = yes &&
  46689. - test -n "$library_names"; }; }; then
  46690. - # We only need to search for static libraries
  46691. - continue
  46692. - fi
  46693. - fi
  46694. +RM is the name of the program to use to delete files associated with each FILE
  46695. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  46696. +to RM.
  46697. - link_static=no # Whether the deplib will be linked statically
  46698. - if test -n "$library_names" &&
  46699. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  46700. - if test "$installed" = no; then
  46701. - notinst_deplibs="$notinst_deplibs $lib"
  46702. - need_relink=yes
  46703. - fi
  46704. - # This is a shared library
  46705. +If FILE is a libtool library, all the files associated with it are deleted.
  46706. +Otherwise, only FILE itself is deleted using RM."
  46707. + ;;
  46708. - # Warn about portability, can't link against -module's on
  46709. - # some systems (darwin)
  46710. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  46711. - $echo
  46712. - if test "$linkmode" = prog; then
  46713. - $echo "*** Warning: Linking the executable $output against the loadable module"
  46714. - else
  46715. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  46716. - fi
  46717. - $echo "*** $linklib is not portable!"
  46718. - fi
  46719. - if test "$linkmode" = lib &&
  46720. - test "$hardcode_into_libs" = yes; then
  46721. - # Hardcode the library path.
  46722. - # Skip directories that are in the system default run-time
  46723. - # search path.
  46724. - case " $sys_lib_dlsearch_path " in
  46725. - *" $absdir "*) ;;
  46726. - *)
  46727. - case "$compile_rpath " in
  46728. - *" $absdir "*) ;;
  46729. - *) compile_rpath="$compile_rpath $absdir"
  46730. - esac
  46731. - ;;
  46732. - esac
  46733. - case " $sys_lib_dlsearch_path " in
  46734. - *" $libdir "*) ;;
  46735. - *)
  46736. - case "$finalize_rpath " in
  46737. - *" $libdir "*) ;;
  46738. - *) finalize_rpath="$finalize_rpath $libdir"
  46739. - esac
  46740. - ;;
  46741. - esac
  46742. - fi
  46743. + *)
  46744. + func_fatal_help "invalid operation mode \`$mode'"
  46745. + ;;
  46746. + esac
  46747. - if test -n "$old_archive_from_expsyms_cmds"; then
  46748. - # figure out the soname
  46749. - set dummy $library_names
  46750. - realname="$2"
  46751. - shift; shift
  46752. - libname=`eval \\$echo \"$libname_spec\"`
  46753. - # use dlname if we got it. it's perfectly good, no?
  46754. - if test -n "$dlname"; then
  46755. - soname="$dlname"
  46756. - elif test -n "$soname_spec"; then
  46757. - # bleh windows
  46758. - case $host in
  46759. - *cygwin* | mingw*)
  46760. - major=`expr $current - $age`
  46761. - versuffix="-$major"
  46762. - ;;
  46763. - esac
  46764. - eval soname=\"$soname_spec\"
  46765. - else
  46766. - soname="$realname"
  46767. - fi
  46768. + $ECHO
  46769. + $ECHO "Try \`$progname --help' for more information about other modes."
  46770. - # Make a new name for the extract_expsyms_cmds to use
  46771. - soroot="$soname"
  46772. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  46773. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  46774. + exit $?
  46775. +}
  46776. - # If the library has no export list, then create one now
  46777. - if test -f "$output_objdir/$soname-def"; then :
  46778. - else
  46779. - $show "extracting exported symbol list from \`$soname'"
  46780. - save_ifs="$IFS"; IFS='~'
  46781. - cmds=$extract_expsyms_cmds
  46782. - for cmd in $cmds; do
  46783. - IFS="$save_ifs"
  46784. - eval cmd=\"$cmd\"
  46785. - $show "$cmd"
  46786. - $run eval "$cmd" || exit $?
  46787. - done
  46788. - IFS="$save_ifs"
  46789. - fi
  46790. + # Now that we've collected a possible --mode arg, show help if necessary
  46791. + $opt_help && func_mode_help
  46792. - # Create $newlib
  46793. - if test -f "$output_objdir/$newlib"; then :; else
  46794. - $show "generating import library for \`$soname'"
  46795. - save_ifs="$IFS"; IFS='~'
  46796. - cmds=$old_archive_from_expsyms_cmds
  46797. - for cmd in $cmds; do
  46798. - IFS="$save_ifs"
  46799. - eval cmd=\"$cmd\"
  46800. - $show "$cmd"
  46801. - $run eval "$cmd" || exit $?
  46802. - done
  46803. - IFS="$save_ifs"
  46804. - fi
  46805. - # make sure the library variables are pointing to the new library
  46806. - dir=$output_objdir
  46807. - linklib=$newlib
  46808. - fi # test -n "$old_archive_from_expsyms_cmds"
  46809. - if test "$linkmode" = prog || test "$mode" != relink; then
  46810. - add_shlibpath=
  46811. - add_dir=
  46812. - add=
  46813. - lib_linked=yes
  46814. - case $hardcode_action in
  46815. - immediate | unsupported)
  46816. - if test "$hardcode_direct" = no; then
  46817. - add="$dir/$linklib"
  46818. - case $host in
  46819. - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  46820. - *-*-darwin* )
  46821. - # if the lib is a module then we can not link against
  46822. - # it, someone is ignoring the new warnings I added
  46823. - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
  46824. - $echo "** Warning, lib $linklib is a module, not a shared library"
  46825. - if test -z "$old_library" ; then
  46826. - $echo
  46827. - $echo "** And there doesn't seem to be a static archive available"
  46828. - $echo "** The link will probably fail, sorry"
  46829. - else
  46830. - add="$dir/$old_library"
  46831. - fi
  46832. - fi
  46833. - esac
  46834. - elif test "$hardcode_minus_L" = no; then
  46835. - case $host in
  46836. - *-*-sunos*) add_shlibpath="$dir" ;;
  46837. - esac
  46838. - add_dir="-L$dir"
  46839. - add="-l$name"
  46840. - elif test "$hardcode_shlibpath_var" = no; then
  46841. - add_shlibpath="$dir"
  46842. - add="-l$name"
  46843. - else
  46844. - lib_linked=no
  46845. - fi
  46846. - ;;
  46847. - relink)
  46848. - if test "$hardcode_direct" = yes; then
  46849. - add="$dir/$linklib"
  46850. - elif test "$hardcode_minus_L" = yes; then
  46851. - add_dir="-L$dir"
  46852. - # Try looking first in the location we're being installed to.
  46853. - if test -n "$inst_prefix_dir"; then
  46854. - case "$libdir" in
  46855. - [\\/]*)
  46856. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46857. - ;;
  46858. - esac
  46859. - fi
  46860. - add="-l$name"
  46861. - elif test "$hardcode_shlibpath_var" = yes; then
  46862. - add_shlibpath="$dir"
  46863. - add="-l$name"
  46864. - else
  46865. - lib_linked=no
  46866. - fi
  46867. - ;;
  46868. - *) lib_linked=no ;;
  46869. - esac
  46870. +# func_mode_execute arg...
  46871. +func_mode_execute ()
  46872. +{
  46873. + $opt_debug
  46874. + # The first argument is the command name.
  46875. + cmd="$nonopt"
  46876. + test -z "$cmd" && \
  46877. + func_fatal_help "you must specify a COMMAND"
  46878. - if test "$lib_linked" != yes; then
  46879. - $echo "$modename: configuration error: unsupported hardcode properties"
  46880. - exit $EXIT_FAILURE
  46881. - fi
  46882. + # Handle -dlopen flags immediately.
  46883. + for file in $execute_dlfiles; do
  46884. + test -f "$file" \
  46885. + || func_fatal_help "\`$file' is not a file"
  46886. - if test -n "$add_shlibpath"; then
  46887. - case :$compile_shlibpath: in
  46888. - *":$add_shlibpath:"*) ;;
  46889. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  46890. - esac
  46891. - fi
  46892. - if test "$linkmode" = prog; then
  46893. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  46894. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  46895. - else
  46896. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46897. - test -n "$add" && deplibs="$add $deplibs"
  46898. - if test "$hardcode_direct" != yes && \
  46899. - test "$hardcode_minus_L" != yes && \
  46900. - test "$hardcode_shlibpath_var" = yes; then
  46901. - case :$finalize_shlibpath: in
  46902. - *":$libdir:"*) ;;
  46903. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46904. - esac
  46905. - fi
  46906. - fi
  46907. - fi
  46908. + dir=
  46909. + case $file in
  46910. + *.la)
  46911. + # Check to see that this really is a libtool archive.
  46912. + func_lalib_unsafe_p "$file" \
  46913. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  46914. - if test "$linkmode" = prog || test "$mode" = relink; then
  46915. - add_shlibpath=
  46916. - add_dir=
  46917. - add=
  46918. - # Finalize command for both is simple: just hardcode it.
  46919. - if test "$hardcode_direct" = yes; then
  46920. - add="$libdir/$linklib"
  46921. - elif test "$hardcode_minus_L" = yes; then
  46922. - add_dir="-L$libdir"
  46923. - add="-l$name"
  46924. - elif test "$hardcode_shlibpath_var" = yes; then
  46925. - case :$finalize_shlibpath: in
  46926. - *":$libdir:"*) ;;
  46927. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46928. - esac
  46929. - add="-l$name"
  46930. - elif test "$hardcode_automatic" = yes; then
  46931. - if test -n "$inst_prefix_dir" &&
  46932. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  46933. - add="$inst_prefix_dir$libdir/$linklib"
  46934. - else
  46935. - add="$libdir/$linklib"
  46936. - fi
  46937. - else
  46938. - # We cannot seem to hardcode it, guess we'll fake it.
  46939. - add_dir="-L$libdir"
  46940. - # Try looking first in the location we're being installed to.
  46941. - if test -n "$inst_prefix_dir"; then
  46942. - case "$libdir" in
  46943. - [\\/]*)
  46944. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46945. - ;;
  46946. - esac
  46947. - fi
  46948. - add="-l$name"
  46949. - fi
  46950. + # Read the libtool library.
  46951. + dlname=
  46952. + library_names=
  46953. + func_source "$file"
  46954. - if test "$linkmode" = prog; then
  46955. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  46956. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  46957. - else
  46958. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46959. - test -n "$add" && deplibs="$add $deplibs"
  46960. - fi
  46961. - fi
  46962. - elif test "$linkmode" = prog; then
  46963. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  46964. - # is not unsupported. This is valid on all known static and
  46965. - # shared platforms.
  46966. - if test "$hardcode_direct" != unsupported; then
  46967. - test -n "$old_library" && linklib="$old_library"
  46968. - compile_deplibs="$dir/$linklib $compile_deplibs"
  46969. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  46970. - else
  46971. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  46972. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  46973. - fi
  46974. - elif test "$build_libtool_libs" = yes; then
  46975. - # Not a shared library
  46976. - if test "$deplibs_check_method" != pass_all; then
  46977. - # We're trying link a shared library against a static one
  46978. - # but the system doesn't support it.
  46979. + # Skip this library if it cannot be dlopened.
  46980. + if test -z "$dlname"; then
  46981. + # Warn if it was a shared library.
  46982. + test -n "$library_names" && \
  46983. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  46984. + continue
  46985. + fi
  46986. - # Just print a warning and add the library to dependency_libs so
  46987. - # that the program can be linked against the static library.
  46988. - $echo
  46989. - $echo "*** Warning: This system can not link to static lib archive $lib."
  46990. - $echo "*** I have the capability to make that library automatically link in when"
  46991. - $echo "*** you link to this library. But I can only do this if you have a"
  46992. - $echo "*** shared version of the library, which you do not appear to have."
  46993. - if test "$module" = yes; then
  46994. - $echo "*** But as you try to build a module library, libtool will still create "
  46995. - $echo "*** a static module, that should work as long as the dlopening application"
  46996. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  46997. - if test -z "$global_symbol_pipe"; then
  46998. - $echo
  46999. - $echo "*** However, this would only work if libtool was able to extract symbol"
  47000. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  47001. - $echo "*** not find such a program. So, this module is probably useless."
  47002. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  47003. - fi
  47004. - if test "$build_old_libs" = no; then
  47005. - build_libtool_libs=module
  47006. - build_old_libs=yes
  47007. - else
  47008. - build_libtool_libs=no
  47009. - fi
  47010. - fi
  47011. - else
  47012. - convenience="$convenience $dir/$old_library"
  47013. - old_convenience="$old_convenience $dir/$old_library"
  47014. - deplibs="$dir/$old_library $deplibs"
  47015. - link_static=yes
  47016. - fi
  47017. - fi # link shared/static library?
  47018. + func_dirname "$file" "" "."
  47019. + dir="$func_dirname_result"
  47020. - if test "$linkmode" = lib; then
  47021. - if test -n "$dependency_libs" &&
  47022. - { test "$hardcode_into_libs" != yes ||
  47023. - test "$build_old_libs" = yes ||
  47024. - test "$link_static" = yes; }; then
  47025. - # Extract -R from dependency_libs
  47026. - temp_deplibs=
  47027. - for libdir in $dependency_libs; do
  47028. - case $libdir in
  47029. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  47030. - case " $xrpath " in
  47031. - *" $temp_xrpath "*) ;;
  47032. - *) xrpath="$xrpath $temp_xrpath";;
  47033. - esac;;
  47034. - *) temp_deplibs="$temp_deplibs $libdir";;
  47035. - esac
  47036. - done
  47037. - dependency_libs="$temp_deplibs"
  47038. + if test -f "$dir/$objdir/$dlname"; then
  47039. + dir="$dir/$objdir"
  47040. + else
  47041. + if test ! -f "$dir/$dlname"; then
  47042. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  47043. fi
  47044. + fi
  47045. + ;;
  47046. - newlib_search_path="$newlib_search_path $absdir"
  47047. - # Link against this library
  47048. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  47049. - # ... and its dependency_libs
  47050. - tmp_libs=
  47051. - for deplib in $dependency_libs; do
  47052. - newdependency_libs="$deplib $newdependency_libs"
  47053. - if test "X$duplicate_deps" = "Xyes" ; then
  47054. - case "$tmp_libs " in
  47055. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  47056. - esac
  47057. - fi
  47058. - tmp_libs="$tmp_libs $deplib"
  47059. - done
  47060. + *.lo)
  47061. + # Just add the directory containing the .lo file.
  47062. + func_dirname "$file" "" "."
  47063. + dir="$func_dirname_result"
  47064. + ;;
  47065. - if test "$link_all_deplibs" != no; then
  47066. - # Add the search paths of all dependency libraries
  47067. - for deplib in $dependency_libs; do
  47068. - case $deplib in
  47069. - -L*) path="$deplib" ;;
  47070. - *.la)
  47071. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  47072. - test "X$dir" = "X$deplib" && dir="."
  47073. - # We need an absolute path.
  47074. - case $dir in
  47075. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  47076. - *)
  47077. - absdir=`cd "$dir" && pwd`
  47078. - if test -z "$absdir"; then
  47079. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  47080. - absdir="$dir"
  47081. - fi
  47082. - ;;
  47083. - esac
  47084. - if grep "^installed=no" $deplib > /dev/null; then
  47085. - path="$absdir/$objdir"
  47086. - else
  47087. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  47088. - if test -z "$libdir"; then
  47089. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  47090. - exit $EXIT_FAILURE
  47091. - fi
  47092. - if test "$absdir" != "$libdir"; then
  47093. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  47094. - fi
  47095. - path="$absdir"
  47096. - fi
  47097. - depdepl=
  47098. - case $host in
  47099. - *-*-darwin*)
  47100. - # we do not want to link against static libs,
  47101. - # but need to link against shared
  47102. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  47103. - if test -n "$deplibrary_names" ; then
  47104. - for tmp in $deplibrary_names ; do
  47105. - depdepl=$tmp
  47106. - done
  47107. - if test -f "$path/$depdepl" ; then
  47108. - depdepl="$path/$depdepl"
  47109. - fi
  47110. - # do not add paths which are already there
  47111. - case " $newlib_search_path " in
  47112. - *" $path "*) ;;
  47113. - *) newlib_search_path="$newlib_search_path $path";;
  47114. - esac
  47115. - fi
  47116. - path=""
  47117. - ;;
  47118. - *)
  47119. - path="-L$path"
  47120. - ;;
  47121. - esac
  47122. - ;;
  47123. - -l*)
  47124. - case $host in
  47125. - *-*-darwin*)
  47126. - # Again, we only want to link against shared libraries
  47127. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  47128. - for tmp in $newlib_search_path ; do
  47129. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  47130. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  47131. - break
  47132. - fi
  47133. - done
  47134. - path=""
  47135. - ;;
  47136. - *) continue ;;
  47137. - esac
  47138. - ;;
  47139. - *) continue ;;
  47140. - esac
  47141. - case " $deplibs " in
  47142. - *" $depdepl "*) ;;
  47143. - *) deplibs="$depdepl $deplibs" ;;
  47144. - esac
  47145. - case " $deplibs " in
  47146. - *" $path "*) ;;
  47147. - *) deplibs="$deplibs $path" ;;
  47148. - esac
  47149. - done
  47150. - fi # link_all_deplibs != no
  47151. - fi # linkmode = lib
  47152. - done # for deplib in $libs
  47153. - dependency_libs="$newdependency_libs"
  47154. - if test "$pass" = dlpreopen; then
  47155. - # Link the dlpreopened libraries before other libraries
  47156. - for deplib in $save_deplibs; do
  47157. - deplibs="$deplib $deplibs"
  47158. - done
  47159. - fi
  47160. - if test "$pass" != dlopen; then
  47161. - if test "$pass" != conv; then
  47162. - # Make sure lib_search_path contains only unique directories.
  47163. - lib_search_path=
  47164. - for dir in $newlib_search_path; do
  47165. - case "$lib_search_path " in
  47166. - *" $dir "*) ;;
  47167. - *) lib_search_path="$lib_search_path $dir" ;;
  47168. - esac
  47169. - done
  47170. - newlib_search_path=
  47171. - fi
  47172. -
  47173. - if test "$linkmode,$pass" != "prog,link"; then
  47174. - vars="deplibs"
  47175. - else
  47176. - vars="compile_deplibs finalize_deplibs"
  47177. - fi
  47178. - for var in $vars dependency_libs; do
  47179. - # Add libraries to $var in reverse order
  47180. - eval tmp_libs=\"\$$var\"
  47181. - new_libs=
  47182. - for deplib in $tmp_libs; do
  47183. - # FIXME: Pedantically, this is the right thing to do, so
  47184. - # that some nasty dependency loop isn't accidentally
  47185. - # broken:
  47186. - #new_libs="$deplib $new_libs"
  47187. - # Pragmatically, this seems to cause very few problems in
  47188. - # practice:
  47189. - case $deplib in
  47190. - -L*) new_libs="$deplib $new_libs" ;;
  47191. - -R*) ;;
  47192. - *)
  47193. - # And here is the reason: when a library appears more
  47194. - # than once as an explicit dependence of a library, or
  47195. - # is implicitly linked in more than once by the
  47196. - # compiler, it is considered special, and multiple
  47197. - # occurrences thereof are not removed. Compare this
  47198. - # with having the same library being listed as a
  47199. - # dependency of multiple other libraries: in this case,
  47200. - # we know (pedantically, we assume) the library does not
  47201. - # need to be listed more than once, so we keep only the
  47202. - # last copy. This is not always right, but it is rare
  47203. - # enough that we require users that really mean to play
  47204. - # such unportable linking tricks to link the library
  47205. - # using -Wl,-lname, so that libtool does not consider it
  47206. - # for duplicate removal.
  47207. - case " $specialdeplibs " in
  47208. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  47209. - *)
  47210. - case " $new_libs " in
  47211. - *" $deplib "*) ;;
  47212. - *) new_libs="$deplib $new_libs" ;;
  47213. - esac
  47214. - ;;
  47215. - esac
  47216. - ;;
  47217. - esac
  47218. - done
  47219. - tmp_libs=
  47220. - for deplib in $new_libs; do
  47221. - case $deplib in
  47222. - -L*)
  47223. - case " $tmp_libs " in
  47224. - *" $deplib "*) ;;
  47225. - *) tmp_libs="$tmp_libs $deplib" ;;
  47226. - esac
  47227. - ;;
  47228. - *) tmp_libs="$tmp_libs $deplib" ;;
  47229. - esac
  47230. - done
  47231. - eval $var=\"$tmp_libs\"
  47232. - done # for var
  47233. - fi
  47234. - # Last step: remove runtime libs from dependency_libs
  47235. - # (they stay in deplibs)
  47236. - tmp_libs=
  47237. - for i in $dependency_libs ; do
  47238. - case " $predeps $postdeps $compiler_lib_search_path " in
  47239. - *" $i "*)
  47240. - i=""
  47241. - ;;
  47242. - esac
  47243. - if test -n "$i" ; then
  47244. - tmp_libs="$tmp_libs $i"
  47245. - fi
  47246. - done
  47247. - dependency_libs=$tmp_libs
  47248. - done # for pass
  47249. - if test "$linkmode" = prog; then
  47250. - dlfiles="$newdlfiles"
  47251. - dlprefiles="$newdlprefiles"
  47252. - fi
  47253. -
  47254. - case $linkmode in
  47255. - oldlib)
  47256. - if test -n "$deplibs"; then
  47257. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  47258. - fi
  47259. -
  47260. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  47261. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  47262. - fi
  47263. -
  47264. - if test -n "$rpath"; then
  47265. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  47266. - fi
  47267. -
  47268. - if test -n "$xrpath"; then
  47269. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  47270. - fi
  47271. -
  47272. - if test -n "$vinfo"; then
  47273. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  47274. - fi
  47275. + *)
  47276. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  47277. + continue
  47278. + ;;
  47279. + esac
  47280. - if test -n "$release"; then
  47281. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  47282. - fi
  47283. + # Get the absolute pathname.
  47284. + absdir=`cd "$dir" && pwd`
  47285. + test -n "$absdir" && dir="$absdir"
  47286. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  47287. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  47288. + # Now add the directory to shlibpath_var.
  47289. + if eval "test -z \"\$$shlibpath_var\""; then
  47290. + eval "$shlibpath_var=\"\$dir\""
  47291. + else
  47292. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  47293. fi
  47294. + done
  47295. - # Now set the variables for building old libraries.
  47296. - build_libtool_libs=no
  47297. - oldlibs="$output"
  47298. - objs="$objs$old_deplibs"
  47299. - ;;
  47300. + # This variable tells wrapper scripts just to set shlibpath_var
  47301. + # rather than running their programs.
  47302. + libtool_execute_magic="$magic"
  47303. - lib)
  47304. - # Make sure we only generate libraries of the form `libNAME.la'.
  47305. - case $outputname in
  47306. - lib*)
  47307. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  47308. - eval shared_ext=\"$shrext_cmds\"
  47309. - eval libname=\"$libname_spec\"
  47310. - ;;
  47311. + # Check if any of the arguments is a wrapper script.
  47312. + args=
  47313. + for file
  47314. + do
  47315. + case $file in
  47316. + -*) ;;
  47317. *)
  47318. - if test "$module" = no; then
  47319. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  47320. - $echo "$help" 1>&2
  47321. - exit $EXIT_FAILURE
  47322. - fi
  47323. - if test "$need_lib_prefix" != no; then
  47324. - # Add the "lib" prefix for modules if required
  47325. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  47326. - eval shared_ext=\"$shrext_cmds\"
  47327. - eval libname=\"$libname_spec\"
  47328. - else
  47329. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  47330. + # Do a test to see if this is really a libtool program.
  47331. + if func_ltwrapper_script_p "$file"; then
  47332. + func_source "$file"
  47333. + # Transform arg to wrapped name.
  47334. + file="$progdir/$program"
  47335. + elif func_ltwrapper_executable_p "$file"; then
  47336. + func_ltwrapper_scriptname "$file"
  47337. + func_source "$func_ltwrapper_scriptname_result"
  47338. + # Transform arg to wrapped name.
  47339. + file="$progdir/$program"
  47340. fi
  47341. ;;
  47342. esac
  47343. + # Quote arguments (to preserve shell metacharacters).
  47344. + func_quote_for_eval "$file"
  47345. + args="$args $func_quote_for_eval_result"
  47346. + done
  47347. - if test -n "$objs"; then
  47348. - if test "$deplibs_check_method" != pass_all; then
  47349. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  47350. - exit $EXIT_FAILURE
  47351. - else
  47352. - $echo
  47353. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  47354. - $echo "*** objects $objs is not portable!"
  47355. - libobjs="$libobjs $objs"
  47356. - fi
  47357. + if test "X$opt_dry_run" = Xfalse; then
  47358. + if test -n "$shlibpath_var"; then
  47359. + # Export the shlibpath_var.
  47360. + eval "export $shlibpath_var"
  47361. fi
  47362. - if test "$dlself" != no; then
  47363. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  47364. - fi
  47365. + # Restore saved environment variables
  47366. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47367. + do
  47368. + eval "if test \"\${save_$lt_var+set}\" = set; then
  47369. + $lt_var=\$save_$lt_var; export $lt_var
  47370. + else
  47371. + $lt_unset $lt_var
  47372. + fi"
  47373. + done
  47374. - set dummy $rpath
  47375. - if test "$#" -gt 2; then
  47376. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  47377. + # Now prepare to actually exec the command.
  47378. + exec_cmd="\$cmd$args"
  47379. + else
  47380. + # Display what would be done.
  47381. + if test -n "$shlibpath_var"; then
  47382. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  47383. + $ECHO "export $shlibpath_var"
  47384. fi
  47385. - install_libdir="$2"
  47386. + $ECHO "$cmd$args"
  47387. + exit $EXIT_SUCCESS
  47388. + fi
  47389. +}
  47390. - oldlibs=
  47391. - if test -z "$rpath"; then
  47392. - if test "$build_libtool_libs" = yes; then
  47393. - # Building a libtool convenience library.
  47394. - # Some compilers have problems with a `.al' extension so
  47395. - # convenience libraries should have the same extension an
  47396. - # archive normally would.
  47397. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  47398. - build_libtool_libs=convenience
  47399. - build_old_libs=yes
  47400. - fi
  47401. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  47402. - if test -n "$vinfo"; then
  47403. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  47404. - fi
  47405. - if test -n "$release"; then
  47406. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  47407. - fi
  47408. - else
  47409. +# func_mode_finish arg...
  47410. +func_mode_finish ()
  47411. +{
  47412. + $opt_debug
  47413. + libdirs="$nonopt"
  47414. + admincmds=
  47415. - # Parse the version information argument.
  47416. - save_ifs="$IFS"; IFS=':'
  47417. - set dummy $vinfo 0 0 0
  47418. - IFS="$save_ifs"
  47419. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  47420. + for dir
  47421. + do
  47422. + libdirs="$libdirs $dir"
  47423. + done
  47424. - if test -n "$8"; then
  47425. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  47426. - $echo "$help" 1>&2
  47427. - exit $EXIT_FAILURE
  47428. + for libdir in $libdirs; do
  47429. + if test -n "$finish_cmds"; then
  47430. + # Do each command in the finish commands.
  47431. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  47432. +'"$cmd"'"'
  47433. + fi
  47434. + if test -n "$finish_eval"; then
  47435. + # Do the single finish_eval.
  47436. + eval cmds=\"$finish_eval\"
  47437. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  47438. + $cmds"
  47439. fi
  47440. + done
  47441. + fi
  47442. - # convert absolute version numbers to libtool ages
  47443. - # this retains compatibility with .la files and attempts
  47444. - # to make the code below a bit more comprehensible
  47445. + # Exit here if they wanted silent mode.
  47446. + $opt_silent && exit $EXIT_SUCCESS
  47447. - case $vinfo_number in
  47448. - yes)
  47449. - number_major="$2"
  47450. - number_minor="$3"
  47451. - number_revision="$4"
  47452. - #
  47453. - # There are really only two kinds -- those that
  47454. - # use the current revision as the major version
  47455. - # and those that subtract age and use age as
  47456. - # a minor version. But, then there is irix
  47457. - # which has an extra 1 added just for fun
  47458. - #
  47459. - case $version_type in
  47460. - darwin|linux|osf|windows)
  47461. - current=`expr $number_major + $number_minor`
  47462. - age="$number_minor"
  47463. - revision="$number_revision"
  47464. - ;;
  47465. - freebsd-aout|freebsd-elf|sunos)
  47466. - current="$number_major"
  47467. - revision="$number_minor"
  47468. - age="0"
  47469. - ;;
  47470. - irix|nonstopux)
  47471. - current=`expr $number_major + $number_minor - 1`
  47472. - age="$number_minor"
  47473. - revision="$number_minor"
  47474. - ;;
  47475. - *)
  47476. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  47477. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  47478. - exit $EXIT_FAILURE
  47479. - ;;
  47480. - esac
  47481. - ;;
  47482. - no)
  47483. - current="$2"
  47484. - revision="$3"
  47485. - age="$4"
  47486. - ;;
  47487. - esac
  47488. -
  47489. - # Check that each of the things are valid numbers.
  47490. - case $current in
  47491. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  47492. - *)
  47493. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  47494. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  47495. - exit $EXIT_FAILURE
  47496. - ;;
  47497. - esac
  47498. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  47499. + $ECHO "Libraries have been installed in:"
  47500. + for libdir in $libdirs; do
  47501. + $ECHO " $libdir"
  47502. + done
  47503. + $ECHO
  47504. + $ECHO "If you ever happen to want to link against installed libraries"
  47505. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  47506. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  47507. + $ECHO "flag during linking and do at least one of the following:"
  47508. + if test -n "$shlibpath_var"; then
  47509. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  47510. + $ECHO " during execution"
  47511. + fi
  47512. + if test -n "$runpath_var"; then
  47513. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  47514. + $ECHO " during linking"
  47515. + fi
  47516. + if test -n "$hardcode_libdir_flag_spec"; then
  47517. + libdir=LIBDIR
  47518. + eval flag=\"$hardcode_libdir_flag_spec\"
  47519. - case $revision in
  47520. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  47521. - *)
  47522. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  47523. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  47524. - exit $EXIT_FAILURE
  47525. - ;;
  47526. - esac
  47527. + $ECHO " - use the \`$flag' linker flag"
  47528. + fi
  47529. + if test -n "$admincmds"; then
  47530. + $ECHO " - have your system administrator run these commands:$admincmds"
  47531. + fi
  47532. + if test -f /etc/ld.so.conf; then
  47533. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  47534. + fi
  47535. + $ECHO
  47536. - case $age in
  47537. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  47538. - *)
  47539. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  47540. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  47541. - exit $EXIT_FAILURE
  47542. - ;;
  47543. - esac
  47544. + $ECHO "See any operating system documentation about shared libraries for"
  47545. + case $host in
  47546. + solaris2.[6789]|solaris2.1[0-9])
  47547. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  47548. + $ECHO "pages."
  47549. + ;;
  47550. + *)
  47551. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  47552. + ;;
  47553. + esac
  47554. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  47555. + exit $EXIT_SUCCESS
  47556. +}
  47557. - if test "$age" -gt "$current"; then
  47558. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  47559. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  47560. - exit $EXIT_FAILURE
  47561. - fi
  47562. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  47563. - # Calculate the version variables.
  47564. - major=
  47565. - versuffix=
  47566. - verstring=
  47567. - case $version_type in
  47568. - none) ;;
  47569. - darwin)
  47570. - # Like Linux, but with the current version available in
  47571. - # verstring for coding it into the library header
  47572. - major=.`expr $current - $age`
  47573. - versuffix="$major.$age.$revision"
  47574. - # Darwin ld doesn't like 0 for these options...
  47575. - minor_current=`expr $current + 1`
  47576. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  47577. - ;;
  47578. +# func_mode_install arg...
  47579. +func_mode_install ()
  47580. +{
  47581. + $opt_debug
  47582. + # There may be an optional sh(1) argument at the beginning of
  47583. + # install_prog (especially on Windows NT).
  47584. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  47585. + # Allow the use of GNU shtool's install command.
  47586. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  47587. + # Aesthetically quote it.
  47588. + func_quote_for_eval "$nonopt"
  47589. + install_prog="$func_quote_for_eval_result "
  47590. + arg=$1
  47591. + shift
  47592. + else
  47593. + install_prog=
  47594. + arg=$nonopt
  47595. + fi
  47596. - freebsd-aout)
  47597. - major=".$current"
  47598. - versuffix=".$current.$revision";
  47599. - ;;
  47600. + # The real first argument should be the name of the installation program.
  47601. + # Aesthetically quote it.
  47602. + func_quote_for_eval "$arg"
  47603. + install_prog="$install_prog$func_quote_for_eval_result"
  47604. - freebsd-elf)
  47605. - major=".$current"
  47606. - versuffix=".$current";
  47607. - ;;
  47608. + # We need to accept at least all the BSD install flags.
  47609. + dest=
  47610. + files=
  47611. + opts=
  47612. + prev=
  47613. + install_type=
  47614. + isdir=no
  47615. + stripme=
  47616. + for arg
  47617. + do
  47618. + if test -n "$dest"; then
  47619. + files="$files $dest"
  47620. + dest=$arg
  47621. + continue
  47622. + fi
  47623. - irix | nonstopux)
  47624. - major=`expr $current - $age + 1`
  47625. + case $arg in
  47626. + -d) isdir=yes ;;
  47627. + -f)
  47628. + case " $install_prog " in
  47629. + *[\\\ /]cp\ *) ;;
  47630. + *) prev=$arg ;;
  47631. + esac
  47632. + ;;
  47633. + -g | -m | -o)
  47634. + prev=$arg
  47635. + ;;
  47636. + -s)
  47637. + stripme=" -s"
  47638. + continue
  47639. + ;;
  47640. + -*)
  47641. + ;;
  47642. + *)
  47643. + # If the previous option needed an argument, then skip it.
  47644. + if test -n "$prev"; then
  47645. + prev=
  47646. + else
  47647. + dest=$arg
  47648. + continue
  47649. + fi
  47650. + ;;
  47651. + esac
  47652. - case $version_type in
  47653. - nonstopux) verstring_prefix=nonstopux ;;
  47654. - *) verstring_prefix=sgi ;;
  47655. - esac
  47656. - verstring="$verstring_prefix$major.$revision"
  47657. + # Aesthetically quote the argument.
  47658. + func_quote_for_eval "$arg"
  47659. + install_prog="$install_prog $func_quote_for_eval_result"
  47660. + done
  47661. - # Add in all the interfaces that we are compatible with.
  47662. - loop=$revision
  47663. - while test "$loop" -ne 0; do
  47664. - iface=`expr $revision - $loop`
  47665. - loop=`expr $loop - 1`
  47666. - verstring="$verstring_prefix$major.$iface:$verstring"
  47667. - done
  47668. + test -z "$install_prog" && \
  47669. + func_fatal_help "you must specify an install program"
  47670. - # Before this point, $major must not contain `.'.
  47671. - major=.$major
  47672. - versuffix="$major.$revision"
  47673. - ;;
  47674. + test -n "$prev" && \
  47675. + func_fatal_help "the \`$prev' option requires an argument"
  47676. - linux)
  47677. - major=.`expr $current - $age`
  47678. - versuffix="$major.$age.$revision"
  47679. - ;;
  47680. + if test -z "$files"; then
  47681. + if test -z "$dest"; then
  47682. + func_fatal_help "no file or destination specified"
  47683. + else
  47684. + func_fatal_help "you must specify a destination"
  47685. + fi
  47686. + fi
  47687. - osf)
  47688. - major=.`expr $current - $age`
  47689. - versuffix=".$current.$age.$revision"
  47690. - verstring="$current.$age.$revision"
  47691. + # Strip any trailing slash from the destination.
  47692. + func_stripname '' '/' "$dest"
  47693. + dest=$func_stripname_result
  47694. - # Add in all the interfaces that we are compatible with.
  47695. - loop=$age
  47696. - while test "$loop" -ne 0; do
  47697. - iface=`expr $current - $loop`
  47698. - loop=`expr $loop - 1`
  47699. - verstring="$verstring:${iface}.0"
  47700. - done
  47701. + # Check to see that the destination is a directory.
  47702. + test -d "$dest" && isdir=yes
  47703. + if test "$isdir" = yes; then
  47704. + destdir="$dest"
  47705. + destname=
  47706. + else
  47707. + func_dirname_and_basename "$dest" "" "."
  47708. + destdir="$func_dirname_result"
  47709. + destname="$func_basename_result"
  47710. - # Make executables depend on our current version.
  47711. - verstring="$verstring:${current}.0"
  47712. + # Not a directory, so check to see that there is only one file specified.
  47713. + set dummy $files; shift
  47714. + test "$#" -gt 1 && \
  47715. + func_fatal_help "\`$dest' is not a directory"
  47716. + fi
  47717. + case $destdir in
  47718. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  47719. + *)
  47720. + for file in $files; do
  47721. + case $file in
  47722. + *.lo) ;;
  47723. + *)
  47724. + func_fatal_help "\`$destdir' must be an absolute directory name"
  47725. ;;
  47726. + esac
  47727. + done
  47728. + ;;
  47729. + esac
  47730. - sunos)
  47731. - major=".$current"
  47732. - versuffix=".$current.$revision"
  47733. - ;;
  47734. + # This variable tells wrapper scripts just to set variables rather
  47735. + # than running their programs.
  47736. + libtool_install_magic="$magic"
  47737. - windows)
  47738. - # Use '-' rather than '.', since we only want one
  47739. - # extension on DOS 8.3 filesystems.
  47740. - major=`expr $current - $age`
  47741. - versuffix="-$major"
  47742. - ;;
  47743. + staticlibs=
  47744. + future_libdirs=
  47745. + current_libdirs=
  47746. + for file in $files; do
  47747. - *)
  47748. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  47749. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  47750. - exit $EXIT_FAILURE
  47751. - ;;
  47752. - esac
  47753. + # Do each installation.
  47754. + case $file in
  47755. + *.$libext)
  47756. + # Do the static libraries later.
  47757. + staticlibs="$staticlibs $file"
  47758. + ;;
  47759. - # Clear the version info if we defaulted, and they specified a release.
  47760. - if test -z "$vinfo" && test -n "$release"; then
  47761. - major=
  47762. - case $version_type in
  47763. - darwin)
  47764. - # we can't check for "0.0" in archive_cmds due to quoting
  47765. - # problems, so we reset it completely
  47766. - verstring=
  47767. - ;;
  47768. - *)
  47769. - verstring="0.0"
  47770. - ;;
  47771. + *.la)
  47772. + # Check to see that this really is a libtool archive.
  47773. + func_lalib_unsafe_p "$file" \
  47774. + || func_fatal_help "\`$file' is not a valid libtool archive"
  47775. +
  47776. + library_names=
  47777. + old_library=
  47778. + relink_command=
  47779. + func_source "$file"
  47780. +
  47781. + # Add the libdir to current_libdirs if it is the destination.
  47782. + if test "X$destdir" = "X$libdir"; then
  47783. + case "$current_libdirs " in
  47784. + *" $libdir "*) ;;
  47785. + *) current_libdirs="$current_libdirs $libdir" ;;
  47786. esac
  47787. - if test "$need_version" = no; then
  47788. - versuffix=
  47789. + else
  47790. + # Note the libdir as a future libdir.
  47791. + case "$future_libdirs " in
  47792. + *" $libdir "*) ;;
  47793. + *) future_libdirs="$future_libdirs $libdir" ;;
  47794. + esac
  47795. + fi
  47796. +
  47797. + func_dirname "$file" "/" ""
  47798. + dir="$func_dirname_result"
  47799. + dir="$dir$objdir"
  47800. +
  47801. + if test -n "$relink_command"; then
  47802. + # Determine the prefix the user has applied to our future dir.
  47803. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  47804. +
  47805. + # Don't allow the user to place us outside of our expected
  47806. + # location b/c this prevents finding dependent libraries that
  47807. + # are installed to the same prefix.
  47808. + # At present, this check doesn't affect windows .dll's that
  47809. + # are installed into $libdir/../bin (currently, that works fine)
  47810. + # but it's something to keep an eye on.
  47811. + test "$inst_prefix_dir" = "$destdir" && \
  47812. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  47813. +
  47814. + if test -n "$inst_prefix_dir"; then
  47815. + # Stick the inst_prefix_dir data into the link command.
  47816. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  47817. else
  47818. - versuffix=".0.0"
  47819. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  47820. fi
  47821. - fi
  47822. - # Remove version info from name if versioning should be avoided
  47823. - if test "$avoid_version" = yes && test "$need_version" = no; then
  47824. - major=
  47825. - versuffix=
  47826. - verstring=""
  47827. + func_warning "relinking \`$file'"
  47828. + func_show_eval "$relink_command" \
  47829. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  47830. fi
  47831. - # Check to see if the archive will have undefined symbols.
  47832. - if test "$allow_undefined" = yes; then
  47833. - if test "$allow_undefined_flag" = unsupported; then
  47834. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  47835. - build_libtool_libs=no
  47836. - build_old_libs=yes
  47837. - fi
  47838. - else
  47839. - # Don't allow undefined symbols.
  47840. - allow_undefined_flag="$no_undefined_flag"
  47841. - fi
  47842. - fi
  47843. + # See the names of the shared library.
  47844. + set dummy $library_names; shift
  47845. + if test -n "$1"; then
  47846. + realname="$1"
  47847. + shift
  47848. - if test "$mode" != relink; then
  47849. - # Remove our outputs, but don't remove object files since they
  47850. - # may have been created when compiling PIC objects.
  47851. - removelist=
  47852. - tempremovelist=`$echo "$output_objdir/*"`
  47853. - for p in $tempremovelist; do
  47854. - case $p in
  47855. - *.$objext)
  47856. - ;;
  47857. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  47858. - if test "X$precious_files_regex" != "X"; then
  47859. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  47860. - then
  47861. - continue
  47862. - fi
  47863. - fi
  47864. - removelist="$removelist $p"
  47865. - ;;
  47866. - *) ;;
  47867. + srcname="$realname"
  47868. + test -n "$relink_command" && srcname="$realname"T
  47869. +
  47870. + # Install the shared library and build the symlinks.
  47871. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  47872. + 'exit $?'
  47873. + tstripme="$stripme"
  47874. + case $host_os in
  47875. + cygwin* | mingw* | pw32* | cegcc*)
  47876. + case $realname in
  47877. + *.dll.a)
  47878. + tstripme=""
  47879. + ;;
  47880. + esac
  47881. + ;;
  47882. esac
  47883. - done
  47884. - if test -n "$removelist"; then
  47885. - $show "${rm}r $removelist"
  47886. - $run ${rm}r $removelist
  47887. + if test -n "$tstripme" && test -n "$striplib"; then
  47888. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  47889. + fi
  47890. +
  47891. + if test "$#" -gt 0; then
  47892. + # Delete the old symlinks, and create new ones.
  47893. + # Try `ln -sf' first, because the `ln' binary might depend on
  47894. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  47895. + # so we also need to try rm && ln -s.
  47896. + for linkname
  47897. + do
  47898. + test "$linkname" != "$realname" \
  47899. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  47900. + done
  47901. + fi
  47902. +
  47903. + # Do each command in the postinstall commands.
  47904. + lib="$destdir/$realname"
  47905. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  47906. fi
  47907. - fi
  47908. - # Now set the variables for building old libraries.
  47909. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  47910. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  47911. + # Install the pseudo-library for information purposes.
  47912. + func_basename "$file"
  47913. + name="$func_basename_result"
  47914. + instname="$dir/$name"i
  47915. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  47916. - # Transform .lo files to .o files.
  47917. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  47918. - fi
  47919. + # Maybe install the static library, too.
  47920. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  47921. + ;;
  47922. - # Eliminate all temporary directories.
  47923. - for path in $notinst_path; do
  47924. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  47925. - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  47926. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  47927. - done
  47928. + *.lo)
  47929. + # Install (i.e. copy) a libtool object.
  47930. - if test -n "$xrpath"; then
  47931. - # If the user specified any rpath flags, then add them.
  47932. - temp_xrpath=
  47933. - for libdir in $xrpath; do
  47934. - temp_xrpath="$temp_xrpath -R$libdir"
  47935. - case "$finalize_rpath " in
  47936. - *" $libdir "*) ;;
  47937. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  47938. - esac
  47939. - done
  47940. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  47941. - dependency_libs="$temp_xrpath $dependency_libs"
  47942. + # Figure out destination file name, if it wasn't already specified.
  47943. + if test -n "$destname"; then
  47944. + destfile="$destdir/$destname"
  47945. + else
  47946. + func_basename "$file"
  47947. + destfile="$func_basename_result"
  47948. + destfile="$destdir/$destfile"
  47949. fi
  47950. - fi
  47951. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  47952. - old_dlfiles="$dlfiles"
  47953. - dlfiles=
  47954. - for lib in $old_dlfiles; do
  47955. - case " $dlprefiles $dlfiles " in
  47956. - *" $lib "*) ;;
  47957. - *) dlfiles="$dlfiles $lib" ;;
  47958. + # Deduce the name of the destination old-style object file.
  47959. + case $destfile in
  47960. + *.lo)
  47961. + func_lo2o "$destfile"
  47962. + staticdest=$func_lo2o_result
  47963. + ;;
  47964. + *.$objext)
  47965. + staticdest="$destfile"
  47966. + destfile=
  47967. + ;;
  47968. + *)
  47969. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  47970. + ;;
  47971. esac
  47972. - done
  47973. - # Make sure dlprefiles contains only unique files
  47974. - old_dlprefiles="$dlprefiles"
  47975. - dlprefiles=
  47976. - for lib in $old_dlprefiles; do
  47977. - case "$dlprefiles " in
  47978. - *" $lib "*) ;;
  47979. - *) dlprefiles="$dlprefiles $lib" ;;
  47980. - esac
  47981. - done
  47982. + # Install the libtool object if requested.
  47983. + test -n "$destfile" && \
  47984. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  47985. - if test "$build_libtool_libs" = yes; then
  47986. - if test -n "$rpath"; then
  47987. - case $host in
  47988. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  47989. - # these systems don't actually have a c library (as such)!
  47990. - ;;
  47991. - *-*-rhapsody* | *-*-darwin1.[012])
  47992. - # Rhapsody C library is in the System framework
  47993. - deplibs="$deplibs -framework System"
  47994. + # Install the old object if enabled.
  47995. + if test "$build_old_libs" = yes; then
  47996. + # Deduce the name of the old-style object file.
  47997. + func_lo2o "$file"
  47998. + staticobj=$func_lo2o_result
  47999. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  48000. + fi
  48001. + exit $EXIT_SUCCESS
  48002. + ;;
  48003. +
  48004. + *)
  48005. + # Figure out destination file name, if it wasn't already specified.
  48006. + if test -n "$destname"; then
  48007. + destfile="$destdir/$destname"
  48008. + else
  48009. + func_basename "$file"
  48010. + destfile="$func_basename_result"
  48011. + destfile="$destdir/$destfile"
  48012. + fi
  48013. +
  48014. + # If the file is missing, and there is a .exe on the end, strip it
  48015. + # because it is most likely a libtool script we actually want to
  48016. + # install
  48017. + stripped_ext=""
  48018. + case $file in
  48019. + *.exe)
  48020. + if test ! -f "$file"; then
  48021. + func_stripname '' '.exe' "$file"
  48022. + file=$func_stripname_result
  48023. + stripped_ext=".exe"
  48024. + fi
  48025. ;;
  48026. - *-*-netbsd*)
  48027. - # Don't link with libc until the a.out ld.so is fixed.
  48028. + esac
  48029. +
  48030. + # Do a test to see if this is really a libtool program.
  48031. + case $host in
  48032. + *cygwin* | *mingw*)
  48033. + if func_ltwrapper_executable_p "$file"; then
  48034. + func_ltwrapper_scriptname "$file"
  48035. + wrapper=$func_ltwrapper_scriptname_result
  48036. + else
  48037. + func_stripname '' '.exe' "$file"
  48038. + wrapper=$func_stripname_result
  48039. + fi
  48040. ;;
  48041. - *-*-openbsd* | *-*-freebsd*)
  48042. - # Do not include libc due to us having libc/libc_r.
  48043. - test "X$arg" = "X-lc" && continue
  48044. + *)
  48045. + wrapper=$file
  48046. ;;
  48047. - *)
  48048. - # Add libc to deplibs on all other systems if necessary.
  48049. - if test "$build_libtool_need_lc" = "yes"; then
  48050. - deplibs="$deplibs -lc"
  48051. + esac
  48052. + if func_ltwrapper_script_p "$wrapper"; then
  48053. + notinst_deplibs=
  48054. + relink_command=
  48055. +
  48056. + func_source "$wrapper"
  48057. +
  48058. + # Check the variables that should have been set.
  48059. + test -z "$generated_by_libtool_version" && \
  48060. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  48061. +
  48062. + finalize=yes
  48063. + for lib in $notinst_deplibs; do
  48064. + # Check to see that each library is installed.
  48065. + libdir=
  48066. + if test -f "$lib"; then
  48067. + func_source "$lib"
  48068. fi
  48069. - ;;
  48070. - esac
  48071. - fi
  48072. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  48073. + if test -n "$libdir" && test ! -f "$libfile"; then
  48074. + func_warning "\`$lib' has not been installed in \`$libdir'"
  48075. + finalize=no
  48076. + fi
  48077. + done
  48078. - # Transform deplibs into only deplibs that can be linked in shared.
  48079. - name_save=$name
  48080. - libname_save=$libname
  48081. - release_save=$release
  48082. - versuffix_save=$versuffix
  48083. - major_save=$major
  48084. - # I'm not sure if I'm treating the release correctly. I think
  48085. - # release should show up in the -l (ie -lgmp5) so we don't want to
  48086. - # add it in twice. Is that correct?
  48087. - release=""
  48088. - versuffix=""
  48089. - major=""
  48090. - newdeplibs=
  48091. - droppeddeps=no
  48092. - case $deplibs_check_method in
  48093. - pass_all)
  48094. - # Don't check for shared/static. Everything works.
  48095. - # This might be a little naive. We might want to check
  48096. - # whether the library exists or not. But this is on
  48097. - # osf3 & osf4 and I'm not really sure... Just
  48098. - # implementing what was already the behavior.
  48099. - newdeplibs=$deplibs
  48100. - ;;
  48101. - test_compile)
  48102. - # This code stresses the "libraries are programs" paradigm to its
  48103. - # limits. Maybe even breaks it. We compile a program, linking it
  48104. - # against the deplibs as a proxy for the library. Then we can check
  48105. - # whether they linked in statically or dynamically with ldd.
  48106. - $rm conftest.c
  48107. - cat > conftest.c <<EOF
  48108. - int main() { return 0; }
  48109. -EOF
  48110. - $rm conftest
  48111. - $LTCC -o conftest conftest.c $deplibs
  48112. - if test "$?" -eq 0 ; then
  48113. - ldd_output=`ldd conftest`
  48114. - for i in $deplibs; do
  48115. - name="`expr $i : '-l\(.*\)'`"
  48116. - # If $name is empty we are operating on a -L argument.
  48117. - if test "$name" != "" && test "$name" -ne "0"; then
  48118. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48119. - case " $predeps $postdeps " in
  48120. - *" $i "*)
  48121. - newdeplibs="$newdeplibs $i"
  48122. - i=""
  48123. - ;;
  48124. - esac
  48125. + relink_command=
  48126. + func_source "$wrapper"
  48127. +
  48128. + outputname=
  48129. + if test "$fast_install" = no && test -n "$relink_command"; then
  48130. + $opt_dry_run || {
  48131. + if test "$finalize" = yes; then
  48132. + tmpdir=`func_mktempdir`
  48133. + func_basename "$file$stripped_ext"
  48134. + file="$func_basename_result"
  48135. + outputname="$tmpdir/$file"
  48136. + # Replace the output file specification.
  48137. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  48138. +
  48139. + $opt_silent || {
  48140. + func_quote_for_expand "$relink_command"
  48141. + eval "func_echo $func_quote_for_expand_result"
  48142. + }
  48143. + if eval "$relink_command"; then :
  48144. + else
  48145. + func_error "error: relink \`$file' with the above command before installing it"
  48146. + $opt_dry_run || ${RM}r "$tmpdir"
  48147. + continue
  48148. fi
  48149. - if test -n "$i" ; then
  48150. - libname=`eval \\$echo \"$libname_spec\"`
  48151. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  48152. - set dummy $deplib_matches
  48153. - deplib_match=$2
  48154. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  48155. - newdeplibs="$newdeplibs $i"
  48156. - else
  48157. - droppeddeps=yes
  48158. - $echo
  48159. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  48160. - $echo "*** I have the capability to make that library automatically link in when"
  48161. - $echo "*** you link to this library. But I can only do this if you have a"
  48162. - $echo "*** shared version of the library, which I believe you do not have"
  48163. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  48164. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  48165. - fi
  48166. - fi
  48167. + file="$outputname"
  48168. else
  48169. - newdeplibs="$newdeplibs $i"
  48170. + func_warning "cannot relink \`$file'"
  48171. fi
  48172. - done
  48173. + }
  48174. else
  48175. - # Error occurred in the first compile. Let's try to salvage
  48176. - # the situation: Compile a separate program for each library.
  48177. - for i in $deplibs; do
  48178. - name="`expr $i : '-l\(.*\)'`"
  48179. - # If $name is empty we are operating on a -L argument.
  48180. - if test "$name" != "" && test "$name" != "0"; then
  48181. - $rm conftest
  48182. - $LTCC -o conftest conftest.c $i
  48183. - # Did it work?
  48184. - if test "$?" -eq 0 ; then
  48185. - ldd_output=`ldd conftest`
  48186. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48187. - case " $predeps $postdeps " in
  48188. - *" $i "*)
  48189. - newdeplibs="$newdeplibs $i"
  48190. - i=""
  48191. - ;;
  48192. - esac
  48193. - fi
  48194. - if test -n "$i" ; then
  48195. - libname=`eval \\$echo \"$libname_spec\"`
  48196. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  48197. - set dummy $deplib_matches
  48198. - deplib_match=$2
  48199. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  48200. - newdeplibs="$newdeplibs $i"
  48201. - else
  48202. - droppeddeps=yes
  48203. - $echo
  48204. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  48205. - $echo "*** I have the capability to make that library automatically link in when"
  48206. - $echo "*** you link to this library. But I can only do this if you have a"
  48207. - $echo "*** shared version of the library, which you do not appear to have"
  48208. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  48209. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  48210. - fi
  48211. - fi
  48212. - else
  48213. - droppeddeps=yes
  48214. - $echo
  48215. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  48216. - $echo "*** make it link in! You will probably need to install it or some"
  48217. - $echo "*** library that it depends on before this library will be fully"
  48218. - $echo "*** functional. Installing it before continuing would be even better."
  48219. - fi
  48220. - else
  48221. - newdeplibs="$newdeplibs $i"
  48222. - fi
  48223. - done
  48224. + # Install the binary that we compiled earlier.
  48225. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  48226. fi
  48227. - ;;
  48228. - file_magic*)
  48229. - set dummy $deplibs_check_method
  48230. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  48231. - for a_deplib in $deplibs; do
  48232. - name="`expr $a_deplib : '-l\(.*\)'`"
  48233. - # If $name is empty we are operating on a -L argument.
  48234. - if test "$name" != "" && test "$name" != "0"; then
  48235. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48236. - case " $predeps $postdeps " in
  48237. - *" $a_deplib "*)
  48238. - newdeplibs="$newdeplibs $a_deplib"
  48239. - a_deplib=""
  48240. - ;;
  48241. - esac
  48242. - fi
  48243. - if test -n "$a_deplib" ; then
  48244. - libname=`eval \\$echo \"$libname_spec\"`
  48245. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  48246. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  48247. - for potent_lib in $potential_libs; do
  48248. - # Follow soft links.
  48249. - if ls -lLd "$potent_lib" 2>/dev/null \
  48250. - | grep " -> " >/dev/null; then
  48251. - continue
  48252. - fi
  48253. - # The statement above tries to avoid entering an
  48254. - # endless loop below, in case of cyclic links.
  48255. - # We might still enter an endless loop, since a link
  48256. - # loop can be closed while we follow links,
  48257. - # but so what?
  48258. - potlib="$potent_lib"
  48259. - while test -h "$potlib" 2>/dev/null; do
  48260. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  48261. - case $potliblink in
  48262. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  48263. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  48264. - esac
  48265. - done
  48266. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  48267. - | ${SED} 10q \
  48268. - | $EGREP "$file_magic_regex" > /dev/null; then
  48269. - newdeplibs="$newdeplibs $a_deplib"
  48270. - a_deplib=""
  48271. - break 2
  48272. - fi
  48273. - done
  48274. - done
  48275. - fi
  48276. - if test -n "$a_deplib" ; then
  48277. - droppeddeps=yes
  48278. - $echo
  48279. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  48280. - $echo "*** I have the capability to make that library automatically link in when"
  48281. - $echo "*** you link to this library. But I can only do this if you have a"
  48282. - $echo "*** shared version of the library, which you do not appear to have"
  48283. - $echo "*** because I did check the linker path looking for a file starting"
  48284. - if test -z "$potlib" ; then
  48285. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  48286. - else
  48287. - $echo "*** with $libname and none of the candidates passed a file format test"
  48288. - $echo "*** using a file magic. Last file checked: $potlib"
  48289. - fi
  48290. - fi
  48291. - else
  48292. - # Add a -L argument.
  48293. - newdeplibs="$newdeplibs $a_deplib"
  48294. - fi
  48295. - done # Gone through all deplibs.
  48296. - ;;
  48297. - match_pattern*)
  48298. - set dummy $deplibs_check_method
  48299. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  48300. - for a_deplib in $deplibs; do
  48301. - name="`expr $a_deplib : '-l\(.*\)'`"
  48302. - # If $name is empty we are operating on a -L argument.
  48303. - if test -n "$name" && test "$name" != "0"; then
  48304. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48305. - case " $predeps $postdeps " in
  48306. - *" $a_deplib "*)
  48307. - newdeplibs="$newdeplibs $a_deplib"
  48308. - a_deplib=""
  48309. - ;;
  48310. - esac
  48311. - fi
  48312. - if test -n "$a_deplib" ; then
  48313. - libname=`eval \\$echo \"$libname_spec\"`
  48314. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  48315. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  48316. - for potent_lib in $potential_libs; do
  48317. - potlib="$potent_lib" # see symlink-check above in file_magic test
  48318. - if eval $echo \"$potent_lib\" 2>/dev/null \
  48319. - | ${SED} 10q \
  48320. - | $EGREP "$match_pattern_regex" > /dev/null; then
  48321. - newdeplibs="$newdeplibs $a_deplib"
  48322. - a_deplib=""
  48323. - break 2
  48324. - fi
  48325. - done
  48326. - done
  48327. - fi
  48328. - if test -n "$a_deplib" ; then
  48329. - droppeddeps=yes
  48330. - $echo
  48331. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  48332. - $echo "*** I have the capability to make that library automatically link in when"
  48333. - $echo "*** you link to this library. But I can only do this if you have a"
  48334. - $echo "*** shared version of the library, which you do not appear to have"
  48335. - $echo "*** because I did check the linker path looking for a file starting"
  48336. - if test -z "$potlib" ; then
  48337. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  48338. - else
  48339. - $echo "*** with $libname and none of the candidates passed a file format test"
  48340. - $echo "*** using a regex pattern. Last file checked: $potlib"
  48341. - fi
  48342. - fi
  48343. - else
  48344. - # Add a -L argument.
  48345. - newdeplibs="$newdeplibs $a_deplib"
  48346. - fi
  48347. - done # Gone through all deplibs.
  48348. - ;;
  48349. - none | unknown | *)
  48350. - newdeplibs=""
  48351. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  48352. - -e 's/ -[LR][^ ]*//g'`
  48353. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48354. - for i in $predeps $postdeps ; do
  48355. - # can't use Xsed below, because $i might contain '/'
  48356. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  48357. - done
  48358. - fi
  48359. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  48360. - | grep . >/dev/null; then
  48361. - $echo
  48362. - if test "X$deplibs_check_method" = "Xnone"; then
  48363. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  48364. - else
  48365. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  48366. - fi
  48367. - $echo "*** All declared inter-library dependencies are being dropped."
  48368. - droppeddeps=yes
  48369. - fi
  48370. - ;;
  48371. - esac
  48372. - versuffix=$versuffix_save
  48373. - major=$major_save
  48374. - release=$release_save
  48375. - libname=$libname_save
  48376. - name=$name_save
  48377. + fi
  48378. - case $host in
  48379. - *-*-rhapsody* | *-*-darwin1.[012])
  48380. - # On Rhapsody replace the C library is the System framework
  48381. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  48382. + # remove .exe since cygwin /usr/bin/install will append another
  48383. + # one anyway
  48384. + case $install_prog,$host in
  48385. + */usr/bin/install*,*cygwin*)
  48386. + case $file:$destfile in
  48387. + *.exe:*.exe)
  48388. + # this is ok
  48389. + ;;
  48390. + *.exe:*)
  48391. + destfile=$destfile.exe
  48392. + ;;
  48393. + *:*.exe)
  48394. + func_stripname '' '.exe' "$destfile"
  48395. + destfile=$func_stripname_result
  48396. + ;;
  48397. + esac
  48398. ;;
  48399. esac
  48400. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  48401. + $opt_dry_run || if test -n "$outputname"; then
  48402. + ${RM}r "$tmpdir"
  48403. + fi
  48404. + ;;
  48405. + esac
  48406. + done
  48407. - if test "$droppeddeps" = yes; then
  48408. - if test "$module" = yes; then
  48409. - $echo
  48410. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  48411. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  48412. - $echo "*** a static module, that should work as long as the dlopening"
  48413. - $echo "*** application is linked with the -dlopen flag."
  48414. - if test -z "$global_symbol_pipe"; then
  48415. - $echo
  48416. - $echo "*** However, this would only work if libtool was able to extract symbol"
  48417. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  48418. - $echo "*** not find such a program. So, this module is probably useless."
  48419. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  48420. - fi
  48421. - if test "$build_old_libs" = no; then
  48422. - oldlibs="$output_objdir/$libname.$libext"
  48423. - build_libtool_libs=module
  48424. - build_old_libs=yes
  48425. - else
  48426. - build_libtool_libs=no
  48427. - fi
  48428. - else
  48429. - $echo "*** The inter-library dependencies that have been dropped here will be"
  48430. - $echo "*** automatically added whenever a program is linked with this library"
  48431. - $echo "*** or is declared to -dlopen it."
  48432. + for file in $staticlibs; do
  48433. + func_basename "$file"
  48434. + name="$func_basename_result"
  48435. - if test "$allow_undefined" = no; then
  48436. - $echo
  48437. - $echo "*** Since this library must not contain undefined symbols,"
  48438. - $echo "*** because either the platform does not support them or"
  48439. - $echo "*** it was explicitly requested with -no-undefined,"
  48440. - $echo "*** libtool will only create a static version of it."
  48441. - if test "$build_old_libs" = no; then
  48442. - oldlibs="$output_objdir/$libname.$libext"
  48443. - build_libtool_libs=module
  48444. - build_old_libs=yes
  48445. - else
  48446. - build_libtool_libs=no
  48447. - fi
  48448. - fi
  48449. - fi
  48450. - fi
  48451. - # Done checking deplibs!
  48452. - deplibs=$newdeplibs
  48453. + # Set up the ranlib parameters.
  48454. + oldlib="$destdir/$name"
  48455. +
  48456. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  48457. +
  48458. + if test -n "$stripme" && test -n "$old_striplib"; then
  48459. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  48460. fi
  48461. - # All the library-specific variables (install_libdir is set above).
  48462. - library_names=
  48463. - old_library=
  48464. - dlname=
  48465. + # Do each command in the postinstall commands.
  48466. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  48467. + done
  48468. - # Test again, we may have decided not to build it any more
  48469. - if test "$build_libtool_libs" = yes; then
  48470. - if test "$hardcode_into_libs" = yes; then
  48471. - # Hardcode the library paths
  48472. - hardcode_libdirs=
  48473. - dep_rpath=
  48474. - rpath="$finalize_rpath"
  48475. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  48476. - for libdir in $rpath; do
  48477. - if test -n "$hardcode_libdir_flag_spec"; then
  48478. - if test -n "$hardcode_libdir_separator"; then
  48479. - if test -z "$hardcode_libdirs"; then
  48480. - hardcode_libdirs="$libdir"
  48481. - else
  48482. - # Just accumulate the unique libdirs.
  48483. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  48484. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  48485. - ;;
  48486. - *)
  48487. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  48488. - ;;
  48489. - esac
  48490. - fi
  48491. - else
  48492. - eval flag=\"$hardcode_libdir_flag_spec\"
  48493. - dep_rpath="$dep_rpath $flag"
  48494. - fi
  48495. - elif test -n "$runpath_var"; then
  48496. - case "$perm_rpath " in
  48497. - *" $libdir "*) ;;
  48498. - *) perm_rpath="$perm_rpath $libdir" ;;
  48499. - esac
  48500. - fi
  48501. - done
  48502. - # Substitute the hardcoded libdirs into the rpath.
  48503. - if test -n "$hardcode_libdir_separator" &&
  48504. - test -n "$hardcode_libdirs"; then
  48505. - libdir="$hardcode_libdirs"
  48506. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  48507. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  48508. - else
  48509. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  48510. - fi
  48511. - fi
  48512. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  48513. - # We should set the runpath_var.
  48514. - rpath=
  48515. - for dir in $perm_rpath; do
  48516. - rpath="$rpath$dir:"
  48517. - done
  48518. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  48519. - fi
  48520. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  48521. - fi
  48522. + test -n "$future_libdirs" && \
  48523. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  48524. - shlibpath="$finalize_shlibpath"
  48525. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  48526. - if test -n "$shlibpath"; then
  48527. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  48528. - fi
  48529. + if test -n "$current_libdirs"; then
  48530. + # Maybe just do a dry run.
  48531. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  48532. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  48533. + else
  48534. + exit $EXIT_SUCCESS
  48535. + fi
  48536. +}
  48537. - # Get the real and link names of the library.
  48538. - eval shared_ext=\"$shrext_cmds\"
  48539. - eval library_names=\"$library_names_spec\"
  48540. - set dummy $library_names
  48541. - realname="$2"
  48542. - shift; shift
  48543. +test "$mode" = install && func_mode_install ${1+"$@"}
  48544. - if test -n "$soname_spec"; then
  48545. - eval soname=\"$soname_spec\"
  48546. - else
  48547. - soname="$realname"
  48548. - fi
  48549. - if test -z "$dlname"; then
  48550. - dlname=$soname
  48551. - fi
  48552. - lib="$output_objdir/$realname"
  48553. - for link
  48554. - do
  48555. - linknames="$linknames $link"
  48556. - done
  48557. +# func_generate_dlsyms outputname originator pic_p
  48558. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  48559. +# a dlpreopen symbol table.
  48560. +func_generate_dlsyms ()
  48561. +{
  48562. + $opt_debug
  48563. + my_outputname="$1"
  48564. + my_originator="$2"
  48565. + my_pic_p="${3-no}"
  48566. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  48567. + my_dlsyms=
  48568. +
  48569. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48570. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  48571. + my_dlsyms="${my_outputname}S.c"
  48572. + else
  48573. + func_error "not configured to extract global symbols from dlpreopened files"
  48574. + fi
  48575. + fi
  48576. - # Use standard objects if they are pic
  48577. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  48578. + if test -n "$my_dlsyms"; then
  48579. + case $my_dlsyms in
  48580. + "") ;;
  48581. + *.c)
  48582. + # Discover the nlist of each of the dlfiles.
  48583. + nlist="$output_objdir/${my_outputname}.nm"
  48584. - # Prepare the list of exported symbols
  48585. - if test -z "$export_symbols"; then
  48586. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  48587. - $show "generating symbol list for \`$libname.la'"
  48588. - export_symbols="$output_objdir/$libname.exp"
  48589. - $run $rm $export_symbols
  48590. - cmds=$export_symbols_cmds
  48591. - save_ifs="$IFS"; IFS='~'
  48592. - for cmd in $cmds; do
  48593. - IFS="$save_ifs"
  48594. - eval cmd=\"$cmd\"
  48595. - if len=`expr "X$cmd" : ".*"` &&
  48596. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48597. - $show "$cmd"
  48598. - $run eval "$cmd" || exit $?
  48599. - skipped_export=false
  48600. - else
  48601. - # The command line is too long to execute in one step.
  48602. - $show "using reloadable object file for export list..."
  48603. - skipped_export=:
  48604. - fi
  48605. - done
  48606. - IFS="$save_ifs"
  48607. - if test -n "$export_symbols_regex"; then
  48608. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  48609. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  48610. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  48611. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  48612. - fi
  48613. - fi
  48614. - fi
  48615. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  48616. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  48617. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  48618. - fi
  48619. + # Parse the name list into a source file.
  48620. + func_verbose "creating $output_objdir/$my_dlsyms"
  48621. - tmp_deplibs=
  48622. - for test_deplib in $deplibs; do
  48623. - case " $convenience " in
  48624. - *" $test_deplib "*) ;;
  48625. - *)
  48626. - tmp_deplibs="$tmp_deplibs $test_deplib"
  48627. - ;;
  48628. - esac
  48629. - done
  48630. - deplibs="$tmp_deplibs"
  48631. -
  48632. - if test -n "$convenience"; then
  48633. - if test -n "$whole_archive_flag_spec"; then
  48634. - save_libobjs=$libobjs
  48635. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  48636. - else
  48637. - gentop="$output_objdir/${outputname}x"
  48638. - $show "${rm}r $gentop"
  48639. - $run ${rm}r "$gentop"
  48640. - $show "$mkdir $gentop"
  48641. - $run $mkdir "$gentop"
  48642. - status=$?
  48643. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  48644. - exit $status
  48645. - fi
  48646. - generated="$generated $gentop"
  48647. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  48648. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  48649. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  48650. - for xlib in $convenience; do
  48651. - # Extract the objects.
  48652. - case $xlib in
  48653. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  48654. - *) xabs=`pwd`"/$xlib" ;;
  48655. - esac
  48656. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  48657. - xdir="$gentop/$xlib"
  48658. +#ifdef __cplusplus
  48659. +extern \"C\" {
  48660. +#endif
  48661. - $show "${rm}r $xdir"
  48662. - $run ${rm}r "$xdir"
  48663. - $show "$mkdir $xdir"
  48664. - $run $mkdir "$xdir"
  48665. - status=$?
  48666. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  48667. - exit $status
  48668. - fi
  48669. - # We will extract separately just the conflicting names and we will no
  48670. - # longer touch any unique names. It is faster to leave these extract
  48671. - # automatically by $AR in one run.
  48672. - $show "(cd $xdir && $AR x $xabs)"
  48673. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  48674. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  48675. - :
  48676. - else
  48677. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  48678. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  48679. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  48680. - do
  48681. - i=1
  48682. - while test "$i" -le "$count"
  48683. - do
  48684. - # Put our $i before any first dot (extension)
  48685. - # Never overwrite any file
  48686. - name_to="$name"
  48687. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  48688. - do
  48689. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  48690. - done
  48691. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  48692. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  48693. - i=`expr $i + 1`
  48694. - done
  48695. - done
  48696. - fi
  48697. +/* External symbol declarations for the compiler. */\
  48698. +"
  48699. - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  48700. - done
  48701. - fi
  48702. - fi
  48703. + if test "$dlself" = yes; then
  48704. + func_verbose "generating symbol list for \`$output'"
  48705. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  48706. - eval flag=\"$thread_safe_flag_spec\"
  48707. - linker_flags="$linker_flags $flag"
  48708. - fi
  48709. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  48710. - # Make a backup of the uninstalled library when relinking
  48711. - if test "$mode" = relink; then
  48712. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  48713. - fi
  48714. + # Add our own program objects to the symbol list.
  48715. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  48716. + for progfile in $progfiles; do
  48717. + func_verbose "extracting global C symbols from \`$progfile'"
  48718. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  48719. + done
  48720. - # Do each of the archive commands.
  48721. - if test "$module" = yes && test -n "$module_cmds" ; then
  48722. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  48723. - eval test_cmds=\"$module_expsym_cmds\"
  48724. - cmds=$module_expsym_cmds
  48725. + if test -n "$exclude_expsyms"; then
  48726. + $opt_dry_run || {
  48727. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  48728. + eval '$MV "$nlist"T "$nlist"'
  48729. + }
  48730. + fi
  48731. +
  48732. + if test -n "$export_symbols_regex"; then
  48733. + $opt_dry_run || {
  48734. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  48735. + eval '$MV "$nlist"T "$nlist"'
  48736. + }
  48737. + fi
  48738. +
  48739. + # Prepare the list of exported symbols
  48740. + if test -z "$export_symbols"; then
  48741. + export_symbols="$output_objdir/$outputname.exp"
  48742. + $opt_dry_run || {
  48743. + $RM $export_symbols
  48744. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  48745. + case $host in
  48746. + *cygwin* | *mingw* | *cegcc* )
  48747. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  48748. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  48749. + ;;
  48750. + esac
  48751. + }
  48752. else
  48753. - eval test_cmds=\"$module_cmds\"
  48754. - cmds=$module_cmds
  48755. - fi
  48756. - else
  48757. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  48758. - eval test_cmds=\"$archive_expsym_cmds\"
  48759. - cmds=$archive_expsym_cmds
  48760. - else
  48761. - eval test_cmds=\"$archive_cmds\"
  48762. - cmds=$archive_cmds
  48763. + $opt_dry_run || {
  48764. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  48765. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  48766. + eval '$MV "$nlist"T "$nlist"'
  48767. + case $host in
  48768. + *cygwin | *mingw* | *cegcc* )
  48769. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  48770. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  48771. + ;;
  48772. + esac
  48773. + }
  48774. fi
  48775. fi
  48776. - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
  48777. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48778. - :
  48779. - else
  48780. - # The command line is too long to link in one step, link piecewise.
  48781. - $echo "creating reloadable object files..."
  48782. + for dlprefile in $dlprefiles; do
  48783. + func_verbose "extracting global C symbols from \`$dlprefile'"
  48784. + func_basename "$dlprefile"
  48785. + name="$func_basename_result"
  48786. + $opt_dry_run || {
  48787. + eval '$ECHO ": $name " >> "$nlist"'
  48788. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  48789. + }
  48790. + done
  48791. - # Save the value of $output and $libobjs because we want to
  48792. - # use them later. If we have whole_archive_flag_spec, we
  48793. - # want to use save_libobjs as it was before
  48794. - # whole_archive_flag_spec was expanded, because we can't
  48795. - # assume the linker understands whole_archive_flag_spec.
  48796. - # This may have to be revisited, in case too many
  48797. - # convenience libraries get linked in and end up exceeding
  48798. - # the spec.
  48799. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  48800. - save_libobjs=$libobjs
  48801. + $opt_dry_run || {
  48802. + # Make sure we have at least an empty file.
  48803. + test -f "$nlist" || : > "$nlist"
  48804. +
  48805. + if test -n "$exclude_expsyms"; then
  48806. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  48807. + $MV "$nlist"T "$nlist"
  48808. fi
  48809. - save_output=$output
  48810. - # Clear the reloadable object creation command queue and
  48811. - # initialize k to one.
  48812. - test_cmds=
  48813. - concat_cmds=
  48814. - objlist=
  48815. - delfiles=
  48816. - last_robj=
  48817. - k=1
  48818. - output=$output_objdir/$save_output-${k}.$objext
  48819. - # Loop over the list of objects to be linked.
  48820. - for obj in $save_libobjs
  48821. - do
  48822. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  48823. - if test "X$objlist" = X ||
  48824. - { len=`expr "X$test_cmds" : ".*"` &&
  48825. - test "$len" -le "$max_cmd_len"; }; then
  48826. - objlist="$objlist $obj"
  48827. - else
  48828. - # The command $test_cmds is almost too long, add a
  48829. - # command to the queue.
  48830. - if test "$k" -eq 1 ; then
  48831. - # The first file doesn't have a previous command to add.
  48832. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  48833. + # Try sorting and uniquifying the output.
  48834. + if $GREP -v "^: " < "$nlist" |
  48835. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  48836. + sort -k 3
  48837. else
  48838. - # All subsequent reloadable object files will link in
  48839. - # the last one created.
  48840. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  48841. - fi
  48842. - last_robj=$output_objdir/$save_output-${k}.$objext
  48843. - k=`expr $k + 1`
  48844. - output=$output_objdir/$save_output-${k}.$objext
  48845. - objlist=$obj
  48846. - len=1
  48847. - fi
  48848. - done
  48849. - # Handle the remaining objects by creating one last
  48850. - # reloadable object file. All subsequent reloadable object
  48851. - # files will link in the last one created.
  48852. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  48853. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  48854. + sort +2
  48855. + fi |
  48856. + uniq > "$nlist"S; then
  48857. + :
  48858. + else
  48859. + $GREP -v "^: " < "$nlist" > "$nlist"S
  48860. + fi
  48861. - if ${skipped_export-false}; then
  48862. - $show "generating symbol list for \`$libname.la'"
  48863. - export_symbols="$output_objdir/$libname.exp"
  48864. - $run $rm $export_symbols
  48865. - libobjs=$output
  48866. - # Append the command to create the export file.
  48867. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  48868. - fi
  48869. -
  48870. - # Set up a command to remove the reloadale object files
  48871. - # after they are used.
  48872. - i=0
  48873. - while test "$i" -lt "$k"
  48874. - do
  48875. - i=`expr $i + 1`
  48876. - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
  48877. - done
  48878. + if test -f "$nlist"S; then
  48879. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  48880. + else
  48881. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  48882. + fi
  48883. - $echo "creating a temporary reloadable object file: $output"
  48884. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48885. - # Loop through the commands generated above and execute them.
  48886. - save_ifs="$IFS"; IFS='~'
  48887. - for cmd in $concat_cmds; do
  48888. - IFS="$save_ifs"
  48889. - $show "$cmd"
  48890. - $run eval "$cmd" || exit $?
  48891. - done
  48892. - IFS="$save_ifs"
  48893. +/* The mapping between symbol names and symbols. */
  48894. +typedef struct {
  48895. + const char *name;
  48896. + void *address;
  48897. +} lt_dlsymlist;
  48898. +"
  48899. + case $host in
  48900. + *cygwin* | *mingw* | *cegcc* )
  48901. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48902. +/* DATA imports from DLLs on WIN32 con't be const, because
  48903. + runtime relocations are performed -- see ld's documentation
  48904. + on pseudo-relocs. */"
  48905. + lt_dlsym_const= ;;
  48906. + *osf5*)
  48907. + echo >> "$output_objdir/$my_dlsyms" "\
  48908. +/* This system does not cope well with relocations in const data */"
  48909. + lt_dlsym_const= ;;
  48910. + *)
  48911. + lt_dlsym_const=const ;;
  48912. + esac
  48913. - libobjs=$output
  48914. - # Restore the value of output.
  48915. - output=$save_output
  48916. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48917. +extern $lt_dlsym_const lt_dlsymlist
  48918. +lt_${my_prefix}_LTX_preloaded_symbols[];
  48919. +$lt_dlsym_const lt_dlsymlist
  48920. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  48921. +{\
  48922. + { \"$my_originator\", (void *) 0 },"
  48923. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  48924. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  48925. - fi
  48926. - # Expand the library linking commands again to reset the
  48927. - # value of $libobjs for piecewise linking.
  48928. + case $need_lib_prefix in
  48929. + no)
  48930. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  48931. + ;;
  48932. + *)
  48933. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  48934. + ;;
  48935. + esac
  48936. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48937. + {0, (void *) 0}
  48938. +};
  48939. - # Do each of the archive commands.
  48940. - if test "$module" = yes && test -n "$module_cmds" ; then
  48941. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  48942. - cmds=$module_expsym_cmds
  48943. - else
  48944. - cmds=$module_cmds
  48945. - fi
  48946. - else
  48947. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  48948. - cmds=$archive_expsym_cmds
  48949. - else
  48950. - cmds=$archive_cmds
  48951. - fi
  48952. - fi
  48953. +/* This works around a problem in FreeBSD linker */
  48954. +#ifdef FREEBSD_WORKAROUND
  48955. +static const void *lt_preloaded_setup() {
  48956. + return lt_${my_prefix}_LTX_preloaded_symbols;
  48957. +}
  48958. +#endif
  48959. - # Append the command to remove the reloadable object files
  48960. - # to the just-reset $cmds.
  48961. - eval cmds=\"\$cmds~\$rm $delfiles\"
  48962. - fi
  48963. - save_ifs="$IFS"; IFS='~'
  48964. - for cmd in $cmds; do
  48965. - IFS="$save_ifs"
  48966. - eval cmd=\"$cmd\"
  48967. - $show "$cmd"
  48968. - $run eval "$cmd" || exit $?
  48969. +#ifdef __cplusplus
  48970. +}
  48971. +#endif\
  48972. +"
  48973. + } # !$opt_dry_run
  48974. +
  48975. + pic_flag_for_symtable=
  48976. + case "$compile_command " in
  48977. + *" -static "*) ;;
  48978. + *)
  48979. + case $host in
  48980. + # compiling the symbol table file with pic_flag works around
  48981. + # a FreeBSD bug that causes programs to crash when -lm is
  48982. + # linked before any other PIC object. But we must not use
  48983. + # pic_flag when linking with -static. The problem exists in
  48984. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  48985. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  48986. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  48987. + *-*-hpux*)
  48988. + pic_flag_for_symtable=" $pic_flag" ;;
  48989. + *)
  48990. + if test "X$my_pic_p" != Xno; then
  48991. + pic_flag_for_symtable=" $pic_flag"
  48992. + fi
  48993. + ;;
  48994. + esac
  48995. + ;;
  48996. + esac
  48997. + symtab_cflags=
  48998. + for arg in $LTCFLAGS; do
  48999. + case $arg in
  49000. + -pie | -fpie | -fPIE) ;;
  49001. + *) symtab_cflags="$symtab_cflags $arg" ;;
  49002. + esac
  49003. done
  49004. - IFS="$save_ifs"
  49005. - # Restore the uninstalled library and exit
  49006. - if test "$mode" = relink; then
  49007. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  49008. - exit $EXIT_SUCCESS
  49009. - fi
  49010. + # Now compile the dynamic symbol file.
  49011. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  49012. - # Create links to the real library.
  49013. - for linkname in $linknames; do
  49014. - if test "$realname" != "$linkname"; then
  49015. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  49016. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  49017. + # Clean up the generated files.
  49018. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  49019. +
  49020. + # Transform the symbol file into the correct name.
  49021. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  49022. + case $host in
  49023. + *cygwin* | *mingw* | *cegcc* )
  49024. + if test -f "$output_objdir/$my_outputname.def"; then
  49025. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  49026. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  49027. + else
  49028. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49029. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49030. fi
  49031. - done
  49032. + ;;
  49033. + *)
  49034. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49035. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49036. + ;;
  49037. + esac
  49038. + ;;
  49039. + *)
  49040. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  49041. + ;;
  49042. + esac
  49043. + else
  49044. + # We keep going just in case the user didn't refer to
  49045. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  49046. + # really was required.
  49047. +
  49048. + # Nullify the symbol file.
  49049. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  49050. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  49051. + fi
  49052. +}
  49053. - # If -module or -export-dynamic was specified, set the dlname.
  49054. - if test "$module" = yes || test "$export_dynamic" = yes; then
  49055. - # On all known operating systems, these are identical.
  49056. - dlname="$soname"
  49057. - fi
  49058. - fi
  49059. +# func_win32_libid arg
  49060. +# return the library type of file 'arg'
  49061. +#
  49062. +# Need a lot of goo to handle *both* DLLs and import libs
  49063. +# Has to be a shell function in order to 'eat' the argument
  49064. +# that is supplied when $file_magic_command is called.
  49065. +func_win32_libid ()
  49066. +{
  49067. + $opt_debug
  49068. + win32_libid_type="unknown"
  49069. + win32_fileres=`file -L $1 2>/dev/null`
  49070. + case $win32_fileres in
  49071. + *ar\ archive\ import\ library*) # definitely import
  49072. + win32_libid_type="x86 archive import"
  49073. + ;;
  49074. + *ar\ archive*) # could be an import, or static
  49075. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  49076. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  49077. + win32_nmres=`eval $NM -f posix -A $1 |
  49078. + $SED -n -e '
  49079. + 1,100{
  49080. + / I /{
  49081. + s,.*,import,
  49082. + p
  49083. + q
  49084. + }
  49085. + }'`
  49086. + case $win32_nmres in
  49087. + import*) win32_libid_type="x86 archive import";;
  49088. + *) win32_libid_type="x86 archive static";;
  49089. + esac
  49090. + fi
  49091. + ;;
  49092. + *DLL*)
  49093. + win32_libid_type="x86 DLL"
  49094. + ;;
  49095. + *executable*) # but shell scripts are "executable" too...
  49096. + case $win32_fileres in
  49097. + *MS\ Windows\ PE\ Intel*)
  49098. + win32_libid_type="x86 DLL"
  49099. ;;
  49100. + esac
  49101. + ;;
  49102. + esac
  49103. + $ECHO "$win32_libid_type"
  49104. +}
  49105. - obj)
  49106. - if test -n "$deplibs"; then
  49107. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  49108. - fi
  49109. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49110. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  49111. - fi
  49112. - if test -n "$rpath"; then
  49113. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  49114. - fi
  49115. +# func_extract_an_archive dir oldlib
  49116. +func_extract_an_archive ()
  49117. +{
  49118. + $opt_debug
  49119. + f_ex_an_ar_dir="$1"; shift
  49120. + f_ex_an_ar_oldlib="$1"
  49121. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  49122. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  49123. + :
  49124. + else
  49125. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  49126. + fi
  49127. +}
  49128. - if test -n "$xrpath"; then
  49129. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  49130. - fi
  49131. - if test -n "$vinfo"; then
  49132. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  49133. - fi
  49134. +# func_extract_archives gentop oldlib ...
  49135. +func_extract_archives ()
  49136. +{
  49137. + $opt_debug
  49138. + my_gentop="$1"; shift
  49139. + my_oldlibs=${1+"$@"}
  49140. + my_oldobjs=""
  49141. + my_xlib=""
  49142. + my_xabs=""
  49143. + my_xdir=""
  49144. +
  49145. + for my_xlib in $my_oldlibs; do
  49146. + # Extract the objects.
  49147. + case $my_xlib in
  49148. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  49149. + *) my_xabs=`pwd`"/$my_xlib" ;;
  49150. + esac
  49151. + func_basename "$my_xlib"
  49152. + my_xlib="$func_basename_result"
  49153. + my_xlib_u=$my_xlib
  49154. + while :; do
  49155. + case " $extracted_archives " in
  49156. + *" $my_xlib_u "*)
  49157. + func_arith $extracted_serial + 1
  49158. + extracted_serial=$func_arith_result
  49159. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  49160. + *) break ;;
  49161. + esac
  49162. + done
  49163. + extracted_archives="$extracted_archives $my_xlib_u"
  49164. + my_xdir="$my_gentop/$my_xlib_u"
  49165. - if test -n "$release"; then
  49166. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  49167. - fi
  49168. + func_mkdir_p "$my_xdir"
  49169. - case $output in
  49170. - *.lo)
  49171. - if test -n "$objs$old_deplibs"; then
  49172. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  49173. - exit $EXIT_FAILURE
  49174. - fi
  49175. - libobj="$output"
  49176. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  49177. + case $host in
  49178. + *-darwin*)
  49179. + func_verbose "Extracting $my_xabs"
  49180. + # Do not bother doing anything if just a dry run
  49181. + $opt_dry_run || {
  49182. + darwin_orig_dir=`pwd`
  49183. + cd $my_xdir || exit $?
  49184. + darwin_archive=$my_xabs
  49185. + darwin_curdir=`pwd`
  49186. + darwin_base_archive=`basename "$darwin_archive"`
  49187. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  49188. + if test -n "$darwin_arches"; then
  49189. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  49190. + darwin_arch=
  49191. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  49192. + for darwin_arch in $darwin_arches ; do
  49193. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  49194. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  49195. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  49196. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  49197. + cd "$darwin_curdir"
  49198. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  49199. + done # $darwin_arches
  49200. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  49201. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  49202. + darwin_file=
  49203. + darwin_files=
  49204. + for darwin_file in $darwin_filelist; do
  49205. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  49206. + $LIPO -create -output "$darwin_file" $darwin_files
  49207. + done # $darwin_filelist
  49208. + $RM -rf unfat-$$
  49209. + cd "$darwin_orig_dir"
  49210. + else
  49211. + cd $darwin_orig_dir
  49212. + func_extract_an_archive "$my_xdir" "$my_xabs"
  49213. + fi # $darwin_arches
  49214. + } # !$opt_dry_run
  49215. ;;
  49216. *)
  49217. - libobj=
  49218. - obj="$output"
  49219. + func_extract_an_archive "$my_xdir" "$my_xabs"
  49220. ;;
  49221. esac
  49222. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  49223. + done
  49224. - # Delete the old objects.
  49225. - $run $rm $obj $libobj
  49226. -
  49227. - # Objects from convenience libraries. This assumes
  49228. - # single-version convenience libraries. Whenever we create
  49229. - # different ones for PIC/non-PIC, this we'll have to duplicate
  49230. - # the extraction.
  49231. - reload_conv_objs=
  49232. - gentop=
  49233. - # reload_cmds runs $LD directly, so let us get rid of
  49234. - # -Wl from whole_archive_flag_spec
  49235. - wl=
  49236. + func_extract_archives_result="$my_oldobjs"
  49237. +}
  49238. - if test -n "$convenience"; then
  49239. - if test -n "$whole_archive_flag_spec"; then
  49240. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  49241. - else
  49242. - gentop="$output_objdir/${obj}x"
  49243. - $show "${rm}r $gentop"
  49244. - $run ${rm}r "$gentop"
  49245. - $show "$mkdir $gentop"
  49246. - $run $mkdir "$gentop"
  49247. - status=$?
  49248. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  49249. - exit $status
  49250. - fi
  49251. - generated="$generated $gentop"
  49252. - for xlib in $convenience; do
  49253. - # Extract the objects.
  49254. - case $xlib in
  49255. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  49256. - *) xabs=`pwd`"/$xlib" ;;
  49257. - esac
  49258. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  49259. - xdir="$gentop/$xlib"
  49260. - $show "${rm}r $xdir"
  49261. - $run ${rm}r "$xdir"
  49262. - $show "$mkdir $xdir"
  49263. - $run $mkdir "$xdir"
  49264. - status=$?
  49265. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  49266. - exit $status
  49267. - fi
  49268. - # We will extract separately just the conflicting names and we will no
  49269. - # longer touch any unique names. It is faster to leave these extract
  49270. - # automatically by $AR in one run.
  49271. - $show "(cd $xdir && $AR x $xabs)"
  49272. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  49273. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  49274. - :
  49275. - else
  49276. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  49277. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  49278. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  49279. - do
  49280. - i=1
  49281. - while test "$i" -le "$count"
  49282. - do
  49283. - # Put our $i before any first dot (extension)
  49284. - # Never overwrite any file
  49285. - name_to="$name"
  49286. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  49287. - do
  49288. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  49289. - done
  49290. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  49291. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  49292. - i=`expr $i + 1`
  49293. - done
  49294. - done
  49295. - fi
  49296. -
  49297. - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  49298. - done
  49299. +# func_emit_wrapper_part1 [arg=no]
  49300. +#
  49301. +# Emit the first part of a libtool wrapper script on stdout.
  49302. +# For more information, see the description associated with
  49303. +# func_emit_wrapper(), below.
  49304. +func_emit_wrapper_part1 ()
  49305. +{
  49306. + func_emit_wrapper_part1_arg1=no
  49307. + if test -n "$1" ; then
  49308. + func_emit_wrapper_part1_arg1=$1
  49309. fi
  49310. - fi
  49311. - # Create the old-style object.
  49312. - 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
  49313. + $ECHO "\
  49314. +#! $SHELL
  49315. - output="$obj"
  49316. - cmds=$reload_cmds
  49317. - save_ifs="$IFS"; IFS='~'
  49318. - for cmd in $cmds; do
  49319. - IFS="$save_ifs"
  49320. - eval cmd=\"$cmd\"
  49321. - $show "$cmd"
  49322. - $run eval "$cmd" || exit $?
  49323. - done
  49324. - IFS="$save_ifs"
  49325. +# $output - temporary wrapper script for $objdir/$outputname
  49326. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  49327. +#
  49328. +# The $output program cannot be directly executed until all the libtool
  49329. +# libraries that it depends on are installed.
  49330. +#
  49331. +# This wrapper script should never be moved out of the build directory.
  49332. +# If it is, it will not operate correctly.
  49333. - # Exit if we aren't doing a library object file.
  49334. - if test -z "$libobj"; then
  49335. - if test -n "$gentop"; then
  49336. - $show "${rm}r $gentop"
  49337. - $run ${rm}r $gentop
  49338. - fi
  49339. +# Sed substitution that helps us do robust quoting. It backslashifies
  49340. +# metacharacters that are still active within double-quoted strings.
  49341. +Xsed='${SED} -e 1s/^X//'
  49342. +sed_quote_subst='$sed_quote_subst'
  49343. - exit $EXIT_SUCCESS
  49344. - fi
  49345. +# Be Bourne compatible
  49346. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  49347. + emulate sh
  49348. + NULLCMD=:
  49349. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  49350. + # is contrary to our usage. Disable this feature.
  49351. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  49352. + setopt NO_GLOB_SUBST
  49353. +else
  49354. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  49355. +fi
  49356. +BIN_SH=xpg4; export BIN_SH # for Tru64
  49357. +DUALCASE=1; export DUALCASE # for MKS sh
  49358. - if test "$build_libtool_libs" != yes; then
  49359. - if test -n "$gentop"; then
  49360. - $show "${rm}r $gentop"
  49361. - $run ${rm}r $gentop
  49362. - fi
  49363. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  49364. +# if CDPATH is set.
  49365. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  49366. - # Create an invalid libtool object if no PIC, so that we don't
  49367. - # accidentally link it into a program.
  49368. - # $show "echo timestamp > $libobj"
  49369. - # $run eval "echo timestamp > $libobj" || exit $?
  49370. - exit $EXIT_SUCCESS
  49371. - fi
  49372. +relink_command=\"$relink_command\"
  49373. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  49374. - # Only do commands if we really have different PIC objects.
  49375. - reload_objs="$libobjs $reload_conv_objs"
  49376. - output="$libobj"
  49377. - cmds=$reload_cmds
  49378. - save_ifs="$IFS"; IFS='~'
  49379. - for cmd in $cmds; do
  49380. - IFS="$save_ifs"
  49381. - eval cmd=\"$cmd\"
  49382. - $show "$cmd"
  49383. - $run eval "$cmd" || exit $?
  49384. - done
  49385. - IFS="$save_ifs"
  49386. - fi
  49387. +# This environment variable determines our operation mode.
  49388. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  49389. + # install mode needs the following variables:
  49390. + generated_by_libtool_version='$macro_version'
  49391. + notinst_deplibs='$notinst_deplibs'
  49392. +else
  49393. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  49394. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  49395. + ECHO=\"$qecho\"
  49396. + file=\"\$0\"
  49397. + # Make sure echo works.
  49398. + if test \"X\$1\" = X--no-reexec; then
  49399. + # Discard the --no-reexec flag, and continue.
  49400. + shift
  49401. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  49402. + # Yippee, \$ECHO works!
  49403. + :
  49404. + else
  49405. + # Restart under the correct shell, and then maybe \$ECHO will work.
  49406. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  49407. + fi
  49408. + fi\
  49409. +"
  49410. + $ECHO "\
  49411. - if test -n "$gentop"; then
  49412. - $show "${rm}r $gentop"
  49413. - $run ${rm}r $gentop
  49414. - fi
  49415. + # Find the directory that this script lives in.
  49416. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  49417. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  49418. - exit $EXIT_SUCCESS
  49419. - ;;
  49420. + # Follow symbolic links until we get to the real thisdir.
  49421. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  49422. + while test -n \"\$file\"; do
  49423. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  49424. - prog)
  49425. - case $host in
  49426. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  49427. + # If there was a directory component, then change thisdir.
  49428. + if test \"x\$destdir\" != \"x\$file\"; then
  49429. + case \"\$destdir\" in
  49430. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  49431. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  49432. esac
  49433. - if test -n "$vinfo"; then
  49434. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  49435. - fi
  49436. + fi
  49437. - if test -n "$release"; then
  49438. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  49439. - fi
  49440. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  49441. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  49442. + done
  49443. +"
  49444. +}
  49445. +# end: func_emit_wrapper_part1
  49446. - if test "$preload" = yes; then
  49447. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  49448. - test "$dlopen_self_static" = unknown; then
  49449. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  49450. - fi
  49451. - fi
  49452. +# func_emit_wrapper_part2 [arg=no]
  49453. +#
  49454. +# Emit the second part of a libtool wrapper script on stdout.
  49455. +# For more information, see the description associated with
  49456. +# func_emit_wrapper(), below.
  49457. +func_emit_wrapper_part2 ()
  49458. +{
  49459. + func_emit_wrapper_part2_arg1=no
  49460. + if test -n "$1" ; then
  49461. + func_emit_wrapper_part2_arg1=$1
  49462. + fi
  49463. +
  49464. + $ECHO "\
  49465. +
  49466. + # Usually 'no', except on cygwin/mingw when embedded into
  49467. + # the cwrapper.
  49468. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  49469. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  49470. + # special case for '.'
  49471. + if test \"\$thisdir\" = \".\"; then
  49472. + thisdir=\`pwd\`
  49473. + fi
  49474. + # remove .libs from thisdir
  49475. + case \"\$thisdir\" in
  49476. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  49477. + $objdir ) thisdir=. ;;
  49478. + esac
  49479. + fi
  49480. - case $host in
  49481. - *-*-rhapsody* | *-*-darwin1.[012])
  49482. - # On Rhapsody replace the C library is the System framework
  49483. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  49484. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  49485. - ;;
  49486. - esac
  49487. + # Try to get the absolute directory name.
  49488. + absdir=\`cd \"\$thisdir\" && pwd\`
  49489. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  49490. +"
  49491. - case $host in
  49492. - *darwin*)
  49493. - # Don't allow lazy linking, it breaks C++ global constructors
  49494. - if test "$tagname" = CXX ; then
  49495. - compile_command="$compile_command ${wl}-bind_at_load"
  49496. - finalize_command="$finalize_command ${wl}-bind_at_load"
  49497. - fi
  49498. - ;;
  49499. - esac
  49500. + if test "$fast_install" = yes; then
  49501. + $ECHO "\
  49502. + program=lt-'$outputname'$exeext
  49503. + progdir=\"\$thisdir/$objdir\"
  49504. - compile_command="$compile_command $compile_deplibs"
  49505. - finalize_command="$finalize_command $finalize_deplibs"
  49506. + if test ! -f \"\$progdir/\$program\" ||
  49507. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  49508. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  49509. - if test -n "$rpath$xrpath"; then
  49510. - # If the user specified any rpath flags, then add them.
  49511. - for libdir in $rpath $xrpath; do
  49512. - # This is the magic to use -rpath.
  49513. - case "$finalize_rpath " in
  49514. - *" $libdir "*) ;;
  49515. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  49516. - esac
  49517. - done
  49518. - fi
  49519. + file=\"\$\$-\$program\"
  49520. - # Now hardcode the library paths
  49521. - rpath=
  49522. - hardcode_libdirs=
  49523. - for libdir in $compile_rpath $finalize_rpath; do
  49524. - if test -n "$hardcode_libdir_flag_spec"; then
  49525. - if test -n "$hardcode_libdir_separator"; then
  49526. - if test -z "$hardcode_libdirs"; then
  49527. - hardcode_libdirs="$libdir"
  49528. - else
  49529. - # Just accumulate the unique libdirs.
  49530. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  49531. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  49532. - ;;
  49533. - *)
  49534. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  49535. - ;;
  49536. - esac
  49537. - fi
  49538. - else
  49539. - eval flag=\"$hardcode_libdir_flag_spec\"
  49540. - rpath="$rpath $flag"
  49541. - fi
  49542. - elif test -n "$runpath_var"; then
  49543. - case "$perm_rpath " in
  49544. - *" $libdir "*) ;;
  49545. - *) perm_rpath="$perm_rpath $libdir" ;;
  49546. - esac
  49547. - fi
  49548. - case $host in
  49549. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49550. - case :$dllsearchpath: in
  49551. - *":$libdir:"*) ;;
  49552. - *) dllsearchpath="$dllsearchpath:$libdir";;
  49553. - esac
  49554. - ;;
  49555. - esac
  49556. - done
  49557. - # Substitute the hardcoded libdirs into the rpath.
  49558. - if test -n "$hardcode_libdir_separator" &&
  49559. - test -n "$hardcode_libdirs"; then
  49560. - libdir="$hardcode_libdirs"
  49561. - eval rpath=\" $hardcode_libdir_flag_spec\"
  49562. - fi
  49563. - compile_rpath="$rpath"
  49564. + if test ! -d \"\$progdir\"; then
  49565. + $MKDIR \"\$progdir\"
  49566. + else
  49567. + $RM \"\$progdir/\$file\"
  49568. + fi"
  49569. - rpath=
  49570. - hardcode_libdirs=
  49571. - for libdir in $finalize_rpath; do
  49572. - if test -n "$hardcode_libdir_flag_spec"; then
  49573. - if test -n "$hardcode_libdir_separator"; then
  49574. - if test -z "$hardcode_libdirs"; then
  49575. - hardcode_libdirs="$libdir"
  49576. - else
  49577. - # Just accumulate the unique libdirs.
  49578. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  49579. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  49580. - ;;
  49581. - *)
  49582. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  49583. - ;;
  49584. - esac
  49585. - fi
  49586. - else
  49587. - eval flag=\"$hardcode_libdir_flag_spec\"
  49588. - rpath="$rpath $flag"
  49589. - fi
  49590. - elif test -n "$runpath_var"; then
  49591. - case "$finalize_perm_rpath " in
  49592. - *" $libdir "*) ;;
  49593. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  49594. - esac
  49595. - fi
  49596. - done
  49597. - # Substitute the hardcoded libdirs into the rpath.
  49598. - if test -n "$hardcode_libdir_separator" &&
  49599. - test -n "$hardcode_libdirs"; then
  49600. - libdir="$hardcode_libdirs"
  49601. - eval rpath=\" $hardcode_libdir_flag_spec\"
  49602. - fi
  49603. - finalize_rpath="$rpath"
  49604. + $ECHO "\
  49605. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  49606. - # Transform all the library objects into standard objects.
  49607. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49608. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49609. + # relink executable if necessary
  49610. + if test -n \"\$relink_command\"; then
  49611. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  49612. + else
  49613. + $ECHO \"\$relink_command_output\" >&2
  49614. + $RM \"\$progdir/\$file\"
  49615. + exit 1
  49616. fi
  49617. + fi
  49618. - dlsyms=
  49619. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49620. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  49621. - dlsyms="${outputname}S.c"
  49622. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  49623. + { $RM \"\$progdir/\$program\";
  49624. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  49625. + $RM \"\$progdir/\$file\"
  49626. + fi"
  49627. else
  49628. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  49629. + $ECHO "\
  49630. + program='$outputname'
  49631. + progdir=\"\$thisdir/$objdir\"
  49632. +"
  49633. fi
  49634. - fi
  49635. -
  49636. - if test -n "$dlsyms"; then
  49637. - case $dlsyms in
  49638. - "") ;;
  49639. - *.c)
  49640. - # Discover the nlist of each of the dlfiles.
  49641. - nlist="$output_objdir/${outputname}.nm"
  49642. -
  49643. - $show "$rm $nlist ${nlist}S ${nlist}T"
  49644. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  49645. - # Parse the name list into a source file.
  49646. - $show "creating $output_objdir/$dlsyms"
  49647. + $ECHO "\
  49648. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  49649. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  49650. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  49651. + if test -f \"\$progdir/\$program\"; then"
  49652. -#ifdef __cplusplus
  49653. -extern \"C\" {
  49654. -#endif
  49655. + # Export our shlibpath_var if we have one.
  49656. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  49657. + $ECHO "\
  49658. + # Add our own library path to $shlibpath_var
  49659. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  49660. -/* Prevent the only kind of declaration conflicts we can make. */
  49661. -#define lt_preloaded_symbols some_other_symbol
  49662. + # Some systems cannot cope with colon-terminated $shlibpath_var
  49663. + # The second colon is a workaround for a bug in BeOS R4 sed
  49664. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  49665. -/* External symbol declarations for the compiler. */\
  49666. + export $shlibpath_var
  49667. "
  49668. + fi
  49669. - if test "$dlself" = yes; then
  49670. - $show "generating symbol list for \`$output'"
  49671. -
  49672. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  49673. + # fixup the dll searchpath if we need to.
  49674. + if test -n "$dllsearchpath"; then
  49675. + $ECHO "\
  49676. + # Add the dll search path components to the executable PATH
  49677. + PATH=$dllsearchpath:\$PATH
  49678. +"
  49679. + fi
  49680. - # Add our own program objects to the symbol list.
  49681. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49682. - for arg in $progfiles; do
  49683. - $show "extracting global C symbols from \`$arg'"
  49684. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  49685. - done
  49686. + $ECHO "\
  49687. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  49688. + # Run the actual program with our arguments.
  49689. +"
  49690. + case $host in
  49691. + # Backslashes separate directories on plain windows
  49692. + *-*-mingw | *-*-os2* | *-cegcc*)
  49693. + $ECHO "\
  49694. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  49695. +"
  49696. + ;;
  49697. - if test -n "$exclude_expsyms"; then
  49698. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  49699. - $run eval '$mv "$nlist"T "$nlist"'
  49700. - fi
  49701. -
  49702. - if test -n "$export_symbols_regex"; then
  49703. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  49704. - $run eval '$mv "$nlist"T "$nlist"'
  49705. - fi
  49706. -
  49707. - # Prepare the list of exported symbols
  49708. - if test -z "$export_symbols"; then
  49709. - export_symbols="$output_objdir/$output.exp"
  49710. - $run $rm $export_symbols
  49711. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  49712. - else
  49713. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  49714. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  49715. - $run eval 'mv "$nlist"T "$nlist"'
  49716. - fi
  49717. - fi
  49718. -
  49719. - for arg in $dlprefiles; do
  49720. - $show "extracting global C symbols from \`$arg'"
  49721. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  49722. - $run eval '$echo ": $name " >> "$nlist"'
  49723. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  49724. - done
  49725. -
  49726. - if test -z "$run"; then
  49727. - # Make sure we have at least an empty file.
  49728. - test -f "$nlist" || : > "$nlist"
  49729. -
  49730. - if test -n "$exclude_expsyms"; then
  49731. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  49732. - $mv "$nlist"T "$nlist"
  49733. - fi
  49734. -
  49735. - # Try sorting and uniquifying the output.
  49736. - if grep -v "^: " < "$nlist" |
  49737. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  49738. - sort -k 3
  49739. - else
  49740. - sort +2
  49741. - fi |
  49742. - uniq > "$nlist"S; then
  49743. - :
  49744. - else
  49745. - grep -v "^: " < "$nlist" > "$nlist"S
  49746. - fi
  49747. -
  49748. - if test -f "$nlist"S; then
  49749. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  49750. - else
  49751. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  49752. - fi
  49753. -
  49754. - $echo >> "$output_objdir/$dlsyms" "\
  49755. -
  49756. -#undef lt_preloaded_symbols
  49757. -
  49758. -#if defined (__STDC__) && __STDC__
  49759. -# define lt_ptr void *
  49760. -#else
  49761. -# define lt_ptr char *
  49762. -# define const
  49763. -#endif
  49764. -
  49765. -/* The mapping between symbol names and symbols. */
  49766. -const struct {
  49767. - const char *name;
  49768. - lt_ptr address;
  49769. -}
  49770. -lt_preloaded_symbols[] =
  49771. -{\
  49772. -"
  49773. -
  49774. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  49775. -
  49776. - $echo >> "$output_objdir/$dlsyms" "\
  49777. - {0, (lt_ptr) 0}
  49778. -};
  49779. -
  49780. -/* This works around a problem in FreeBSD linker */
  49781. -#ifdef FREEBSD_WORKAROUND
  49782. -static const void *lt_preloaded_setup() {
  49783. - return lt_preloaded_symbols;
  49784. -}
  49785. -#endif
  49786. -
  49787. -#ifdef __cplusplus
  49788. -}
  49789. -#endif\
  49790. -"
  49791. - fi
  49792. -
  49793. - pic_flag_for_symtable=
  49794. - case $host in
  49795. - # compiling the symbol table file with pic_flag works around
  49796. - # a FreeBSD bug that causes programs to crash when -lm is
  49797. - # linked before any other PIC object. But we must not use
  49798. - # pic_flag when linking with -static. The problem exists in
  49799. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  49800. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  49801. - case "$compile_command " in
  49802. - *" -static "*) ;;
  49803. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  49804. - esac;;
  49805. - *-*-hpux*)
  49806. - case "$compile_command " in
  49807. - *" -static "*) ;;
  49808. - *) pic_flag_for_symtable=" $pic_flag";;
  49809. - esac
  49810. - esac
  49811. -
  49812. - # Now compile the dynamic symbol file.
  49813. - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  49814. - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  49815. -
  49816. - # Clean up the generated files.
  49817. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  49818. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  49819. -
  49820. - # Transform the symbol file into the correct name.
  49821. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  49822. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  49823. - ;;
  49824. *)
  49825. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  49826. - exit $EXIT_FAILURE
  49827. + $ECHO "\
  49828. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  49829. +"
  49830. ;;
  49831. esac
  49832. - else
  49833. - # We keep going just in case the user didn't refer to
  49834. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  49835. - # really was required.
  49836. -
  49837. - # Nullify the symbol file.
  49838. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  49839. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  49840. - fi
  49841. -
  49842. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  49843. - # Replace the output file specification.
  49844. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  49845. - link_command="$compile_command$compile_rpath"
  49846. -
  49847. - # We have no uninstalled library dependencies, so finalize right now.
  49848. - $show "$link_command"
  49849. - $run eval "$link_command"
  49850. - status=$?
  49851. -
  49852. - # Delete the generated files.
  49853. - if test -n "$dlsyms"; then
  49854. - $show "$rm $output_objdir/${outputname}S.${objext}"
  49855. - $run $rm "$output_objdir/${outputname}S.${objext}"
  49856. - fi
  49857. -
  49858. - exit $status
  49859. - fi
  49860. -
  49861. - if test -n "$shlibpath_var"; then
  49862. - # We should set the shlibpath_var
  49863. - rpath=
  49864. - for dir in $temp_rpath; do
  49865. - case $dir in
  49866. - [\\/]* | [A-Za-z]:[\\/]*)
  49867. - # Absolute path.
  49868. - rpath="$rpath$dir:"
  49869. - ;;
  49870. - *)
  49871. - # Relative path: add a thisdir entry.
  49872. - rpath="$rpath\$thisdir/$dir:"
  49873. - ;;
  49874. - esac
  49875. - done
  49876. - temp_rpath="$rpath"
  49877. - fi
  49878. -
  49879. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  49880. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  49881. - fi
  49882. - if test -n "$finalize_shlibpath"; then
  49883. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  49884. - fi
  49885. -
  49886. - compile_var=
  49887. - finalize_var=
  49888. - if test -n "$runpath_var"; then
  49889. - if test -n "$perm_rpath"; then
  49890. - # We should set the runpath_var.
  49891. - rpath=
  49892. - for dir in $perm_rpath; do
  49893. - rpath="$rpath$dir:"
  49894. - done
  49895. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  49896. - fi
  49897. - if test -n "$finalize_perm_rpath"; then
  49898. - # We should set the runpath_var.
  49899. - rpath=
  49900. - for dir in $finalize_perm_rpath; do
  49901. - rpath="$rpath$dir:"
  49902. - done
  49903. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  49904. - fi
  49905. - fi
  49906. -
  49907. - if test "$no_install" = yes; then
  49908. - # We don't need to create a wrapper script.
  49909. - link_command="$compile_var$compile_command$compile_rpath"
  49910. - # Replace the output file specification.
  49911. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  49912. - # Delete the old output file.
  49913. - $run $rm $output
  49914. - # Link the executable and exit
  49915. - $show "$link_command"
  49916. - $run eval "$link_command" || exit $?
  49917. - exit $EXIT_SUCCESS
  49918. - fi
  49919. + $ECHO "\
  49920. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  49921. + exit 1
  49922. + fi
  49923. + else
  49924. + # The program doesn't exist.
  49925. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  49926. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  49927. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  49928. + exit 1
  49929. + fi
  49930. +fi\
  49931. +"
  49932. +}
  49933. +# end: func_emit_wrapper_part2
  49934. - if test "$hardcode_action" = relink; then
  49935. - # Fast installation is not supported
  49936. - link_command="$compile_var$compile_command$compile_rpath"
  49937. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  49938. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  49939. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  49940. - else
  49941. - if test "$fast_install" != no; then
  49942. - link_command="$finalize_var$compile_command$finalize_rpath"
  49943. - if test "$fast_install" = yes; then
  49944. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  49945. - else
  49946. - # fast_install is set to needless
  49947. - relink_command=
  49948. - fi
  49949. - else
  49950. - link_command="$compile_var$compile_command$compile_rpath"
  49951. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  49952. +# func_emit_wrapper [arg=no]
  49953. +#
  49954. +# Emit a libtool wrapper script on stdout.
  49955. +# Don't directly open a file because we may want to
  49956. +# incorporate the script contents within a cygwin/mingw
  49957. +# wrapper executable. Must ONLY be called from within
  49958. +# func_mode_link because it depends on a number of variables
  49959. +# set therein.
  49960. +#
  49961. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  49962. +# variable will take. If 'yes', then the emitted script
  49963. +# will assume that the directory in which it is stored is
  49964. +# the $objdir directory. This is a cygwin/mingw-specific
  49965. +# behavior.
  49966. +func_emit_wrapper ()
  49967. +{
  49968. + func_emit_wrapper_arg1=no
  49969. + if test -n "$1" ; then
  49970. + func_emit_wrapper_arg1=$1
  49971. fi
  49972. - fi
  49973. -
  49974. - # Replace the output file specification.
  49975. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  49976. -
  49977. - # Delete the old output files.
  49978. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  49979. -
  49980. - $show "$link_command"
  49981. - $run eval "$link_command" || exit $?
  49982. - # Now create the wrapper script.
  49983. - $show "creating $output"
  49984. + # split this up so that func_emit_cwrapperexe_src
  49985. + # can call each part independently.
  49986. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  49987. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  49988. +}
  49989. - # Quote the relink command for shipping.
  49990. - if test -n "$relink_command"; then
  49991. - # Preserve any variables that may affect compiler behavior
  49992. - for var in $variables_saved_for_relink; do
  49993. - if eval test -z \"\${$var+set}\"; then
  49994. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  49995. - elif eval var_value=\$$var; test -z "$var_value"; then
  49996. - relink_command="$var=; export $var; $relink_command"
  49997. - else
  49998. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  49999. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  50000. - fi
  50001. - done
  50002. - relink_command="(cd `pwd`; $relink_command)"
  50003. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  50004. - fi
  50005. - # Quote $echo for shipping.
  50006. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  50007. - case $progpath in
  50008. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  50009. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  50010. - esac
  50011. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  50012. - else
  50013. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  50014. - fi
  50015. +# func_to_host_path arg
  50016. +#
  50017. +# Convert paths to host format when used with build tools.
  50018. +# Intended for use with "native" mingw (where libtool itself
  50019. +# is running under the msys shell), or in the following cross-
  50020. +# build environments:
  50021. +# $build $host
  50022. +# mingw (msys) mingw [e.g. native]
  50023. +# cygwin mingw
  50024. +# *nix + wine mingw
  50025. +# where wine is equipped with the `winepath' executable.
  50026. +# In the native mingw case, the (msys) shell automatically
  50027. +# converts paths for any non-msys applications it launches,
  50028. +# but that facility isn't available from inside the cwrapper.
  50029. +# Similar accommodations are necessary for $host mingw and
  50030. +# $build cygwin. Calling this function does no harm for other
  50031. +# $host/$build combinations not listed above.
  50032. +#
  50033. +# ARG is the path (on $build) that should be converted to
  50034. +# the proper representation for $host. The result is stored
  50035. +# in $func_to_host_path_result.
  50036. +func_to_host_path ()
  50037. +{
  50038. + func_to_host_path_result="$1"
  50039. + if test -n "$1" ; then
  50040. + case $host in
  50041. + *mingw* )
  50042. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  50043. + case $build in
  50044. + *mingw* ) # actually, msys
  50045. + # awkward: cmd appends spaces to result
  50046. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  50047. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  50048. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  50049. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50050. + $SED -e "$lt_sed_naive_backslashify"`
  50051. + ;;
  50052. + *cygwin* )
  50053. + func_to_host_path_tmp1=`cygpath -w "$1"`
  50054. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50055. + $SED -e "$lt_sed_naive_backslashify"`
  50056. + ;;
  50057. + * )
  50058. + # Unfortunately, winepath does not exit with a non-zero
  50059. + # error code, so we are forced to check the contents of
  50060. + # stdout. On the other hand, if the command is not
  50061. + # found, the shell will set an exit code of 127 and print
  50062. + # *an error message* to stdout. So we must check for both
  50063. + # error code of zero AND non-empty stdout, which explains
  50064. + # the odd construction:
  50065. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  50066. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  50067. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50068. + $SED -e "$lt_sed_naive_backslashify"`
  50069. + else
  50070. + # Allow warning below.
  50071. + func_to_host_path_result=""
  50072. + fi
  50073. + ;;
  50074. + esac
  50075. + if test -z "$func_to_host_path_result" ; then
  50076. + func_error "Could not determine host path corresponding to"
  50077. + func_error " '$1'"
  50078. + func_error "Continuing, but uninstalled executables may not work."
  50079. + # Fallback:
  50080. + func_to_host_path_result="$1"
  50081. + fi
  50082. + ;;
  50083. + esac
  50084. + fi
  50085. +}
  50086. +# end: func_to_host_path
  50087. - # Only actually do things if our run command is non-null.
  50088. - if test -z "$run"; then
  50089. - # win32 will think the script is a binary if it has
  50090. - # a .exe suffix, so we strip it off here.
  50091. - case $output in
  50092. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  50093. - esac
  50094. - # test for cygwin because mv fails w/o .exe extensions
  50095. - case $host in
  50096. - *cygwin*)
  50097. - exeext=.exe
  50098. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  50099. - *) exeext= ;;
  50100. - esac
  50101. - case $host in
  50102. - *cygwin* | *mingw* )
  50103. - cwrappersource=`$echo ${objdir}/lt-${output}.c`
  50104. - cwrapper=`$echo ${output}.exe`
  50105. - $rm $cwrappersource $cwrapper
  50106. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  50107. +# func_to_host_pathlist arg
  50108. +#
  50109. +# Convert pathlists to host format when used with build tools.
  50110. +# See func_to_host_path(), above. This function supports the
  50111. +# following $build/$host combinations (but does no harm for
  50112. +# combinations not listed here):
  50113. +# $build $host
  50114. +# mingw (msys) mingw [e.g. native]
  50115. +# cygwin mingw
  50116. +# *nix + wine mingw
  50117. +#
  50118. +# Path separators are also converted from $build format to
  50119. +# $host format. If ARG begins or ends with a path separator
  50120. +# character, it is preserved (but converted to $host format)
  50121. +# on output.
  50122. +#
  50123. +# ARG is a pathlist (on $build) that should be converted to
  50124. +# the proper representation on $host. The result is stored
  50125. +# in $func_to_host_pathlist_result.
  50126. +func_to_host_pathlist ()
  50127. +{
  50128. + func_to_host_pathlist_result="$1"
  50129. + if test -n "$1" ; then
  50130. + case $host in
  50131. + *mingw* )
  50132. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  50133. + # Remove leading and trailing path separator characters from
  50134. + # ARG. msys behavior is inconsistent here, cygpath turns them
  50135. + # into '.;' and ';.', and winepath ignores them completely.
  50136. + func_to_host_pathlist_tmp2="$1"
  50137. + # Once set for this call, this variable should not be
  50138. + # reassigned. It is used in tha fallback case.
  50139. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  50140. + $SED -e 's|^:*||' -e 's|:*$||'`
  50141. + case $build in
  50142. + *mingw* ) # Actually, msys.
  50143. + # Awkward: cmd appends spaces to result.
  50144. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  50145. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  50146. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  50147. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  50148. + $SED -e "$lt_sed_naive_backslashify"`
  50149. + ;;
  50150. + *cygwin* )
  50151. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  50152. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  50153. + $SED -e "$lt_sed_naive_backslashify"`
  50154. + ;;
  50155. + * )
  50156. + # unfortunately, winepath doesn't convert pathlists
  50157. + func_to_host_pathlist_result=""
  50158. + func_to_host_pathlist_oldIFS=$IFS
  50159. + IFS=:
  50160. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  50161. + IFS=$func_to_host_pathlist_oldIFS
  50162. + if test -n "$func_to_host_pathlist_f" ; then
  50163. + func_to_host_path "$func_to_host_pathlist_f"
  50164. + if test -n "$func_to_host_path_result" ; then
  50165. + if test -z "$func_to_host_pathlist_result" ; then
  50166. + func_to_host_pathlist_result="$func_to_host_path_result"
  50167. + else
  50168. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  50169. + fi
  50170. + fi
  50171. + fi
  50172. + IFS=:
  50173. + done
  50174. + IFS=$func_to_host_pathlist_oldIFS
  50175. + ;;
  50176. + esac
  50177. + if test -z "$func_to_host_pathlist_result" ; then
  50178. + func_error "Could not determine the host path(s) corresponding to"
  50179. + func_error " '$1'"
  50180. + func_error "Continuing, but uninstalled executables may not work."
  50181. + # Fallback. This may break if $1 contains DOS-style drive
  50182. + # specifications. The fix is not to complicate the expression
  50183. + # below, but for the user to provide a working wine installation
  50184. + # with winepath so that path translation in the cross-to-mingw
  50185. + # case works properly.
  50186. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  50187. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  50188. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  50189. + fi
  50190. + # Now, add the leading and trailing path separators back
  50191. + case "$1" in
  50192. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  50193. + ;;
  50194. + esac
  50195. + case "$1" in
  50196. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  50197. + ;;
  50198. + esac
  50199. + ;;
  50200. + esac
  50201. + fi
  50202. +}
  50203. +# end: func_to_host_pathlist
  50204. - cat > $cwrappersource <<EOF
  50205. +# func_emit_cwrapperexe_src
  50206. +# emit the source code for a wrapper executable on stdout
  50207. +# Must ONLY be called from within func_mode_link because
  50208. +# it depends on a number of variable set therein.
  50209. +func_emit_cwrapperexe_src ()
  50210. +{
  50211. + cat <<EOF
  50212. /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  50213. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  50214. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  50215. The $output program cannot be directly executed until all the libtool
  50216. libraries that it depends on are installed.
  50217. @@ -4602,18 +3142,40 @@
  50218. This wrapper executable should never be moved out of the build directory.
  50219. If it is, it will not operate correctly.
  50220. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  50221. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  50222. but could eventually absorb all of the scripts functionality and
  50223. exec $objdir/$outputname directly.
  50224. */
  50225. EOF
  50226. - cat >> $cwrappersource<<"EOF"
  50227. + cat <<"EOF"
  50228. #include <stdio.h>
  50229. #include <stdlib.h>
  50230. -#include <unistd.h>
  50231. +#ifdef _MSC_VER
  50232. +# include <direct.h>
  50233. +# include <process.h>
  50234. +# include <io.h>
  50235. +# define setmode _setmode
  50236. +#else
  50237. +# include <unistd.h>
  50238. +# include <stdint.h>
  50239. +# ifdef __CYGWIN__
  50240. +# include <io.h>
  50241. +# define HAVE_SETENV
  50242. +# ifdef __STRICT_ANSI__
  50243. +char *realpath (const char *, char *);
  50244. +int putenv (char *);
  50245. +int setenv (const char *, const char *, int);
  50246. +# endif
  50247. +# endif
  50248. +#endif
  50249. #include <malloc.h>
  50250. #include <stdarg.h>
  50251. #include <assert.h>
  50252. +#include <string.h>
  50253. +#include <ctype.h>
  50254. +#include <errno.h>
  50255. +#include <fcntl.h>
  50256. +#include <sys/stat.h>
  50257. #if defined(PATH_MAX)
  50258. # define LT_PATHMAX PATH_MAX
  50259. @@ -4623,154 +3185,657 @@
  50260. # define LT_PATHMAX 1024
  50261. #endif
  50262. +#ifndef S_IXOTH
  50263. +# define S_IXOTH 0
  50264. +#endif
  50265. +#ifndef S_IXGRP
  50266. +# define S_IXGRP 0
  50267. +#endif
  50268. +
  50269. +#ifdef _MSC_VER
  50270. +# define S_IXUSR _S_IEXEC
  50271. +# define stat _stat
  50272. +# ifndef _INTPTR_T_DEFINED
  50273. +# define intptr_t int
  50274. +# endif
  50275. +#endif
  50276. +
  50277. #ifndef DIR_SEPARATOR
  50278. -#define DIR_SEPARATOR '/'
  50279. +# define DIR_SEPARATOR '/'
  50280. +# define PATH_SEPARATOR ':'
  50281. #endif
  50282. #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  50283. defined (__OS2__)
  50284. -#define HAVE_DOS_BASED_FILE_SYSTEM
  50285. -#ifndef DIR_SEPARATOR_2
  50286. -#define DIR_SEPARATOR_2 '\\'
  50287. -#endif
  50288. +# define HAVE_DOS_BASED_FILE_SYSTEM
  50289. +# define FOPEN_WB "wb"
  50290. +# ifndef DIR_SEPARATOR_2
  50291. +# define DIR_SEPARATOR_2 '\\'
  50292. +# endif
  50293. +# ifndef PATH_SEPARATOR_2
  50294. +# define PATH_SEPARATOR_2 ';'
  50295. +# endif
  50296. #endif
  50297. #ifndef DIR_SEPARATOR_2
  50298. # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  50299. #else /* DIR_SEPARATOR_2 */
  50300. # define IS_DIR_SEPARATOR(ch) \
  50301. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  50302. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  50303. #endif /* DIR_SEPARATOR_2 */
  50304. +#ifndef PATH_SEPARATOR_2
  50305. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  50306. +#else /* PATH_SEPARATOR_2 */
  50307. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  50308. +#endif /* PATH_SEPARATOR_2 */
  50309. +
  50310. +#ifdef __CYGWIN__
  50311. +# define FOPEN_WB "wb"
  50312. +#endif
  50313. +
  50314. +#ifndef FOPEN_WB
  50315. +# define FOPEN_WB "w"
  50316. +#endif
  50317. +#ifndef _O_BINARY
  50318. +# define _O_BINARY 0
  50319. +#endif
  50320. +
  50321. #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  50322. #define XFREE(stale) do { \
  50323. if (stale) { free ((void *) stale); stale = 0; } \
  50324. } while (0)
  50325. +#undef LTWRAPPER_DEBUGPRINTF
  50326. +#if defined DEBUGWRAPPER
  50327. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  50328. +static void
  50329. +ltwrapper_debugprintf (const char *fmt, ...)
  50330. +{
  50331. + va_list args;
  50332. + va_start (args, fmt);
  50333. + (void) vfprintf (stderr, fmt, args);
  50334. + va_end (args);
  50335. +}
  50336. +#else
  50337. +# define LTWRAPPER_DEBUGPRINTF(args)
  50338. +#endif
  50339. +
  50340. const char *program_name = NULL;
  50341. -void * xmalloc (size_t num);
  50342. -char * xstrdup (const char *string);
  50343. -char * basename (const char *name);
  50344. -char * fnqualify(const char *path);
  50345. -char * strendzap(char *str, const char *pat);
  50346. +void *xmalloc (size_t num);
  50347. +char *xstrdup (const char *string);
  50348. +const char *base_name (const char *name);
  50349. +char *find_executable (const char *wrapper);
  50350. +char *chase_symlinks (const char *pathspec);
  50351. +int make_executable (const char *path);
  50352. +int check_executable (const char *path);
  50353. +char *strendzap (char *str, const char *pat);
  50354. void lt_fatal (const char *message, ...);
  50355. +void lt_setenv (const char *name, const char *value);
  50356. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  50357. +void lt_opt_process_env_set (const char *arg);
  50358. +void lt_opt_process_env_prepend (const char *arg);
  50359. +void lt_opt_process_env_append (const char *arg);
  50360. +int lt_split_name_value (const char *arg, char** name, char** value);
  50361. +void lt_update_exe_path (const char *name, const char *value);
  50362. +void lt_update_lib_path (const char *name, const char *value);
  50363. -int
  50364. -main (int argc, char *argv[])
  50365. -{
  50366. - char **newargz;
  50367. - int i;
  50368. +static const char *script_text_part1 =
  50369. +EOF
  50370. - program_name = (char *) xstrdup ((char *) basename (argv[0]));
  50371. - newargz = XMALLOC(char *, argc+2);
  50372. + func_emit_wrapper_part1 yes |
  50373. + $SED -e 's/\([\\"]\)/\\\1/g' \
  50374. + -e 's/^/ "/' -e 's/$/\\n"/'
  50375. + echo ";"
  50376. + cat <<EOF
  50377. +
  50378. +static const char *script_text_part2 =
  50379. +EOF
  50380. + func_emit_wrapper_part2 yes |
  50381. + $SED -e 's/\([\\"]\)/\\\1/g' \
  50382. + -e 's/^/ "/' -e 's/$/\\n"/'
  50383. + echo ";"
  50384. +
  50385. + cat <<EOF
  50386. +const char * MAGIC_EXE = "$magic_exe";
  50387. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  50388. EOF
  50389. - cat >> $cwrappersource <<EOF
  50390. - newargz[0] = "$SHELL";
  50391. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  50392. + func_to_host_pathlist "$temp_rpath"
  50393. + cat <<EOF
  50394. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  50395. +EOF
  50396. + else
  50397. + cat <<"EOF"
  50398. +const char * LIB_PATH_VALUE = "";
  50399. EOF
  50400. + fi
  50401. - cat >> $cwrappersource <<"EOF"
  50402. - newargz[1] = fnqualify(argv[0]);
  50403. - /* we know the script has the same name, without the .exe */
  50404. - /* so make sure newargz[1] doesn't end in .exe */
  50405. - strendzap(newargz[1],".exe");
  50406. - for (i = 1; i < argc; i++)
  50407. - newargz[i+1] = xstrdup(argv[i]);
  50408. - newargz[argc+1] = NULL;
  50409. + if test -n "$dllsearchpath"; then
  50410. + func_to_host_pathlist "$dllsearchpath:"
  50411. + cat <<EOF
  50412. +const char * EXE_PATH_VARNAME = "PATH";
  50413. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  50414. +EOF
  50415. + else
  50416. + cat <<"EOF"
  50417. +const char * EXE_PATH_VARNAME = "";
  50418. +const char * EXE_PATH_VALUE = "";
  50419. EOF
  50420. + fi
  50421. - cat >> $cwrappersource <<EOF
  50422. - execv("$SHELL",newargz);
  50423. + if test "$fast_install" = yes; then
  50424. + cat <<EOF
  50425. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  50426. +EOF
  50427. + else
  50428. + cat <<EOF
  50429. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  50430. EOF
  50431. + fi
  50432. - cat >> $cwrappersource <<"EOF"
  50433. -}
  50434. -void *
  50435. -xmalloc (size_t num)
  50436. -{
  50437. - void * p = (void *) malloc (num);
  50438. - if (!p)
  50439. - lt_fatal ("Memory exhausted");
  50440. + cat <<"EOF"
  50441. - return p;
  50442. -}
  50443. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  50444. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  50445. -char *
  50446. -xstrdup (const char *string)
  50447. -{
  50448. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  50449. -;
  50450. -}
  50451. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  50452. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  50453. -char *
  50454. -basename (const char *name)
  50455. -{
  50456. - const char *base;
  50457. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  50458. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  50459. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  50460. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  50461. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  50462. +
  50463. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  50464. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  50465. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  50466. +
  50467. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  50468. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  50469. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  50470. +
  50471. +int
  50472. +main (int argc, char *argv[])
  50473. +{
  50474. + char **newargz;
  50475. + int newargc;
  50476. + char *tmp_pathspec;
  50477. + char *actual_cwrapper_path;
  50478. + char *actual_cwrapper_name;
  50479. + char *target_name;
  50480. + char *lt_argv_zero;
  50481. + intptr_t rval = 127;
  50482. +
  50483. + int i;
  50484. +
  50485. + program_name = (char *) xstrdup (base_name (argv[0]));
  50486. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  50487. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  50488. +
  50489. + /* very simple arg parsing; don't want to rely on getopt */
  50490. + for (i = 1; i < argc; i++)
  50491. + {
  50492. + if (strcmp (argv[i], dumpscript_opt) == 0)
  50493. + {
  50494. +EOF
  50495. + case "$host" in
  50496. + *mingw* | *cygwin* )
  50497. + # make stdout use "unix" line endings
  50498. + echo " setmode(1,_O_BINARY);"
  50499. + ;;
  50500. + esac
  50501. +
  50502. + cat <<"EOF"
  50503. + printf ("%s", script_text_part1);
  50504. + printf ("%s", script_text_part2);
  50505. + return 0;
  50506. + }
  50507. + }
  50508. +
  50509. + newargz = XMALLOC (char *, argc + 1);
  50510. + tmp_pathspec = find_executable (argv[0]);
  50511. + if (tmp_pathspec == NULL)
  50512. + lt_fatal ("Couldn't find %s", argv[0]);
  50513. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  50514. + tmp_pathspec));
  50515. +
  50516. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  50517. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  50518. + actual_cwrapper_path));
  50519. + XFREE (tmp_pathspec);
  50520. +
  50521. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  50522. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  50523. +
  50524. + /* wrapper name transforms */
  50525. + strendzap (actual_cwrapper_name, ".exe");
  50526. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  50527. + XFREE (actual_cwrapper_name);
  50528. + actual_cwrapper_name = tmp_pathspec;
  50529. + tmp_pathspec = 0;
  50530. +
  50531. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  50532. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  50533. + strendzap (target_name, ".exe");
  50534. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  50535. + XFREE (target_name);
  50536. + target_name = tmp_pathspec;
  50537. + tmp_pathspec = 0;
  50538. +
  50539. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  50540. + target_name));
  50541. +EOF
  50542. +
  50543. + cat <<EOF
  50544. + newargz[0] =
  50545. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  50546. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  50547. + strcpy (newargz[0], actual_cwrapper_path);
  50548. + strcat (newargz[0], "$objdir");
  50549. + strcat (newargz[0], "/");
  50550. +EOF
  50551. +
  50552. + cat <<"EOF"
  50553. + /* stop here, and copy so we don't have to do this twice */
  50554. + tmp_pathspec = xstrdup (newargz[0]);
  50555. +
  50556. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  50557. + strcat (newargz[0], actual_cwrapper_name);
  50558. +
  50559. + /* DO want the lt- prefix here if it exists, so use target_name */
  50560. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  50561. + XFREE (tmp_pathspec);
  50562. + tmp_pathspec = NULL;
  50563. +EOF
  50564. +
  50565. + case $host_os in
  50566. + mingw*)
  50567. + cat <<"EOF"
  50568. + {
  50569. + char* p;
  50570. + while ((p = strchr (newargz[0], '\\')) != NULL)
  50571. + {
  50572. + *p = '/';
  50573. + }
  50574. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  50575. + {
  50576. + *p = '/';
  50577. + }
  50578. + }
  50579. +EOF
  50580. + ;;
  50581. + esac
  50582. +
  50583. + cat <<"EOF"
  50584. + XFREE (target_name);
  50585. + XFREE (actual_cwrapper_path);
  50586. + XFREE (actual_cwrapper_name);
  50587. +
  50588. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  50589. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  50590. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  50591. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  50592. +
  50593. + newargc=0;
  50594. + for (i = 1; i < argc; i++)
  50595. + {
  50596. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  50597. + {
  50598. + if (argv[i][env_set_opt_len] == '=')
  50599. + {
  50600. + const char *p = argv[i] + env_set_opt_len + 1;
  50601. + lt_opt_process_env_set (p);
  50602. + }
  50603. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  50604. + {
  50605. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  50606. + }
  50607. + else
  50608. + lt_fatal ("%s missing required argument", env_set_opt);
  50609. + continue;
  50610. + }
  50611. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  50612. + {
  50613. + if (argv[i][env_prepend_opt_len] == '=')
  50614. + {
  50615. + const char *p = argv[i] + env_prepend_opt_len + 1;
  50616. + lt_opt_process_env_prepend (p);
  50617. + }
  50618. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  50619. + {
  50620. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  50621. + }
  50622. + else
  50623. + lt_fatal ("%s missing required argument", env_prepend_opt);
  50624. + continue;
  50625. + }
  50626. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  50627. + {
  50628. + if (argv[i][env_append_opt_len] == '=')
  50629. + {
  50630. + const char *p = argv[i] + env_append_opt_len + 1;
  50631. + lt_opt_process_env_append (p);
  50632. + }
  50633. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  50634. + {
  50635. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  50636. + }
  50637. + else
  50638. + lt_fatal ("%s missing required argument", env_append_opt);
  50639. + continue;
  50640. + }
  50641. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  50642. + {
  50643. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  50644. + namespace, but it is not one of the ones we know about and
  50645. + have already dealt with, above (inluding dump-script), then
  50646. + report an error. Otherwise, targets might begin to believe
  50647. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  50648. + namespace. The first time any user complains about this, we'll
  50649. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  50650. + or a configure.ac-settable value.
  50651. + */
  50652. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  50653. + ltwrapper_option_prefix, argv[i]);
  50654. + }
  50655. + /* otherwise ... */
  50656. + newargz[++newargc] = xstrdup (argv[i]);
  50657. + }
  50658. + newargz[++newargc] = NULL;
  50659. +
  50660. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  50661. + for (i = 0; i < newargc; i++)
  50662. + {
  50663. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  50664. + }
  50665. +
  50666. +EOF
  50667. +
  50668. + case $host_os in
  50669. + mingw*)
  50670. + cat <<"EOF"
  50671. + /* execv doesn't actually work on mingw as expected on unix */
  50672. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  50673. + if (rval == -1)
  50674. + {
  50675. + /* failed to start process */
  50676. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  50677. + return 127;
  50678. + }
  50679. + return rval;
  50680. +EOF
  50681. + ;;
  50682. + *)
  50683. + cat <<"EOF"
  50684. + execv (lt_argv_zero, newargz);
  50685. + return rval; /* =127, but avoids unused variable warning */
  50686. +EOF
  50687. + ;;
  50688. + esac
  50689. +
  50690. + cat <<"EOF"
  50691. +}
  50692. +
  50693. +void *
  50694. +xmalloc (size_t num)
  50695. +{
  50696. + void *p = (void *) malloc (num);
  50697. + if (!p)
  50698. + lt_fatal ("Memory exhausted");
  50699. +
  50700. + return p;
  50701. +}
  50702. +
  50703. +char *
  50704. +xstrdup (const char *string)
  50705. +{
  50706. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  50707. + string) : NULL;
  50708. +}
  50709. +
  50710. +const char *
  50711. +base_name (const char *name)
  50712. +{
  50713. + const char *base;
  50714. +
  50715. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  50716. /* Skip over the disk name in MSDOS pathnames. */
  50717. - if (isalpha (name[0]) && name[1] == ':')
  50718. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  50719. name += 2;
  50720. #endif
  50721. for (base = name; *name; name++)
  50722. if (IS_DIR_SEPARATOR (*name))
  50723. base = name + 1;
  50724. - return (char *) base;
  50725. + return base;
  50726. +}
  50727. +
  50728. +int
  50729. +check_executable (const char *path)
  50730. +{
  50731. + struct stat st;
  50732. +
  50733. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  50734. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  50735. + if ((!path) || (!*path))
  50736. + return 0;
  50737. +
  50738. + if ((stat (path, &st) >= 0)
  50739. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  50740. + return 1;
  50741. + else
  50742. + return 0;
  50743. +}
  50744. +
  50745. +int
  50746. +make_executable (const char *path)
  50747. +{
  50748. + int rval = 0;
  50749. + struct stat st;
  50750. +
  50751. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  50752. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  50753. + if ((!path) || (!*path))
  50754. + return 0;
  50755. +
  50756. + if (stat (path, &st) >= 0)
  50757. + {
  50758. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  50759. + }
  50760. + return rval;
  50761. }
  50762. +/* Searches for the full path of the wrapper. Returns
  50763. + newly allocated full path name if found, NULL otherwise
  50764. + Does not chase symlinks, even on platforms that support them.
  50765. +*/
  50766. char *
  50767. -fnqualify(const char *path)
  50768. +find_executable (const char *wrapper)
  50769. {
  50770. - size_t size;
  50771. - char *p;
  50772. + int has_slash = 0;
  50773. + const char *p;
  50774. + const char *p_next;
  50775. + /* static buffer for getcwd */
  50776. char tmp[LT_PATHMAX + 1];
  50777. + int tmp_len;
  50778. + char *concat_name;
  50779. - assert(path != NULL);
  50780. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  50781. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  50782. - /* Is it qualified already? */
  50783. + if ((wrapper == NULL) || (*wrapper == '\0'))
  50784. + return NULL;
  50785. +
  50786. + /* Absolute path? */
  50787. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  50788. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  50789. + {
  50790. + concat_name = xstrdup (wrapper);
  50791. + if (check_executable (concat_name))
  50792. + return concat_name;
  50793. + XFREE (concat_name);
  50794. + }
  50795. + else
  50796. + {
  50797. +#endif
  50798. + if (IS_DIR_SEPARATOR (wrapper[0]))
  50799. + {
  50800. + concat_name = xstrdup (wrapper);
  50801. + if (check_executable (concat_name))
  50802. + return concat_name;
  50803. + XFREE (concat_name);
  50804. + }
  50805. #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  50806. - if (isalpha (path[0]) && path[1] == ':')
  50807. - return xstrdup (path);
  50808. + }
  50809. #endif
  50810. - if (IS_DIR_SEPARATOR (path[0]))
  50811. - return xstrdup (path);
  50812. - /* prepend the current directory */
  50813. - /* doesn't handle '~' */
  50814. + for (p = wrapper; *p; p++)
  50815. + if (*p == '/')
  50816. + {
  50817. + has_slash = 1;
  50818. + break;
  50819. + }
  50820. + if (!has_slash)
  50821. + {
  50822. + /* no slashes; search PATH */
  50823. + const char *path = getenv ("PATH");
  50824. + if (path != NULL)
  50825. + {
  50826. + for (p = path; *p; p = p_next)
  50827. + {
  50828. + const char *q;
  50829. + size_t p_len;
  50830. + for (q = p; *q; q++)
  50831. + if (IS_PATH_SEPARATOR (*q))
  50832. + break;
  50833. + p_len = q - p;
  50834. + p_next = (*q == '\0' ? q : q + 1);
  50835. + if (p_len == 0)
  50836. + {
  50837. + /* empty path: current directory */
  50838. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  50839. + lt_fatal ("getcwd failed");
  50840. + tmp_len = strlen (tmp);
  50841. + concat_name =
  50842. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  50843. + memcpy (concat_name, tmp, tmp_len);
  50844. + concat_name[tmp_len] = '/';
  50845. + strcpy (concat_name + tmp_len + 1, wrapper);
  50846. + }
  50847. + else
  50848. + {
  50849. + concat_name =
  50850. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  50851. + memcpy (concat_name, p, p_len);
  50852. + concat_name[p_len] = '/';
  50853. + strcpy (concat_name + p_len + 1, wrapper);
  50854. + }
  50855. + if (check_executable (concat_name))
  50856. + return concat_name;
  50857. + XFREE (concat_name);
  50858. + }
  50859. + }
  50860. + /* not found in PATH; assume curdir */
  50861. + }
  50862. + /* Relative path | not found in path: prepend cwd */
  50863. if (getcwd (tmp, LT_PATHMAX) == NULL)
  50864. lt_fatal ("getcwd failed");
  50865. - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
  50866. - p = XMALLOC(char, size);
  50867. - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
  50868. - return p;
  50869. + tmp_len = strlen (tmp);
  50870. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  50871. + memcpy (concat_name, tmp, tmp_len);
  50872. + concat_name[tmp_len] = '/';
  50873. + strcpy (concat_name + tmp_len + 1, wrapper);
  50874. +
  50875. + if (check_executable (concat_name))
  50876. + return concat_name;
  50877. + XFREE (concat_name);
  50878. + return NULL;
  50879. }
  50880. char *
  50881. -strendzap(char *str, const char *pat)
  50882. +chase_symlinks (const char *pathspec)
  50883. +{
  50884. +#ifndef S_ISLNK
  50885. + return xstrdup (pathspec);
  50886. +#else
  50887. + char buf[LT_PATHMAX];
  50888. + struct stat s;
  50889. + char *tmp_pathspec = xstrdup (pathspec);
  50890. + char *p;
  50891. + int has_symlinks = 0;
  50892. + while (strlen (tmp_pathspec) && !has_symlinks)
  50893. + {
  50894. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  50895. + tmp_pathspec));
  50896. + if (lstat (tmp_pathspec, &s) == 0)
  50897. + {
  50898. + if (S_ISLNK (s.st_mode) != 0)
  50899. + {
  50900. + has_symlinks = 1;
  50901. + break;
  50902. + }
  50903. +
  50904. + /* search backwards for last DIR_SEPARATOR */
  50905. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  50906. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  50907. + p--;
  50908. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  50909. + {
  50910. + /* no more DIR_SEPARATORS left */
  50911. + break;
  50912. + }
  50913. + *p = '\0';
  50914. + }
  50915. + else
  50916. + {
  50917. + char *errstr = strerror (errno);
  50918. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  50919. + }
  50920. + }
  50921. + XFREE (tmp_pathspec);
  50922. +
  50923. + if (!has_symlinks)
  50924. + {
  50925. + return xstrdup (pathspec);
  50926. + }
  50927. +
  50928. + tmp_pathspec = realpath (pathspec, buf);
  50929. + if (tmp_pathspec == 0)
  50930. + {
  50931. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  50932. + }
  50933. + return xstrdup (tmp_pathspec);
  50934. +#endif
  50935. +}
  50936. +
  50937. +char *
  50938. +strendzap (char *str, const char *pat)
  50939. {
  50940. size_t len, patlen;
  50941. - assert(str != NULL);
  50942. - assert(pat != NULL);
  50943. + assert (str != NULL);
  50944. + assert (pat != NULL);
  50945. - len = strlen(str);
  50946. - patlen = strlen(pat);
  50947. + len = strlen (str);
  50948. + patlen = strlen (pat);
  50949. if (patlen <= len)
  50950. - {
  50951. - str += len - patlen;
  50952. - if (strcmp(str, pat) == 0)
  50953. - *str = '\0';
  50954. - }
  50955. + {
  50956. + str += len - patlen;
  50957. + if (strcmp (str, pat) == 0)
  50958. + *str = '\0';
  50959. + }
  50960. return str;
  50961. }
  50962. static void
  50963. -lt_error_core (int exit_status, const char * mode,
  50964. - const char * message, va_list ap)
  50965. +lt_error_core (int exit_status, const char *mode,
  50966. + const char *message, va_list ap)
  50967. {
  50968. fprintf (stderr, "%s: %s: ", program_name, mode);
  50969. vfprintf (stderr, message, ap);
  50970. @@ -4788,1230 +3853,4351 @@
  50971. lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  50972. va_end (ap);
  50973. }
  50974. +
  50975. +void
  50976. +lt_setenv (const char *name, const char *value)
  50977. +{
  50978. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  50979. + (name ? name : "<NULL>"),
  50980. + (value ? value : "<NULL>")));
  50981. + {
  50982. +#ifdef HAVE_SETENV
  50983. + /* always make a copy, for consistency with !HAVE_SETENV */
  50984. + char *str = xstrdup (value);
  50985. + setenv (name, str, 1);
  50986. +#else
  50987. + int len = strlen (name) + 1 + strlen (value) + 1;
  50988. + char *str = XMALLOC (char, len);
  50989. + sprintf (str, "%s=%s", name, value);
  50990. + if (putenv (str) != EXIT_SUCCESS)
  50991. + {
  50992. + XFREE (str);
  50993. + }
  50994. +#endif
  50995. + }
  50996. +}
  50997. +
  50998. +char *
  50999. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  51000. +{
  51001. + char *new_value;
  51002. + if (orig_value && *orig_value)
  51003. + {
  51004. + int orig_value_len = strlen (orig_value);
  51005. + int add_len = strlen (add);
  51006. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  51007. + if (to_end)
  51008. + {
  51009. + strcpy (new_value, orig_value);
  51010. + strcpy (new_value + orig_value_len, add);
  51011. + }
  51012. + else
  51013. + {
  51014. + strcpy (new_value, add);
  51015. + strcpy (new_value + add_len, orig_value);
  51016. + }
  51017. + }
  51018. + else
  51019. + {
  51020. + new_value = xstrdup (add);
  51021. + }
  51022. + return new_value;
  51023. +}
  51024. +
  51025. +int
  51026. +lt_split_name_value (const char *arg, char** name, char** value)
  51027. +{
  51028. + const char *p;
  51029. + int len;
  51030. + if (!arg || !*arg)
  51031. + return 1;
  51032. +
  51033. + p = strchr (arg, (int)'=');
  51034. +
  51035. + if (!p)
  51036. + return 1;
  51037. +
  51038. + *value = xstrdup (++p);
  51039. +
  51040. + len = strlen (arg) - strlen (*value);
  51041. + *name = XMALLOC (char, len);
  51042. + strncpy (*name, arg, len-1);
  51043. + (*name)[len - 1] = '\0';
  51044. +
  51045. + return 0;
  51046. +}
  51047. +
  51048. +void
  51049. +lt_opt_process_env_set (const char *arg)
  51050. +{
  51051. + char *name = NULL;
  51052. + char *value = NULL;
  51053. +
  51054. + if (lt_split_name_value (arg, &name, &value) != 0)
  51055. + {
  51056. + XFREE (name);
  51057. + XFREE (value);
  51058. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  51059. + }
  51060. +
  51061. + lt_setenv (name, value);
  51062. + XFREE (name);
  51063. + XFREE (value);
  51064. +}
  51065. +
  51066. +void
  51067. +lt_opt_process_env_prepend (const char *arg)
  51068. +{
  51069. + char *name = NULL;
  51070. + char *value = NULL;
  51071. + char *new_value = NULL;
  51072. +
  51073. + if (lt_split_name_value (arg, &name, &value) != 0)
  51074. + {
  51075. + XFREE (name);
  51076. + XFREE (value);
  51077. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  51078. + }
  51079. +
  51080. + new_value = lt_extend_str (getenv (name), value, 0);
  51081. + lt_setenv (name, new_value);
  51082. + XFREE (new_value);
  51083. + XFREE (name);
  51084. + XFREE (value);
  51085. +}
  51086. +
  51087. +void
  51088. +lt_opt_process_env_append (const char *arg)
  51089. +{
  51090. + char *name = NULL;
  51091. + char *value = NULL;
  51092. + char *new_value = NULL;
  51093. +
  51094. + if (lt_split_name_value (arg, &name, &value) != 0)
  51095. + {
  51096. + XFREE (name);
  51097. + XFREE (value);
  51098. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  51099. + }
  51100. +
  51101. + new_value = lt_extend_str (getenv (name), value, 1);
  51102. + lt_setenv (name, new_value);
  51103. + XFREE (new_value);
  51104. + XFREE (name);
  51105. + XFREE (value);
  51106. +}
  51107. +
  51108. +void
  51109. +lt_update_exe_path (const char *name, const char *value)
  51110. +{
  51111. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  51112. + (name ? name : "<NULL>"),
  51113. + (value ? value : "<NULL>")));
  51114. +
  51115. + if (name && *name && value && *value)
  51116. + {
  51117. + char *new_value = lt_extend_str (getenv (name), value, 0);
  51118. + /* some systems can't cope with a ':'-terminated path #' */
  51119. + int len = strlen (new_value);
  51120. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  51121. + {
  51122. + new_value[len-1] = '\0';
  51123. + }
  51124. + lt_setenv (name, new_value);
  51125. + XFREE (new_value);
  51126. + }
  51127. +}
  51128. +
  51129. +void
  51130. +lt_update_lib_path (const char *name, const char *value)
  51131. +{
  51132. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  51133. + (name ? name : "<NULL>"),
  51134. + (value ? value : "<NULL>")));
  51135. +
  51136. + if (name && *name && value && *value)
  51137. + {
  51138. + char *new_value = lt_extend_str (getenv (name), value, 0);
  51139. + lt_setenv (name, new_value);
  51140. + XFREE (new_value);
  51141. + }
  51142. +}
  51143. +
  51144. +
  51145. EOF
  51146. - # we should really use a build-platform specific compiler
  51147. - # here, but OTOH, the wrappers (shell script and this C one)
  51148. - # are only useful if you want to execute the "real" binary.
  51149. - # Since the "real" binary is built for $host, then this
  51150. - # wrapper might as well be built for $host, too.
  51151. - $run $LTCC -s -o $cwrapper $cwrappersource
  51152. +}
  51153. +# end: func_emit_cwrapperexe_src
  51154. +
  51155. +# func_mode_link arg...
  51156. +func_mode_link ()
  51157. +{
  51158. + $opt_debug
  51159. + case $host in
  51160. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  51161. + # It is impossible to link a dll without this setting, and
  51162. + # we shouldn't force the makefile maintainer to figure out
  51163. + # which system we are compiling for in order to pass an extra
  51164. + # flag for every libtool invocation.
  51165. + # allow_undefined=no
  51166. +
  51167. + # FIXME: Unfortunately, there are problems with the above when trying
  51168. + # to make a dll which has undefined symbols, in which case not
  51169. + # even a static library is built. For now, we need to specify
  51170. + # -no-undefined on the libtool link line when we can be certain
  51171. + # that all symbols are satisfied, otherwise we get a static library.
  51172. + allow_undefined=yes
  51173. + ;;
  51174. + *)
  51175. + allow_undefined=yes
  51176. + ;;
  51177. + esac
  51178. + libtool_args=$nonopt
  51179. + base_compile="$nonopt $@"
  51180. + compile_command=$nonopt
  51181. + finalize_command=$nonopt
  51182. +
  51183. + compile_rpath=
  51184. + finalize_rpath=
  51185. + compile_shlibpath=
  51186. + finalize_shlibpath=
  51187. + convenience=
  51188. + old_convenience=
  51189. + deplibs=
  51190. + old_deplibs=
  51191. + compiler_flags=
  51192. + linker_flags=
  51193. + dllsearchpath=
  51194. + lib_search_path=`pwd`
  51195. + inst_prefix_dir=
  51196. + new_inherited_linker_flags=
  51197. +
  51198. + avoid_version=no
  51199. + dlfiles=
  51200. + dlprefiles=
  51201. + dlself=no
  51202. + export_dynamic=no
  51203. + export_symbols=
  51204. + export_symbols_regex=
  51205. + generated=
  51206. + libobjs=
  51207. + ltlibs=
  51208. + module=no
  51209. + no_install=no
  51210. + objs=
  51211. + non_pic_objects=
  51212. + precious_files_regex=
  51213. + prefer_static_libs=no
  51214. + preload=no
  51215. + prev=
  51216. + prevarg=
  51217. + release=
  51218. + rpath=
  51219. + xrpath=
  51220. + perm_rpath=
  51221. + temp_rpath=
  51222. + thread_safe=no
  51223. + vinfo=
  51224. + vinfo_number=no
  51225. + weak_libs=
  51226. + single_module="${wl}-single_module"
  51227. + func_infer_tag $base_compile
  51228. +
  51229. + # We need to know -static, to get the right output filenames.
  51230. + for arg
  51231. + do
  51232. + case $arg in
  51233. + -shared)
  51234. + test "$build_libtool_libs" != yes && \
  51235. + func_fatal_configuration "can not build a shared library"
  51236. + build_old_libs=no
  51237. + break
  51238. + ;;
  51239. + -all-static | -static | -static-libtool-libs)
  51240. + case $arg in
  51241. + -all-static)
  51242. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  51243. + func_warning "complete static linking is impossible in this configuration"
  51244. + fi
  51245. + if test -n "$link_static_flag"; then
  51246. + dlopen_self=$dlopen_self_static
  51247. + fi
  51248. + prefer_static_libs=yes
  51249. + ;;
  51250. + -static)
  51251. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  51252. + dlopen_self=$dlopen_self_static
  51253. + fi
  51254. + prefer_static_libs=built
  51255. + ;;
  51256. + -static-libtool-libs)
  51257. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  51258. + dlopen_self=$dlopen_self_static
  51259. + fi
  51260. + prefer_static_libs=yes
  51261. + ;;
  51262. + esac
  51263. + build_libtool_libs=no
  51264. + build_old_libs=yes
  51265. + break
  51266. + ;;
  51267. + esac
  51268. + done
  51269. +
  51270. + # See if our shared archives depend on static archives.
  51271. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  51272. +
  51273. + # Go through the arguments, transforming them on the way.
  51274. + while test "$#" -gt 0; do
  51275. + arg="$1"
  51276. + shift
  51277. + func_quote_for_eval "$arg"
  51278. + qarg=$func_quote_for_eval_unquoted_result
  51279. + func_append libtool_args " $func_quote_for_eval_result"
  51280. +
  51281. + # If the previous option needs an argument, assign it.
  51282. + if test -n "$prev"; then
  51283. + case $prev in
  51284. + output)
  51285. + func_append compile_command " @OUTPUT@"
  51286. + func_append finalize_command " @OUTPUT@"
  51287. + ;;
  51288. + esac
  51289. +
  51290. + case $prev in
  51291. + dlfiles|dlprefiles)
  51292. + if test "$preload" = no; then
  51293. + # Add the symbol object into the linking commands.
  51294. + func_append compile_command " @SYMFILE@"
  51295. + func_append finalize_command " @SYMFILE@"
  51296. + preload=yes
  51297. + fi
  51298. + case $arg in
  51299. + *.la | *.lo) ;; # We handle these cases below.
  51300. + force)
  51301. + if test "$dlself" = no; then
  51302. + dlself=needless
  51303. + export_dynamic=yes
  51304. + fi
  51305. + prev=
  51306. + continue
  51307. + ;;
  51308. + self)
  51309. + if test "$prev" = dlprefiles; then
  51310. + dlself=yes
  51311. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  51312. + dlself=yes
  51313. + else
  51314. + dlself=needless
  51315. + export_dynamic=yes
  51316. + fi
  51317. + prev=
  51318. + continue
  51319. + ;;
  51320. + *)
  51321. + if test "$prev" = dlfiles; then
  51322. + dlfiles="$dlfiles $arg"
  51323. + else
  51324. + dlprefiles="$dlprefiles $arg"
  51325. + fi
  51326. + prev=
  51327. + continue
  51328. + ;;
  51329. + esac
  51330. + ;;
  51331. + expsyms)
  51332. + export_symbols="$arg"
  51333. + test -f "$arg" \
  51334. + || func_fatal_error "symbol file \`$arg' does not exist"
  51335. + prev=
  51336. + continue
  51337. + ;;
  51338. + expsyms_regex)
  51339. + export_symbols_regex="$arg"
  51340. + prev=
  51341. + continue
  51342. + ;;
  51343. + framework)
  51344. + case $host in
  51345. + *-*-darwin*)
  51346. + case "$deplibs " in
  51347. + *" $qarg.ltframework "*) ;;
  51348. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  51349. + ;;
  51350. + esac
  51351. + ;;
  51352. + esac
  51353. + prev=
  51354. + continue
  51355. + ;;
  51356. + inst_prefix)
  51357. + inst_prefix_dir="$arg"
  51358. + prev=
  51359. + continue
  51360. + ;;
  51361. + objectlist)
  51362. + if test -f "$arg"; then
  51363. + save_arg=$arg
  51364. + moreargs=
  51365. + for fil in `cat "$save_arg"`
  51366. + do
  51367. +# moreargs="$moreargs $fil"
  51368. + arg=$fil
  51369. + # A libtool-controlled object.
  51370. +
  51371. + # Check to see that this really is a libtool object.
  51372. + if func_lalib_unsafe_p "$arg"; then
  51373. + pic_object=
  51374. + non_pic_object=
  51375. +
  51376. + # Read the .lo file
  51377. + func_source "$arg"
  51378. +
  51379. + if test -z "$pic_object" ||
  51380. + test -z "$non_pic_object" ||
  51381. + test "$pic_object" = none &&
  51382. + test "$non_pic_object" = none; then
  51383. + func_fatal_error "cannot find name of object for \`$arg'"
  51384. + fi
  51385. +
  51386. + # Extract subdirectory from the argument.
  51387. + func_dirname "$arg" "/" ""
  51388. + xdir="$func_dirname_result"
  51389. +
  51390. + if test "$pic_object" != none; then
  51391. + # Prepend the subdirectory the object is found in.
  51392. + pic_object="$xdir$pic_object"
  51393. +
  51394. + if test "$prev" = dlfiles; then
  51395. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  51396. + dlfiles="$dlfiles $pic_object"
  51397. + prev=
  51398. + continue
  51399. + else
  51400. + # If libtool objects are unsupported, then we need to preload.
  51401. + prev=dlprefiles
  51402. + fi
  51403. + fi
  51404. +
  51405. + # CHECK ME: I think I busted this. -Ossama
  51406. + if test "$prev" = dlprefiles; then
  51407. + # Preload the old-style object.
  51408. + dlprefiles="$dlprefiles $pic_object"
  51409. + prev=
  51410. + fi
  51411. +
  51412. + # A PIC object.
  51413. + func_append libobjs " $pic_object"
  51414. + arg="$pic_object"
  51415. + fi
  51416. +
  51417. + # Non-PIC object.
  51418. + if test "$non_pic_object" != none; then
  51419. + # Prepend the subdirectory the object is found in.
  51420. + non_pic_object="$xdir$non_pic_object"
  51421. +
  51422. + # A standard non-PIC object
  51423. + func_append non_pic_objects " $non_pic_object"
  51424. + if test -z "$pic_object" || test "$pic_object" = none ; then
  51425. + arg="$non_pic_object"
  51426. + fi
  51427. + else
  51428. + # If the PIC object exists, use it instead.
  51429. + # $xdir was prepended to $pic_object above.
  51430. + non_pic_object="$pic_object"
  51431. + func_append non_pic_objects " $non_pic_object"
  51432. + fi
  51433. + else
  51434. + # Only an error if not doing a dry-run.
  51435. + if $opt_dry_run; then
  51436. + # Extract subdirectory from the argument.
  51437. + func_dirname "$arg" "/" ""
  51438. + xdir="$func_dirname_result"
  51439. +
  51440. + func_lo2o "$arg"
  51441. + pic_object=$xdir$objdir/$func_lo2o_result
  51442. + non_pic_object=$xdir$func_lo2o_result
  51443. + func_append libobjs " $pic_object"
  51444. + func_append non_pic_objects " $non_pic_object"
  51445. + else
  51446. + func_fatal_error "\`$arg' is not a valid libtool object"
  51447. + fi
  51448. + fi
  51449. + done
  51450. + else
  51451. + func_fatal_error "link input file \`$arg' does not exist"
  51452. + fi
  51453. + arg=$save_arg
  51454. + prev=
  51455. + continue
  51456. + ;;
  51457. + precious_regex)
  51458. + precious_files_regex="$arg"
  51459. + prev=
  51460. + continue
  51461. + ;;
  51462. + release)
  51463. + release="-$arg"
  51464. + prev=
  51465. + continue
  51466. + ;;
  51467. + rpath | xrpath)
  51468. + # We need an absolute path.
  51469. + case $arg in
  51470. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  51471. + *)
  51472. + func_fatal_error "only absolute run-paths are allowed"
  51473. + ;;
  51474. + esac
  51475. + if test "$prev" = rpath; then
  51476. + case "$rpath " in
  51477. + *" $arg "*) ;;
  51478. + *) rpath="$rpath $arg" ;;
  51479. + esac
  51480. + else
  51481. + case "$xrpath " in
  51482. + *" $arg "*) ;;
  51483. + *) xrpath="$xrpath $arg" ;;
  51484. + esac
  51485. + fi
  51486. + prev=
  51487. + continue
  51488. + ;;
  51489. + shrext)
  51490. + shrext_cmds="$arg"
  51491. + prev=
  51492. + continue
  51493. + ;;
  51494. + weak)
  51495. + weak_libs="$weak_libs $arg"
  51496. + prev=
  51497. + continue
  51498. + ;;
  51499. + xcclinker)
  51500. + linker_flags="$linker_flags $qarg"
  51501. + compiler_flags="$compiler_flags $qarg"
  51502. + prev=
  51503. + func_append compile_command " $qarg"
  51504. + func_append finalize_command " $qarg"
  51505. + continue
  51506. + ;;
  51507. + xcompiler)
  51508. + compiler_flags="$compiler_flags $qarg"
  51509. + prev=
  51510. + func_append compile_command " $qarg"
  51511. + func_append finalize_command " $qarg"
  51512. + continue
  51513. + ;;
  51514. + xlinker)
  51515. + linker_flags="$linker_flags $qarg"
  51516. + compiler_flags="$compiler_flags $wl$qarg"
  51517. + prev=
  51518. + func_append compile_command " $wl$qarg"
  51519. + func_append finalize_command " $wl$qarg"
  51520. + continue
  51521. + ;;
  51522. + *)
  51523. + eval "$prev=\"\$arg\""
  51524. + prev=
  51525. + continue
  51526. + ;;
  51527. + esac
  51528. + fi # test -n "$prev"
  51529. +
  51530. + prevarg="$arg"
  51531. +
  51532. + case $arg in
  51533. + -all-static)
  51534. + if test -n "$link_static_flag"; then
  51535. + # See comment for -static flag below, for more details.
  51536. + func_append compile_command " $link_static_flag"
  51537. + func_append finalize_command " $link_static_flag"
  51538. + fi
  51539. + continue
  51540. + ;;
  51541. +
  51542. + -allow-undefined)
  51543. + # FIXME: remove this flag sometime in the future.
  51544. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  51545. + ;;
  51546. +
  51547. + -avoid-version)
  51548. + avoid_version=yes
  51549. + continue
  51550. + ;;
  51551. +
  51552. + -dlopen)
  51553. + prev=dlfiles
  51554. + continue
  51555. + ;;
  51556. +
  51557. + -dlpreopen)
  51558. + prev=dlprefiles
  51559. + continue
  51560. + ;;
  51561. +
  51562. + -export-dynamic)
  51563. + export_dynamic=yes
  51564. + continue
  51565. + ;;
  51566. +
  51567. + -export-symbols | -export-symbols-regex)
  51568. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  51569. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  51570. + fi
  51571. + if test "X$arg" = "X-export-symbols"; then
  51572. + prev=expsyms
  51573. + else
  51574. + prev=expsyms_regex
  51575. + fi
  51576. + continue
  51577. + ;;
  51578. +
  51579. + -framework)
  51580. + prev=framework
  51581. + continue
  51582. + ;;
  51583. +
  51584. + -inst-prefix-dir)
  51585. + prev=inst_prefix
  51586. + continue
  51587. + ;;
  51588. +
  51589. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  51590. + # so, if we see these flags be careful not to treat them like -L
  51591. + -L[A-Z][A-Z]*:*)
  51592. + case $with_gcc/$host in
  51593. + no/*-*-irix* | /*-*-irix*)
  51594. + func_append compile_command " $arg"
  51595. + func_append finalize_command " $arg"
  51596. + ;;
  51597. + esac
  51598. + continue
  51599. + ;;
  51600. +
  51601. + -L*)
  51602. + func_stripname '-L' '' "$arg"
  51603. + dir=$func_stripname_result
  51604. + if test -z "$dir"; then
  51605. + if test "$#" -gt 0; then
  51606. + func_fatal_error "require no space between \`-L' and \`$1'"
  51607. + else
  51608. + func_fatal_error "need path for \`-L' option"
  51609. + fi
  51610. + fi
  51611. + # We need an absolute path.
  51612. + case $dir in
  51613. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  51614. + *)
  51615. + absdir=`cd "$dir" && pwd`
  51616. + test -z "$absdir" && \
  51617. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  51618. + dir="$absdir"
  51619. + ;;
  51620. + esac
  51621. + case "$deplibs " in
  51622. + *" -L$dir "*) ;;
  51623. + *)
  51624. + deplibs="$deplibs -L$dir"
  51625. + lib_search_path="$lib_search_path $dir"
  51626. + ;;
  51627. + esac
  51628. + case $host in
  51629. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  51630. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  51631. + case :$dllsearchpath: in
  51632. + *":$dir:"*) ;;
  51633. + ::) dllsearchpath=$dir;;
  51634. + *) dllsearchpath="$dllsearchpath:$dir";;
  51635. + esac
  51636. + case :$dllsearchpath: in
  51637. + *":$testbindir:"*) ;;
  51638. + ::) dllsearchpath=$testbindir;;
  51639. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  51640. + esac
  51641. + ;;
  51642. + esac
  51643. + continue
  51644. + ;;
  51645. +
  51646. + -l*)
  51647. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  51648. + case $host in
  51649. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  51650. + # These systems don't actually have a C or math library (as such)
  51651. + continue
  51652. + ;;
  51653. + *-*-os2*)
  51654. + # These systems don't actually have a C library (as such)
  51655. + test "X$arg" = "X-lc" && continue
  51656. + ;;
  51657. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  51658. + # Do not include libc due to us having libc/libc_r.
  51659. + test "X$arg" = "X-lc" && continue
  51660. + ;;
  51661. + *-*-rhapsody* | *-*-darwin1.[012])
  51662. + # Rhapsody C and math libraries are in the System framework
  51663. + deplibs="$deplibs System.ltframework"
  51664. + continue
  51665. + ;;
  51666. + *-*-sco3.2v5* | *-*-sco5v6*)
  51667. + # Causes problems with __ctype
  51668. + test "X$arg" = "X-lc" && continue
  51669. + ;;
  51670. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  51671. + # Compiler inserts libc in the correct place for threads to work
  51672. + test "X$arg" = "X-lc" && continue
  51673. + ;;
  51674. + esac
  51675. + elif test "X$arg" = "X-lc_r"; then
  51676. + case $host in
  51677. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  51678. + # Do not include libc_r directly, use -pthread flag.
  51679. + continue
  51680. + ;;
  51681. + esac
  51682. + fi
  51683. + deplibs="$deplibs $arg"
  51684. + continue
  51685. + ;;
  51686. +
  51687. + -module)
  51688. + module=yes
  51689. + continue
  51690. + ;;
  51691. +
  51692. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  51693. + # classes, name mangling, and exception handling.
  51694. + # Darwin uses the -arch flag to determine output architecture.
  51695. + -model|-arch|-isysroot)
  51696. + compiler_flags="$compiler_flags $arg"
  51697. + func_append compile_command " $arg"
  51698. + func_append finalize_command " $arg"
  51699. + prev=xcompiler
  51700. + continue
  51701. + ;;
  51702. +
  51703. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  51704. + compiler_flags="$compiler_flags $arg"
  51705. + func_append compile_command " $arg"
  51706. + func_append finalize_command " $arg"
  51707. + case "$new_inherited_linker_flags " in
  51708. + *" $arg "*) ;;
  51709. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  51710. + esac
  51711. + continue
  51712. + ;;
  51713. +
  51714. + -multi_module)
  51715. + single_module="${wl}-multi_module"
  51716. + continue
  51717. + ;;
  51718. +
  51719. + -no-fast-install)
  51720. + fast_install=no
  51721. + continue
  51722. + ;;
  51723. +
  51724. + -no-install)
  51725. + case $host in
  51726. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  51727. + # The PATH hackery in wrapper scripts is required on Windows
  51728. + # and Darwin in order for the loader to find any dlls it needs.
  51729. + func_warning "\`-no-install' is ignored for $host"
  51730. + func_warning "assuming \`-no-fast-install' instead"
  51731. + fast_install=no
  51732. + ;;
  51733. + *) no_install=yes ;;
  51734. + esac
  51735. + continue
  51736. + ;;
  51737. +
  51738. + -no-undefined)
  51739. + allow_undefined=no
  51740. + continue
  51741. + ;;
  51742. +
  51743. + -objectlist)
  51744. + prev=objectlist
  51745. + continue
  51746. + ;;
  51747. +
  51748. + -o) prev=output ;;
  51749. +
  51750. + -precious-files-regex)
  51751. + prev=precious_regex
  51752. + continue
  51753. + ;;
  51754. +
  51755. + -release)
  51756. + prev=release
  51757. + continue
  51758. + ;;
  51759. +
  51760. + -rpath)
  51761. + prev=rpath
  51762. + continue
  51763. + ;;
  51764. +
  51765. + -R)
  51766. + prev=xrpath
  51767. + continue
  51768. + ;;
  51769. +
  51770. + -R*)
  51771. + func_stripname '-R' '' "$arg"
  51772. + dir=$func_stripname_result
  51773. + # We need an absolute path.
  51774. + case $dir in
  51775. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  51776. + *)
  51777. + func_fatal_error "only absolute run-paths are allowed"
  51778. + ;;
  51779. + esac
  51780. + case "$xrpath " in
  51781. + *" $dir "*) ;;
  51782. + *) xrpath="$xrpath $dir" ;;
  51783. + esac
  51784. + continue
  51785. + ;;
  51786. +
  51787. + -shared)
  51788. + # The effects of -shared are defined in a previous loop.
  51789. + continue
  51790. + ;;
  51791. +
  51792. + -shrext)
  51793. + prev=shrext
  51794. + continue
  51795. + ;;
  51796. +
  51797. + -static | -static-libtool-libs)
  51798. + # The effects of -static are defined in a previous loop.
  51799. + # We used to do the same as -all-static on platforms that
  51800. + # didn't have a PIC flag, but the assumption that the effects
  51801. + # would be equivalent was wrong. It would break on at least
  51802. + # Digital Unix and AIX.
  51803. + continue
  51804. + ;;
  51805. +
  51806. + -thread-safe)
  51807. + thread_safe=yes
  51808. + continue
  51809. + ;;
  51810. +
  51811. + -version-info)
  51812. + prev=vinfo
  51813. + continue
  51814. + ;;
  51815. +
  51816. + -version-number)
  51817. + prev=vinfo
  51818. + vinfo_number=yes
  51819. + continue
  51820. + ;;
  51821. +
  51822. + -weak)
  51823. + prev=weak
  51824. + continue
  51825. + ;;
  51826. +
  51827. + -Wc,*)
  51828. + func_stripname '-Wc,' '' "$arg"
  51829. + args=$func_stripname_result
  51830. + arg=
  51831. + save_ifs="$IFS"; IFS=','
  51832. + for flag in $args; do
  51833. + IFS="$save_ifs"
  51834. + func_quote_for_eval "$flag"
  51835. + arg="$arg $wl$func_quote_for_eval_result"
  51836. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  51837. + done
  51838. + IFS="$save_ifs"
  51839. + func_stripname ' ' '' "$arg"
  51840. + arg=$func_stripname_result
  51841. + ;;
  51842. +
  51843. + -Wl,*)
  51844. + func_stripname '-Wl,' '' "$arg"
  51845. + args=$func_stripname_result
  51846. + arg=
  51847. + save_ifs="$IFS"; IFS=','
  51848. + for flag in $args; do
  51849. + IFS="$save_ifs"
  51850. + func_quote_for_eval "$flag"
  51851. + arg="$arg $wl$func_quote_for_eval_result"
  51852. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  51853. + linker_flags="$linker_flags $func_quote_for_eval_result"
  51854. + done
  51855. + IFS="$save_ifs"
  51856. + func_stripname ' ' '' "$arg"
  51857. + arg=$func_stripname_result
  51858. + ;;
  51859. +
  51860. + -Xcompiler)
  51861. + prev=xcompiler
  51862. + continue
  51863. + ;;
  51864. +
  51865. + -Xlinker)
  51866. + prev=xlinker
  51867. + continue
  51868. + ;;
  51869. +
  51870. + -XCClinker)
  51871. + prev=xcclinker
  51872. + continue
  51873. + ;;
  51874. +
  51875. + # -msg_* for osf cc
  51876. + -msg_*)
  51877. + func_quote_for_eval "$arg"
  51878. + arg="$func_quote_for_eval_result"
  51879. + ;;
  51880. +
  51881. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  51882. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  51883. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  51884. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  51885. + # -q* pass through compiler args for the IBM compiler
  51886. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  51887. + # compiler args for GCC
  51888. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  51889. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  51890. + # @file GCC response files
  51891. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  51892. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  51893. + func_quote_for_eval "$arg"
  51894. + arg="$func_quote_for_eval_result"
  51895. + func_append compile_command " $arg"
  51896. + func_append finalize_command " $arg"
  51897. + compiler_flags="$compiler_flags $arg"
  51898. + continue
  51899. + ;;
  51900. +
  51901. + # Some other compiler flag.
  51902. + -* | +*)
  51903. + func_quote_for_eval "$arg"
  51904. + arg="$func_quote_for_eval_result"
  51905. + ;;
  51906. +
  51907. + *.$objext)
  51908. + # A standard object.
  51909. + objs="$objs $arg"
  51910. + ;;
  51911. +
  51912. + *.lo)
  51913. + # A libtool-controlled object.
  51914. +
  51915. + # Check to see that this really is a libtool object.
  51916. + if func_lalib_unsafe_p "$arg"; then
  51917. + pic_object=
  51918. + non_pic_object=
  51919. +
  51920. + # Read the .lo file
  51921. + func_source "$arg"
  51922. +
  51923. + if test -z "$pic_object" ||
  51924. + test -z "$non_pic_object" ||
  51925. + test "$pic_object" = none &&
  51926. + test "$non_pic_object" = none; then
  51927. + func_fatal_error "cannot find name of object for \`$arg'"
  51928. + fi
  51929. +
  51930. + # Extract subdirectory from the argument.
  51931. + func_dirname "$arg" "/" ""
  51932. + xdir="$func_dirname_result"
  51933. +
  51934. + if test "$pic_object" != none; then
  51935. + # Prepend the subdirectory the object is found in.
  51936. + pic_object="$xdir$pic_object"
  51937. +
  51938. + if test "$prev" = dlfiles; then
  51939. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  51940. + dlfiles="$dlfiles $pic_object"
  51941. + prev=
  51942. + continue
  51943. + else
  51944. + # If libtool objects are unsupported, then we need to preload.
  51945. + prev=dlprefiles
  51946. + fi
  51947. + fi
  51948. +
  51949. + # CHECK ME: I think I busted this. -Ossama
  51950. + if test "$prev" = dlprefiles; then
  51951. + # Preload the old-style object.
  51952. + dlprefiles="$dlprefiles $pic_object"
  51953. + prev=
  51954. + fi
  51955. +
  51956. + # A PIC object.
  51957. + func_append libobjs " $pic_object"
  51958. + arg="$pic_object"
  51959. + fi
  51960. +
  51961. + # Non-PIC object.
  51962. + if test "$non_pic_object" != none; then
  51963. + # Prepend the subdirectory the object is found in.
  51964. + non_pic_object="$xdir$non_pic_object"
  51965. +
  51966. + # A standard non-PIC object
  51967. + func_append non_pic_objects " $non_pic_object"
  51968. + if test -z "$pic_object" || test "$pic_object" = none ; then
  51969. + arg="$non_pic_object"
  51970. + fi
  51971. + else
  51972. + # If the PIC object exists, use it instead.
  51973. + # $xdir was prepended to $pic_object above.
  51974. + non_pic_object="$pic_object"
  51975. + func_append non_pic_objects " $non_pic_object"
  51976. + fi
  51977. + else
  51978. + # Only an error if not doing a dry-run.
  51979. + if $opt_dry_run; then
  51980. + # Extract subdirectory from the argument.
  51981. + func_dirname "$arg" "/" ""
  51982. + xdir="$func_dirname_result"
  51983. +
  51984. + func_lo2o "$arg"
  51985. + pic_object=$xdir$objdir/$func_lo2o_result
  51986. + non_pic_object=$xdir$func_lo2o_result
  51987. + func_append libobjs " $pic_object"
  51988. + func_append non_pic_objects " $non_pic_object"
  51989. + else
  51990. + func_fatal_error "\`$arg' is not a valid libtool object"
  51991. + fi
  51992. + fi
  51993. + ;;
  51994. +
  51995. + *.$libext)
  51996. + # An archive.
  51997. + deplibs="$deplibs $arg"
  51998. + old_deplibs="$old_deplibs $arg"
  51999. + continue
  52000. + ;;
  52001. +
  52002. + *.la)
  52003. + # A libtool-controlled library.
  52004. +
  52005. + if test "$prev" = dlfiles; then
  52006. + # This library was specified with -dlopen.
  52007. + dlfiles="$dlfiles $arg"
  52008. + prev=
  52009. + elif test "$prev" = dlprefiles; then
  52010. + # The library was specified with -dlpreopen.
  52011. + dlprefiles="$dlprefiles $arg"
  52012. + prev=
  52013. + else
  52014. + deplibs="$deplibs $arg"
  52015. + fi
  52016. + continue
  52017. + ;;
  52018. +
  52019. + # Some other compiler argument.
  52020. + *)
  52021. + # Unknown arguments in both finalize_command and compile_command need
  52022. + # to be aesthetically quoted because they are evaled later.
  52023. + func_quote_for_eval "$arg"
  52024. + arg="$func_quote_for_eval_result"
  52025. + ;;
  52026. + esac # arg
  52027. +
  52028. + # Now actually substitute the argument into the commands.
  52029. + if test -n "$arg"; then
  52030. + func_append compile_command " $arg"
  52031. + func_append finalize_command " $arg"
  52032. + fi
  52033. + done # argument parsing loop
  52034. +
  52035. + test -n "$prev" && \
  52036. + func_fatal_help "the \`$prevarg' option requires an argument"
  52037. +
  52038. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  52039. + eval arg=\"$export_dynamic_flag_spec\"
  52040. + func_append compile_command " $arg"
  52041. + func_append finalize_command " $arg"
  52042. + fi
  52043. +
  52044. + oldlibs=
  52045. + # calculate the name of the file, without its directory
  52046. + func_basename "$output"
  52047. + outputname="$func_basename_result"
  52048. + libobjs_save="$libobjs"
  52049. +
  52050. + if test -n "$shlibpath_var"; then
  52051. + # get the directories listed in $shlibpath_var
  52052. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  52053. + else
  52054. + shlib_search_path=
  52055. + fi
  52056. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  52057. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  52058. +
  52059. + func_dirname "$output" "/" ""
  52060. + output_objdir="$func_dirname_result$objdir"
  52061. + # Create the object directory.
  52062. + func_mkdir_p "$output_objdir"
  52063. +
  52064. + # Determine the type of output
  52065. + case $output in
  52066. + "")
  52067. + func_fatal_help "you must specify an output file"
  52068. + ;;
  52069. + *.$libext) linkmode=oldlib ;;
  52070. + *.lo | *.$objext) linkmode=obj ;;
  52071. + *.la) linkmode=lib ;;
  52072. + *) linkmode=prog ;; # Anything else should be a program.
  52073. + esac
  52074. +
  52075. + specialdeplibs=
  52076. +
  52077. + libs=
  52078. + # Find all interdependent deplibs by searching for libraries
  52079. + # that are linked more than once (e.g. -la -lb -la)
  52080. + for deplib in $deplibs; do
  52081. + if $opt_duplicate_deps ; then
  52082. + case "$libs " in
  52083. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  52084. + esac
  52085. + fi
  52086. + libs="$libs $deplib"
  52087. + done
  52088. +
  52089. + if test "$linkmode" = lib; then
  52090. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  52091. +
  52092. + # Compute libraries that are listed more than once in $predeps
  52093. + # $postdeps and mark them as special (i.e., whose duplicates are
  52094. + # not to be eliminated).
  52095. + pre_post_deps=
  52096. + if $opt_duplicate_compiler_generated_deps; then
  52097. + for pre_post_dep in $predeps $postdeps; do
  52098. + case "$pre_post_deps " in
  52099. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  52100. + esac
  52101. + pre_post_deps="$pre_post_deps $pre_post_dep"
  52102. + done
  52103. + fi
  52104. + pre_post_deps=
  52105. + fi
  52106. +
  52107. + deplibs=
  52108. + newdependency_libs=
  52109. + newlib_search_path=
  52110. + need_relink=no # whether we're linking any uninstalled libtool libraries
  52111. + notinst_deplibs= # not-installed libtool libraries
  52112. + notinst_path= # paths that contain not-installed libtool libraries
  52113. +
  52114. + case $linkmode in
  52115. + lib)
  52116. + passes="conv dlpreopen link"
  52117. + for file in $dlfiles $dlprefiles; do
  52118. + case $file in
  52119. + *.la) ;;
  52120. + *)
  52121. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  52122. + ;;
  52123. + esac
  52124. + done
  52125. + ;;
  52126. + prog)
  52127. + compile_deplibs=
  52128. + finalize_deplibs=
  52129. + alldeplibs=no
  52130. + newdlfiles=
  52131. + newdlprefiles=
  52132. + passes="conv scan dlopen dlpreopen link"
  52133. + ;;
  52134. + *) passes="conv"
  52135. + ;;
  52136. + esac
  52137. +
  52138. + for pass in $passes; do
  52139. + # The preopen pass in lib mode reverses $deplibs; put it back here
  52140. + # so that -L comes before libs that need it for instance...
  52141. + if test "$linkmode,$pass" = "lib,link"; then
  52142. + ## FIXME: Find the place where the list is rebuilt in the wrong
  52143. + ## order, and fix it there properly
  52144. + tmp_deplibs=
  52145. + for deplib in $deplibs; do
  52146. + tmp_deplibs="$deplib $tmp_deplibs"
  52147. + done
  52148. + deplibs="$tmp_deplibs"
  52149. + fi
  52150. +
  52151. + if test "$linkmode,$pass" = "lib,link" ||
  52152. + test "$linkmode,$pass" = "prog,scan"; then
  52153. + libs="$deplibs"
  52154. + deplibs=
  52155. + fi
  52156. + if test "$linkmode" = prog; then
  52157. + case $pass in
  52158. + dlopen) libs="$dlfiles" ;;
  52159. + dlpreopen) libs="$dlprefiles" ;;
  52160. + link)
  52161. + libs="$deplibs %DEPLIBS%"
  52162. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  52163. + ;;
  52164. + esac
  52165. + fi
  52166. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  52167. + # Collect and forward deplibs of preopened libtool libs
  52168. + for lib in $dlprefiles; do
  52169. + # Ignore non-libtool-libs
  52170. + dependency_libs=
  52171. + case $lib in
  52172. + *.la) func_source "$lib" ;;
  52173. + esac
  52174. +
  52175. + # Collect preopened libtool deplibs, except any this library
  52176. + # has declared as weak libs
  52177. + for deplib in $dependency_libs; do
  52178. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  52179. + case " $weak_libs " in
  52180. + *" $deplib_base "*) ;;
  52181. + *) deplibs="$deplibs $deplib" ;;
  52182. + esac
  52183. + done
  52184. + done
  52185. + libs="$dlprefiles"
  52186. + fi
  52187. + if test "$pass" = dlopen; then
  52188. + # Collect dlpreopened libraries
  52189. + save_deplibs="$deplibs"
  52190. + deplibs=
  52191. + fi
  52192. +
  52193. + for deplib in $libs; do
  52194. + lib=
  52195. + found=no
  52196. + case $deplib in
  52197. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  52198. + if test "$linkmode,$pass" = "prog,link"; then
  52199. + compile_deplibs="$deplib $compile_deplibs"
  52200. + finalize_deplibs="$deplib $finalize_deplibs"
  52201. + else
  52202. + compiler_flags="$compiler_flags $deplib"
  52203. + if test "$linkmode" = lib ; then
  52204. + case "$new_inherited_linker_flags " in
  52205. + *" $deplib "*) ;;
  52206. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  52207. + esac
  52208. + fi
  52209. + fi
  52210. + continue
  52211. + ;;
  52212. + -l*)
  52213. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  52214. + func_warning "\`-l' is ignored for archives/objects"
  52215. + continue
  52216. + fi
  52217. + func_stripname '-l' '' "$deplib"
  52218. + name=$func_stripname_result
  52219. + if test "$linkmode" = lib; then
  52220. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  52221. + else
  52222. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  52223. + fi
  52224. + for searchdir in $searchdirs; do
  52225. + for search_ext in .la $std_shrext .so .a; do
  52226. + # Search the libtool library
  52227. + lib="$searchdir/lib${name}${search_ext}"
  52228. + if test -f "$lib"; then
  52229. + if test "$search_ext" = ".la"; then
  52230. + found=yes
  52231. + else
  52232. + found=no
  52233. + fi
  52234. + break 2
  52235. + fi
  52236. + done
  52237. + done
  52238. + if test "$found" != yes; then
  52239. + # deplib doesn't seem to be a libtool library
  52240. + if test "$linkmode,$pass" = "prog,link"; then
  52241. + compile_deplibs="$deplib $compile_deplibs"
  52242. + finalize_deplibs="$deplib $finalize_deplibs"
  52243. + else
  52244. + deplibs="$deplib $deplibs"
  52245. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  52246. + fi
  52247. + continue
  52248. + else # deplib is a libtool library
  52249. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  52250. + # We need to do some special things here, and not later.
  52251. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52252. + case " $predeps $postdeps " in
  52253. + *" $deplib "*)
  52254. + if func_lalib_p "$lib"; then
  52255. + library_names=
  52256. + old_library=
  52257. + func_source "$lib"
  52258. + for l in $old_library $library_names; do
  52259. + ll="$l"
  52260. + done
  52261. + if test "X$ll" = "X$old_library" ; then # only static version available
  52262. + found=no
  52263. + func_dirname "$lib" "" "."
  52264. + ladir="$func_dirname_result"
  52265. + lib=$ladir/$old_library
  52266. + if test "$linkmode,$pass" = "prog,link"; then
  52267. + compile_deplibs="$deplib $compile_deplibs"
  52268. + finalize_deplibs="$deplib $finalize_deplibs"
  52269. + else
  52270. + deplibs="$deplib $deplibs"
  52271. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  52272. + fi
  52273. + continue
  52274. + fi
  52275. + fi
  52276. + ;;
  52277. + *) ;;
  52278. + esac
  52279. + fi
  52280. + fi
  52281. + ;; # -l
  52282. + *.ltframework)
  52283. + if test "$linkmode,$pass" = "prog,link"; then
  52284. + compile_deplibs="$deplib $compile_deplibs"
  52285. + finalize_deplibs="$deplib $finalize_deplibs"
  52286. + else
  52287. + deplibs="$deplib $deplibs"
  52288. + if test "$linkmode" = lib ; then
  52289. + case "$new_inherited_linker_flags " in
  52290. + *" $deplib "*) ;;
  52291. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  52292. + esac
  52293. + fi
  52294. + fi
  52295. + continue
  52296. + ;;
  52297. + -L*)
  52298. + case $linkmode in
  52299. + lib)
  52300. + deplibs="$deplib $deplibs"
  52301. + test "$pass" = conv && continue
  52302. + newdependency_libs="$deplib $newdependency_libs"
  52303. + func_stripname '-L' '' "$deplib"
  52304. + newlib_search_path="$newlib_search_path $func_stripname_result"
  52305. + ;;
  52306. + prog)
  52307. + if test "$pass" = conv; then
  52308. + deplibs="$deplib $deplibs"
  52309. + continue
  52310. + fi
  52311. + if test "$pass" = scan; then
  52312. + deplibs="$deplib $deplibs"
  52313. + else
  52314. + compile_deplibs="$deplib $compile_deplibs"
  52315. + finalize_deplibs="$deplib $finalize_deplibs"
  52316. + fi
  52317. + func_stripname '-L' '' "$deplib"
  52318. + newlib_search_path="$newlib_search_path $func_stripname_result"
  52319. + ;;
  52320. + *)
  52321. + func_warning "\`-L' is ignored for archives/objects"
  52322. + ;;
  52323. + esac # linkmode
  52324. + continue
  52325. + ;; # -L
  52326. + -R*)
  52327. + if test "$pass" = link; then
  52328. + func_stripname '-R' '' "$deplib"
  52329. + dir=$func_stripname_result
  52330. + # Make sure the xrpath contains only unique directories.
  52331. + case "$xrpath " in
  52332. + *" $dir "*) ;;
  52333. + *) xrpath="$xrpath $dir" ;;
  52334. + esac
  52335. + fi
  52336. + deplibs="$deplib $deplibs"
  52337. + continue
  52338. + ;;
  52339. + *.la) lib="$deplib" ;;
  52340. + *.$libext)
  52341. + if test "$pass" = conv; then
  52342. + deplibs="$deplib $deplibs"
  52343. + continue
  52344. + fi
  52345. + case $linkmode in
  52346. + lib)
  52347. + # Linking convenience modules into shared libraries is allowed,
  52348. + # but linking other static libraries is non-portable.
  52349. + case " $dlpreconveniencelibs " in
  52350. + *" $deplib "*) ;;
  52351. + *)
  52352. + valid_a_lib=no
  52353. + case $deplibs_check_method in
  52354. + match_pattern*)
  52355. + set dummy $deplibs_check_method; shift
  52356. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  52357. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  52358. + | $EGREP "$match_pattern_regex" > /dev/null; then
  52359. + valid_a_lib=yes
  52360. + fi
  52361. + ;;
  52362. + pass_all)
  52363. + valid_a_lib=yes
  52364. + ;;
  52365. + esac
  52366. + if test "$valid_a_lib" != yes; then
  52367. + $ECHO
  52368. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  52369. + $ECHO "*** I have the capability to make that library automatically link in when"
  52370. + $ECHO "*** you link to this library. But I can only do this if you have a"
  52371. + $ECHO "*** shared version of the library, which you do not appear to have"
  52372. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  52373. + $ECHO "*** that it is just a static archive that I should not use here."
  52374. + else
  52375. + $ECHO
  52376. + $ECHO "*** Warning: Linking the shared library $output against the"
  52377. + $ECHO "*** static library $deplib is not portable!"
  52378. + deplibs="$deplib $deplibs"
  52379. + fi
  52380. + ;;
  52381. + esac
  52382. + continue
  52383. + ;;
  52384. + prog)
  52385. + if test "$pass" != link; then
  52386. + deplibs="$deplib $deplibs"
  52387. + else
  52388. + compile_deplibs="$deplib $compile_deplibs"
  52389. + finalize_deplibs="$deplib $finalize_deplibs"
  52390. + fi
  52391. + continue
  52392. + ;;
  52393. + esac # linkmode
  52394. + ;; # *.$libext
  52395. + *.lo | *.$objext)
  52396. + if test "$pass" = conv; then
  52397. + deplibs="$deplib $deplibs"
  52398. + elif test "$linkmode" = prog; then
  52399. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  52400. + # If there is no dlopen support or we're linking statically,
  52401. + # we need to preload.
  52402. + newdlprefiles="$newdlprefiles $deplib"
  52403. + compile_deplibs="$deplib $compile_deplibs"
  52404. + finalize_deplibs="$deplib $finalize_deplibs"
  52405. + else
  52406. + newdlfiles="$newdlfiles $deplib"
  52407. + fi
  52408. + fi
  52409. + continue
  52410. + ;;
  52411. + %DEPLIBS%)
  52412. + alldeplibs=yes
  52413. + continue
  52414. + ;;
  52415. + esac # case $deplib
  52416. +
  52417. + if test "$found" = yes || test -f "$lib"; then :
  52418. + else
  52419. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  52420. + fi
  52421. +
  52422. + # Check to see that this really is a libtool archive.
  52423. + func_lalib_unsafe_p "$lib" \
  52424. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  52425. +
  52426. + func_dirname "$lib" "" "."
  52427. + ladir="$func_dirname_result"
  52428. +
  52429. + dlname=
  52430. + dlopen=
  52431. + dlpreopen=
  52432. + libdir=
  52433. + library_names=
  52434. + old_library=
  52435. + inherited_linker_flags=
  52436. + # If the library was installed with an old release of libtool,
  52437. + # it will not redefine variables installed, or shouldnotlink
  52438. + installed=yes
  52439. + shouldnotlink=no
  52440. + avoidtemprpath=
  52441. +
  52442. +
  52443. + # Read the .la file
  52444. + func_source "$lib"
  52445. +
  52446. + # Convert "-framework foo" to "foo.ltframework"
  52447. + if test -n "$inherited_linker_flags"; then
  52448. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  52449. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  52450. + case " $new_inherited_linker_flags " in
  52451. + *" $tmp_inherited_linker_flag "*) ;;
  52452. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  52453. + esac
  52454. + done
  52455. + fi
  52456. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  52457. + if test "$linkmode,$pass" = "lib,link" ||
  52458. + test "$linkmode,$pass" = "prog,scan" ||
  52459. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  52460. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  52461. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  52462. + fi
  52463. +
  52464. + if test "$pass" = conv; then
  52465. + # Only check for convenience libraries
  52466. + deplibs="$lib $deplibs"
  52467. + if test -z "$libdir"; then
  52468. + if test -z "$old_library"; then
  52469. + func_fatal_error "cannot find name of link library for \`$lib'"
  52470. + fi
  52471. + # It is a libtool convenience library, so add in its objects.
  52472. + convenience="$convenience $ladir/$objdir/$old_library"
  52473. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  52474. + tmp_libs=
  52475. + for deplib in $dependency_libs; do
  52476. + deplibs="$deplib $deplibs"
  52477. + if $opt_duplicate_deps ; then
  52478. + case "$tmp_libs " in
  52479. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  52480. + esac
  52481. + fi
  52482. + tmp_libs="$tmp_libs $deplib"
  52483. + done
  52484. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  52485. + func_fatal_error "\`$lib' is not a convenience library"
  52486. + fi
  52487. + continue
  52488. + fi # $pass = conv
  52489. +
  52490. +
  52491. + # Get the name of the library we link against.
  52492. + linklib=
  52493. + for l in $old_library $library_names; do
  52494. + linklib="$l"
  52495. + done
  52496. + if test -z "$linklib"; then
  52497. + func_fatal_error "cannot find name of link library for \`$lib'"
  52498. + fi
  52499. +
  52500. + # This library was specified with -dlopen.
  52501. + if test "$pass" = dlopen; then
  52502. + if test -z "$libdir"; then
  52503. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  52504. + fi
  52505. + if test -z "$dlname" ||
  52506. + test "$dlopen_support" != yes ||
  52507. + test "$build_libtool_libs" = no; then
  52508. + # If there is no dlname, no dlopen support or we're linking
  52509. + # statically, we need to preload. We also need to preload any
  52510. + # dependent libraries so libltdl's deplib preloader doesn't
  52511. + # bomb out in the load deplibs phase.
  52512. + dlprefiles="$dlprefiles $lib $dependency_libs"
  52513. + else
  52514. + newdlfiles="$newdlfiles $lib"
  52515. + fi
  52516. + continue
  52517. + fi # $pass = dlopen
  52518. +
  52519. + # We need an absolute path.
  52520. + case $ladir in
  52521. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  52522. + *)
  52523. + abs_ladir=`cd "$ladir" && pwd`
  52524. + if test -z "$abs_ladir"; then
  52525. + func_warning "cannot determine absolute directory name of \`$ladir'"
  52526. + func_warning "passing it literally to the linker, although it might fail"
  52527. + abs_ladir="$ladir"
  52528. + fi
  52529. + ;;
  52530. + esac
  52531. + func_basename "$lib"
  52532. + laname="$func_basename_result"
  52533. +
  52534. + # Find the relevant object directory and library name.
  52535. + if test "X$installed" = Xyes; then
  52536. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  52537. + func_warning "library \`$lib' was moved."
  52538. + dir="$ladir"
  52539. + absdir="$abs_ladir"
  52540. + libdir="$abs_ladir"
  52541. + else
  52542. + dir="$libdir"
  52543. + absdir="$libdir"
  52544. + fi
  52545. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  52546. + else
  52547. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  52548. + dir="$ladir"
  52549. + absdir="$abs_ladir"
  52550. + # Remove this search path later
  52551. + notinst_path="$notinst_path $abs_ladir"
  52552. + else
  52553. + dir="$ladir/$objdir"
  52554. + absdir="$abs_ladir/$objdir"
  52555. + # Remove this search path later
  52556. + notinst_path="$notinst_path $abs_ladir"
  52557. + fi
  52558. + fi # $installed = yes
  52559. + func_stripname 'lib' '.la' "$laname"
  52560. + name=$func_stripname_result
  52561. +
  52562. + # This library was specified with -dlpreopen.
  52563. + if test "$pass" = dlpreopen; then
  52564. + if test -z "$libdir" && test "$linkmode" = prog; then
  52565. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  52566. + fi
  52567. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  52568. + # are required to link).
  52569. + if test -n "$old_library"; then
  52570. + newdlprefiles="$newdlprefiles $dir/$old_library"
  52571. + # Keep a list of preopened convenience libraries to check
  52572. + # that they are being used correctly in the link pass.
  52573. + test -z "$libdir" && \
  52574. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  52575. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  52576. + elif test -n "$dlname"; then
  52577. + newdlprefiles="$newdlprefiles $dir/$dlname"
  52578. + else
  52579. + newdlprefiles="$newdlprefiles $dir/$linklib"
  52580. + fi
  52581. + fi # $pass = dlpreopen
  52582. +
  52583. + if test -z "$libdir"; then
  52584. + # Link the convenience library
  52585. + if test "$linkmode" = lib; then
  52586. + deplibs="$dir/$old_library $deplibs"
  52587. + elif test "$linkmode,$pass" = "prog,link"; then
  52588. + compile_deplibs="$dir/$old_library $compile_deplibs"
  52589. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  52590. + else
  52591. + deplibs="$lib $deplibs" # used for prog,scan pass
  52592. + fi
  52593. + continue
  52594. + fi
  52595. +
  52596. +
  52597. + if test "$linkmode" = prog && test "$pass" != link; then
  52598. + newlib_search_path="$newlib_search_path $ladir"
  52599. + deplibs="$lib $deplibs"
  52600. +
  52601. + linkalldeplibs=no
  52602. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  52603. + test "$build_libtool_libs" = no; then
  52604. + linkalldeplibs=yes
  52605. + fi
  52606. +
  52607. + tmp_libs=
  52608. + for deplib in $dependency_libs; do
  52609. + case $deplib in
  52610. + -L*) func_stripname '-L' '' "$deplib"
  52611. + newlib_search_path="$newlib_search_path $func_stripname_result"
  52612. + ;;
  52613. + esac
  52614. + # Need to link against all dependency_libs?
  52615. + if test "$linkalldeplibs" = yes; then
  52616. + deplibs="$deplib $deplibs"
  52617. + else
  52618. + # Need to hardcode shared library paths
  52619. + # or/and link against static libraries
  52620. + newdependency_libs="$deplib $newdependency_libs"
  52621. + fi
  52622. + if $opt_duplicate_deps ; then
  52623. + case "$tmp_libs " in
  52624. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  52625. + esac
  52626. + fi
  52627. + tmp_libs="$tmp_libs $deplib"
  52628. + done # for deplib
  52629. + continue
  52630. + fi # $linkmode = prog...
  52631. +
  52632. + if test "$linkmode,$pass" = "prog,link"; then
  52633. + if test -n "$library_names" &&
  52634. + { { test "$prefer_static_libs" = no ||
  52635. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  52636. + test -z "$old_library"; }; then
  52637. + # We need to hardcode the library path
  52638. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  52639. + # Make sure the rpath contains only unique directories.
  52640. + case "$temp_rpath:" in
  52641. + *"$absdir:"*) ;;
  52642. + *) temp_rpath="$temp_rpath$absdir:" ;;
  52643. + esac
  52644. + fi
  52645. +
  52646. + # Hardcode the library path.
  52647. + # Skip directories that are in the system default run-time
  52648. + # search path.
  52649. + case " $sys_lib_dlsearch_path " in
  52650. + *" $absdir "*) ;;
  52651. + *)
  52652. + case "$compile_rpath " in
  52653. + *" $absdir "*) ;;
  52654. + *) compile_rpath="$compile_rpath $absdir"
  52655. + esac
  52656. + ;;
  52657. + esac
  52658. + case " $sys_lib_dlsearch_path " in
  52659. + *" $libdir "*) ;;
  52660. + *)
  52661. + case "$finalize_rpath " in
  52662. + *" $libdir "*) ;;
  52663. + *) finalize_rpath="$finalize_rpath $libdir"
  52664. + esac
  52665. + ;;
  52666. + esac
  52667. + fi # $linkmode,$pass = prog,link...
  52668. +
  52669. + if test "$alldeplibs" = yes &&
  52670. + { test "$deplibs_check_method" = pass_all ||
  52671. + { test "$build_libtool_libs" = yes &&
  52672. + test -n "$library_names"; }; }; then
  52673. + # We only need to search for static libraries
  52674. + continue
  52675. + fi
  52676. + fi
  52677. +
  52678. + link_static=no # Whether the deplib will be linked statically
  52679. + use_static_libs=$prefer_static_libs
  52680. + if test "$use_static_libs" = built && test "$installed" = yes; then
  52681. + use_static_libs=no
  52682. + fi
  52683. + if test -n "$library_names" &&
  52684. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  52685. + case $host in
  52686. + *cygwin* | *mingw* | *cegcc*)
  52687. + # No point in relinking DLLs because paths are not encoded
  52688. + notinst_deplibs="$notinst_deplibs $lib"
  52689. + need_relink=no
  52690. + ;;
  52691. + *)
  52692. + if test "$installed" = no; then
  52693. + notinst_deplibs="$notinst_deplibs $lib"
  52694. + need_relink=yes
  52695. + fi
  52696. + ;;
  52697. + esac
  52698. + # This is a shared library
  52699. +
  52700. + # Warn about portability, can't link against -module's on some
  52701. + # systems (darwin). Don't bleat about dlopened modules though!
  52702. + dlopenmodule=""
  52703. + for dlpremoduletest in $dlprefiles; do
  52704. + if test "X$dlpremoduletest" = "X$lib"; then
  52705. + dlopenmodule="$dlpremoduletest"
  52706. + break
  52707. + fi
  52708. + done
  52709. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  52710. + $ECHO
  52711. + if test "$linkmode" = prog; then
  52712. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  52713. + else
  52714. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  52715. + fi
  52716. + $ECHO "*** $linklib is not portable!"
  52717. + fi
  52718. + if test "$linkmode" = lib &&
  52719. + test "$hardcode_into_libs" = yes; then
  52720. + # Hardcode the library path.
  52721. + # Skip directories that are in the system default run-time
  52722. + # search path.
  52723. + case " $sys_lib_dlsearch_path " in
  52724. + *" $absdir "*) ;;
  52725. + *)
  52726. + case "$compile_rpath " in
  52727. + *" $absdir "*) ;;
  52728. + *) compile_rpath="$compile_rpath $absdir"
  52729. + esac
  52730. + ;;
  52731. + esac
  52732. + case " $sys_lib_dlsearch_path " in
  52733. + *" $libdir "*) ;;
  52734. + *)
  52735. + case "$finalize_rpath " in
  52736. + *" $libdir "*) ;;
  52737. + *) finalize_rpath="$finalize_rpath $libdir"
  52738. + esac
  52739. + ;;
  52740. + esac
  52741. + fi
  52742. +
  52743. + if test -n "$old_archive_from_expsyms_cmds"; then
  52744. + # figure out the soname
  52745. + set dummy $library_names
  52746. + shift
  52747. + realname="$1"
  52748. + shift
  52749. + libname=`eval "\\$ECHO \"$libname_spec\""`
  52750. + # use dlname if we got it. it's perfectly good, no?
  52751. + if test -n "$dlname"; then
  52752. + soname="$dlname"
  52753. + elif test -n "$soname_spec"; then
  52754. + # bleh windows
  52755. + case $host in
  52756. + *cygwin* | mingw* | *cegcc*)
  52757. + func_arith $current - $age
  52758. + major=$func_arith_result
  52759. + versuffix="-$major"
  52760. + ;;
  52761. + esac
  52762. + eval soname=\"$soname_spec\"
  52763. + else
  52764. + soname="$realname"
  52765. + fi
  52766. +
  52767. + # Make a new name for the extract_expsyms_cmds to use
  52768. + soroot="$soname"
  52769. + func_basename "$soroot"
  52770. + soname="$func_basename_result"
  52771. + func_stripname 'lib' '.dll' "$soname"
  52772. + newlib=libimp-$func_stripname_result.a
  52773. +
  52774. + # If the library has no export list, then create one now
  52775. + if test -f "$output_objdir/$soname-def"; then :
  52776. + else
  52777. + func_verbose "extracting exported symbol list from \`$soname'"
  52778. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  52779. + fi
  52780. +
  52781. + # Create $newlib
  52782. + if test -f "$output_objdir/$newlib"; then :; else
  52783. + func_verbose "generating import library for \`$soname'"
  52784. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  52785. + fi
  52786. + # make sure the library variables are pointing to the new library
  52787. + dir=$output_objdir
  52788. + linklib=$newlib
  52789. + fi # test -n "$old_archive_from_expsyms_cmds"
  52790. +
  52791. + if test "$linkmode" = prog || test "$mode" != relink; then
  52792. + add_shlibpath=
  52793. + add_dir=
  52794. + add=
  52795. + lib_linked=yes
  52796. + case $hardcode_action in
  52797. + immediate | unsupported)
  52798. + if test "$hardcode_direct" = no; then
  52799. + add="$dir/$linklib"
  52800. + case $host in
  52801. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  52802. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  52803. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  52804. + *-*-unixware7*) add_dir="-L$dir" ;;
  52805. + *-*-darwin* )
  52806. + # if the lib is a (non-dlopened) module then we can not
  52807. + # link against it, someone is ignoring the earlier warnings
  52808. + if /usr/bin/file -L $add 2> /dev/null |
  52809. + $GREP ": [^:]* bundle" >/dev/null ; then
  52810. + if test "X$dlopenmodule" != "X$lib"; then
  52811. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  52812. + if test -z "$old_library" ; then
  52813. + $ECHO
  52814. + $ECHO "*** And there doesn't seem to be a static archive available"
  52815. + $ECHO "*** The link will probably fail, sorry"
  52816. + else
  52817. + add="$dir/$old_library"
  52818. + fi
  52819. + elif test -n "$old_library"; then
  52820. + add="$dir/$old_library"
  52821. + fi
  52822. + fi
  52823. + esac
  52824. + elif test "$hardcode_minus_L" = no; then
  52825. + case $host in
  52826. + *-*-sunos*) add_shlibpath="$dir" ;;
  52827. + esac
  52828. + add_dir="-L$dir"
  52829. + add="-l$name"
  52830. + elif test "$hardcode_shlibpath_var" = no; then
  52831. + add_shlibpath="$dir"
  52832. + add="-l$name"
  52833. + else
  52834. + lib_linked=no
  52835. + fi
  52836. + ;;
  52837. + relink)
  52838. + if test "$hardcode_direct" = yes &&
  52839. + test "$hardcode_direct_absolute" = no; then
  52840. + add="$dir/$linklib"
  52841. + elif test "$hardcode_minus_L" = yes; then
  52842. + add_dir="-L$dir"
  52843. + # Try looking first in the location we're being installed to.
  52844. + if test -n "$inst_prefix_dir"; then
  52845. + case $libdir in
  52846. + [\\/]*)
  52847. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  52848. + ;;
  52849. + esac
  52850. + fi
  52851. + add="-l$name"
  52852. + elif test "$hardcode_shlibpath_var" = yes; then
  52853. + add_shlibpath="$dir"
  52854. + add="-l$name"
  52855. + else
  52856. + lib_linked=no
  52857. + fi
  52858. + ;;
  52859. + *) lib_linked=no ;;
  52860. + esac
  52861. +
  52862. + if test "$lib_linked" != yes; then
  52863. + func_fatal_configuration "unsupported hardcode properties"
  52864. + fi
  52865. +
  52866. + if test -n "$add_shlibpath"; then
  52867. + case :$compile_shlibpath: in
  52868. + *":$add_shlibpath:"*) ;;
  52869. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  52870. + esac
  52871. + fi
  52872. + if test "$linkmode" = prog; then
  52873. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  52874. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  52875. + else
  52876. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  52877. + test -n "$add" && deplibs="$add $deplibs"
  52878. + if test "$hardcode_direct" != yes &&
  52879. + test "$hardcode_minus_L" != yes &&
  52880. + test "$hardcode_shlibpath_var" = yes; then
  52881. + case :$finalize_shlibpath: in
  52882. + *":$libdir:"*) ;;
  52883. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52884. + esac
  52885. + fi
  52886. + fi
  52887. + fi
  52888. +
  52889. + if test "$linkmode" = prog || test "$mode" = relink; then
  52890. + add_shlibpath=
  52891. + add_dir=
  52892. + add=
  52893. + # Finalize command for both is simple: just hardcode it.
  52894. + if test "$hardcode_direct" = yes &&
  52895. + test "$hardcode_direct_absolute" = no; then
  52896. + add="$libdir/$linklib"
  52897. + elif test "$hardcode_minus_L" = yes; then
  52898. + add_dir="-L$libdir"
  52899. + add="-l$name"
  52900. + elif test "$hardcode_shlibpath_var" = yes; then
  52901. + case :$finalize_shlibpath: in
  52902. + *":$libdir:"*) ;;
  52903. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52904. + esac
  52905. + add="-l$name"
  52906. + elif test "$hardcode_automatic" = yes; then
  52907. + if test -n "$inst_prefix_dir" &&
  52908. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  52909. + add="$inst_prefix_dir$libdir/$linklib"
  52910. + else
  52911. + add="$libdir/$linklib"
  52912. + fi
  52913. + else
  52914. + # We cannot seem to hardcode it, guess we'll fake it.
  52915. + add_dir="-L$libdir"
  52916. + # Try looking first in the location we're being installed to.
  52917. + if test -n "$inst_prefix_dir"; then
  52918. + case $libdir in
  52919. + [\\/]*)
  52920. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  52921. + ;;
  52922. + esac
  52923. + fi
  52924. + add="-l$name"
  52925. + fi
  52926. +
  52927. + if test "$linkmode" = prog; then
  52928. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  52929. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  52930. + else
  52931. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  52932. + test -n "$add" && deplibs="$add $deplibs"
  52933. + fi
  52934. + fi
  52935. + elif test "$linkmode" = prog; then
  52936. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  52937. + # is not unsupported. This is valid on all known static and
  52938. + # shared platforms.
  52939. + if test "$hardcode_direct" != unsupported; then
  52940. + test -n "$old_library" && linklib="$old_library"
  52941. + compile_deplibs="$dir/$linklib $compile_deplibs"
  52942. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  52943. + else
  52944. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  52945. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  52946. + fi
  52947. + elif test "$build_libtool_libs" = yes; then
  52948. + # Not a shared library
  52949. + if test "$deplibs_check_method" != pass_all; then
  52950. + # We're trying link a shared library against a static one
  52951. + # but the system doesn't support it.
  52952. +
  52953. + # Just print a warning and add the library to dependency_libs so
  52954. + # that the program can be linked against the static library.
  52955. + $ECHO
  52956. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  52957. + $ECHO "*** I have the capability to make that library automatically link in when"
  52958. + $ECHO "*** you link to this library. But I can only do this if you have a"
  52959. + $ECHO "*** shared version of the library, which you do not appear to have."
  52960. + if test "$module" = yes; then
  52961. + $ECHO "*** But as you try to build a module library, libtool will still create "
  52962. + $ECHO "*** a static module, that should work as long as the dlopening application"
  52963. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  52964. + if test -z "$global_symbol_pipe"; then
  52965. + $ECHO
  52966. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  52967. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  52968. + $ECHO "*** not find such a program. So, this module is probably useless."
  52969. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  52970. + fi
  52971. + if test "$build_old_libs" = no; then
  52972. + build_libtool_libs=module
  52973. + build_old_libs=yes
  52974. + else
  52975. + build_libtool_libs=no
  52976. + fi
  52977. + fi
  52978. + else
  52979. + deplibs="$dir/$old_library $deplibs"
  52980. + link_static=yes
  52981. + fi
  52982. + fi # link shared/static library?
  52983. +
  52984. + if test "$linkmode" = lib; then
  52985. + if test -n "$dependency_libs" &&
  52986. + { test "$hardcode_into_libs" != yes ||
  52987. + test "$build_old_libs" = yes ||
  52988. + test "$link_static" = yes; }; then
  52989. + # Extract -R from dependency_libs
  52990. + temp_deplibs=
  52991. + for libdir in $dependency_libs; do
  52992. + case $libdir in
  52993. + -R*) func_stripname '-R' '' "$libdir"
  52994. + temp_xrpath=$func_stripname_result
  52995. + case " $xrpath " in
  52996. + *" $temp_xrpath "*) ;;
  52997. + *) xrpath="$xrpath $temp_xrpath";;
  52998. + esac;;
  52999. + *) temp_deplibs="$temp_deplibs $libdir";;
  53000. + esac
  53001. + done
  53002. + dependency_libs="$temp_deplibs"
  53003. + fi
  53004. +
  53005. + newlib_search_path="$newlib_search_path $absdir"
  53006. + # Link against this library
  53007. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  53008. + # ... and its dependency_libs
  53009. + tmp_libs=
  53010. + for deplib in $dependency_libs; do
  53011. + newdependency_libs="$deplib $newdependency_libs"
  53012. + if $opt_duplicate_deps ; then
  53013. + case "$tmp_libs " in
  53014. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  53015. + esac
  53016. + fi
  53017. + tmp_libs="$tmp_libs $deplib"
  53018. + done
  53019. +
  53020. + if test "$link_all_deplibs" != no; then
  53021. + # Add the search paths of all dependency libraries
  53022. + for deplib in $dependency_libs; do
  53023. + path=
  53024. + case $deplib in
  53025. + -L*) path="$deplib" ;;
  53026. + *.la)
  53027. + func_dirname "$deplib" "" "."
  53028. + dir="$func_dirname_result"
  53029. + # We need an absolute path.
  53030. + case $dir in
  53031. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  53032. + *)
  53033. + absdir=`cd "$dir" && pwd`
  53034. + if test -z "$absdir"; then
  53035. + func_warning "cannot determine absolute directory name of \`$dir'"
  53036. + absdir="$dir"
  53037. + fi
  53038. + ;;
  53039. + esac
  53040. + if $GREP "^installed=no" $deplib > /dev/null; then
  53041. + case $host in
  53042. + *-*-darwin*)
  53043. + depdepl=
  53044. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  53045. + if test -n "$deplibrary_names" ; then
  53046. + for tmp in $deplibrary_names ; do
  53047. + depdepl=$tmp
  53048. + done
  53049. + if test -f "$absdir/$objdir/$depdepl" ; then
  53050. + depdepl="$absdir/$objdir/$depdepl"
  53051. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  53052. + if test -z "$darwin_install_name"; then
  53053. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  53054. + fi
  53055. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  53056. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  53057. + path=
  53058. + fi
  53059. + fi
  53060. + ;;
  53061. + *)
  53062. + path="-L$absdir/$objdir"
  53063. + ;;
  53064. + esac
  53065. + else
  53066. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  53067. + test -z "$libdir" && \
  53068. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  53069. + test "$absdir" != "$libdir" && \
  53070. + func_warning "\`$deplib' seems to be moved"
  53071. +
  53072. + path="-L$absdir"
  53073. + fi
  53074. + ;;
  53075. + esac
  53076. + case " $deplibs " in
  53077. + *" $path "*) ;;
  53078. + *) deplibs="$path $deplibs" ;;
  53079. + esac
  53080. + done
  53081. + fi # link_all_deplibs != no
  53082. + fi # linkmode = lib
  53083. + done # for deplib in $libs
  53084. + if test "$pass" = link; then
  53085. + if test "$linkmode" = "prog"; then
  53086. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  53087. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  53088. + else
  53089. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  53090. + fi
  53091. + fi
  53092. + dependency_libs="$newdependency_libs"
  53093. + if test "$pass" = dlpreopen; then
  53094. + # Link the dlpreopened libraries before other libraries
  53095. + for deplib in $save_deplibs; do
  53096. + deplibs="$deplib $deplibs"
  53097. + done
  53098. + fi
  53099. + if test "$pass" != dlopen; then
  53100. + if test "$pass" != conv; then
  53101. + # Make sure lib_search_path contains only unique directories.
  53102. + lib_search_path=
  53103. + for dir in $newlib_search_path; do
  53104. + case "$lib_search_path " in
  53105. + *" $dir "*) ;;
  53106. + *) lib_search_path="$lib_search_path $dir" ;;
  53107. + esac
  53108. + done
  53109. + newlib_search_path=
  53110. + fi
  53111. +
  53112. + if test "$linkmode,$pass" != "prog,link"; then
  53113. + vars="deplibs"
  53114. + else
  53115. + vars="compile_deplibs finalize_deplibs"
  53116. + fi
  53117. + for var in $vars dependency_libs; do
  53118. + # Add libraries to $var in reverse order
  53119. + eval tmp_libs=\"\$$var\"
  53120. + new_libs=
  53121. + for deplib in $tmp_libs; do
  53122. + # FIXME: Pedantically, this is the right thing to do, so
  53123. + # that some nasty dependency loop isn't accidentally
  53124. + # broken:
  53125. + #new_libs="$deplib $new_libs"
  53126. + # Pragmatically, this seems to cause very few problems in
  53127. + # practice:
  53128. + case $deplib in
  53129. + -L*) new_libs="$deplib $new_libs" ;;
  53130. + -R*) ;;
  53131. + *)
  53132. + # And here is the reason: when a library appears more
  53133. + # than once as an explicit dependence of a library, or
  53134. + # is implicitly linked in more than once by the
  53135. + # compiler, it is considered special, and multiple
  53136. + # occurrences thereof are not removed. Compare this
  53137. + # with having the same library being listed as a
  53138. + # dependency of multiple other libraries: in this case,
  53139. + # we know (pedantically, we assume) the library does not
  53140. + # need to be listed more than once, so we keep only the
  53141. + # last copy. This is not always right, but it is rare
  53142. + # enough that we require users that really mean to play
  53143. + # such unportable linking tricks to link the library
  53144. + # using -Wl,-lname, so that libtool does not consider it
  53145. + # for duplicate removal.
  53146. + case " $specialdeplibs " in
  53147. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  53148. + *)
  53149. + case " $new_libs " in
  53150. + *" $deplib "*) ;;
  53151. + *) new_libs="$deplib $new_libs" ;;
  53152. + esac
  53153. + ;;
  53154. + esac
  53155. + ;;
  53156. + esac
  53157. + done
  53158. + tmp_libs=
  53159. + for deplib in $new_libs; do
  53160. + case $deplib in
  53161. + -L*)
  53162. + case " $tmp_libs " in
  53163. + *" $deplib "*) ;;
  53164. + *) tmp_libs="$tmp_libs $deplib" ;;
  53165. + esac
  53166. + ;;
  53167. + *) tmp_libs="$tmp_libs $deplib" ;;
  53168. + esac
  53169. + done
  53170. + eval $var=\"$tmp_libs\"
  53171. + done # for var
  53172. + fi
  53173. + # Last step: remove runtime libs from dependency_libs
  53174. + # (they stay in deplibs)
  53175. + tmp_libs=
  53176. + for i in $dependency_libs ; do
  53177. + case " $predeps $postdeps $compiler_lib_search_path " in
  53178. + *" $i "*)
  53179. + i=""
  53180. + ;;
  53181. + esac
  53182. + if test -n "$i" ; then
  53183. + tmp_libs="$tmp_libs $i"
  53184. + fi
  53185. + done
  53186. + dependency_libs=$tmp_libs
  53187. + done # for pass
  53188. + if test "$linkmode" = prog; then
  53189. + dlfiles="$newdlfiles"
  53190. + fi
  53191. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  53192. + dlprefiles="$newdlprefiles"
  53193. + fi
  53194. +
  53195. + case $linkmode in
  53196. + oldlib)
  53197. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53198. + func_warning "\`-dlopen' is ignored for archives"
  53199. + fi
  53200. +
  53201. + case " $deplibs" in
  53202. + *\ -l* | *\ -L*)
  53203. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  53204. + esac
  53205. +
  53206. + test -n "$rpath" && \
  53207. + func_warning "\`-rpath' is ignored for archives"
  53208. +
  53209. + test -n "$xrpath" && \
  53210. + func_warning "\`-R' is ignored for archives"
  53211. +
  53212. + test -n "$vinfo" && \
  53213. + func_warning "\`-version-info/-version-number' is ignored for archives"
  53214. +
  53215. + test -n "$release" && \
  53216. + func_warning "\`-release' is ignored for archives"
  53217. +
  53218. + test -n "$export_symbols$export_symbols_regex" && \
  53219. + func_warning "\`-export-symbols' is ignored for archives"
  53220. +
  53221. + # Now set the variables for building old libraries.
  53222. + build_libtool_libs=no
  53223. + oldlibs="$output"
  53224. + objs="$objs$old_deplibs"
  53225. + ;;
  53226. +
  53227. + lib)
  53228. + # Make sure we only generate libraries of the form `libNAME.la'.
  53229. + case $outputname in
  53230. + lib*)
  53231. + func_stripname 'lib' '.la' "$outputname"
  53232. + name=$func_stripname_result
  53233. + eval shared_ext=\"$shrext_cmds\"
  53234. + eval libname=\"$libname_spec\"
  53235. + ;;
  53236. + *)
  53237. + test "$module" = no && \
  53238. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  53239. +
  53240. + if test "$need_lib_prefix" != no; then
  53241. + # Add the "lib" prefix for modules if required
  53242. + func_stripname '' '.la' "$outputname"
  53243. + name=$func_stripname_result
  53244. + eval shared_ext=\"$shrext_cmds\"
  53245. + eval libname=\"$libname_spec\"
  53246. + else
  53247. + func_stripname '' '.la' "$outputname"
  53248. + libname=$func_stripname_result
  53249. + fi
  53250. + ;;
  53251. + esac
  53252. +
  53253. + if test -n "$objs"; then
  53254. + if test "$deplibs_check_method" != pass_all; then
  53255. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  53256. + else
  53257. + $ECHO
  53258. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  53259. + $ECHO "*** objects $objs is not portable!"
  53260. + libobjs="$libobjs $objs"
  53261. + fi
  53262. + fi
  53263. +
  53264. + test "$dlself" != no && \
  53265. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  53266. +
  53267. + set dummy $rpath
  53268. + shift
  53269. + test "$#" -gt 1 && \
  53270. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  53271. +
  53272. + install_libdir="$1"
  53273. +
  53274. + oldlibs=
  53275. + if test -z "$rpath"; then
  53276. + if test "$build_libtool_libs" = yes; then
  53277. + # Building a libtool convenience library.
  53278. + # Some compilers have problems with a `.al' extension so
  53279. + # convenience libraries should have the same extension an
  53280. + # archive normally would.
  53281. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  53282. + build_libtool_libs=convenience
  53283. + build_old_libs=yes
  53284. + fi
  53285. +
  53286. + test -n "$vinfo" && \
  53287. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  53288. +
  53289. + test -n "$release" && \
  53290. + func_warning "\`-release' is ignored for convenience libraries"
  53291. + else
  53292. +
  53293. + # Parse the version information argument.
  53294. + save_ifs="$IFS"; IFS=':'
  53295. + set dummy $vinfo 0 0 0
  53296. + shift
  53297. + IFS="$save_ifs"
  53298. +
  53299. + test -n "$7" && \
  53300. + func_fatal_help "too many parameters to \`-version-info'"
  53301. +
  53302. + # convert absolute version numbers to libtool ages
  53303. + # this retains compatibility with .la files and attempts
  53304. + # to make the code below a bit more comprehensible
  53305. +
  53306. + case $vinfo_number in
  53307. + yes)
  53308. + number_major="$1"
  53309. + number_minor="$2"
  53310. + number_revision="$3"
  53311. + #
  53312. + # There are really only two kinds -- those that
  53313. + # use the current revision as the major version
  53314. + # and those that subtract age and use age as
  53315. + # a minor version. But, then there is irix
  53316. + # which has an extra 1 added just for fun
  53317. + #
  53318. + case $version_type in
  53319. + darwin|linux|osf|windows|none)
  53320. + func_arith $number_major + $number_minor
  53321. + current=$func_arith_result
  53322. + age="$number_minor"
  53323. + revision="$number_revision"
  53324. + ;;
  53325. + freebsd-aout|freebsd-elf|sunos)
  53326. + current="$number_major"
  53327. + revision="$number_minor"
  53328. + age="0"
  53329. + ;;
  53330. + irix|nonstopux)
  53331. + func_arith $number_major + $number_minor
  53332. + current=$func_arith_result
  53333. + age="$number_minor"
  53334. + revision="$number_minor"
  53335. + lt_irix_increment=no
  53336. + ;;
  53337. + *)
  53338. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  53339. + ;;
  53340. + esac
  53341. + ;;
  53342. + no)
  53343. + current="$1"
  53344. + revision="$2"
  53345. + age="$3"
  53346. + ;;
  53347. + esac
  53348. +
  53349. + # Check that each of the things are valid numbers.
  53350. + case $current in
  53351. + 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]) ;;
  53352. + *)
  53353. + func_error "CURRENT \`$current' must be a nonnegative integer"
  53354. + func_fatal_error "\`$vinfo' is not valid version information"
  53355. + ;;
  53356. + esac
  53357. +
  53358. + case $revision in
  53359. + 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]) ;;
  53360. + *)
  53361. + func_error "REVISION \`$revision' must be a nonnegative integer"
  53362. + func_fatal_error "\`$vinfo' is not valid version information"
  53363. + ;;
  53364. + esac
  53365. +
  53366. + case $age in
  53367. + 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]) ;;
  53368. + *)
  53369. + func_error "AGE \`$age' must be a nonnegative integer"
  53370. + func_fatal_error "\`$vinfo' is not valid version information"
  53371. + ;;
  53372. + esac
  53373. +
  53374. + if test "$age" -gt "$current"; then
  53375. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  53376. + func_fatal_error "\`$vinfo' is not valid version information"
  53377. + fi
  53378. +
  53379. + # Calculate the version variables.
  53380. + major=
  53381. + versuffix=
  53382. + verstring=
  53383. + case $version_type in
  53384. + none) ;;
  53385. +
  53386. + darwin)
  53387. + # Like Linux, but with the current version available in
  53388. + # verstring for coding it into the library header
  53389. + func_arith $current - $age
  53390. + major=.$func_arith_result
  53391. + versuffix="$major.$age.$revision"
  53392. + # Darwin ld doesn't like 0 for these options...
  53393. + func_arith $current + 1
  53394. + minor_current=$func_arith_result
  53395. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  53396. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  53397. + ;;
  53398. +
  53399. + freebsd-aout)
  53400. + major=".$current"
  53401. + versuffix=".$current.$revision";
  53402. + ;;
  53403. +
  53404. + freebsd-elf)
  53405. + major=".$current"
  53406. + versuffix=".$current"
  53407. + ;;
  53408. +
  53409. + irix | nonstopux)
  53410. + if test "X$lt_irix_increment" = "Xno"; then
  53411. + func_arith $current - $age
  53412. + else
  53413. + func_arith $current - $age + 1
  53414. + fi
  53415. + major=$func_arith_result
  53416. +
  53417. + case $version_type in
  53418. + nonstopux) verstring_prefix=nonstopux ;;
  53419. + *) verstring_prefix=sgi ;;
  53420. + esac
  53421. + verstring="$verstring_prefix$major.$revision"
  53422. +
  53423. + # Add in all the interfaces that we are compatible with.
  53424. + loop=$revision
  53425. + while test "$loop" -ne 0; do
  53426. + func_arith $revision - $loop
  53427. + iface=$func_arith_result
  53428. + func_arith $loop - 1
  53429. + loop=$func_arith_result
  53430. + verstring="$verstring_prefix$major.$iface:$verstring"
  53431. + done
  53432. +
  53433. + # Before this point, $major must not contain `.'.
  53434. + major=.$major
  53435. + versuffix="$major.$revision"
  53436. + ;;
  53437. +
  53438. + linux)
  53439. + func_arith $current - $age
  53440. + major=.$func_arith_result
  53441. + versuffix="$major.$age.$revision"
  53442. + ;;
  53443. +
  53444. + osf)
  53445. + func_arith $current - $age
  53446. + major=.$func_arith_result
  53447. + versuffix=".$current.$age.$revision"
  53448. + verstring="$current.$age.$revision"
  53449. +
  53450. + # Add in all the interfaces that we are compatible with.
  53451. + loop=$age
  53452. + while test "$loop" -ne 0; do
  53453. + func_arith $current - $loop
  53454. + iface=$func_arith_result
  53455. + func_arith $loop - 1
  53456. + loop=$func_arith_result
  53457. + verstring="$verstring:${iface}.0"
  53458. + done
  53459. +
  53460. + # Make executables depend on our current version.
  53461. + verstring="$verstring:${current}.0"
  53462. + ;;
  53463. +
  53464. + qnx)
  53465. + major=".$current"
  53466. + versuffix=".$current"
  53467. + ;;
  53468. +
  53469. + sunos)
  53470. + major=".$current"
  53471. + versuffix=".$current.$revision"
  53472. + ;;
  53473. +
  53474. + windows)
  53475. + # Use '-' rather than '.', since we only want one
  53476. + # extension on DOS 8.3 filesystems.
  53477. + func_arith $current - $age
  53478. + major=$func_arith_result
  53479. + versuffix="-$major"
  53480. + ;;
  53481. +
  53482. + *)
  53483. + func_fatal_configuration "unknown library version type \`$version_type'"
  53484. + ;;
  53485. + esac
  53486. +
  53487. + # Clear the version info if we defaulted, and they specified a release.
  53488. + if test -z "$vinfo" && test -n "$release"; then
  53489. + major=
  53490. + case $version_type in
  53491. + darwin)
  53492. + # we can't check for "0.0" in archive_cmds due to quoting
  53493. + # problems, so we reset it completely
  53494. + verstring=
  53495. + ;;
  53496. + *)
  53497. + verstring="0.0"
  53498. + ;;
  53499. + esac
  53500. + if test "$need_version" = no; then
  53501. + versuffix=
  53502. + else
  53503. + versuffix=".0.0"
  53504. + fi
  53505. + fi
  53506. +
  53507. + # Remove version info from name if versioning should be avoided
  53508. + if test "$avoid_version" = yes && test "$need_version" = no; then
  53509. + major=
  53510. + versuffix=
  53511. + verstring=""
  53512. + fi
  53513. +
  53514. + # Check to see if the archive will have undefined symbols.
  53515. + if test "$allow_undefined" = yes; then
  53516. + if test "$allow_undefined_flag" = unsupported; then
  53517. + func_warning "undefined symbols not allowed in $host shared libraries"
  53518. + build_libtool_libs=no
  53519. + build_old_libs=yes
  53520. + fi
  53521. + else
  53522. + # Don't allow undefined symbols.
  53523. + allow_undefined_flag="$no_undefined_flag"
  53524. + fi
  53525. +
  53526. + fi
  53527. +
  53528. + func_generate_dlsyms "$libname" "$libname" "yes"
  53529. + libobjs="$libobjs $symfileobj"
  53530. + test "X$libobjs" = "X " && libobjs=
  53531. +
  53532. + if test "$mode" != relink; then
  53533. + # Remove our outputs, but don't remove object files since they
  53534. + # may have been created when compiling PIC objects.
  53535. + removelist=
  53536. + tempremovelist=`$ECHO "$output_objdir/*"`
  53537. + for p in $tempremovelist; do
  53538. + case $p in
  53539. + *.$objext | *.gcno)
  53540. + ;;
  53541. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  53542. + if test "X$precious_files_regex" != "X"; then
  53543. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  53544. + then
  53545. + continue
  53546. + fi
  53547. + fi
  53548. + removelist="$removelist $p"
  53549. + ;;
  53550. + *) ;;
  53551. + esac
  53552. + done
  53553. + test -n "$removelist" && \
  53554. + func_show_eval "${RM}r \$removelist"
  53555. + fi
  53556. +
  53557. + # Now set the variables for building old libraries.
  53558. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  53559. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  53560. +
  53561. + # Transform .lo files to .o files.
  53562. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  53563. + fi
  53564. +
  53565. + # Eliminate all temporary directories.
  53566. + #for path in $notinst_path; do
  53567. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  53568. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  53569. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  53570. + #done
  53571. +
  53572. + if test -n "$xrpath"; then
  53573. + # If the user specified any rpath flags, then add them.
  53574. + temp_xrpath=
  53575. + for libdir in $xrpath; do
  53576. + temp_xrpath="$temp_xrpath -R$libdir"
  53577. + case "$finalize_rpath " in
  53578. + *" $libdir "*) ;;
  53579. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  53580. + esac
  53581. + done
  53582. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  53583. + dependency_libs="$temp_xrpath $dependency_libs"
  53584. + fi
  53585. + fi
  53586. +
  53587. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  53588. + old_dlfiles="$dlfiles"
  53589. + dlfiles=
  53590. + for lib in $old_dlfiles; do
  53591. + case " $dlprefiles $dlfiles " in
  53592. + *" $lib "*) ;;
  53593. + *) dlfiles="$dlfiles $lib" ;;
  53594. + esac
  53595. + done
  53596. +
  53597. + # Make sure dlprefiles contains only unique files
  53598. + old_dlprefiles="$dlprefiles"
  53599. + dlprefiles=
  53600. + for lib in $old_dlprefiles; do
  53601. + case "$dlprefiles " in
  53602. + *" $lib "*) ;;
  53603. + *) dlprefiles="$dlprefiles $lib" ;;
  53604. + esac
  53605. + done
  53606. +
  53607. + if test "$build_libtool_libs" = yes; then
  53608. + if test -n "$rpath"; then
  53609. + case $host in
  53610. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  53611. + # these systems don't actually have a c library (as such)!
  53612. + ;;
  53613. + *-*-rhapsody* | *-*-darwin1.[012])
  53614. + # Rhapsody C library is in the System framework
  53615. + deplibs="$deplibs System.ltframework"
  53616. + ;;
  53617. + *-*-netbsd*)
  53618. + # Don't link with libc until the a.out ld.so is fixed.
  53619. + ;;
  53620. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53621. + # Do not include libc due to us having libc/libc_r.
  53622. + ;;
  53623. + *-*-sco3.2v5* | *-*-sco5v6*)
  53624. + # Causes problems with __ctype
  53625. + ;;
  53626. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  53627. + # Compiler inserts libc in the correct place for threads to work
  53628. + ;;
  53629. + *)
  53630. + # Add libc to deplibs on all other systems if necessary.
  53631. + if test "$build_libtool_need_lc" = "yes"; then
  53632. + deplibs="$deplibs -lc"
  53633. + fi
  53634. + ;;
  53635. + esac
  53636. + fi
  53637. +
  53638. + # Transform deplibs into only deplibs that can be linked in shared.
  53639. + name_save=$name
  53640. + libname_save=$libname
  53641. + release_save=$release
  53642. + versuffix_save=$versuffix
  53643. + major_save=$major
  53644. + # I'm not sure if I'm treating the release correctly. I think
  53645. + # release should show up in the -l (ie -lgmp5) so we don't want to
  53646. + # add it in twice. Is that correct?
  53647. + release=""
  53648. + versuffix=""
  53649. + major=""
  53650. + newdeplibs=
  53651. + droppeddeps=no
  53652. + case $deplibs_check_method in
  53653. + pass_all)
  53654. + # Don't check for shared/static. Everything works.
  53655. + # This might be a little naive. We might want to check
  53656. + # whether the library exists or not. But this is on
  53657. + # osf3 & osf4 and I'm not really sure... Just
  53658. + # implementing what was already the behavior.
  53659. + newdeplibs=$deplibs
  53660. + ;;
  53661. + test_compile)
  53662. + # This code stresses the "libraries are programs" paradigm to its
  53663. + # limits. Maybe even breaks it. We compile a program, linking it
  53664. + # against the deplibs as a proxy for the library. Then we can check
  53665. + # whether they linked in statically or dynamically with ldd.
  53666. + $opt_dry_run || $RM conftest.c
  53667. + cat > conftest.c <<EOF
  53668. + int main() { return 0; }
  53669. +EOF
  53670. + $opt_dry_run || $RM conftest
  53671. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  53672. + ldd_output=`ldd conftest`
  53673. + for i in $deplibs; do
  53674. + case $i in
  53675. + -l*)
  53676. + func_stripname -l '' "$i"
  53677. + name=$func_stripname_result
  53678. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53679. + case " $predeps $postdeps " in
  53680. + *" $i "*)
  53681. + newdeplibs="$newdeplibs $i"
  53682. + i=""
  53683. + ;;
  53684. + esac
  53685. + fi
  53686. + if test -n "$i" ; then
  53687. + libname=`eval "\\$ECHO \"$libname_spec\""`
  53688. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  53689. + set dummy $deplib_matches; shift
  53690. + deplib_match=$1
  53691. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53692. + newdeplibs="$newdeplibs $i"
  53693. + else
  53694. + droppeddeps=yes
  53695. + $ECHO
  53696. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  53697. + $ECHO "*** I have the capability to make that library automatically link in when"
  53698. + $ECHO "*** you link to this library. But I can only do this if you have a"
  53699. + $ECHO "*** shared version of the library, which I believe you do not have"
  53700. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  53701. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  53702. + fi
  53703. + fi
  53704. + ;;
  53705. + *)
  53706. + newdeplibs="$newdeplibs $i"
  53707. + ;;
  53708. + esac
  53709. + done
  53710. + else
  53711. + # Error occurred in the first compile. Let's try to salvage
  53712. + # the situation: Compile a separate program for each library.
  53713. + for i in $deplibs; do
  53714. + case $i in
  53715. + -l*)
  53716. + func_stripname -l '' "$i"
  53717. + name=$func_stripname_result
  53718. + $opt_dry_run || $RM conftest
  53719. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  53720. + ldd_output=`ldd conftest`
  53721. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53722. + case " $predeps $postdeps " in
  53723. + *" $i "*)
  53724. + newdeplibs="$newdeplibs $i"
  53725. + i=""
  53726. + ;;
  53727. + esac
  53728. + fi
  53729. + if test -n "$i" ; then
  53730. + libname=`eval "\\$ECHO \"$libname_spec\""`
  53731. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  53732. + set dummy $deplib_matches; shift
  53733. + deplib_match=$1
  53734. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53735. + newdeplibs="$newdeplibs $i"
  53736. + else
  53737. + droppeddeps=yes
  53738. + $ECHO
  53739. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  53740. + $ECHO "*** I have the capability to make that library automatically link in when"
  53741. + $ECHO "*** you link to this library. But I can only do this if you have a"
  53742. + $ECHO "*** shared version of the library, which you do not appear to have"
  53743. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  53744. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  53745. + fi
  53746. + fi
  53747. + else
  53748. + droppeddeps=yes
  53749. + $ECHO
  53750. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  53751. + $ECHO "*** make it link in! You will probably need to install it or some"
  53752. + $ECHO "*** library that it depends on before this library will be fully"
  53753. + $ECHO "*** functional. Installing it before continuing would be even better."
  53754. + fi
  53755. + ;;
  53756. + *)
  53757. + newdeplibs="$newdeplibs $i"
  53758. + ;;
  53759. + esac
  53760. + done
  53761. + fi
  53762. + ;;
  53763. + file_magic*)
  53764. + set dummy $deplibs_check_method; shift
  53765. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  53766. + for a_deplib in $deplibs; do
  53767. + case $a_deplib in
  53768. + -l*)
  53769. + func_stripname -l '' "$a_deplib"
  53770. + name=$func_stripname_result
  53771. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53772. + case " $predeps $postdeps " in
  53773. + *" $a_deplib "*)
  53774. + newdeplibs="$newdeplibs $a_deplib"
  53775. + a_deplib=""
  53776. + ;;
  53777. + esac
  53778. + fi
  53779. + if test -n "$a_deplib" ; then
  53780. + libname=`eval "\\$ECHO \"$libname_spec\""`
  53781. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53782. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53783. + for potent_lib in $potential_libs; do
  53784. + # Follow soft links.
  53785. + if ls -lLd "$potent_lib" 2>/dev/null |
  53786. + $GREP " -> " >/dev/null; then
  53787. + continue
  53788. + fi
  53789. + # The statement above tries to avoid entering an
  53790. + # endless loop below, in case of cyclic links.
  53791. + # We might still enter an endless loop, since a link
  53792. + # loop can be closed while we follow links,
  53793. + # but so what?
  53794. + potlib="$potent_lib"
  53795. + while test -h "$potlib" 2>/dev/null; do
  53796. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  53797. + case $potliblink in
  53798. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  53799. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  53800. + esac
  53801. + done
  53802. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  53803. + $SED -e 10q |
  53804. + $EGREP "$file_magic_regex" > /dev/null; then
  53805. + newdeplibs="$newdeplibs $a_deplib"
  53806. + a_deplib=""
  53807. + break 2
  53808. + fi
  53809. + done
  53810. + done
  53811. + fi
  53812. + if test -n "$a_deplib" ; then
  53813. + droppeddeps=yes
  53814. + $ECHO
  53815. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  53816. + $ECHO "*** I have the capability to make that library automatically link in when"
  53817. + $ECHO "*** you link to this library. But I can only do this if you have a"
  53818. + $ECHO "*** shared version of the library, which you do not appear to have"
  53819. + $ECHO "*** because I did check the linker path looking for a file starting"
  53820. + if test -z "$potlib" ; then
  53821. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  53822. + else
  53823. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  53824. + $ECHO "*** using a file magic. Last file checked: $potlib"
  53825. + fi
  53826. + fi
  53827. + ;;
  53828. + *)
  53829. + # Add a -L argument.
  53830. + newdeplibs="$newdeplibs $a_deplib"
  53831. + ;;
  53832. + esac
  53833. + done # Gone through all deplibs.
  53834. + ;;
  53835. + match_pattern*)
  53836. + set dummy $deplibs_check_method; shift
  53837. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  53838. + for a_deplib in $deplibs; do
  53839. + case $a_deplib in
  53840. + -l*)
  53841. + func_stripname -l '' "$a_deplib"
  53842. + name=$func_stripname_result
  53843. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53844. + case " $predeps $postdeps " in
  53845. + *" $a_deplib "*)
  53846. + newdeplibs="$newdeplibs $a_deplib"
  53847. + a_deplib=""
  53848. + ;;
  53849. + esac
  53850. + fi
  53851. + if test -n "$a_deplib" ; then
  53852. + libname=`eval "\\$ECHO \"$libname_spec\""`
  53853. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53854. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53855. + for potent_lib in $potential_libs; do
  53856. + potlib="$potent_lib" # see symlink-check above in file_magic test
  53857. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  53858. + $EGREP "$match_pattern_regex" > /dev/null; then
  53859. + newdeplibs="$newdeplibs $a_deplib"
  53860. + a_deplib=""
  53861. + break 2
  53862. + fi
  53863. + done
  53864. + done
  53865. + fi
  53866. + if test -n "$a_deplib" ; then
  53867. + droppeddeps=yes
  53868. + $ECHO
  53869. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  53870. + $ECHO "*** I have the capability to make that library automatically link in when"
  53871. + $ECHO "*** you link to this library. But I can only do this if you have a"
  53872. + $ECHO "*** shared version of the library, which you do not appear to have"
  53873. + $ECHO "*** because I did check the linker path looking for a file starting"
  53874. + if test -z "$potlib" ; then
  53875. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  53876. + else
  53877. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  53878. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  53879. + fi
  53880. + fi
  53881. + ;;
  53882. + *)
  53883. + # Add a -L argument.
  53884. + newdeplibs="$newdeplibs $a_deplib"
  53885. + ;;
  53886. + esac
  53887. + done # Gone through all deplibs.
  53888. + ;;
  53889. + none | unknown | *)
  53890. + newdeplibs=""
  53891. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  53892. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  53893. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53894. + for i in $predeps $postdeps ; do
  53895. + # can't use Xsed below, because $i might contain '/'
  53896. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  53897. + done
  53898. + fi
  53899. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  53900. + $GREP . >/dev/null; then
  53901. + $ECHO
  53902. + if test "X$deplibs_check_method" = "Xnone"; then
  53903. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  53904. + else
  53905. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  53906. + fi
  53907. + $ECHO "*** All declared inter-library dependencies are being dropped."
  53908. + droppeddeps=yes
  53909. + fi
  53910. + ;;
  53911. + esac
  53912. + versuffix=$versuffix_save
  53913. + major=$major_save
  53914. + release=$release_save
  53915. + libname=$libname_save
  53916. + name=$name_save
  53917. +
  53918. + case $host in
  53919. + *-*-rhapsody* | *-*-darwin1.[012])
  53920. + # On Rhapsody replace the C library with the System framework
  53921. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  53922. ;;
  53923. esac
  53924. - $rm $output
  53925. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  53926. - $echo > $output "\
  53927. -#! $SHELL
  53928. -
  53929. -# $output - temporary wrapper script for $objdir/$outputname
  53930. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  53931. -#
  53932. -# The $output program cannot be directly executed until all the libtool
  53933. -# libraries that it depends on are installed.
  53934. -#
  53935. -# This wrapper script should never be moved out of the build directory.
  53936. -# If it is, it will not operate correctly.
  53937. -
  53938. -# Sed substitution that helps us do robust quoting. It backslashifies
  53939. -# metacharacters that are still active within double-quoted strings.
  53940. -Xsed='${SED} -e 1s/^X//'
  53941. -sed_quote_subst='$sed_quote_subst'
  53942. -
  53943. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  53944. -# if CDPATH is set.
  53945. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  53946. -
  53947. -relink_command=\"$relink_command\"
  53948. -
  53949. -# This environment variable determines our operation mode.
  53950. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  53951. - # install mode needs the following variable:
  53952. - notinst_deplibs='$notinst_deplibs'
  53953. -else
  53954. - # When we are sourced in execute mode, \$file and \$echo are already set.
  53955. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  53956. - echo=\"$qecho\"
  53957. - file=\"\$0\"
  53958. - # Make sure echo works.
  53959. - if test \"X\$1\" = X--no-reexec; then
  53960. - # Discard the --no-reexec flag, and continue.
  53961. - shift
  53962. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  53963. - # Yippee, \$echo works!
  53964. - :
  53965. - else
  53966. - # Restart under the correct shell, and then maybe \$echo will work.
  53967. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  53968. - fi
  53969. - fi\
  53970. -"
  53971. - $echo >> $output "\
  53972. -
  53973. - # Find the directory that this script lives in.
  53974. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  53975. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  53976. -
  53977. - # Follow symbolic links until we get to the real thisdir.
  53978. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  53979. - while test -n \"\$file\"; do
  53980. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  53981. + if test "$droppeddeps" = yes; then
  53982. + if test "$module" = yes; then
  53983. + $ECHO
  53984. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  53985. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  53986. + $ECHO "*** a static module, that should work as long as the dlopening"
  53987. + $ECHO "*** application is linked with the -dlopen flag."
  53988. + if test -z "$global_symbol_pipe"; then
  53989. + $ECHO
  53990. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  53991. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  53992. + $ECHO "*** not find such a program. So, this module is probably useless."
  53993. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  53994. + fi
  53995. + if test "$build_old_libs" = no; then
  53996. + oldlibs="$output_objdir/$libname.$libext"
  53997. + build_libtool_libs=module
  53998. + build_old_libs=yes
  53999. + else
  54000. + build_libtool_libs=no
  54001. + fi
  54002. + else
  54003. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  54004. + $ECHO "*** automatically added whenever a program is linked with this library"
  54005. + $ECHO "*** or is declared to -dlopen it."
  54006. - # If there was a directory component, then change thisdir.
  54007. - if test \"x\$destdir\" != \"x\$file\"; then
  54008. - case \"\$destdir\" in
  54009. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  54010. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  54011. + if test "$allow_undefined" = no; then
  54012. + $ECHO
  54013. + $ECHO "*** Since this library must not contain undefined symbols,"
  54014. + $ECHO "*** because either the platform does not support them or"
  54015. + $ECHO "*** it was explicitly requested with -no-undefined,"
  54016. + $ECHO "*** libtool will only create a static version of it."
  54017. + if test "$build_old_libs" = no; then
  54018. + oldlibs="$output_objdir/$libname.$libext"
  54019. + build_libtool_libs=module
  54020. + build_old_libs=yes
  54021. + else
  54022. + build_libtool_libs=no
  54023. + fi
  54024. + fi
  54025. + fi
  54026. + fi
  54027. + # Done checking deplibs!
  54028. + deplibs=$newdeplibs
  54029. + fi
  54030. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  54031. + case $host in
  54032. + *-*-darwin*)
  54033. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  54034. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  54035. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  54036. + ;;
  54037. esac
  54038. - fi
  54039. -
  54040. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  54041. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  54042. - done
  54043. - # Try to get the absolute directory name.
  54044. - absdir=\`cd \"\$thisdir\" && pwd\`
  54045. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  54046. -"
  54047. -
  54048. - if test "$fast_install" = yes; then
  54049. - $echo >> $output "\
  54050. - program=lt-'$outputname'$exeext
  54051. - progdir=\"\$thisdir/$objdir\"
  54052. -
  54053. - if test ! -f \"\$progdir/\$program\" || \\
  54054. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  54055. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  54056. + # move library search paths that coincide with paths to not yet
  54057. + # installed libraries to the beginning of the library search list
  54058. + new_libs=
  54059. + for path in $notinst_path; do
  54060. + case " $new_libs " in
  54061. + *" -L$path/$objdir "*) ;;
  54062. + *)
  54063. + case " $deplibs " in
  54064. + *" -L$path/$objdir "*)
  54065. + new_libs="$new_libs -L$path/$objdir" ;;
  54066. + esac
  54067. + ;;
  54068. + esac
  54069. + done
  54070. + for deplib in $deplibs; do
  54071. + case $deplib in
  54072. + -L*)
  54073. + case " $new_libs " in
  54074. + *" $deplib "*) ;;
  54075. + *) new_libs="$new_libs $deplib" ;;
  54076. + esac
  54077. + ;;
  54078. + *) new_libs="$new_libs $deplib" ;;
  54079. + esac
  54080. + done
  54081. + deplibs="$new_libs"
  54082. - file=\"\$\$-\$program\"
  54083. + # All the library-specific variables (install_libdir is set above).
  54084. + library_names=
  54085. + old_library=
  54086. + dlname=
  54087. - if test ! -d \"\$progdir\"; then
  54088. - $mkdir \"\$progdir\"
  54089. - else
  54090. - $rm \"\$progdir/\$file\"
  54091. - fi"
  54092. + # Test again, we may have decided not to build it any more
  54093. + if test "$build_libtool_libs" = yes; then
  54094. + if test "$hardcode_into_libs" = yes; then
  54095. + # Hardcode the library paths
  54096. + hardcode_libdirs=
  54097. + dep_rpath=
  54098. + rpath="$finalize_rpath"
  54099. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  54100. + for libdir in $rpath; do
  54101. + if test -n "$hardcode_libdir_flag_spec"; then
  54102. + if test -n "$hardcode_libdir_separator"; then
  54103. + if test -z "$hardcode_libdirs"; then
  54104. + hardcode_libdirs="$libdir"
  54105. + else
  54106. + # Just accumulate the unique libdirs.
  54107. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54108. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54109. + ;;
  54110. + *)
  54111. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54112. + ;;
  54113. + esac
  54114. + fi
  54115. + else
  54116. + eval flag=\"$hardcode_libdir_flag_spec\"
  54117. + dep_rpath="$dep_rpath $flag"
  54118. + fi
  54119. + elif test -n "$runpath_var"; then
  54120. + case "$perm_rpath " in
  54121. + *" $libdir "*) ;;
  54122. + *) perm_rpath="$perm_rpath $libdir" ;;
  54123. + esac
  54124. + fi
  54125. + done
  54126. + # Substitute the hardcoded libdirs into the rpath.
  54127. + if test -n "$hardcode_libdir_separator" &&
  54128. + test -n "$hardcode_libdirs"; then
  54129. + libdir="$hardcode_libdirs"
  54130. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  54131. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  54132. + else
  54133. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  54134. + fi
  54135. + fi
  54136. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  54137. + # We should set the runpath_var.
  54138. + rpath=
  54139. + for dir in $perm_rpath; do
  54140. + rpath="$rpath$dir:"
  54141. + done
  54142. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  54143. + fi
  54144. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  54145. + fi
  54146. - $echo >> $output "\
  54147. + shlibpath="$finalize_shlibpath"
  54148. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  54149. + if test -n "$shlibpath"; then
  54150. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  54151. + fi
  54152. - # relink executable if necessary
  54153. - if test -n \"\$relink_command\"; then
  54154. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  54155. - else
  54156. - $echo \"\$relink_command_output\" >&2
  54157. - $rm \"\$progdir/\$file\"
  54158. - exit $EXIT_FAILURE
  54159. - fi
  54160. - fi
  54161. + # Get the real and link names of the library.
  54162. + eval shared_ext=\"$shrext_cmds\"
  54163. + eval library_names=\"$library_names_spec\"
  54164. + set dummy $library_names
  54165. + shift
  54166. + realname="$1"
  54167. + shift
  54168. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  54169. - { $rm \"\$progdir/\$program\";
  54170. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  54171. - $rm \"\$progdir/\$file\"
  54172. - fi"
  54173. + if test -n "$soname_spec"; then
  54174. + eval soname=\"$soname_spec\"
  54175. else
  54176. - $echo >> $output "\
  54177. - program='$outputname'
  54178. - progdir=\"\$thisdir/$objdir\"
  54179. -"
  54180. + soname="$realname"
  54181. fi
  54182. -
  54183. - $echo >> $output "\
  54184. -
  54185. - if test -f \"\$progdir/\$program\"; then"
  54186. -
  54187. - # Export our shlibpath_var if we have one.
  54188. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  54189. - $echo >> $output "\
  54190. - # Add our own library path to $shlibpath_var
  54191. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  54192. -
  54193. - # Some systems cannot cope with colon-terminated $shlibpath_var
  54194. - # The second colon is a workaround for a bug in BeOS R4 sed
  54195. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  54196. -
  54197. - export $shlibpath_var
  54198. -"
  54199. + if test -z "$dlname"; then
  54200. + dlname=$soname
  54201. fi
  54202. - # fixup the dll searchpath if we need to.
  54203. - if test -n "$dllsearchpath"; then
  54204. - $echo >> $output "\
  54205. - # Add the dll search path components to the executable PATH
  54206. - PATH=$dllsearchpath:\$PATH
  54207. -"
  54208. - fi
  54209. + lib="$output_objdir/$realname"
  54210. + linknames=
  54211. + for link
  54212. + do
  54213. + linknames="$linknames $link"
  54214. + done
  54215. - $echo >> $output "\
  54216. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  54217. - # Run the actual program with our arguments.
  54218. -"
  54219. - case $host in
  54220. - # Backslashes separate directories on plain windows
  54221. - *-*-mingw | *-*-os2*)
  54222. - $echo >> $output "\
  54223. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  54224. -"
  54225. - ;;
  54226. + # Use standard objects if they are pic
  54227. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54228. + test "X$libobjs" = "X " && libobjs=
  54229. - *)
  54230. - $echo >> $output "\
  54231. - exec \$progdir/\$program \${1+\"\$@\"}
  54232. -"
  54233. + delfiles=
  54234. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  54235. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  54236. + export_symbols="$output_objdir/$libname.uexp"
  54237. + delfiles="$delfiles $export_symbols"
  54238. + fi
  54239. +
  54240. + orig_export_symbols=
  54241. + case $host_os in
  54242. + cygwin* | mingw* | cegcc*)
  54243. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  54244. + # exporting using user supplied symfile
  54245. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  54246. + # and it's NOT already a .def file. Must figure out
  54247. + # which of the given symbols are data symbols and tag
  54248. + # them as such. So, trigger use of export_symbols_cmds.
  54249. + # export_symbols gets reassigned inside the "prepare
  54250. + # the list of exported symbols" if statement, so the
  54251. + # include_expsyms logic still works.
  54252. + orig_export_symbols="$export_symbols"
  54253. + export_symbols=
  54254. + always_export_symbols=yes
  54255. + fi
  54256. + fi
  54257. ;;
  54258. esac
  54259. - $echo >> $output "\
  54260. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  54261. - exit $EXIT_FAILURE
  54262. - fi
  54263. - else
  54264. - # The program doesn't exist.
  54265. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  54266. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  54267. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  54268. - exit $EXIT_FAILURE
  54269. - fi
  54270. -fi\
  54271. -"
  54272. - chmod +x $output
  54273. - fi
  54274. - exit $EXIT_SUCCESS
  54275. - ;;
  54276. - esac
  54277. -
  54278. - # See if we need to build an old-fashioned archive.
  54279. - for oldlib in $oldlibs; do
  54280. - if test "$build_libtool_libs" = convenience; then
  54281. - oldobjs="$libobjs_save"
  54282. - addlibs="$convenience"
  54283. - build_libtool_libs=no
  54284. - else
  54285. - if test "$build_libtool_libs" = module; then
  54286. - oldobjs="$libobjs_save"
  54287. - build_libtool_libs=no
  54288. - else
  54289. - oldobjs="$old_deplibs $non_pic_objects"
  54290. + # Prepare the list of exported symbols
  54291. + if test -z "$export_symbols"; then
  54292. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  54293. + func_verbose "generating symbol list for \`$libname.la'"
  54294. + export_symbols="$output_objdir/$libname.exp"
  54295. + $opt_dry_run || $RM $export_symbols
  54296. + cmds=$export_symbols_cmds
  54297. + save_ifs="$IFS"; IFS='~'
  54298. + for cmd in $cmds; do
  54299. + IFS="$save_ifs"
  54300. + eval cmd=\"$cmd\"
  54301. + func_len " $cmd"
  54302. + len=$func_len_result
  54303. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  54304. + func_show_eval "$cmd" 'exit $?'
  54305. + skipped_export=false
  54306. + else
  54307. + # The command line is too long to execute in one step.
  54308. + func_verbose "using reloadable object file for export list..."
  54309. + skipped_export=:
  54310. + # Break out early, otherwise skipped_export may be
  54311. + # set to false by a later but shorter cmd.
  54312. + break
  54313. + fi
  54314. + done
  54315. + IFS="$save_ifs"
  54316. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  54317. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  54318. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  54319. + fi
  54320. + fi
  54321. fi
  54322. - addlibs="$old_convenience"
  54323. - fi
  54324. - if test -n "$addlibs"; then
  54325. - gentop="$output_objdir/${outputname}x"
  54326. - $show "${rm}r $gentop"
  54327. - $run ${rm}r "$gentop"
  54328. - $show "$mkdir $gentop"
  54329. - $run $mkdir "$gentop"
  54330. - status=$?
  54331. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  54332. - exit $status
  54333. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  54334. + tmp_export_symbols="$export_symbols"
  54335. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  54336. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  54337. + fi
  54338. +
  54339. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  54340. + # The given exports_symbols file has to be filtered, so filter it.
  54341. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  54342. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  54343. + # 's' commands which not all seds can handle. GNU sed should be fine
  54344. + # though. Also, the filter scales superlinearly with the number of
  54345. + # global variables. join(1) would be nice here, but unfortunately
  54346. + # isn't a blessed tool.
  54347. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  54348. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  54349. + export_symbols=$output_objdir/$libname.def
  54350. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  54351. fi
  54352. - generated="$generated $gentop"
  54353. - # Add in members from convenience archives.
  54354. - for xlib in $addlibs; do
  54355. - # Extract the objects.
  54356. - case $xlib in
  54357. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  54358. - *) xabs=`pwd`"/$xlib" ;;
  54359. + tmp_deplibs=
  54360. + for test_deplib in $deplibs; do
  54361. + case " $convenience " in
  54362. + *" $test_deplib "*) ;;
  54363. + *)
  54364. + tmp_deplibs="$tmp_deplibs $test_deplib"
  54365. + ;;
  54366. esac
  54367. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  54368. - xdir="$gentop/$xlib"
  54369. + done
  54370. + deplibs="$tmp_deplibs"
  54371. - $show "${rm}r $xdir"
  54372. - $run ${rm}r "$xdir"
  54373. - $show "$mkdir $xdir"
  54374. - $run $mkdir "$xdir"
  54375. - status=$?
  54376. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  54377. - exit $status
  54378. - fi
  54379. - # We will extract separately just the conflicting names and we will no
  54380. - # longer touch any unique names. It is faster to leave these extract
  54381. - # automatically by $AR in one run.
  54382. - $show "(cd $xdir && $AR x $xabs)"
  54383. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  54384. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  54385. - :
  54386. + if test -n "$convenience"; then
  54387. + if test -n "$whole_archive_flag_spec" &&
  54388. + test "$compiler_needs_object" = yes &&
  54389. + test -z "$libobjs"; then
  54390. + # extract the archives, so we have objects to list.
  54391. + # TODO: could optimize this to just extract one archive.
  54392. + whole_archive_flag_spec=
  54393. + fi
  54394. + if test -n "$whole_archive_flag_spec"; then
  54395. + save_libobjs=$libobjs
  54396. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  54397. + test "X$libobjs" = "X " && libobjs=
  54398. else
  54399. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  54400. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  54401. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  54402. - do
  54403. - i=1
  54404. - while test "$i" -le "$count"
  54405. - do
  54406. - # Put our $i before any first dot (extension)
  54407. - # Never overwrite any file
  54408. - name_to="$name"
  54409. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  54410. - do
  54411. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  54412. - done
  54413. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  54414. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  54415. - i=`expr $i + 1`
  54416. - done
  54417. - done
  54418. + gentop="$output_objdir/${outputname}x"
  54419. + generated="$generated $gentop"
  54420. +
  54421. + func_extract_archives $gentop $convenience
  54422. + libobjs="$libobjs $func_extract_archives_result"
  54423. + test "X$libobjs" = "X " && libobjs=
  54424. fi
  54425. + fi
  54426. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  54427. - done
  54428. - fi
  54429. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  54430. + eval flag=\"$thread_safe_flag_spec\"
  54431. + linker_flags="$linker_flags $flag"
  54432. + fi
  54433. - # Do each command in the archive commands.
  54434. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  54435. - cmds=$old_archive_from_new_cmds
  54436. - else
  54437. - eval cmds=\"$old_archive_cmds\"
  54438. + # Make a backup of the uninstalled library when relinking
  54439. + if test "$mode" = relink; then
  54440. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  54441. + fi
  54442. - if len=`expr "X$cmds" : ".*"` &&
  54443. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  54444. - cmds=$old_archive_cmds
  54445. - else
  54446. - # the command line is too long to link in one step, link in parts
  54447. - $echo "using piecewise archive linking..."
  54448. - save_RANLIB=$RANLIB
  54449. - RANLIB=:
  54450. - objlist=
  54451. - concat_cmds=
  54452. - save_oldobjs=$oldobjs
  54453. - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
  54454. - # encoded into archives. This makes 'ar r' malfunction in
  54455. - # this piecewise linking case whenever conflicting object
  54456. - # names appear in distinct ar calls; check, warn and compensate.
  54457. - if (for obj in $save_oldobjs
  54458. - do
  54459. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  54460. - done | sort | sort -uc >/dev/null 2>&1); then
  54461. - :
  54462. + # Do each of the archive commands.
  54463. + if test "$module" = yes && test -n "$module_cmds" ; then
  54464. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  54465. + eval test_cmds=\"$module_expsym_cmds\"
  54466. + cmds=$module_expsym_cmds
  54467. else
  54468. - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
  54469. - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
  54470. - AR_FLAGS=cq
  54471. + eval test_cmds=\"$module_cmds\"
  54472. + cmds=$module_cmds
  54473. fi
  54474. - # Is there a better way of finding the last object in the list?
  54475. - for obj in $save_oldobjs
  54476. - do
  54477. - last_oldobj=$obj
  54478. - done
  54479. - for obj in $save_oldobjs
  54480. - do
  54481. - oldobjs="$objlist $obj"
  54482. - objlist="$objlist $obj"
  54483. - eval test_cmds=\"$old_archive_cmds\"
  54484. - if len=`expr "X$test_cmds" : ".*"` &&
  54485. - test "$len" -le "$max_cmd_len"; then
  54486. - :
  54487. - else
  54488. - # the above command should be used before it gets too long
  54489. - oldobjs=$objlist
  54490. - if test "$obj" = "$last_oldobj" ; then
  54491. - RANLIB=$save_RANLIB
  54492. - fi
  54493. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  54494. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  54495. - objlist=
  54496. - fi
  54497. - done
  54498. - RANLIB=$save_RANLIB
  54499. - oldobjs=$objlist
  54500. - if test "X$oldobjs" = "X" ; then
  54501. - eval cmds=\"\$concat_cmds\"
  54502. + else
  54503. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  54504. + eval test_cmds=\"$archive_expsym_cmds\"
  54505. + cmds=$archive_expsym_cmds
  54506. else
  54507. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  54508. + eval test_cmds=\"$archive_cmds\"
  54509. + cmds=$archive_cmds
  54510. fi
  54511. fi
  54512. - fi
  54513. - save_ifs="$IFS"; IFS='~'
  54514. - for cmd in $cmds; do
  54515. - eval cmd=\"$cmd\"
  54516. - IFS="$save_ifs"
  54517. - $show "$cmd"
  54518. - $run eval "$cmd" || exit $?
  54519. - done
  54520. - IFS="$save_ifs"
  54521. - done
  54522. -
  54523. - if test -n "$generated"; then
  54524. - $show "${rm}r$generated"
  54525. - $run ${rm}r$generated
  54526. - fi
  54527. -
  54528. - # Now create the libtool archive.
  54529. - case $output in
  54530. - *.la)
  54531. - old_library=
  54532. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  54533. - $show "creating $output"
  54534. - # Preserve any variables that may affect compiler behavior
  54535. - for var in $variables_saved_for_relink; do
  54536. - if eval test -z \"\${$var+set}\"; then
  54537. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  54538. - elif eval var_value=\$$var; test -z "$var_value"; then
  54539. - relink_command="$var=; export $var; $relink_command"
  54540. + if test "X$skipped_export" != "X:" &&
  54541. + func_len " $test_cmds" &&
  54542. + len=$func_len_result &&
  54543. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  54544. + :
  54545. else
  54546. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  54547. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  54548. - fi
  54549. - done
  54550. - # Quote the link command for shipping.
  54551. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  54552. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  54553. - if test "$hardcode_automatic" = yes ; then
  54554. - relink_command=
  54555. - fi
  54556. + # The command line is too long to link in one step, link piecewise
  54557. + # or, if using GNU ld and skipped_export is not :, use a linker
  54558. + # script.
  54559. +
  54560. + # Save the value of $output and $libobjs because we want to
  54561. + # use them later. If we have whole_archive_flag_spec, we
  54562. + # want to use save_libobjs as it was before
  54563. + # whole_archive_flag_spec was expanded, because we can't
  54564. + # assume the linker understands whole_archive_flag_spec.
  54565. + # This may have to be revisited, in case too many
  54566. + # convenience libraries get linked in and end up exceeding
  54567. + # the spec.
  54568. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  54569. + save_libobjs=$libobjs
  54570. + fi
  54571. + save_output=$output
  54572. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  54573. + # Clear the reloadable object creation command queue and
  54574. + # initialize k to one.
  54575. + test_cmds=
  54576. + concat_cmds=
  54577. + objlist=
  54578. + last_robj=
  54579. + k=1
  54580. - # Only create the output if not a dry run.
  54581. - if test -z "$run"; then
  54582. - for installed in no yes; do
  54583. - if test "$installed" = yes; then
  54584. - if test -z "$install_libdir"; then
  54585. - break
  54586. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  54587. + output=${output_objdir}/${output_la}.lnkscript
  54588. + func_verbose "creating GNU ld script: $output"
  54589. + $ECHO 'INPUT (' > $output
  54590. + for obj in $save_libobjs
  54591. + do
  54592. + $ECHO "$obj" >> $output
  54593. + done
  54594. + $ECHO ')' >> $output
  54595. + delfiles="$delfiles $output"
  54596. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  54597. + output=${output_objdir}/${output_la}.lnk
  54598. + func_verbose "creating linker input file list: $output"
  54599. + : > $output
  54600. + set x $save_libobjs
  54601. + shift
  54602. + firstobj=
  54603. + if test "$compiler_needs_object" = yes; then
  54604. + firstobj="$1 "
  54605. + shift
  54606. fi
  54607. - output="$output_objdir/$outputname"i
  54608. - # Replace all uninstalled libtool libraries with the installed ones
  54609. - newdependency_libs=
  54610. - for deplib in $dependency_libs; do
  54611. - case $deplib in
  54612. - *.la)
  54613. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  54614. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  54615. - if test -z "$libdir"; then
  54616. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  54617. - exit $EXIT_FAILURE
  54618. - fi
  54619. - newdependency_libs="$newdependency_libs $libdir/$name"
  54620. - ;;
  54621. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  54622. - esac
  54623. + for obj
  54624. + do
  54625. + $ECHO "$obj" >> $output
  54626. done
  54627. - dependency_libs="$newdependency_libs"
  54628. - newdlfiles=
  54629. - for lib in $dlfiles; do
  54630. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  54631. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  54632. - if test -z "$libdir"; then
  54633. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  54634. - exit $EXIT_FAILURE
  54635. + delfiles="$delfiles $output"
  54636. + output=$firstobj\"$file_list_spec$output\"
  54637. + else
  54638. + if test -n "$save_libobjs"; then
  54639. + func_verbose "creating reloadable object files..."
  54640. + output=$output_objdir/$output_la-${k}.$objext
  54641. + eval test_cmds=\"$reload_cmds\"
  54642. + func_len " $test_cmds"
  54643. + len0=$func_len_result
  54644. + len=$len0
  54645. +
  54646. + # Loop over the list of objects to be linked.
  54647. + for obj in $save_libobjs
  54648. + do
  54649. + func_len " $obj"
  54650. + func_arith $len + $func_len_result
  54651. + len=$func_arith_result
  54652. + if test "X$objlist" = X ||
  54653. + test "$len" -lt "$max_cmd_len"; then
  54654. + func_append objlist " $obj"
  54655. + else
  54656. + # The command $test_cmds is almost too long, add a
  54657. + # command to the queue.
  54658. + if test "$k" -eq 1 ; then
  54659. + # The first file doesn't have a previous command to add.
  54660. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  54661. + else
  54662. + # All subsequent reloadable object files will link in
  54663. + # the last one created.
  54664. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  54665. + fi
  54666. + last_robj=$output_objdir/$output_la-${k}.$objext
  54667. + func_arith $k + 1
  54668. + k=$func_arith_result
  54669. + output=$output_objdir/$output_la-${k}.$objext
  54670. + objlist=$obj
  54671. + func_len " $last_robj"
  54672. + func_arith $len0 + $func_len_result
  54673. + len=$func_arith_result
  54674. + fi
  54675. + done
  54676. + # Handle the remaining objects by creating one last
  54677. + # reloadable object file. All subsequent reloadable object
  54678. + # files will link in the last one created.
  54679. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  54680. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  54681. + if test -n "$last_robj"; then
  54682. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  54683. fi
  54684. - newdlfiles="$newdlfiles $libdir/$name"
  54685. - done
  54686. - dlfiles="$newdlfiles"
  54687. - newdlprefiles=
  54688. - for lib in $dlprefiles; do
  54689. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  54690. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  54691. - if test -z "$libdir"; then
  54692. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  54693. - exit $EXIT_FAILURE
  54694. + delfiles="$delfiles $output"
  54695. +
  54696. + else
  54697. + output=
  54698. + fi
  54699. +
  54700. + if ${skipped_export-false}; then
  54701. + func_verbose "generating symbol list for \`$libname.la'"
  54702. + export_symbols="$output_objdir/$libname.exp"
  54703. + $opt_dry_run || $RM $export_symbols
  54704. + libobjs=$output
  54705. + # Append the command to create the export file.
  54706. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  54707. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  54708. + if test -n "$last_robj"; then
  54709. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  54710. fi
  54711. - newdlprefiles="$newdlprefiles $libdir/$name"
  54712. + fi
  54713. +
  54714. + test -n "$save_libobjs" &&
  54715. + func_verbose "creating a temporary reloadable object file: $output"
  54716. +
  54717. + # Loop through the commands generated above and execute them.
  54718. + save_ifs="$IFS"; IFS='~'
  54719. + for cmd in $concat_cmds; do
  54720. + IFS="$save_ifs"
  54721. + $opt_silent || {
  54722. + func_quote_for_expand "$cmd"
  54723. + eval "func_echo $func_quote_for_expand_result"
  54724. + }
  54725. + $opt_dry_run || eval "$cmd" || {
  54726. + lt_exit=$?
  54727. +
  54728. + # Restore the uninstalled library and exit
  54729. + if test "$mode" = relink; then
  54730. + ( cd "$output_objdir" && \
  54731. + $RM "${realname}T" && \
  54732. + $MV "${realname}U" "$realname" )
  54733. + fi
  54734. +
  54735. + exit $lt_exit
  54736. + }
  54737. done
  54738. - dlprefiles="$newdlprefiles"
  54739. + IFS="$save_ifs"
  54740. +
  54741. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  54742. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  54743. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  54744. + fi
  54745. + fi
  54746. +
  54747. + if ${skipped_export-false}; then
  54748. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  54749. + tmp_export_symbols="$export_symbols"
  54750. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  54751. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  54752. + fi
  54753. +
  54754. + if test -n "$orig_export_symbols"; then
  54755. + # The given exports_symbols file has to be filtered, so filter it.
  54756. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  54757. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  54758. + # 's' commands which not all seds can handle. GNU sed should be fine
  54759. + # though. Also, the filter scales superlinearly with the number of
  54760. + # global variables. join(1) would be nice here, but unfortunately
  54761. + # isn't a blessed tool.
  54762. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  54763. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  54764. + export_symbols=$output_objdir/$libname.def
  54765. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  54766. + fi
  54767. + fi
  54768. +
  54769. + libobjs=$output
  54770. + # Restore the value of output.
  54771. + output=$save_output
  54772. +
  54773. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  54774. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  54775. + test "X$libobjs" = "X " && libobjs=
  54776. + fi
  54777. + # Expand the library linking commands again to reset the
  54778. + # value of $libobjs for piecewise linking.
  54779. +
  54780. + # Do each of the archive commands.
  54781. + if test "$module" = yes && test -n "$module_cmds" ; then
  54782. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  54783. + cmds=$module_expsym_cmds
  54784. + else
  54785. + cmds=$module_cmds
  54786. + fi
  54787. else
  54788. - newdlfiles=
  54789. - for lib in $dlfiles; do
  54790. - case $lib in
  54791. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  54792. - *) abs=`pwd`"/$lib" ;;
  54793. - esac
  54794. - newdlfiles="$newdlfiles $abs"
  54795. - done
  54796. - dlfiles="$newdlfiles"
  54797. - newdlprefiles=
  54798. - for lib in $dlprefiles; do
  54799. - case $lib in
  54800. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  54801. - *) abs=`pwd`"/$lib" ;;
  54802. - esac
  54803. - newdlprefiles="$newdlprefiles $abs"
  54804. - done
  54805. - dlprefiles="$newdlprefiles"
  54806. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  54807. + cmds=$archive_expsym_cmds
  54808. + else
  54809. + cmds=$archive_cmds
  54810. + fi
  54811. fi
  54812. - $rm $output
  54813. - # place dlname in correct position for cygwin
  54814. - tdlname=$dlname
  54815. - case $host,$output,$installed,$module,$dlname in
  54816. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  54817. - esac
  54818. - $echo > $output "\
  54819. -# $outputname - a libtool library file
  54820. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54821. -#
  54822. -# Please DO NOT delete this file!
  54823. -# It is necessary for linking the library.
  54824. + fi
  54825. -# The name that we can dlopen(3).
  54826. -dlname='$tdlname'
  54827. + if test -n "$delfiles"; then
  54828. + # Append the command to remove temporary files to $cmds.
  54829. + eval cmds=\"\$cmds~\$RM $delfiles\"
  54830. + fi
  54831. -# Names of this library.
  54832. -library_names='$library_names'
  54833. + # Add any objects from preloaded convenience libraries
  54834. + if test -n "$dlprefiles"; then
  54835. + gentop="$output_objdir/${outputname}x"
  54836. + generated="$generated $gentop"
  54837. -# The name of the static archive.
  54838. -old_library='$old_library'
  54839. + func_extract_archives $gentop $dlprefiles
  54840. + libobjs="$libobjs $func_extract_archives_result"
  54841. + test "X$libobjs" = "X " && libobjs=
  54842. + fi
  54843. -# Libraries that this one depends upon.
  54844. -dependency_libs='$dependency_libs'
  54845. + save_ifs="$IFS"; IFS='~'
  54846. + for cmd in $cmds; do
  54847. + IFS="$save_ifs"
  54848. + eval cmd=\"$cmd\"
  54849. + $opt_silent || {
  54850. + func_quote_for_expand "$cmd"
  54851. + eval "func_echo $func_quote_for_expand_result"
  54852. + }
  54853. + $opt_dry_run || eval "$cmd" || {
  54854. + lt_exit=$?
  54855. +
  54856. + # Restore the uninstalled library and exit
  54857. + if test "$mode" = relink; then
  54858. + ( cd "$output_objdir" && \
  54859. + $RM "${realname}T" && \
  54860. + $MV "${realname}U" "$realname" )
  54861. + fi
  54862. -# Version information for $libname.
  54863. -current=$current
  54864. -age=$age
  54865. -revision=$revision
  54866. + exit $lt_exit
  54867. + }
  54868. + done
  54869. + IFS="$save_ifs"
  54870. -# Is this an already installed library?
  54871. -installed=$installed
  54872. + # Restore the uninstalled library and exit
  54873. + if test "$mode" = relink; then
  54874. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  54875. -# Should we warn about portability when linking against -modules?
  54876. -shouldnotlink=$module
  54877. + if test -n "$convenience"; then
  54878. + if test -z "$whole_archive_flag_spec"; then
  54879. + func_show_eval '${RM}r "$gentop"'
  54880. + fi
  54881. + fi
  54882. -# Files to dlopen/dlpreopen
  54883. -dlopen='$dlfiles'
  54884. -dlpreopen='$dlprefiles'
  54885. + exit $EXIT_SUCCESS
  54886. + fi
  54887. -# Directory that this library needs to be installed in:
  54888. -libdir='$install_libdir'"
  54889. - if test "$installed" = no && test "$need_relink" = yes; then
  54890. - $echo >> $output "\
  54891. -relink_command=\"$relink_command\""
  54892. + # Create links to the real library.
  54893. + for linkname in $linknames; do
  54894. + if test "$realname" != "$linkname"; then
  54895. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  54896. fi
  54897. done
  54898. - fi
  54899. - # Do a symbolic link so that the libtool archive can be found in
  54900. - # LD_LIBRARY_PATH before the program is installed.
  54901. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  54902. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  54903. + # If -module or -export-dynamic was specified, set the dlname.
  54904. + if test "$module" = yes || test "$export_dynamic" = yes; then
  54905. + # On all known operating systems, these are identical.
  54906. + dlname="$soname"
  54907. + fi
  54908. + fi
  54909. ;;
  54910. - esac
  54911. - exit $EXIT_SUCCESS
  54912. - ;;
  54913. - # libtool install mode
  54914. - install)
  54915. - modename="$modename: install"
  54916. + obj)
  54917. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54918. + func_warning "\`-dlopen' is ignored for objects"
  54919. + fi
  54920. - # There may be an optional sh(1) argument at the beginning of
  54921. - # install_prog (especially on Windows NT).
  54922. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  54923. - # Allow the use of GNU shtool's install command.
  54924. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  54925. - # Aesthetically quote it.
  54926. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  54927. - case $arg in
  54928. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  54929. - arg="\"$arg\""
  54930. - ;;
  54931. + case " $deplibs" in
  54932. + *\ -l* | *\ -L*)
  54933. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  54934. esac
  54935. - install_prog="$arg "
  54936. - arg="$1"
  54937. - shift
  54938. - else
  54939. - install_prog=
  54940. - arg="$nonopt"
  54941. - fi
  54942. - # The real first argument should be the name of the installation program.
  54943. - # Aesthetically quote it.
  54944. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  54945. - case $arg in
  54946. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  54947. - arg="\"$arg\""
  54948. - ;;
  54949. - esac
  54950. - install_prog="$install_prog$arg"
  54951. + test -n "$rpath" && \
  54952. + func_warning "\`-rpath' is ignored for objects"
  54953. - # We need to accept at least all the BSD install flags.
  54954. - dest=
  54955. - files=
  54956. - opts=
  54957. - prev=
  54958. - install_type=
  54959. - isdir=no
  54960. - stripme=
  54961. - for arg
  54962. - do
  54963. - if test -n "$dest"; then
  54964. - files="$files $dest"
  54965. - dest="$arg"
  54966. - continue
  54967. - fi
  54968. + test -n "$xrpath" && \
  54969. + func_warning "\`-R' is ignored for objects"
  54970. - case $arg in
  54971. - -d) isdir=yes ;;
  54972. - -f) prev="-f" ;;
  54973. - -g) prev="-g" ;;
  54974. - -m) prev="-m" ;;
  54975. - -o) prev="-o" ;;
  54976. - -s)
  54977. - stripme=" -s"
  54978. - continue
  54979. - ;;
  54980. - -*) ;;
  54981. + test -n "$vinfo" && \
  54982. + func_warning "\`-version-info' is ignored for objects"
  54983. + test -n "$release" && \
  54984. + func_warning "\`-release' is ignored for objects"
  54985. +
  54986. + case $output in
  54987. + *.lo)
  54988. + test -n "$objs$old_deplibs" && \
  54989. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  54990. +
  54991. + libobj=$output
  54992. + func_lo2o "$libobj"
  54993. + obj=$func_lo2o_result
  54994. + ;;
  54995. *)
  54996. - # If the previous option needed an argument, then skip it.
  54997. - if test -n "$prev"; then
  54998. - prev=
  54999. - else
  55000. - dest="$arg"
  55001. - continue
  55002. - fi
  55003. + libobj=
  55004. + obj="$output"
  55005. ;;
  55006. esac
  55007. - # Aesthetically quote the argument.
  55008. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  55009. - case $arg in
  55010. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  55011. - arg="\"$arg\""
  55012. - ;;
  55013. - esac
  55014. - install_prog="$install_prog $arg"
  55015. - done
  55016. + # Delete the old objects.
  55017. + $opt_dry_run || $RM $obj $libobj
  55018. - if test -z "$install_prog"; then
  55019. - $echo "$modename: you must specify an install program" 1>&2
  55020. - $echo "$help" 1>&2
  55021. - exit $EXIT_FAILURE
  55022. - fi
  55023. + # Objects from convenience libraries. This assumes
  55024. + # single-version convenience libraries. Whenever we create
  55025. + # different ones for PIC/non-PIC, this we'll have to duplicate
  55026. + # the extraction.
  55027. + reload_conv_objs=
  55028. + gentop=
  55029. + # reload_cmds runs $LD directly, so let us get rid of
  55030. + # -Wl from whole_archive_flag_spec and hope we can get by with
  55031. + # turning comma into space..
  55032. + wl=
  55033. - if test -n "$prev"; then
  55034. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  55035. - $echo "$help" 1>&2
  55036. - exit $EXIT_FAILURE
  55037. - fi
  55038. + if test -n "$convenience"; then
  55039. + if test -n "$whole_archive_flag_spec"; then
  55040. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  55041. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  55042. + else
  55043. + gentop="$output_objdir/${obj}x"
  55044. + generated="$generated $gentop"
  55045. - if test -z "$files"; then
  55046. - if test -z "$dest"; then
  55047. - $echo "$modename: no file or destination specified" 1>&2
  55048. - else
  55049. - $echo "$modename: you must specify a destination" 1>&2
  55050. + func_extract_archives $gentop $convenience
  55051. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  55052. + fi
  55053. fi
  55054. - $echo "$help" 1>&2
  55055. - exit $EXIT_FAILURE
  55056. - fi
  55057. - # Strip any trailing slash from the destination.
  55058. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  55059. + # Create the old-style object.
  55060. + 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
  55061. - # Check to see that the destination is a directory.
  55062. - test -d "$dest" && isdir=yes
  55063. - if test "$isdir" = yes; then
  55064. - destdir="$dest"
  55065. - destname=
  55066. - else
  55067. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  55068. - test "X$destdir" = "X$dest" && destdir=.
  55069. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  55070. + output="$obj"
  55071. + func_execute_cmds "$reload_cmds" 'exit $?'
  55072. - # Not a directory, so check to see that there is only one file specified.
  55073. - set dummy $files
  55074. - if test "$#" -gt 2; then
  55075. - $echo "$modename: \`$dest' is not a directory" 1>&2
  55076. - $echo "$help" 1>&2
  55077. - exit $EXIT_FAILURE
  55078. + # Exit if we aren't doing a library object file.
  55079. + if test -z "$libobj"; then
  55080. + if test -n "$gentop"; then
  55081. + func_show_eval '${RM}r "$gentop"'
  55082. + fi
  55083. +
  55084. + exit $EXIT_SUCCESS
  55085. fi
  55086. - fi
  55087. - case $destdir in
  55088. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  55089. - *)
  55090. - for file in $files; do
  55091. - case $file in
  55092. - *.lo) ;;
  55093. - *)
  55094. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  55095. - $echo "$help" 1>&2
  55096. - exit $EXIT_FAILURE
  55097. - ;;
  55098. - esac
  55099. - done
  55100. +
  55101. + if test "$build_libtool_libs" != yes; then
  55102. + if test -n "$gentop"; then
  55103. + func_show_eval '${RM}r "$gentop"'
  55104. + fi
  55105. +
  55106. + # Create an invalid libtool object if no PIC, so that we don't
  55107. + # accidentally link it into a program.
  55108. + # $show "echo timestamp > $libobj"
  55109. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  55110. + exit $EXIT_SUCCESS
  55111. + fi
  55112. +
  55113. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  55114. + # Only do commands if we really have different PIC objects.
  55115. + reload_objs="$libobjs $reload_conv_objs"
  55116. + output="$libobj"
  55117. + func_execute_cmds "$reload_cmds" 'exit $?'
  55118. + fi
  55119. +
  55120. + if test -n "$gentop"; then
  55121. + func_show_eval '${RM}r "$gentop"'
  55122. + fi
  55123. +
  55124. + exit $EXIT_SUCCESS
  55125. ;;
  55126. - esac
  55127. - # This variable tells wrapper scripts just to set variables rather
  55128. - # than running their programs.
  55129. - libtool_install_magic="$magic"
  55130. + prog)
  55131. + case $host in
  55132. + *cygwin*) func_stripname '' '.exe' "$output"
  55133. + output=$func_stripname_result.exe;;
  55134. + esac
  55135. + test -n "$vinfo" && \
  55136. + func_warning "\`-version-info' is ignored for programs"
  55137. - staticlibs=
  55138. - future_libdirs=
  55139. - current_libdirs=
  55140. - for file in $files; do
  55141. + test -n "$release" && \
  55142. + func_warning "\`-release' is ignored for programs"
  55143. - # Do each installation.
  55144. - case $file in
  55145. - *.$libext)
  55146. - # Do the static libraries later.
  55147. - staticlibs="$staticlibs $file"
  55148. + test "$preload" = yes \
  55149. + && test "$dlopen_support" = unknown \
  55150. + && test "$dlopen_self" = unknown \
  55151. + && test "$dlopen_self_static" = unknown && \
  55152. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  55153. +
  55154. + case $host in
  55155. + *-*-rhapsody* | *-*-darwin1.[012])
  55156. + # On Rhapsody replace the C library is the System framework
  55157. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  55158. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  55159. ;;
  55160. + esac
  55161. - *.la)
  55162. - # Check to see that this really is a libtool archive.
  55163. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  55164. - else
  55165. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  55166. - $echo "$help" 1>&2
  55167. - exit $EXIT_FAILURE
  55168. + case $host in
  55169. + *-*-darwin*)
  55170. + # Don't allow lazy linking, it breaks C++ global constructors
  55171. + # But is supposedly fixed on 10.4 or later (yay!).
  55172. + if test "$tagname" = CXX ; then
  55173. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  55174. + 10.[0123])
  55175. + compile_command="$compile_command ${wl}-bind_at_load"
  55176. + finalize_command="$finalize_command ${wl}-bind_at_load"
  55177. + ;;
  55178. + esac
  55179. fi
  55180. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  55181. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55182. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55183. + ;;
  55184. + esac
  55185. - library_names=
  55186. - old_library=
  55187. - relink_command=
  55188. - # If there is no directory component, then add one.
  55189. - case $file in
  55190. - */* | *\\*) . $file ;;
  55191. - *) . ./$file ;;
  55192. +
  55193. + # move library search paths that coincide with paths to not yet
  55194. + # installed libraries to the beginning of the library search list
  55195. + new_libs=
  55196. + for path in $notinst_path; do
  55197. + case " $new_libs " in
  55198. + *" -L$path/$objdir "*) ;;
  55199. + *)
  55200. + case " $compile_deplibs " in
  55201. + *" -L$path/$objdir "*)
  55202. + new_libs="$new_libs -L$path/$objdir" ;;
  55203. + esac
  55204. + ;;
  55205. + esac
  55206. + done
  55207. + for deplib in $compile_deplibs; do
  55208. + case $deplib in
  55209. + -L*)
  55210. + case " $new_libs " in
  55211. + *" $deplib "*) ;;
  55212. + *) new_libs="$new_libs $deplib" ;;
  55213. + esac
  55214. + ;;
  55215. + *) new_libs="$new_libs $deplib" ;;
  55216. esac
  55217. + done
  55218. + compile_deplibs="$new_libs"
  55219. - # Add the libdir to current_libdirs if it is the destination.
  55220. - if test "X$destdir" = "X$libdir"; then
  55221. - case "$current_libdirs " in
  55222. +
  55223. + compile_command="$compile_command $compile_deplibs"
  55224. + finalize_command="$finalize_command $finalize_deplibs"
  55225. +
  55226. + if test -n "$rpath$xrpath"; then
  55227. + # If the user specified any rpath flags, then add them.
  55228. + for libdir in $rpath $xrpath; do
  55229. + # This is the magic to use -rpath.
  55230. + case "$finalize_rpath " in
  55231. *" $libdir "*) ;;
  55232. - *) current_libdirs="$current_libdirs $libdir" ;;
  55233. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  55234. esac
  55235. - else
  55236. - # Note the libdir as a future libdir.
  55237. - case "$future_libdirs " in
  55238. + done
  55239. + fi
  55240. +
  55241. + # Now hardcode the library paths
  55242. + rpath=
  55243. + hardcode_libdirs=
  55244. + for libdir in $compile_rpath $finalize_rpath; do
  55245. + if test -n "$hardcode_libdir_flag_spec"; then
  55246. + if test -n "$hardcode_libdir_separator"; then
  55247. + if test -z "$hardcode_libdirs"; then
  55248. + hardcode_libdirs="$libdir"
  55249. + else
  55250. + # Just accumulate the unique libdirs.
  55251. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55252. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55253. + ;;
  55254. + *)
  55255. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55256. + ;;
  55257. + esac
  55258. + fi
  55259. + else
  55260. + eval flag=\"$hardcode_libdir_flag_spec\"
  55261. + rpath="$rpath $flag"
  55262. + fi
  55263. + elif test -n "$runpath_var"; then
  55264. + case "$perm_rpath " in
  55265. *" $libdir "*) ;;
  55266. - *) future_libdirs="$future_libdirs $libdir" ;;
  55267. + *) perm_rpath="$perm_rpath $libdir" ;;
  55268. esac
  55269. fi
  55270. + case $host in
  55271. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55272. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  55273. + case :$dllsearchpath: in
  55274. + *":$libdir:"*) ;;
  55275. + ::) dllsearchpath=$libdir;;
  55276. + *) dllsearchpath="$dllsearchpath:$libdir";;
  55277. + esac
  55278. + case :$dllsearchpath: in
  55279. + *":$testbindir:"*) ;;
  55280. + ::) dllsearchpath=$testbindir;;
  55281. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  55282. + esac
  55283. + ;;
  55284. + esac
  55285. + done
  55286. + # Substitute the hardcoded libdirs into the rpath.
  55287. + if test -n "$hardcode_libdir_separator" &&
  55288. + test -n "$hardcode_libdirs"; then
  55289. + libdir="$hardcode_libdirs"
  55290. + eval rpath=\" $hardcode_libdir_flag_spec\"
  55291. + fi
  55292. + compile_rpath="$rpath"
  55293. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  55294. - test "X$dir" = "X$file/" && dir=
  55295. - dir="$dir$objdir"
  55296. -
  55297. - if test -n "$relink_command"; then
  55298. - # Determine the prefix the user has applied to our future dir.
  55299. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  55300. -
  55301. - # Don't allow the user to place us outside of our expected
  55302. - # location b/c this prevents finding dependent libraries that
  55303. - # are installed to the same prefix.
  55304. - # At present, this check doesn't affect windows .dll's that
  55305. - # are installed into $libdir/../bin (currently, that works fine)
  55306. - # but it's something to keep an eye on.
  55307. - if test "$inst_prefix_dir" = "$destdir"; then
  55308. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  55309. - exit $EXIT_FAILURE
  55310. - fi
  55311. -
  55312. - if test -n "$inst_prefix_dir"; then
  55313. - # Stick the inst_prefix_dir data into the link command.
  55314. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  55315. - else
  55316. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  55317. - fi
  55318. -
  55319. - $echo "$modename: warning: relinking \`$file'" 1>&2
  55320. - $show "$relink_command"
  55321. - if $run eval "$relink_command"; then :
  55322. + rpath=
  55323. + hardcode_libdirs=
  55324. + for libdir in $finalize_rpath; do
  55325. + if test -n "$hardcode_libdir_flag_spec"; then
  55326. + if test -n "$hardcode_libdir_separator"; then
  55327. + if test -z "$hardcode_libdirs"; then
  55328. + hardcode_libdirs="$libdir"
  55329. + else
  55330. + # Just accumulate the unique libdirs.
  55331. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55332. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55333. + ;;
  55334. + *)
  55335. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55336. + ;;
  55337. + esac
  55338. + fi
  55339. else
  55340. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  55341. - exit $EXIT_FAILURE
  55342. + eval flag=\"$hardcode_libdir_flag_spec\"
  55343. + rpath="$rpath $flag"
  55344. fi
  55345. + elif test -n "$runpath_var"; then
  55346. + case "$finalize_perm_rpath " in
  55347. + *" $libdir "*) ;;
  55348. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  55349. + esac
  55350. fi
  55351. + done
  55352. + # Substitute the hardcoded libdirs into the rpath.
  55353. + if test -n "$hardcode_libdir_separator" &&
  55354. + test -n "$hardcode_libdirs"; then
  55355. + libdir="$hardcode_libdirs"
  55356. + eval rpath=\" $hardcode_libdir_flag_spec\"
  55357. + fi
  55358. + finalize_rpath="$rpath"
  55359. - # See the names of the shared library.
  55360. - set dummy $library_names
  55361. - if test -n "$2"; then
  55362. - realname="$2"
  55363. - shift
  55364. - shift
  55365. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  55366. + # Transform all the library objects into standard objects.
  55367. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55368. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55369. + fi
  55370. - srcname="$realname"
  55371. - test -n "$relink_command" && srcname="$realname"T
  55372. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  55373. - # Install the shared library and build the symlinks.
  55374. - $show "$install_prog $dir/$srcname $destdir/$realname"
  55375. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  55376. - if test -n "$stripme" && test -n "$striplib"; then
  55377. - $show "$striplib $destdir/$realname"
  55378. - $run eval "$striplib $destdir/$realname" || exit $?
  55379. - fi
  55380. + # template prelinking step
  55381. + if test -n "$prelink_cmds"; then
  55382. + func_execute_cmds "$prelink_cmds" 'exit $?'
  55383. + fi
  55384. - if test "$#" -gt 0; then
  55385. - # Delete the old symlinks, and create new ones.
  55386. - for linkname
  55387. - do
  55388. - if test "$linkname" != "$realname"; then
  55389. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  55390. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  55391. - fi
  55392. - done
  55393. - fi
  55394. + wrappers_required=yes
  55395. + case $host in
  55396. + *cygwin* | *mingw* )
  55397. + if test "$build_libtool_libs" != yes; then
  55398. + wrappers_required=no
  55399. + fi
  55400. + ;;
  55401. + *cegcc)
  55402. + # Disable wrappers for cegcc, we are cross compiling anyway.
  55403. + wrappers_required=no
  55404. + ;;
  55405. + *)
  55406. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  55407. + wrappers_required=no
  55408. + fi
  55409. + ;;
  55410. + esac
  55411. + if test "$wrappers_required" = no; then
  55412. + # Replace the output file specification.
  55413. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  55414. + link_command="$compile_command$compile_rpath"
  55415. - # Do each command in the postinstall commands.
  55416. - lib="$destdir/$realname"
  55417. - cmds=$postinstall_cmds
  55418. - save_ifs="$IFS"; IFS='~'
  55419. - for cmd in $cmds; do
  55420. - IFS="$save_ifs"
  55421. - eval cmd=\"$cmd\"
  55422. - $show "$cmd"
  55423. - $run eval "$cmd" || exit $?
  55424. - done
  55425. - IFS="$save_ifs"
  55426. - fi
  55427. + # We have no uninstalled library dependencies, so finalize right now.
  55428. + exit_status=0
  55429. + func_show_eval "$link_command" 'exit_status=$?'
  55430. - # Install the pseudo-library for information purposes.
  55431. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  55432. - instname="$dir/$name"i
  55433. - $show "$install_prog $instname $destdir/$name"
  55434. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  55435. + # Delete the generated files.
  55436. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  55437. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  55438. + fi
  55439. - # Maybe install the static library, too.
  55440. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  55441. - ;;
  55442. + exit $exit_status
  55443. + fi
  55444. - *.lo)
  55445. - # Install (i.e. copy) a libtool object.
  55446. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  55447. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  55448. + fi
  55449. + if test -n "$finalize_shlibpath"; then
  55450. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  55451. + fi
  55452. - # Figure out destination file name, if it wasn't already specified.
  55453. - if test -n "$destname"; then
  55454. - destfile="$destdir/$destname"
  55455. - else
  55456. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  55457. - destfile="$destdir/$destfile"
  55458. + compile_var=
  55459. + finalize_var=
  55460. + if test -n "$runpath_var"; then
  55461. + if test -n "$perm_rpath"; then
  55462. + # We should set the runpath_var.
  55463. + rpath=
  55464. + for dir in $perm_rpath; do
  55465. + rpath="$rpath$dir:"
  55466. + done
  55467. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55468. fi
  55469. -
  55470. - # Deduce the name of the destination old-style object file.
  55471. - case $destfile in
  55472. - *.lo)
  55473. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  55474. - ;;
  55475. - *.$objext)
  55476. - staticdest="$destfile"
  55477. - destfile=
  55478. - ;;
  55479. - *)
  55480. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  55481. - $echo "$help" 1>&2
  55482. - exit $EXIT_FAILURE
  55483. - ;;
  55484. - esac
  55485. -
  55486. - # Install the libtool object if requested.
  55487. - if test -n "$destfile"; then
  55488. - $show "$install_prog $file $destfile"
  55489. - $run eval "$install_prog $file $destfile" || exit $?
  55490. + if test -n "$finalize_perm_rpath"; then
  55491. + # We should set the runpath_var.
  55492. + rpath=
  55493. + for dir in $finalize_perm_rpath; do
  55494. + rpath="$rpath$dir:"
  55495. + done
  55496. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55497. fi
  55498. + fi
  55499. - # Install the old object if enabled.
  55500. - if test "$build_old_libs" = yes; then
  55501. - # Deduce the name of the old-style object file.
  55502. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  55503. -
  55504. - $show "$install_prog $staticobj $staticdest"
  55505. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  55506. - fi
  55507. + if test "$no_install" = yes; then
  55508. + # We don't need to create a wrapper script.
  55509. + link_command="$compile_var$compile_command$compile_rpath"
  55510. + # Replace the output file specification.
  55511. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  55512. + # Delete the old output file.
  55513. + $opt_dry_run || $RM $output
  55514. + # Link the executable and exit
  55515. + func_show_eval "$link_command" 'exit $?'
  55516. exit $EXIT_SUCCESS
  55517. - ;;
  55518. + fi
  55519. - *)
  55520. - # Figure out destination file name, if it wasn't already specified.
  55521. - if test -n "$destname"; then
  55522. - destfile="$destdir/$destname"
  55523. + if test "$hardcode_action" = relink; then
  55524. + # Fast installation is not supported
  55525. + link_command="$compile_var$compile_command$compile_rpath"
  55526. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  55527. +
  55528. + func_warning "this platform does not like uninstalled shared libraries"
  55529. + func_warning "\`$output' will be relinked during installation"
  55530. + else
  55531. + if test "$fast_install" != no; then
  55532. + link_command="$finalize_var$compile_command$finalize_rpath"
  55533. + if test "$fast_install" = yes; then
  55534. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  55535. + else
  55536. + # fast_install is set to needless
  55537. + relink_command=
  55538. + fi
  55539. else
  55540. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  55541. - destfile="$destdir/$destfile"
  55542. + link_command="$compile_var$compile_command$compile_rpath"
  55543. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  55544. fi
  55545. + fi
  55546. - # If the file is missing, and there is a .exe on the end, strip it
  55547. - # because it is most likely a libtool script we actually want to
  55548. - # install
  55549. - stripped_ext=""
  55550. - case $file in
  55551. - *.exe)
  55552. - if test ! -f "$file"; then
  55553. - file=`$echo $file|${SED} 's,.exe$,,'`
  55554. - stripped_ext=".exe"
  55555. - fi
  55556. - ;;
  55557. - esac
  55558. -
  55559. - # Do a test to see if this is really a libtool program.
  55560. - case $host in
  55561. - *cygwin*|*mingw*)
  55562. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  55563. - ;;
  55564. - *)
  55565. - wrapper=$file
  55566. - ;;
  55567. - esac
  55568. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  55569. - notinst_deplibs=
  55570. - relink_command=
  55571. -
  55572. - # To insure that "foo" is sourced, and not "foo.exe",
  55573. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  55574. - # which disallows the automatic-append-.exe behavior.
  55575. - case $build in
  55576. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  55577. - *) wrapperdot=${wrapper} ;;
  55578. - esac
  55579. - # If there is no directory component, then add one.
  55580. - case $file in
  55581. - */* | *\\*) . ${wrapperdot} ;;
  55582. - *) . ./${wrapperdot} ;;
  55583. - esac
  55584. -
  55585. - # Check the variables that should have been set.
  55586. - if test -z "$notinst_deplibs"; then
  55587. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  55588. - exit $EXIT_FAILURE
  55589. - fi
  55590. + # Replace the output file specification.
  55591. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  55592. - finalize=yes
  55593. - for lib in $notinst_deplibs; do
  55594. - # Check to see that each library is installed.
  55595. - libdir=
  55596. - if test -f "$lib"; then
  55597. - # If there is no directory component, then add one.
  55598. - case $lib in
  55599. - */* | *\\*) . $lib ;;
  55600. - *) . ./$lib ;;
  55601. - esac
  55602. - fi
  55603. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  55604. - if test -n "$libdir" && test ! -f "$libfile"; then
  55605. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  55606. - finalize=no
  55607. - fi
  55608. - done
  55609. + # Delete the old output files.
  55610. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  55611. - relink_command=
  55612. - # To insure that "foo" is sourced, and not "foo.exe",
  55613. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  55614. - # which disallows the automatic-append-.exe behavior.
  55615. - case $build in
  55616. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  55617. - *) wrapperdot=${wrapper} ;;
  55618. - esac
  55619. - # If there is no directory component, then add one.
  55620. - case $file in
  55621. - */* | *\\*) . ${wrapperdot} ;;
  55622. - *) . ./${wrapperdot} ;;
  55623. - esac
  55624. + func_show_eval "$link_command" 'exit $?'
  55625. - outputname=
  55626. - if test "$fast_install" = no && test -n "$relink_command"; then
  55627. - if test "$finalize" = yes && test -z "$run"; then
  55628. - tmpdir="/tmp"
  55629. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  55630. - tmpdir="$tmpdir/libtool-$$"
  55631. - save_umask=`umask`
  55632. - umask 0077
  55633. - if $mkdir "$tmpdir"; then
  55634. - umask $save_umask
  55635. - else
  55636. - umask $save_umask
  55637. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  55638. - continue
  55639. - fi
  55640. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  55641. - outputname="$tmpdir/$file"
  55642. - # Replace the output file specification.
  55643. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  55644. + # Now create the wrapper script.
  55645. + func_verbose "creating $output"
  55646. - $show "$relink_command"
  55647. - if $run eval "$relink_command"; then :
  55648. - else
  55649. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  55650. - ${rm}r "$tmpdir"
  55651. - continue
  55652. - fi
  55653. - file="$outputname"
  55654. - else
  55655. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  55656. - fi
  55657. + # Quote the relink command for shipping.
  55658. + if test -n "$relink_command"; then
  55659. + # Preserve any variables that may affect compiler behavior
  55660. + for var in $variables_saved_for_relink; do
  55661. + if eval test -z \"\${$var+set}\"; then
  55662. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  55663. + elif eval var_value=\$$var; test -z "$var_value"; then
  55664. + relink_command="$var=; export $var; $relink_command"
  55665. else
  55666. - # Install the binary that we compiled earlier.
  55667. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  55668. + func_quote_for_eval "$var_value"
  55669. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  55670. fi
  55671. - fi
  55672. + done
  55673. + relink_command="(cd `pwd`; $relink_command)"
  55674. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  55675. + fi
  55676. - # remove .exe since cygwin /usr/bin/install will append another
  55677. - # one anyways
  55678. - case $install_prog,$host in
  55679. - */usr/bin/install*,*cygwin*)
  55680. - case $file:$destfile in
  55681. - *.exe:*.exe)
  55682. - # this is ok
  55683. - ;;
  55684. - *.exe:*)
  55685. - destfile=$destfile.exe
  55686. - ;;
  55687. - *:*.exe)
  55688. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  55689. - ;;
  55690. - esac
  55691. - ;;
  55692. + # Quote $ECHO for shipping.
  55693. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  55694. + case $progpath in
  55695. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  55696. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  55697. esac
  55698. - $show "$install_prog$stripme $file $destfile"
  55699. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  55700. - test -n "$outputname" && ${rm}r "$tmpdir"
  55701. - ;;
  55702. - esac
  55703. - done
  55704. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  55705. + else
  55706. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  55707. + fi
  55708. - for file in $staticlibs; do
  55709. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  55710. + # Only actually do things if not in dry run mode.
  55711. + $opt_dry_run || {
  55712. + # win32 will think the script is a binary if it has
  55713. + # a .exe suffix, so we strip it off here.
  55714. + case $output in
  55715. + *.exe) func_stripname '' '.exe' "$output"
  55716. + output=$func_stripname_result ;;
  55717. + esac
  55718. + # test for cygwin because mv fails w/o .exe extensions
  55719. + case $host in
  55720. + *cygwin*)
  55721. + exeext=.exe
  55722. + func_stripname '' '.exe' "$outputname"
  55723. + outputname=$func_stripname_result ;;
  55724. + *) exeext= ;;
  55725. + esac
  55726. + case $host in
  55727. + *cygwin* | *mingw* )
  55728. + func_dirname_and_basename "$output" "" "."
  55729. + output_name=$func_basename_result
  55730. + output_path=$func_dirname_result
  55731. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  55732. + cwrapper="$output_path/$output_name.exe"
  55733. + $RM $cwrappersource $cwrapper
  55734. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  55735. +
  55736. + func_emit_cwrapperexe_src > $cwrappersource
  55737. +
  55738. + # The wrapper executable is built using the $host compiler,
  55739. + # because it contains $host paths and files. If cross-
  55740. + # compiling, it, like the target executable, must be
  55741. + # executed on the $host or under an emulation environment.
  55742. + $opt_dry_run || {
  55743. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  55744. + $STRIP $cwrapper
  55745. + }
  55746. +
  55747. + # Now, create the wrapper script for func_source use:
  55748. + func_ltwrapper_scriptname $cwrapper
  55749. + $RM $func_ltwrapper_scriptname_result
  55750. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  55751. + $opt_dry_run || {
  55752. + # note: this script will not be executed, so do not chmod.
  55753. + if test "x$build" = "x$host" ; then
  55754. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  55755. + else
  55756. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  55757. + fi
  55758. + }
  55759. + ;;
  55760. + * )
  55761. + $RM $output
  55762. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  55763. - # Set up the ranlib parameters.
  55764. - oldlib="$destdir/$name"
  55765. + func_emit_wrapper no > $output
  55766. + chmod +x $output
  55767. + ;;
  55768. + esac
  55769. + }
  55770. + exit $EXIT_SUCCESS
  55771. + ;;
  55772. + esac
  55773. - $show "$install_prog $file $oldlib"
  55774. - $run eval "$install_prog \$file \$oldlib" || exit $?
  55775. + # See if we need to build an old-fashioned archive.
  55776. + for oldlib in $oldlibs; do
  55777. - if test -n "$stripme" && test -n "$old_striplib"; then
  55778. - $show "$old_striplib $oldlib"
  55779. - $run eval "$old_striplib $oldlib" || exit $?
  55780. + if test "$build_libtool_libs" = convenience; then
  55781. + oldobjs="$libobjs_save $symfileobj"
  55782. + addlibs="$convenience"
  55783. + build_libtool_libs=no
  55784. + else
  55785. + if test "$build_libtool_libs" = module; then
  55786. + oldobjs="$libobjs_save"
  55787. + build_libtool_libs=no
  55788. + else
  55789. + oldobjs="$old_deplibs $non_pic_objects"
  55790. + if test "$preload" = yes && test -f "$symfileobj"; then
  55791. + oldobjs="$oldobjs $symfileobj"
  55792. + fi
  55793. + fi
  55794. + addlibs="$old_convenience"
  55795. fi
  55796. - # Do each command in the postinstall commands.
  55797. - cmds=$old_postinstall_cmds
  55798. - save_ifs="$IFS"; IFS='~'
  55799. - for cmd in $cmds; do
  55800. - IFS="$save_ifs"
  55801. - eval cmd=\"$cmd\"
  55802. - $show "$cmd"
  55803. - $run eval "$cmd" || exit $?
  55804. - done
  55805. - IFS="$save_ifs"
  55806. - done
  55807. + if test -n "$addlibs"; then
  55808. + gentop="$output_objdir/${outputname}x"
  55809. + generated="$generated $gentop"
  55810. - if test -n "$future_libdirs"; then
  55811. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  55812. - fi
  55813. + func_extract_archives $gentop $addlibs
  55814. + oldobjs="$oldobjs $func_extract_archives_result"
  55815. + fi
  55816. - if test -n "$current_libdirs"; then
  55817. - # Maybe just do a dry run.
  55818. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  55819. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  55820. - else
  55821. - exit $EXIT_SUCCESS
  55822. - fi
  55823. - ;;
  55824. + # Do each command in the archive commands.
  55825. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  55826. + cmds=$old_archive_from_new_cmds
  55827. + else
  55828. - # libtool finish mode
  55829. - finish)
  55830. - modename="$modename: finish"
  55831. - libdirs="$nonopt"
  55832. - admincmds=
  55833. + # Add any objects from preloaded convenience libraries
  55834. + if test -n "$dlprefiles"; then
  55835. + gentop="$output_objdir/${outputname}x"
  55836. + generated="$generated $gentop"
  55837. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  55838. - for dir
  55839. - do
  55840. - libdirs="$libdirs $dir"
  55841. - done
  55842. + func_extract_archives $gentop $dlprefiles
  55843. + oldobjs="$oldobjs $func_extract_archives_result"
  55844. + fi
  55845. - for libdir in $libdirs; do
  55846. - if test -n "$finish_cmds"; then
  55847. - # Do each command in the finish commands.
  55848. - cmds=$finish_cmds
  55849. - save_ifs="$IFS"; IFS='~'
  55850. - for cmd in $cmds; do
  55851. - IFS="$save_ifs"
  55852. - eval cmd=\"$cmd\"
  55853. - $show "$cmd"
  55854. - $run eval "$cmd" || admincmds="$admincmds
  55855. - $cmd"
  55856. + # POSIX demands no paths to be encoded in archives. We have
  55857. + # to avoid creating archives with duplicate basenames if we
  55858. + # might have to extract them afterwards, e.g., when creating a
  55859. + # static archive out of a convenience library, or when linking
  55860. + # the entirety of a libtool archive into another (currently
  55861. + # not supported by libtool).
  55862. + if (for obj in $oldobjs
  55863. + do
  55864. + func_basename "$obj"
  55865. + $ECHO "$func_basename_result"
  55866. + done | sort | sort -uc >/dev/null 2>&1); then
  55867. + :
  55868. + else
  55869. + $ECHO "copying selected object files to avoid basename conflicts..."
  55870. + gentop="$output_objdir/${outputname}x"
  55871. + generated="$generated $gentop"
  55872. + func_mkdir_p "$gentop"
  55873. + save_oldobjs=$oldobjs
  55874. + oldobjs=
  55875. + counter=1
  55876. + for obj in $save_oldobjs
  55877. + do
  55878. + func_basename "$obj"
  55879. + objbase="$func_basename_result"
  55880. + case " $oldobjs " in
  55881. + " ") oldobjs=$obj ;;
  55882. + *[\ /]"$objbase "*)
  55883. + while :; do
  55884. + # Make sure we don't pick an alternate name that also
  55885. + # overlaps.
  55886. + newobj=lt$counter-$objbase
  55887. + func_arith $counter + 1
  55888. + counter=$func_arith_result
  55889. + case " $oldobjs " in
  55890. + *[\ /]"$newobj "*) ;;
  55891. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  55892. + esac
  55893. + done
  55894. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  55895. + oldobjs="$oldobjs $gentop/$newobj"
  55896. + ;;
  55897. + *) oldobjs="$oldobjs $obj" ;;
  55898. + esac
  55899. done
  55900. - IFS="$save_ifs"
  55901. - fi
  55902. - if test -n "$finish_eval"; then
  55903. - # Do the single finish_eval.
  55904. - eval cmds=\"$finish_eval\"
  55905. - $run eval "$cmds" || admincmds="$admincmds
  55906. - $cmds"
  55907. fi
  55908. - done
  55909. - fi
  55910. -
  55911. - # Exit here if they wanted silent mode.
  55912. - test "$show" = : && exit $EXIT_SUCCESS
  55913. + eval cmds=\"$old_archive_cmds\"
  55914. - $echo "----------------------------------------------------------------------"
  55915. - $echo "Libraries have been installed in:"
  55916. - for libdir in $libdirs; do
  55917. - $echo " $libdir"
  55918. + func_len " $cmds"
  55919. + len=$func_len_result
  55920. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  55921. + cmds=$old_archive_cmds
  55922. + else
  55923. + # the command line is too long to link in one step, link in parts
  55924. + func_verbose "using piecewise archive linking..."
  55925. + save_RANLIB=$RANLIB
  55926. + RANLIB=:
  55927. + objlist=
  55928. + concat_cmds=
  55929. + save_oldobjs=$oldobjs
  55930. + oldobjs=
  55931. + # Is there a better way of finding the last object in the list?
  55932. + for obj in $save_oldobjs
  55933. + do
  55934. + last_oldobj=$obj
  55935. + done
  55936. + eval test_cmds=\"$old_archive_cmds\"
  55937. + func_len " $test_cmds"
  55938. + len0=$func_len_result
  55939. + len=$len0
  55940. + for obj in $save_oldobjs
  55941. + do
  55942. + func_len " $obj"
  55943. + func_arith $len + $func_len_result
  55944. + len=$func_arith_result
  55945. + func_append objlist " $obj"
  55946. + if test "$len" -lt "$max_cmd_len"; then
  55947. + :
  55948. + else
  55949. + # the above command should be used before it gets too long
  55950. + oldobjs=$objlist
  55951. + if test "$obj" = "$last_oldobj" ; then
  55952. + RANLIB=$save_RANLIB
  55953. + fi
  55954. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  55955. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  55956. + objlist=
  55957. + len=$len0
  55958. + fi
  55959. + done
  55960. + RANLIB=$save_RANLIB
  55961. + oldobjs=$objlist
  55962. + if test "X$oldobjs" = "X" ; then
  55963. + eval cmds=\"\$concat_cmds\"
  55964. + else
  55965. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  55966. + fi
  55967. + fi
  55968. + fi
  55969. + func_execute_cmds "$cmds" 'exit $?'
  55970. done
  55971. - $echo
  55972. - $echo "If you ever happen to want to link against installed libraries"
  55973. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  55974. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  55975. - $echo "flag during linking and do at least one of the following:"
  55976. - if test -n "$shlibpath_var"; then
  55977. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  55978. - $echo " during execution"
  55979. - fi
  55980. - if test -n "$runpath_var"; then
  55981. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  55982. - $echo " during linking"
  55983. - fi
  55984. - if test -n "$hardcode_libdir_flag_spec"; then
  55985. - libdir=LIBDIR
  55986. - eval flag=\"$hardcode_libdir_flag_spec\"
  55987. -
  55988. - $echo " - use the \`$flag' linker flag"
  55989. - fi
  55990. - if test -n "$admincmds"; then
  55991. - $echo " - have your system administrator run these commands:$admincmds"
  55992. - fi
  55993. - if test -f /etc/ld.so.conf; then
  55994. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  55995. - fi
  55996. - $echo
  55997. - $echo "See any operating system documentation about shared libraries for"
  55998. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  55999. - $echo "----------------------------------------------------------------------"
  56000. - exit $EXIT_SUCCESS
  56001. - ;;
  56002. - # libtool execute mode
  56003. - execute)
  56004. - modename="$modename: execute"
  56005. -
  56006. - # The first argument is the command name.
  56007. - cmd="$nonopt"
  56008. - if test -z "$cmd"; then
  56009. - $echo "$modename: you must specify a COMMAND" 1>&2
  56010. - $echo "$help"
  56011. - exit $EXIT_FAILURE
  56012. - fi
  56013. + test -n "$generated" && \
  56014. + func_show_eval "${RM}r$generated"
  56015. - # Handle -dlopen flags immediately.
  56016. - for file in $execute_dlfiles; do
  56017. - if test ! -f "$file"; then
  56018. - $echo "$modename: \`$file' is not a file" 1>&2
  56019. - $echo "$help" 1>&2
  56020. - exit $EXIT_FAILURE
  56021. - fi
  56022. + # Now create the libtool archive.
  56023. + case $output in
  56024. + *.la)
  56025. + old_library=
  56026. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  56027. + func_verbose "creating $output"
  56028. - dir=
  56029. - case $file in
  56030. - *.la)
  56031. - # Check to see that this really is a libtool archive.
  56032. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  56033. + # Preserve any variables that may affect compiler behavior
  56034. + for var in $variables_saved_for_relink; do
  56035. + if eval test -z \"\${$var+set}\"; then
  56036. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  56037. + elif eval var_value=\$$var; test -z "$var_value"; then
  56038. + relink_command="$var=; export $var; $relink_command"
  56039. else
  56040. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  56041. - $echo "$help" 1>&2
  56042. - exit $EXIT_FAILURE
  56043. + func_quote_for_eval "$var_value"
  56044. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  56045. fi
  56046. + done
  56047. + # Quote the link command for shipping.
  56048. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  56049. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  56050. + if test "$hardcode_automatic" = yes ; then
  56051. + relink_command=
  56052. + fi
  56053. - # Read the libtool library.
  56054. - dlname=
  56055. - library_names=
  56056. + # Only create the output if not a dry run.
  56057. + $opt_dry_run || {
  56058. + for installed in no yes; do
  56059. + if test "$installed" = yes; then
  56060. + if test -z "$install_libdir"; then
  56061. + break
  56062. + fi
  56063. + output="$output_objdir/$outputname"i
  56064. + # Replace all uninstalled libtool libraries with the installed ones
  56065. + newdependency_libs=
  56066. + for deplib in $dependency_libs; do
  56067. + case $deplib in
  56068. + *.la)
  56069. + func_basename "$deplib"
  56070. + name="$func_basename_result"
  56071. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  56072. + test -z "$libdir" && \
  56073. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  56074. + newdependency_libs="$newdependency_libs $libdir/$name"
  56075. + ;;
  56076. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  56077. + esac
  56078. + done
  56079. + dependency_libs="$newdependency_libs"
  56080. + newdlfiles=
  56081. +
  56082. + for lib in $dlfiles; do
  56083. + case $lib in
  56084. + *.la)
  56085. + func_basename "$lib"
  56086. + name="$func_basename_result"
  56087. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  56088. + test -z "$libdir" && \
  56089. + func_fatal_error "\`$lib' is not a valid libtool archive"
  56090. + newdlfiles="$newdlfiles $libdir/$name"
  56091. + ;;
  56092. + *) newdlfiles="$newdlfiles $lib" ;;
  56093. + esac
  56094. + done
  56095. + dlfiles="$newdlfiles"
  56096. + newdlprefiles=
  56097. + for lib in $dlprefiles; do
  56098. + case $lib in
  56099. + *.la)
  56100. + # Only pass preopened files to the pseudo-archive (for
  56101. + # eventual linking with the app. that links it) if we
  56102. + # didn't already link the preopened objects directly into
  56103. + # the library:
  56104. + func_basename "$lib"
  56105. + name="$func_basename_result"
  56106. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  56107. + test -z "$libdir" && \
  56108. + func_fatal_error "\`$lib' is not a valid libtool archive"
  56109. + newdlprefiles="$newdlprefiles $libdir/$name"
  56110. + ;;
  56111. + esac
  56112. + done
  56113. + dlprefiles="$newdlprefiles"
  56114. + else
  56115. + newdlfiles=
  56116. + for lib in $dlfiles; do
  56117. + case $lib in
  56118. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  56119. + *) abs=`pwd`"/$lib" ;;
  56120. + esac
  56121. + newdlfiles="$newdlfiles $abs"
  56122. + done
  56123. + dlfiles="$newdlfiles"
  56124. + newdlprefiles=
  56125. + for lib in $dlprefiles; do
  56126. + case $lib in
  56127. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  56128. + *) abs=`pwd`"/$lib" ;;
  56129. + esac
  56130. + newdlprefiles="$newdlprefiles $abs"
  56131. + done
  56132. + dlprefiles="$newdlprefiles"
  56133. + fi
  56134. + $RM $output
  56135. + # place dlname in correct position for cygwin
  56136. + tdlname=$dlname
  56137. + case $host,$output,$installed,$module,$dlname in
  56138. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  56139. + esac
  56140. + $ECHO > $output "\
  56141. +# $outputname - a libtool library file
  56142. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  56143. +#
  56144. +# Please DO NOT delete this file!
  56145. +# It is necessary for linking the library.
  56146. - # If there is no directory component, then add one.
  56147. - case $file in
  56148. - */* | *\\*) . $file ;;
  56149. - *) . ./$file ;;
  56150. - esac
  56151. +# The name that we can dlopen(3).
  56152. +dlname='$tdlname'
  56153. - # Skip this library if it cannot be dlopened.
  56154. - if test -z "$dlname"; then
  56155. - # Warn if it was a shared library.
  56156. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  56157. - continue
  56158. - fi
  56159. +# Names of this library.
  56160. +library_names='$library_names'
  56161. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  56162. - test "X$dir" = "X$file" && dir=.
  56163. +# The name of the static archive.
  56164. +old_library='$old_library'
  56165. - if test -f "$dir/$objdir/$dlname"; then
  56166. - dir="$dir/$objdir"
  56167. - else
  56168. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  56169. - exit $EXIT_FAILURE
  56170. - fi
  56171. - ;;
  56172. +# Linker flags that can not go in dependency_libs.
  56173. +inherited_linker_flags='$new_inherited_linker_flags'
  56174. - *.lo)
  56175. - # Just add the directory containing the .lo file.
  56176. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  56177. - test "X$dir" = "X$file" && dir=.
  56178. - ;;
  56179. +# Libraries that this one depends upon.
  56180. +dependency_libs='$dependency_libs'
  56181. - *)
  56182. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  56183. - continue
  56184. - ;;
  56185. - esac
  56186. +# Names of additional weak libraries provided by this library
  56187. +weak_library_names='$weak_libs'
  56188. - # Get the absolute pathname.
  56189. - absdir=`cd "$dir" && pwd`
  56190. - test -n "$absdir" && dir="$absdir"
  56191. +# Version information for $libname.
  56192. +current=$current
  56193. +age=$age
  56194. +revision=$revision
  56195. - # Now add the directory to shlibpath_var.
  56196. - if eval "test -z \"\$$shlibpath_var\""; then
  56197. - eval "$shlibpath_var=\"\$dir\""
  56198. - else
  56199. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  56200. - fi
  56201. - done
  56202. +# Is this an already installed library?
  56203. +installed=$installed
  56204. - # This variable tells wrapper scripts just to set shlibpath_var
  56205. - # rather than running their programs.
  56206. - libtool_execute_magic="$magic"
  56207. +# Should we warn about portability when linking against -modules?
  56208. +shouldnotlink=$module
  56209. - # Check if any of the arguments is a wrapper script.
  56210. - args=
  56211. - for file
  56212. - do
  56213. - case $file in
  56214. - -*) ;;
  56215. - *)
  56216. - # Do a test to see if this is really a libtool program.
  56217. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  56218. - # If there is no directory component, then add one.
  56219. - case $file in
  56220. - */* | *\\*) . $file ;;
  56221. - *) . ./$file ;;
  56222. - esac
  56223. +# Files to dlopen/dlpreopen
  56224. +dlopen='$dlfiles'
  56225. +dlpreopen='$dlprefiles'
  56226. - # Transform arg to wrapped name.
  56227. - file="$progdir/$program"
  56228. - fi
  56229. - ;;
  56230. - esac
  56231. - # Quote arguments (to preserve shell metacharacters).
  56232. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  56233. - args="$args \"$file\""
  56234. - done
  56235. +# Directory that this library needs to be installed in:
  56236. +libdir='$install_libdir'"
  56237. + if test "$installed" = no && test "$need_relink" = yes; then
  56238. + $ECHO >> $output "\
  56239. +relink_command=\"$relink_command\""
  56240. + fi
  56241. + done
  56242. + }
  56243. - if test -z "$run"; then
  56244. - if test -n "$shlibpath_var"; then
  56245. - # Export the shlibpath_var.
  56246. - eval "export $shlibpath_var"
  56247. - fi
  56248. + # Do a symbolic link so that the libtool archive can be found in
  56249. + # LD_LIBRARY_PATH before the program is installed.
  56250. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  56251. + ;;
  56252. + esac
  56253. + exit $EXIT_SUCCESS
  56254. +}
  56255. - # Restore saved environment variables
  56256. - if test "${save_LC_ALL+set}" = set; then
  56257. - LC_ALL="$save_LC_ALL"; export LC_ALL
  56258. - fi
  56259. - if test "${save_LANG+set}" = set; then
  56260. - LANG="$save_LANG"; export LANG
  56261. - fi
  56262. +{ test "$mode" = link || test "$mode" = relink; } &&
  56263. + func_mode_link ${1+"$@"}
  56264. - # Now prepare to actually exec the command.
  56265. - exec_cmd="\$cmd$args"
  56266. - else
  56267. - # Display what would be done.
  56268. - if test -n "$shlibpath_var"; then
  56269. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  56270. - $echo "export $shlibpath_var"
  56271. - fi
  56272. - $echo "$cmd$args"
  56273. - exit $EXIT_SUCCESS
  56274. - fi
  56275. - ;;
  56276. - # libtool clean and uninstall mode
  56277. - clean | uninstall)
  56278. - modename="$modename: $mode"
  56279. - rm="$nonopt"
  56280. +# func_mode_uninstall arg...
  56281. +func_mode_uninstall ()
  56282. +{
  56283. + $opt_debug
  56284. + RM="$nonopt"
  56285. files=
  56286. rmforce=
  56287. exit_status=0
  56288. @@ -6023,30 +8209,28 @@
  56289. for arg
  56290. do
  56291. case $arg in
  56292. - -f) rm="$rm $arg"; rmforce=yes ;;
  56293. - -*) rm="$rm $arg" ;;
  56294. + -f) RM="$RM $arg"; rmforce=yes ;;
  56295. + -*) RM="$RM $arg" ;;
  56296. *) files="$files $arg" ;;
  56297. esac
  56298. done
  56299. - if test -z "$rm"; then
  56300. - $echo "$modename: you must specify an RM program" 1>&2
  56301. - $echo "$help" 1>&2
  56302. - exit $EXIT_FAILURE
  56303. - fi
  56304. + test -z "$RM" && \
  56305. + func_fatal_help "you must specify an RM program"
  56306. rmdirs=
  56307. origobjdir="$objdir"
  56308. for file in $files; do
  56309. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  56310. - if test "X$dir" = "X$file"; then
  56311. - dir=.
  56312. + func_dirname "$file" "" "."
  56313. + dir="$func_dirname_result"
  56314. + if test "X$dir" = X.; then
  56315. objdir="$origobjdir"
  56316. else
  56317. objdir="$dir/$origobjdir"
  56318. fi
  56319. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  56320. + func_basename "$file"
  56321. + name="$func_basename_result"
  56322. test "$mode" = uninstall && objdir="$dir"
  56323. # Remember objdir for removal later, being careful to avoid duplicates
  56324. @@ -6058,9 +8242,9 @@
  56325. fi
  56326. # Don't error if the file doesn't exist and rm -f was used.
  56327. - if (test -L "$file") >/dev/null 2>&1 \
  56328. - || (test -h "$file") >/dev/null 2>&1 \
  56329. - || test -f "$file"; then
  56330. + if { test -L "$file"; } >/dev/null 2>&1 ||
  56331. + { test -h "$file"; } >/dev/null 2>&1 ||
  56332. + test -f "$file"; then
  56333. :
  56334. elif test -d "$file"; then
  56335. exit_status=1
  56336. @@ -6074,69 +8258,56 @@
  56337. case $name in
  56338. *.la)
  56339. # Possibly a libtool archive, so verify it.
  56340. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  56341. - . $dir/$name
  56342. + if func_lalib_p "$file"; then
  56343. + func_source $dir/$name
  56344. # Delete the libtool libraries and symlinks.
  56345. for n in $library_names; do
  56346. rmfiles="$rmfiles $objdir/$n"
  56347. done
  56348. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  56349. - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  56350. - if test "$mode" = uninstall; then
  56351. + case "$mode" in
  56352. + clean)
  56353. + case " $library_names " in
  56354. + # " " in the beginning catches empty $dlname
  56355. + *" $dlname "*) ;;
  56356. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  56357. + esac
  56358. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  56359. + ;;
  56360. + uninstall)
  56361. if test -n "$library_names"; then
  56362. # Do each command in the postuninstall commands.
  56363. - cmds=$postuninstall_cmds
  56364. - save_ifs="$IFS"; IFS='~'
  56365. - for cmd in $cmds; do
  56366. - IFS="$save_ifs"
  56367. - eval cmd=\"$cmd\"
  56368. - $show "$cmd"
  56369. - $run eval "$cmd"
  56370. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  56371. - exit_status=1
  56372. - fi
  56373. - done
  56374. - IFS="$save_ifs"
  56375. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  56376. fi
  56377. if test -n "$old_library"; then
  56378. # Do each command in the old_postuninstall commands.
  56379. - cmds=$old_postuninstall_cmds
  56380. - save_ifs="$IFS"; IFS='~'
  56381. - for cmd in $cmds; do
  56382. - IFS="$save_ifs"
  56383. - eval cmd=\"$cmd\"
  56384. - $show "$cmd"
  56385. - $run eval "$cmd"
  56386. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  56387. - exit_status=1
  56388. - fi
  56389. - done
  56390. - IFS="$save_ifs"
  56391. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  56392. fi
  56393. # FIXME: should reinstall the best remaining shared library.
  56394. - fi
  56395. + ;;
  56396. + esac
  56397. fi
  56398. ;;
  56399. *.lo)
  56400. # Possibly a libtool object, so verify it.
  56401. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  56402. + if func_lalib_p "$file"; then
  56403. # Read the .lo file
  56404. - . $dir/$name
  56405. + func_source $dir/$name
  56406. # Add PIC object to the list of files to remove.
  56407. - if test -n "$pic_object" \
  56408. - && test "$pic_object" != none; then
  56409. + if test -n "$pic_object" &&
  56410. + test "$pic_object" != none; then
  56411. rmfiles="$rmfiles $dir/$pic_object"
  56412. fi
  56413. # Add non-PIC object to the list of files to remove.
  56414. - if test -n "$non_pic_object" \
  56415. - && test "$non_pic_object" != none; then
  56416. + if test -n "$non_pic_object" &&
  56417. + test "$non_pic_object" != none; then
  56418. rmfiles="$rmfiles $dir/$non_pic_object"
  56419. fi
  56420. fi
  56421. @@ -6147,17 +8318,26 @@
  56422. noexename=$name
  56423. case $file in
  56424. *.exe)
  56425. - file=`$echo $file|${SED} 's,.exe$,,'`
  56426. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  56427. + func_stripname '' '.exe' "$file"
  56428. + file=$func_stripname_result
  56429. + func_stripname '' '.exe' "$name"
  56430. + noexename=$func_stripname_result
  56431. # $file with .exe has already been added to rmfiles,
  56432. # add $file without .exe
  56433. rmfiles="$rmfiles $file"
  56434. ;;
  56435. esac
  56436. # Do a test to see if this is a libtool program.
  56437. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  56438. - relink_command=
  56439. - . $dir/$noexename
  56440. + if func_ltwrapper_p "$file"; then
  56441. + if func_ltwrapper_executable_p "$file"; then
  56442. + func_ltwrapper_scriptname "$file"
  56443. + relink_command=
  56444. + func_source $func_ltwrapper_scriptname_result
  56445. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  56446. + else
  56447. + relink_command=
  56448. + func_source $dir/$noexename
  56449. + fi
  56450. # note $name still contains .exe if it was in $file originally
  56451. # as does the version of $file that was added into $rmfiles
  56452. @@ -6172,237 +8352,38 @@
  56453. fi
  56454. ;;
  56455. esac
  56456. - $show "$rm $rmfiles"
  56457. - $run $rm $rmfiles || exit_status=1
  56458. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  56459. done
  56460. objdir="$origobjdir"
  56461. # Try to remove the ${objdir}s in the directories where we deleted files
  56462. for dir in $rmdirs; do
  56463. if test -d "$dir"; then
  56464. - $show "rmdir $dir"
  56465. - $run rmdir $dir >/dev/null 2>&1
  56466. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  56467. fi
  56468. done
  56469. exit $exit_status
  56470. - ;;
  56471. +}
  56472. - "")
  56473. - $echo "$modename: you must specify a MODE" 1>&2
  56474. - $echo "$generic_help" 1>&2
  56475. - exit $EXIT_FAILURE
  56476. - ;;
  56477. - esac
  56478. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  56479. + func_mode_uninstall ${1+"$@"}
  56480. - if test -z "$exec_cmd"; then
  56481. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  56482. - $echo "$generic_help" 1>&2
  56483. - exit $EXIT_FAILURE
  56484. - fi
  56485. -fi # test -z "$show_help"
  56486. +test -z "$mode" && {
  56487. + help="$generic_help"
  56488. + func_fatal_help "you must specify a MODE"
  56489. +}
  56490. +
  56491. +test -z "$exec_cmd" && \
  56492. + func_fatal_help "invalid operation mode \`$mode'"
  56493. if test -n "$exec_cmd"; then
  56494. - eval exec $exec_cmd
  56495. + eval exec "$exec_cmd"
  56496. exit $EXIT_FAILURE
  56497. fi
  56498. -# We need to display help for each of the modes.
  56499. -case $mode in
  56500. -"") $echo \
  56501. -"Usage: $modename [OPTION]... [MODE-ARG]...
  56502. -
  56503. -Provide generalized library-building support services.
  56504. -
  56505. - --config show all configuration variables
  56506. - --debug enable verbose shell tracing
  56507. --n, --dry-run display commands without modifying any files
  56508. - --features display basic configuration information and exit
  56509. - --finish same as \`--mode=finish'
  56510. - --help display this help message and exit
  56511. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  56512. - --quiet same as \`--silent'
  56513. - --silent don't print informational messages
  56514. - --tag=TAG use configuration variables from tag TAG
  56515. - --version print version information
  56516. -
  56517. -MODE must be one of the following:
  56518. -
  56519. - clean remove files from the build directory
  56520. - compile compile a source file into a libtool object
  56521. - execute automatically set library path, then run a program
  56522. - finish complete the installation of libtool libraries
  56523. - install install libraries or executables
  56524. - link create a library or an executable
  56525. - uninstall remove libraries from an installed directory
  56526. -
  56527. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  56528. -a more detailed description of MODE.
  56529. -
  56530. -Report bugs to <bug-libtool@gnu.org>."
  56531. - exit $EXIT_SUCCESS
  56532. - ;;
  56533. -
  56534. -clean)
  56535. - $echo \
  56536. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  56537. -
  56538. -Remove files from the build directory.
  56539. -
  56540. -RM is the name of the program to use to delete files associated with each FILE
  56541. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  56542. -to RM.
  56543. -
  56544. -If FILE is a libtool library, object or program, all the files associated
  56545. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  56546. - ;;
  56547. -
  56548. -compile)
  56549. - $echo \
  56550. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  56551. -
  56552. -Compile a source file into a libtool library object.
  56553. -
  56554. -This mode accepts the following additional options:
  56555. -
  56556. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  56557. - -prefer-pic try to building PIC objects only
  56558. - -prefer-non-pic try to building non-PIC objects only
  56559. - -static always build a \`.o' file suitable for static linking
  56560. -
  56561. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  56562. -from the given SOURCEFILE.
  56563. -
  56564. -The output file name is determined by removing the directory component from
  56565. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  56566. -library object suffix, \`.lo'."
  56567. - ;;
  56568. -
  56569. -execute)
  56570. - $echo \
  56571. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  56572. -
  56573. -Automatically set library path, then run a program.
  56574. -
  56575. -This mode accepts the following additional options:
  56576. -
  56577. - -dlopen FILE add the directory containing FILE to the library path
  56578. -
  56579. -This mode sets the library path environment variable according to \`-dlopen'
  56580. -flags.
  56581. -
  56582. -If any of the ARGS are libtool executable wrappers, then they are translated
  56583. -into their corresponding uninstalled binary, and any of their required library
  56584. -directories are added to the library path.
  56585. -
  56586. -Then, COMMAND is executed, with ARGS as arguments."
  56587. - ;;
  56588. -
  56589. -finish)
  56590. - $echo \
  56591. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  56592. -
  56593. -Complete the installation of libtool libraries.
  56594. -
  56595. -Each LIBDIR is a directory that contains libtool libraries.
  56596. -
  56597. -The commands that this mode executes may require superuser privileges. Use
  56598. -the \`--dry-run' option if you just want to see what would be executed."
  56599. - ;;
  56600. -
  56601. -install)
  56602. - $echo \
  56603. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  56604. -
  56605. -Install executables or libraries.
  56606. -
  56607. -INSTALL-COMMAND is the installation command. The first component should be
  56608. -either the \`install' or \`cp' program.
  56609. -
  56610. -The rest of the components are interpreted as arguments to that command (only
  56611. -BSD-compatible install options are recognized)."
  56612. - ;;
  56613. -
  56614. -link)
  56615. - $echo \
  56616. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  56617. -
  56618. -Link object files or libraries together to form another library, or to
  56619. -create an executable program.
  56620. -
  56621. -LINK-COMMAND is a command using the C compiler that you would use to create
  56622. -a program from several object files.
  56623. -
  56624. -The following components of LINK-COMMAND are treated specially:
  56625. -
  56626. - -all-static do not do any dynamic linking at all
  56627. - -avoid-version do not add a version suffix if possible
  56628. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  56629. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  56630. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  56631. - -export-symbols SYMFILE
  56632. - try to export only the symbols listed in SYMFILE
  56633. - -export-symbols-regex REGEX
  56634. - try to export only the symbols matching REGEX
  56635. - -LLIBDIR search LIBDIR for required installed libraries
  56636. - -lNAME OUTPUT-FILE requires the installed library libNAME
  56637. - -module build a library that can dlopened
  56638. - -no-fast-install disable the fast-install mode
  56639. - -no-install link a not-installable executable
  56640. - -no-undefined declare that a library does not refer to external symbols
  56641. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  56642. - -objectlist FILE Use a list of object files found in FILE to specify objects
  56643. - -precious-files-regex REGEX
  56644. - don't remove output files matching REGEX
  56645. - -release RELEASE specify package release information
  56646. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  56647. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  56648. - -static do not do any dynamic linking of libtool libraries
  56649. - -version-info CURRENT[:REVISION[:AGE]]
  56650. - specify library version info [each variable defaults to 0]
  56651. -
  56652. -All other options (arguments beginning with \`-') are ignored.
  56653. -
  56654. -Every other argument is treated as a filename. Files ending in \`.la' are
  56655. -treated as uninstalled libtool libraries, other files are standard or library
  56656. -object files.
  56657. -
  56658. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  56659. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  56660. -required, except when creating a convenience library.
  56661. -
  56662. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  56663. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  56664. -
  56665. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  56666. -is created, otherwise an executable program is created."
  56667. - ;;
  56668. -
  56669. -uninstall)
  56670. - $echo \
  56671. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  56672. -
  56673. -Remove libraries from an installation directory.
  56674. -
  56675. -RM is the name of the program to use to delete files associated with each FILE
  56676. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  56677. -to RM.
  56678. +exit $exit_status
  56679. -If FILE is a libtool library, all the files associated with it are deleted.
  56680. -Otherwise, only FILE itself is deleted using RM."
  56681. - ;;
  56682. -
  56683. -*)
  56684. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  56685. - $echo "$help" 1>&2
  56686. - exit $EXIT_FAILURE
  56687. - ;;
  56688. -esac
  56689. -
  56690. -$echo
  56691. -$echo "Try \`$modename --help' for more information about other modes."
  56692. -
  56693. -exit $EXIT_SUCCESS
  56694. # The TAGs below are defined such that we never get into a situation
  56695. # in which we disable both kinds of libraries. Given conflicting
  56696. @@ -6421,10 +8402,12 @@
  56697. # ### END LIBTOOL TAG CONFIG: disable-shared
  56698. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  56699. -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
  56700. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  56701. # ### END LIBTOOL TAG CONFIG: disable-static
  56702. # Local Variables:
  56703. # mode:shell-script
  56704. # sh-indentation:2
  56705. # End:
  56706. +# vi:sw=2
  56707. +
  56708. diff -Nur librpcsecgss-0.19.orig/Makefile.in librpcsecgss-0.19/Makefile.in
  56709. --- librpcsecgss-0.19.orig/Makefile.in 2009-07-29 20:49:15.000000000 +0200
  56710. +++ librpcsecgss-0.19/Makefile.in 2011-02-17 18:22:26.043552165 +0100
  56711. @@ -1,4 +1,4 @@
  56712. -# Makefile.in generated by automake 1.11 from Makefile.am.
  56713. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  56714. # @configure_input@
  56715. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  56716. @@ -137,22 +137,17 @@
  56717. CFLAGS = @CFLAGS@
  56718. CPP = @CPP@
  56719. CPPFLAGS = @CPPFLAGS@
  56720. -CXX = @CXX@
  56721. -CXXCPP = @CXXCPP@
  56722. -CXXDEPMODE = @CXXDEPMODE@
  56723. -CXXFLAGS = @CXXFLAGS@
  56724. CYGPATH_W = @CYGPATH_W@
  56725. DEFS = @DEFS@
  56726. DEPDIR = @DEPDIR@
  56727. DSYMUTIL = @DSYMUTIL@
  56728. -ECHO = @ECHO@
  56729. +DUMPBIN = @DUMPBIN@
  56730. ECHO_C = @ECHO_C@
  56731. ECHO_N = @ECHO_N@
  56732. ECHO_T = @ECHO_T@
  56733. EGREP = @EGREP@
  56734. EXEEXT = @EXEEXT@
  56735. -F77 = @F77@
  56736. -FFLAGS = @FFLAGS@
  56737. +FGREP = @FGREP@
  56738. GREP = @GREP@
  56739. GSSGLUE_CFLAGS = @GSSGLUE_CFLAGS@
  56740. GSSGLUE_LIBS = @GSSGLUE_LIBS@
  56741. @@ -161,21 +156,28 @@
  56742. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  56743. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  56744. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  56745. +LD = @LD@
  56746. LDFLAGS = @LDFLAGS@
  56747. LIBOBJS = @LIBOBJS@
  56748. LIBS = @LIBS@
  56749. LIBTOOL = @LIBTOOL@
  56750. +LIPO = @LIPO@
  56751. LN_S = @LN_S@
  56752. LTLIBOBJS = @LTLIBOBJS@
  56753. MAKEINFO = @MAKEINFO@
  56754. MKDIR_P = @MKDIR_P@
  56755. +NM = @NM@
  56756. NMEDIT = @NMEDIT@
  56757. +OBJDUMP = @OBJDUMP@
  56758. OBJEXT = @OBJEXT@
  56759. +OTOOL = @OTOOL@
  56760. +OTOOL64 = @OTOOL64@
  56761. PACKAGE = @PACKAGE@
  56762. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  56763. PACKAGE_NAME = @PACKAGE_NAME@
  56764. PACKAGE_STRING = @PACKAGE_STRING@
  56765. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  56766. +PACKAGE_URL = @PACKAGE_URL@
  56767. PACKAGE_VERSION = @PACKAGE_VERSION@
  56768. PATH_SEPARATOR = @PATH_SEPARATOR@
  56769. PKG_CONFIG = @PKG_CONFIG@
  56770. @@ -190,8 +192,7 @@
  56771. abs_top_builddir = @abs_top_builddir@
  56772. abs_top_srcdir = @abs_top_srcdir@
  56773. ac_ct_CC = @ac_ct_CC@
  56774. -ac_ct_CXX = @ac_ct_CXX@
  56775. -ac_ct_F77 = @ac_ct_F77@
  56776. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  56777. am__include = @am__include@
  56778. am__leading_dot = @am__leading_dot@
  56779. am__quote = @am__quote@
  56780. @@ -222,6 +223,7 @@
  56781. libexecdir = @libexecdir@
  56782. localedir = @localedir@
  56783. localstatedir = @localstatedir@
  56784. +lt_ECHO = @lt_ECHO@
  56785. mandir = @mandir@
  56786. mkdir_p = @mkdir_p@
  56787. oldincludedir = @oldincludedir@
  56788. @@ -316,7 +318,7 @@
  56789. # (which will cause the Makefiles to be regenerated when you run `make');
  56790. # (2) otherwise, pass the desired values on the `make' command line.
  56791. $(RECURSIVE_TARGETS):
  56792. - @failcom='exit 1'; \
  56793. + @fail= failcom='exit 1'; \
  56794. for f in x $$MAKEFLAGS; do \
  56795. case $$f in \
  56796. *=* | --[!k]*);; \
  56797. @@ -341,7 +343,7 @@
  56798. fi; test -z "$$fail"
  56799. $(RECURSIVE_CLEAN_TARGETS):
  56800. - @failcom='exit 1'; \
  56801. + @fail= failcom='exit 1'; \
  56802. for f in x $$MAKEFLAGS; do \
  56803. case $$f in \
  56804. *=* | --[!k]*);; \
  56805. @@ -508,7 +510,8 @@
  56806. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  56807. dist-hook
  56808. -test -n "$(am__skip_mode_fix)" \
  56809. - || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  56810. + || find "$(distdir)" -type d ! -perm -755 \
  56811. + -exec chmod u+rwx,go+rx {} \; -o \
  56812. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  56813. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  56814. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  56815. @@ -552,17 +555,17 @@
  56816. distcheck: dist
  56817. case '$(DIST_ARCHIVES)' in \
  56818. *.tar.gz*) \
  56819. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  56820. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  56821. *.tar.bz2*) \
  56822. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  56823. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  56824. *.tar.lzma*) \
  56825. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  56826. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  56827. *.tar.xz*) \
  56828. xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  56829. *.tar.Z*) \
  56830. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  56831. *.shar.gz*) \
  56832. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  56833. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  56834. *.zip*) \
  56835. unzip $(distdir).zip ;;\
  56836. esac
  56837. diff -Nur librpcsecgss-0.19.orig/mkinstalldirs librpcsecgss-0.19/mkinstalldirs
  56838. --- librpcsecgss-0.19.orig/mkinstalldirs 2009-05-13 23:33:08.000000000 +0200
  56839. +++ librpcsecgss-0.19/mkinstalldirs 2011-02-17 18:22:26.003556122 +0100
  56840. @@ -1,40 +1,162 @@
  56841. #! /bin/sh
  56842. # mkinstalldirs --- make directory hierarchy
  56843. -# Author: Noah Friedman <friedman@prep.ai.mit.edu>
  56844. -# Created: 1993-05-16
  56845. -# Public domain
  56846. -# $Id: mkinstalldirs,v 1.1 2004/10/22 17:24:27 bfields Exp $
  56847. +scriptversion=2009-04-28.21; # UTC
  56848. +# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  56849. +# Created: 1993-05-16
  56850. +# Public domain.
  56851. +#
  56852. +# This file is maintained in Automake, please report
  56853. +# bugs to <bug-automake@gnu.org> or send patches to
  56854. +# <automake-patches@gnu.org>.
  56855. +
  56856. +nl='
  56857. +'
  56858. +IFS=" "" $nl"
  56859. errstatus=0
  56860. +dirmode=
  56861. +
  56862. +usage="\
  56863. +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
  56864. +
  56865. +Create each directory DIR (with mode MODE, if specified), including all
  56866. +leading file name components.
  56867. +
  56868. +Report bugs to <bug-automake@gnu.org>."
  56869. +
  56870. +# process command line arguments
  56871. +while test $# -gt 0 ; do
  56872. + case $1 in
  56873. + -h | --help | --h*) # -h for help
  56874. + echo "$usage"
  56875. + exit $?
  56876. + ;;
  56877. + -m) # -m PERM arg
  56878. + shift
  56879. + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
  56880. + dirmode=$1
  56881. + shift
  56882. + ;;
  56883. + --version)
  56884. + echo "$0 $scriptversion"
  56885. + exit $?
  56886. + ;;
  56887. + --) # stop option processing
  56888. + shift
  56889. + break
  56890. + ;;
  56891. + -*) # unknown option
  56892. + echo "$usage" 1>&2
  56893. + exit 1
  56894. + ;;
  56895. + *) # first non-opt arg
  56896. + break
  56897. + ;;
  56898. + esac
  56899. +done
  56900. for file
  56901. do
  56902. - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  56903. - shift
  56904. + if test -d "$file"; then
  56905. + shift
  56906. + else
  56907. + break
  56908. + fi
  56909. +done
  56910. +
  56911. +case $# in
  56912. + 0) exit 0 ;;
  56913. +esac
  56914. +
  56915. +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
  56916. +# mkdir -p a/c at the same time, both will detect that a is missing,
  56917. +# one will create a, then the other will try to create a and die with
  56918. +# a "File exists" error. This is a problem when calling mkinstalldirs
  56919. +# from a parallel make. We use --version in the probe to restrict
  56920. +# ourselves to GNU mkdir, which is thread-safe.
  56921. +case $dirmode in
  56922. + '')
  56923. + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  56924. + echo "mkdir -p -- $*"
  56925. + exec mkdir -p -- "$@"
  56926. + else
  56927. + # On NextStep and OpenStep, the `mkdir' command does not
  56928. + # recognize any option. It will interpret all options as
  56929. + # directories to create, and then abort because `.' already
  56930. + # exists.
  56931. + test -d ./-p && rmdir ./-p
  56932. + test -d ./--version && rmdir ./--version
  56933. + fi
  56934. + ;;
  56935. + *)
  56936. + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
  56937. + test ! -d ./--version; then
  56938. + echo "mkdir -m $dirmode -p -- $*"
  56939. + exec mkdir -m "$dirmode" -p -- "$@"
  56940. + else
  56941. + # Clean up after NextStep and OpenStep mkdir.
  56942. + for d in ./-m ./-p ./--version "./$dirmode";
  56943. + do
  56944. + test -d $d && rmdir $d
  56945. + done
  56946. + fi
  56947. + ;;
  56948. +esac
  56949. - pathcomp=
  56950. - for d
  56951. - do
  56952. - pathcomp="$pathcomp$d"
  56953. - case "$pathcomp" in
  56954. - -* ) pathcomp=./$pathcomp ;;
  56955. - esac
  56956. -
  56957. - if test ! -d "$pathcomp"; then
  56958. - echo "mkdir $pathcomp"
  56959. -
  56960. - mkdir "$pathcomp" || lasterr=$?
  56961. -
  56962. - if test ! -d "$pathcomp"; then
  56963. - errstatus=$lasterr
  56964. - fi
  56965. - fi
  56966. +for file
  56967. +do
  56968. + case $file in
  56969. + /*) pathcomp=/ ;;
  56970. + *) pathcomp= ;;
  56971. + esac
  56972. + oIFS=$IFS
  56973. + IFS=/
  56974. + set fnord $file
  56975. + shift
  56976. + IFS=$oIFS
  56977. +
  56978. + for d
  56979. + do
  56980. + test "x$d" = x && continue
  56981. +
  56982. + pathcomp=$pathcomp$d
  56983. + case $pathcomp in
  56984. + -*) pathcomp=./$pathcomp ;;
  56985. + esac
  56986. +
  56987. + if test ! -d "$pathcomp"; then
  56988. + echo "mkdir $pathcomp"
  56989. +
  56990. + mkdir "$pathcomp" || lasterr=$?
  56991. +
  56992. + if test ! -d "$pathcomp"; then
  56993. + errstatus=$lasterr
  56994. + else
  56995. + if test ! -z "$dirmode"; then
  56996. + echo "chmod $dirmode $pathcomp"
  56997. + lasterr=
  56998. + chmod "$dirmode" "$pathcomp" || lasterr=$?
  56999. +
  57000. + if test ! -z "$lasterr"; then
  57001. + errstatus=$lasterr
  57002. + fi
  57003. + fi
  57004. + fi
  57005. + fi
  57006. - pathcomp="$pathcomp/"
  57007. - done
  57008. + pathcomp=$pathcomp/
  57009. + done
  57010. done
  57011. exit $errstatus
  57012. -# mkinstalldirs ends here
  57013. +# Local Variables:
  57014. +# mode: shell-script
  57015. +# sh-indentation: 2
  57016. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  57017. +# time-stamp-start: "scriptversion="
  57018. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  57019. +# time-stamp-time-zone: "UTC"
  57020. +# time-stamp-end: "; # UTC"
  57021. +# End:
  57022. diff -Nur librpcsecgss-0.19.orig/src/Makefile.in librpcsecgss-0.19/src/Makefile.in
  57023. --- librpcsecgss-0.19.orig/src/Makefile.in 2009-07-29 20:49:15.000000000 +0200
  57024. +++ librpcsecgss-0.19/src/Makefile.in 2011-02-17 18:22:25.983552290 +0100
  57025. @@ -1,4 +1,4 @@
  57026. -# Makefile.in generated by automake 1.11 from Makefile.am.
  57027. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  57028. # @configure_input@
  57029. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  57030. @@ -116,22 +116,17 @@
  57031. CFLAGS = @CFLAGS@
  57032. CPP = @CPP@
  57033. CPPFLAGS = @CPPFLAGS@
  57034. -CXX = @CXX@
  57035. -CXXCPP = @CXXCPP@
  57036. -CXXDEPMODE = @CXXDEPMODE@
  57037. -CXXFLAGS = @CXXFLAGS@
  57038. CYGPATH_W = @CYGPATH_W@
  57039. DEFS = @DEFS@
  57040. DEPDIR = @DEPDIR@
  57041. DSYMUTIL = @DSYMUTIL@
  57042. -ECHO = @ECHO@
  57043. +DUMPBIN = @DUMPBIN@
  57044. ECHO_C = @ECHO_C@
  57045. ECHO_N = @ECHO_N@
  57046. ECHO_T = @ECHO_T@
  57047. EGREP = @EGREP@
  57048. EXEEXT = @EXEEXT@
  57049. -F77 = @F77@
  57050. -FFLAGS = @FFLAGS@
  57051. +FGREP = @FGREP@
  57052. GREP = @GREP@
  57053. GSSGLUE_CFLAGS = @GSSGLUE_CFLAGS@
  57054. GSSGLUE_LIBS = @GSSGLUE_LIBS@
  57055. @@ -140,21 +135,28 @@
  57056. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  57057. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  57058. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  57059. +LD = @LD@
  57060. LDFLAGS = @LDFLAGS@
  57061. LIBOBJS = @LIBOBJS@
  57062. LIBS = @LIBS@
  57063. LIBTOOL = @LIBTOOL@
  57064. +LIPO = @LIPO@
  57065. LN_S = @LN_S@
  57066. LTLIBOBJS = @LTLIBOBJS@
  57067. MAKEINFO = @MAKEINFO@
  57068. MKDIR_P = @MKDIR_P@
  57069. +NM = @NM@
  57070. NMEDIT = @NMEDIT@
  57071. +OBJDUMP = @OBJDUMP@
  57072. OBJEXT = @OBJEXT@
  57073. +OTOOL = @OTOOL@
  57074. +OTOOL64 = @OTOOL64@
  57075. PACKAGE = @PACKAGE@
  57076. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  57077. PACKAGE_NAME = @PACKAGE_NAME@
  57078. PACKAGE_STRING = @PACKAGE_STRING@
  57079. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  57080. +PACKAGE_URL = @PACKAGE_URL@
  57081. PACKAGE_VERSION = @PACKAGE_VERSION@
  57082. PATH_SEPARATOR = @PATH_SEPARATOR@
  57083. PKG_CONFIG = @PKG_CONFIG@
  57084. @@ -169,8 +171,7 @@
  57085. abs_top_builddir = @abs_top_builddir@
  57086. abs_top_srcdir = @abs_top_srcdir@
  57087. ac_ct_CC = @ac_ct_CC@
  57088. -ac_ct_CXX = @ac_ct_CXX@
  57089. -ac_ct_F77 = @ac_ct_F77@
  57090. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  57091. am__include = @am__include@
  57092. am__leading_dot = @am__leading_dot@
  57093. am__quote = @am__quote@
  57094. @@ -201,6 +202,7 @@
  57095. libexecdir = @libexecdir@
  57096. localedir = @localedir@
  57097. localstatedir = @localstatedir@
  57098. +lt_ECHO = @lt_ECHO@
  57099. mandir = @mandir@
  57100. mkdir_p = @mkdir_p@
  57101. oldincludedir = @oldincludedir@