autotool.patch 2.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478
  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 esound-0.2.41.orig/aclocal.m4 esound-0.2.41/aclocal.m4
  6. --- esound-0.2.41.orig/aclocal.m4 2008-11-18 21:54:35.000000000 +0100
  7. +++ esound-0.2.41/aclocal.m4 2011-02-24 20:05:01.883551544 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.10.1 -*- 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 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -13,6648 +13,12 @@
  18. m4_ifndef([AC_AUTOCONF_VERSION],
  19. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  20. -m4_if(AC_AUTOCONF_VERSION, [2.61],,
  21. -[m4_warning([this file was generated for autoconf 2.61.
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. You have another version of autoconf. It may work, but is not guaranteed to.
  25. If you have problems, you may need to regenerate the build system entirely.
  26. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  28. -
  29. -# serial 52 AC_PROG_LIBTOOL
  30. -
  31. -
  32. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  33. -# -----------------------------------------------------------
  34. -# If this macro is not defined by Autoconf, define it here.
  35. -m4_ifdef([AC_PROVIDE_IFELSE],
  36. - [],
  37. - [m4_define([AC_PROVIDE_IFELSE],
  38. - [m4_ifdef([AC_PROVIDE_$1],
  39. - [$2], [$3])])])
  40. -
  41. -
  42. -# AC_PROG_LIBTOOL
  43. -# ---------------
  44. -AC_DEFUN([AC_PROG_LIBTOOL],
  45. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  46. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  47. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  48. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  49. - [AC_LIBTOOL_CXX],
  50. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  51. - ])])
  52. -dnl And a similar setup for Fortran 77 support
  53. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  54. - [AC_LIBTOOL_F77],
  55. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  56. -])])
  57. -
  58. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  59. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  60. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  61. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  62. - [AC_LIBTOOL_GCJ],
  63. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  64. - [AC_LIBTOOL_GCJ],
  65. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  66. - [AC_LIBTOOL_GCJ],
  67. - [ifdef([AC_PROG_GCJ],
  68. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  69. - ifdef([A][M_PROG_GCJ],
  70. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  71. - ifdef([LT_AC_PROG_GCJ],
  72. - [define([LT_AC_PROG_GCJ],
  73. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  74. -])])# AC_PROG_LIBTOOL
  75. -
  76. -
  77. -# _AC_PROG_LIBTOOL
  78. -# ----------------
  79. -AC_DEFUN([_AC_PROG_LIBTOOL],
  80. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  81. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  82. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  83. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  84. -
  85. -# This can be used to rebuild libtool when needed
  86. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  87. -
  88. -# Always use our own libtool.
  89. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  90. -AC_SUBST(LIBTOOL)dnl
  91. -
  92. -# Prevent multiple expansion
  93. -define([AC_PROG_LIBTOOL], [])
  94. -])# _AC_PROG_LIBTOOL
  95. -
  96. -
  97. -# AC_LIBTOOL_SETUP
  98. -# ----------------
  99. -AC_DEFUN([AC_LIBTOOL_SETUP],
  100. -[AC_PREREQ(2.50)dnl
  101. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  102. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  103. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  104. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  105. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  106. -AC_REQUIRE([AC_PROG_CC])dnl
  107. -AC_REQUIRE([AC_PROG_LD])dnl
  108. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  109. -AC_REQUIRE([AC_PROG_NM])dnl
  110. -
  111. -AC_REQUIRE([AC_PROG_LN_S])dnl
  112. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  113. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  114. -AC_REQUIRE([AC_OBJEXT])dnl
  115. -AC_REQUIRE([AC_EXEEXT])dnl
  116. -dnl
  117. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  118. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  119. -AC_LIBTOOL_OBJDIR
  120. -
  121. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  122. -_LT_AC_PROG_ECHO_BACKSLASH
  123. -
  124. -case $host_os in
  125. -aix3*)
  126. - # AIX sometimes has problems with the GCC collect2 program. For some
  127. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  128. - # vanish in a puff of smoke.
  129. - if test "X${COLLECT_NAMES+set}" != Xset; then
  130. - COLLECT_NAMES=
  131. - export COLLECT_NAMES
  132. - fi
  133. - ;;
  134. -esac
  135. -
  136. -# Sed substitution that helps us do robust quoting. It backslashifies
  137. -# metacharacters that are still active within double-quoted strings.
  138. -Xsed='sed -e 1s/^X//'
  139. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  140. -
  141. -# Same as above, but do not quote variable references.
  142. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  143. -
  144. -# Sed substitution to delay expansion of an escaped shell variable in a
  145. -# double_quote_subst'ed string.
  146. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  147. -
  148. -# Sed substitution to avoid accidental globbing in evaled expressions
  149. -no_glob_subst='s/\*/\\\*/g'
  150. -
  151. -# Constants:
  152. -rm="rm -f"
  153. -
  154. -# Global variables:
  155. -default_ofile=libtool
  156. -can_build_shared=yes
  157. -
  158. -# All known linkers require a `.a' archive for static linking (except MSVC,
  159. -# which needs '.lib').
  160. -libext=a
  161. -ltmain="$ac_aux_dir/ltmain.sh"
  162. -ofile="$default_ofile"
  163. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  164. -
  165. -AC_CHECK_TOOL(AR, ar, false)
  166. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  167. -AC_CHECK_TOOL(STRIP, strip, :)
  168. -
  169. -old_CC="$CC"
  170. -old_CFLAGS="$CFLAGS"
  171. -
  172. -# Set sane defaults for various variables
  173. -test -z "$AR" && AR=ar
  174. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  175. -test -z "$AS" && AS=as
  176. -test -z "$CC" && CC=cc
  177. -test -z "$LTCC" && LTCC=$CC
  178. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  179. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  180. -test -z "$LD" && LD=ld
  181. -test -z "$LN_S" && LN_S="ln -s"
  182. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  183. -test -z "$NM" && NM=nm
  184. -test -z "$SED" && SED=sed
  185. -test -z "$OBJDUMP" && OBJDUMP=objdump
  186. -test -z "$RANLIB" && RANLIB=:
  187. -test -z "$STRIP" && STRIP=:
  188. -test -z "$ac_objext" && ac_objext=o
  189. -
  190. -# Determine commands to create old-style static archives.
  191. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  192. -old_postinstall_cmds='chmod 644 $oldlib'
  193. -old_postuninstall_cmds=
  194. -
  195. -if test -n "$RANLIB"; then
  196. - case $host_os in
  197. - openbsd*)
  198. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  199. - ;;
  200. - *)
  201. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  202. - ;;
  203. - esac
  204. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  205. -fi
  206. -
  207. -_LT_CC_BASENAME([$compiler])
  208. -
  209. -# Only perform the check for file, if the check method requires it
  210. -case $deplibs_check_method in
  211. -file_magic*)
  212. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  213. - AC_PATH_MAGIC
  214. - fi
  215. - ;;
  216. -esac
  217. -
  218. -_LT_REQUIRED_DARWIN_CHECKS
  219. -
  220. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  221. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  222. -enable_win32_dll=yes, enable_win32_dll=no)
  223. -
  224. -AC_ARG_ENABLE([libtool-lock],
  225. - [AC_HELP_STRING([--disable-libtool-lock],
  226. - [avoid locking (might break parallel builds)])])
  227. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  228. -
  229. -AC_ARG_WITH([pic],
  230. - [AC_HELP_STRING([--with-pic],
  231. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  232. - [pic_mode="$withval"],
  233. - [pic_mode=default])
  234. -test -z "$pic_mode" && pic_mode=default
  235. -
  236. -# Use C for the default configuration in the libtool script
  237. -tagname=
  238. -AC_LIBTOOL_LANG_C_CONFIG
  239. -_LT_AC_TAGCONFIG
  240. -])# AC_LIBTOOL_SETUP
  241. -
  242. -
  243. -# _LT_AC_SYS_COMPILER
  244. -# -------------------
  245. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  246. -[AC_REQUIRE([AC_PROG_CC])dnl
  247. -
  248. -# If no C compiler was specified, use CC.
  249. -LTCC=${LTCC-"$CC"}
  250. -
  251. -# If no C compiler flags were specified, use CFLAGS.
  252. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  253. -
  254. -# Allow CC to be a program name with arguments.
  255. -compiler=$CC
  256. -])# _LT_AC_SYS_COMPILER
  257. -
  258. -
  259. -# _LT_CC_BASENAME(CC)
  260. -# -------------------
  261. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  262. -AC_DEFUN([_LT_CC_BASENAME],
  263. -[for cc_temp in $1""; do
  264. - case $cc_temp in
  265. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  266. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  267. - \-*) ;;
  268. - *) break;;
  269. - esac
  270. -done
  271. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  272. -])
  273. -
  274. -
  275. -# _LT_COMPILER_BOILERPLATE
  276. -# ------------------------
  277. -# Check for compiler boilerplate output or warnings with
  278. -# the simple compiler test code.
  279. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  280. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  281. -ac_outfile=conftest.$ac_objext
  282. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  283. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  284. -_lt_compiler_boilerplate=`cat conftest.err`
  285. -$rm conftest*
  286. -])# _LT_COMPILER_BOILERPLATE
  287. -
  288. -
  289. -# _LT_LINKER_BOILERPLATE
  290. -# ----------------------
  291. -# Check for linker boilerplate output or warnings with
  292. -# the simple link test code.
  293. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  294. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  295. -ac_outfile=conftest.$ac_objext
  296. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  297. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  298. -_lt_linker_boilerplate=`cat conftest.err`
  299. -$rm -r conftest*
  300. -])# _LT_LINKER_BOILERPLATE
  301. -
  302. -# _LT_REQUIRED_DARWIN_CHECKS
  303. -# --------------------------
  304. -# Check for some things on darwin
  305. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  306. - case $host_os in
  307. - rhapsody* | darwin*)
  308. - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  309. - AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  310. -
  311. - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  312. - [lt_cv_apple_cc_single_mod=no
  313. - if test -z "${LT_MULTI_MODULE}"; then
  314. - # By default we will add the -single_module flag. You can override
  315. - # by either setting the environment variable LT_MULTI_MODULE
  316. - # non-empty at configure time, or by adding -multi_module to the
  317. - # link flags.
  318. - echo "int foo(void){return 1;}" > conftest.c
  319. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  320. - -dynamiclib ${wl}-single_module conftest.c
  321. - if test -f libconftest.dylib; then
  322. - lt_cv_apple_cc_single_mod=yes
  323. - rm -rf libconftest.dylib*
  324. - fi
  325. - rm conftest.c
  326. - fi])
  327. - AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  328. - [lt_cv_ld_exported_symbols_list],
  329. - [lt_cv_ld_exported_symbols_list=no
  330. - save_LDFLAGS=$LDFLAGS
  331. - echo "_main" > conftest.sym
  332. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  333. - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  334. - [lt_cv_ld_exported_symbols_list=yes],
  335. - [lt_cv_ld_exported_symbols_list=no])
  336. - LDFLAGS="$save_LDFLAGS"
  337. - ])
  338. - case $host_os in
  339. - rhapsody* | darwin1.[[0123]])
  340. - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  341. - darwin1.*)
  342. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  343. - darwin*)
  344. - # if running on 10.5 or later, the deployment target defaults
  345. - # to the OS version, if on x86, and 10.4, the deployment
  346. - # target defaults to 10.4. Don't you love it?
  347. - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  348. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  349. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  350. - 10.[[012]]*)
  351. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  352. - 10.*)
  353. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  354. - esac
  355. - ;;
  356. - esac
  357. - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  358. - _lt_dar_single_mod='$single_module'
  359. - fi
  360. - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  361. - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  362. - else
  363. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  364. - fi
  365. - if test "$DSYMUTIL" != ":"; then
  366. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  367. - else
  368. - _lt_dsymutil=
  369. - fi
  370. - ;;
  371. - esac
  372. -])
  373. -
  374. -# _LT_AC_SYS_LIBPATH_AIX
  375. -# ----------------------
  376. -# Links a minimal program and checks the executable
  377. -# for the system default hardcoded library path. In most cases,
  378. -# this is /usr/lib:/lib, but when the MPI compilers are used
  379. -# the location of the communication and MPI libs are included too.
  380. -# If we don't find anything, use the default library path according
  381. -# to the aix ld manual.
  382. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  383. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  384. -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  385. -lt_aix_libpath_sed='
  386. - /Import File Strings/,/^$/ {
  387. - /^0/ {
  388. - s/^0 *\(.*\)$/\1/
  389. - p
  390. - }
  391. - }'
  392. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  393. -# Check for a 64-bit object if we didn't find anything.
  394. -if test -z "$aix_libpath"; then
  395. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  396. -fi],[])
  397. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  398. -])# _LT_AC_SYS_LIBPATH_AIX
  399. -
  400. -
  401. -# _LT_AC_SHELL_INIT(ARG)
  402. -# ----------------------
  403. -AC_DEFUN([_LT_AC_SHELL_INIT],
  404. -[ifdef([AC_DIVERSION_NOTICE],
  405. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  406. - [AC_DIVERT_PUSH(NOTICE)])
  407. -$1
  408. -AC_DIVERT_POP
  409. -])# _LT_AC_SHELL_INIT
  410. -
  411. -
  412. -# _LT_AC_PROG_ECHO_BACKSLASH
  413. -# --------------------------
  414. -# Add some code to the start of the generated configure script which
  415. -# will find an echo command which doesn't interpret backslashes.
  416. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  417. -[_LT_AC_SHELL_INIT([
  418. -# Check that we are running under the correct shell.
  419. -SHELL=${CONFIG_SHELL-/bin/sh}
  420. -
  421. -case X$ECHO in
  422. -X*--fallback-echo)
  423. - # Remove one level of quotation (which was required for Make).
  424. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  425. - ;;
  426. -esac
  427. -
  428. -echo=${ECHO-echo}
  429. -if test "X[$]1" = X--no-reexec; then
  430. - # Discard the --no-reexec flag, and continue.
  431. - shift
  432. -elif test "X[$]1" = X--fallback-echo; then
  433. - # Avoid inline document here, it may be left over
  434. - :
  435. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  436. - # Yippee, $echo works!
  437. - :
  438. -else
  439. - # Restart under the correct shell.
  440. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  441. -fi
  442. -
  443. -if test "X[$]1" = X--fallback-echo; then
  444. - # used as fallback echo
  445. - shift
  446. - cat <<EOF
  447. -[$]*
  448. -EOF
  449. - exit 0
  450. -fi
  451. -
  452. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  453. -# if CDPATH is set.
  454. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  455. -
  456. -if test -z "$ECHO"; then
  457. -if test "X${echo_test_string+set}" != Xset; then
  458. -# find a string as large as possible, as long as the shell can cope with it
  459. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  460. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  461. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  462. - echo_test_string=`eval $cmd` &&
  463. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  464. - then
  465. - break
  466. - fi
  467. - done
  468. -fi
  469. -
  470. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  471. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  472. - test "X$echo_testing_string" = "X$echo_test_string"; then
  473. - :
  474. -else
  475. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  476. - # backslashes. This makes it impossible to quote backslashes using
  477. - # echo "$something" | sed 's/\\/\\\\/g'
  478. - #
  479. - # So, first we look for a working echo in the user's PATH.
  480. -
  481. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  482. - for dir in $PATH /usr/ucb; do
  483. - IFS="$lt_save_ifs"
  484. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  485. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  486. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  487. - test "X$echo_testing_string" = "X$echo_test_string"; then
  488. - echo="$dir/echo"
  489. - break
  490. - fi
  491. - done
  492. - IFS="$lt_save_ifs"
  493. -
  494. - if test "X$echo" = Xecho; then
  495. - # We didn't find a better echo, so look for alternatives.
  496. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  497. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  498. - test "X$echo_testing_string" = "X$echo_test_string"; then
  499. - # This shell has a builtin print -r that does the trick.
  500. - echo='print -r'
  501. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  502. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  503. - # If we have ksh, try running configure again with it.
  504. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  505. - export ORIGINAL_CONFIG_SHELL
  506. - CONFIG_SHELL=/bin/ksh
  507. - export CONFIG_SHELL
  508. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  509. - else
  510. - # Try using printf.
  511. - echo='printf %s\n'
  512. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  513. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  514. - test "X$echo_testing_string" = "X$echo_test_string"; then
  515. - # Cool, printf works
  516. - :
  517. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  518. - test "X$echo_testing_string" = 'X\t' &&
  519. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  520. - test "X$echo_testing_string" = "X$echo_test_string"; then
  521. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  522. - export CONFIG_SHELL
  523. - SHELL="$CONFIG_SHELL"
  524. - export SHELL
  525. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  526. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  527. - test "X$echo_testing_string" = 'X\t' &&
  528. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  529. - test "X$echo_testing_string" = "X$echo_test_string"; then
  530. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  531. - else
  532. - # maybe with a smaller string...
  533. - prev=:
  534. -
  535. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  536. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  537. - then
  538. - break
  539. - fi
  540. - prev="$cmd"
  541. - done
  542. -
  543. - if test "$prev" != 'sed 50q "[$]0"'; then
  544. - echo_test_string=`eval $prev`
  545. - export echo_test_string
  546. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  547. - else
  548. - # Oops. We lost completely, so just stick with echo.
  549. - echo=echo
  550. - fi
  551. - fi
  552. - fi
  553. - fi
  554. -fi
  555. -fi
  556. -
  557. -# Copy echo and quote the copy suitably for passing to libtool from
  558. -# the Makefile, instead of quoting the original, which is used later.
  559. -ECHO=$echo
  560. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  561. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  562. -fi
  563. -
  564. -AC_SUBST(ECHO)
  565. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  566. -
  567. -
  568. -# _LT_AC_LOCK
  569. -# -----------
  570. -AC_DEFUN([_LT_AC_LOCK],
  571. -[AC_ARG_ENABLE([libtool-lock],
  572. - [AC_HELP_STRING([--disable-libtool-lock],
  573. - [avoid locking (might break parallel builds)])])
  574. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  575. -
  576. -# Some flags need to be propagated to the compiler or linker for good
  577. -# libtool support.
  578. -case $host in
  579. -ia64-*-hpux*)
  580. - # Find out which ABI we are using.
  581. - echo 'int i;' > conftest.$ac_ext
  582. - if AC_TRY_EVAL(ac_compile); then
  583. - case `/usr/bin/file conftest.$ac_objext` in
  584. - *ELF-32*)
  585. - HPUX_IA64_MODE="32"
  586. - ;;
  587. - *ELF-64*)
  588. - HPUX_IA64_MODE="64"
  589. - ;;
  590. - esac
  591. - fi
  592. - rm -rf conftest*
  593. - ;;
  594. -*-*-irix6*)
  595. - # Find out which ABI we are using.
  596. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  597. - if AC_TRY_EVAL(ac_compile); then
  598. - if test "$lt_cv_prog_gnu_ld" = yes; then
  599. - case `/usr/bin/file conftest.$ac_objext` in
  600. - *32-bit*)
  601. - LD="${LD-ld} -melf32bsmip"
  602. - ;;
  603. - *N32*)
  604. - LD="${LD-ld} -melf32bmipn32"
  605. - ;;
  606. - *64-bit*)
  607. - LD="${LD-ld} -melf64bmip"
  608. - ;;
  609. - esac
  610. - else
  611. - case `/usr/bin/file conftest.$ac_objext` in
  612. - *32-bit*)
  613. - LD="${LD-ld} -32"
  614. - ;;
  615. - *N32*)
  616. - LD="${LD-ld} -n32"
  617. - ;;
  618. - *64-bit*)
  619. - LD="${LD-ld} -64"
  620. - ;;
  621. - esac
  622. - fi
  623. - fi
  624. - rm -rf conftest*
  625. - ;;
  626. -
  627. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  628. -s390*-*linux*|sparc*-*linux*)
  629. - # Find out which ABI we are using.
  630. - echo 'int i;' > conftest.$ac_ext
  631. - if AC_TRY_EVAL(ac_compile); then
  632. - case `/usr/bin/file conftest.o` in
  633. - *32-bit*)
  634. - case $host in
  635. - x86_64-*kfreebsd*-gnu)
  636. - LD="${LD-ld} -m elf_i386_fbsd"
  637. - ;;
  638. - x86_64-*linux*)
  639. - LD="${LD-ld} -m elf_i386"
  640. - ;;
  641. - ppc64-*linux*|powerpc64-*linux*)
  642. - LD="${LD-ld} -m elf32ppclinux"
  643. - ;;
  644. - s390x-*linux*)
  645. - LD="${LD-ld} -m elf_s390"
  646. - ;;
  647. - sparc64-*linux*)
  648. - LD="${LD-ld} -m elf32_sparc"
  649. - ;;
  650. - esac
  651. - ;;
  652. - *64-bit*)
  653. - case $host in
  654. - x86_64-*kfreebsd*-gnu)
  655. - LD="${LD-ld} -m elf_x86_64_fbsd"
  656. - ;;
  657. - x86_64-*linux*)
  658. - LD="${LD-ld} -m elf_x86_64"
  659. - ;;
  660. - ppc*-*linux*|powerpc*-*linux*)
  661. - LD="${LD-ld} -m elf64ppc"
  662. - ;;
  663. - s390*-*linux*)
  664. - LD="${LD-ld} -m elf64_s390"
  665. - ;;
  666. - sparc*-*linux*)
  667. - LD="${LD-ld} -m elf64_sparc"
  668. - ;;
  669. - esac
  670. - ;;
  671. - esac
  672. - fi
  673. - rm -rf conftest*
  674. - ;;
  675. -
  676. -*-*-sco3.2v5*)
  677. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  678. - SAVE_CFLAGS="$CFLAGS"
  679. - CFLAGS="$CFLAGS -belf"
  680. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  681. - [AC_LANG_PUSH(C)
  682. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  683. - AC_LANG_POP])
  684. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  685. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  686. - CFLAGS="$SAVE_CFLAGS"
  687. - fi
  688. - ;;
  689. -sparc*-*solaris*)
  690. - # Find out which ABI we are using.
  691. - echo 'int i;' > conftest.$ac_ext
  692. - if AC_TRY_EVAL(ac_compile); then
  693. - case `/usr/bin/file conftest.o` in
  694. - *64-bit*)
  695. - case $lt_cv_prog_gnu_ld in
  696. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  697. - *)
  698. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  699. - LD="${LD-ld} -64"
  700. - fi
  701. - ;;
  702. - esac
  703. - ;;
  704. - esac
  705. - fi
  706. - rm -rf conftest*
  707. - ;;
  708. -
  709. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  710. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  711. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  712. - AC_CHECK_TOOL(AS, as, false)
  713. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  714. - ;;
  715. - ])
  716. -esac
  717. -
  718. -need_locks="$enable_libtool_lock"
  719. -
  720. -])# _LT_AC_LOCK
  721. -
  722. -
  723. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  724. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  725. -# ----------------------------------------------------------------
  726. -# Check whether the given compiler option works
  727. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  728. -[AC_REQUIRE([LT_AC_PROG_SED])
  729. -AC_CACHE_CHECK([$1], [$2],
  730. - [$2=no
  731. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  732. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  733. - lt_compiler_flag="$3"
  734. - # Insert the option either (1) after the last *FLAGS variable, or
  735. - # (2) before a word containing "conftest.", or (3) at the end.
  736. - # Note that $ac_compile itself does not contain backslashes and begins
  737. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  738. - # The option is referenced via a variable to avoid confusing sed.
  739. - lt_compile=`echo "$ac_compile" | $SED \
  740. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  741. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  742. - -e 's:$: $lt_compiler_flag:'`
  743. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  744. - (eval "$lt_compile" 2>conftest.err)
  745. - ac_status=$?
  746. - cat conftest.err >&AS_MESSAGE_LOG_FD
  747. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  748. - if (exit $ac_status) && test -s "$ac_outfile"; then
  749. - # The compiler can only warn and ignore the option if not recognized
  750. - # So say no if there are warnings other than the usual output.
  751. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  752. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  753. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  754. - $2=yes
  755. - fi
  756. - fi
  757. - $rm conftest*
  758. -])
  759. -
  760. -if test x"[$]$2" = xyes; then
  761. - ifelse([$5], , :, [$5])
  762. -else
  763. - ifelse([$6], , :, [$6])
  764. -fi
  765. -])# AC_LIBTOOL_COMPILER_OPTION
  766. -
  767. -
  768. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  769. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  770. -# ------------------------------------------------------------
  771. -# Check whether the given compiler option works
  772. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  773. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  774. -AC_CACHE_CHECK([$1], [$2],
  775. - [$2=no
  776. - save_LDFLAGS="$LDFLAGS"
  777. - LDFLAGS="$LDFLAGS $3"
  778. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  779. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  780. - # The linker can only warn and ignore the option if not recognized
  781. - # So say no if there are warnings
  782. - if test -s conftest.err; then
  783. - # Append any errors to the config.log.
  784. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  785. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  786. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  787. - if diff conftest.exp conftest.er2 >/dev/null; then
  788. - $2=yes
  789. - fi
  790. - else
  791. - $2=yes
  792. - fi
  793. - fi
  794. - $rm -r conftest*
  795. - LDFLAGS="$save_LDFLAGS"
  796. -])
  797. -
  798. -if test x"[$]$2" = xyes; then
  799. - ifelse([$4], , :, [$4])
  800. -else
  801. - ifelse([$5], , :, [$5])
  802. -fi
  803. -])# AC_LIBTOOL_LINKER_OPTION
  804. -
  805. -
  806. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  807. -# --------------------------
  808. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  809. -[# find the maximum length of command line arguments
  810. -AC_MSG_CHECKING([the maximum length of command line arguments])
  811. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  812. - i=0
  813. - teststring="ABCD"
  814. -
  815. - case $build_os in
  816. - msdosdjgpp*)
  817. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  818. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  819. - # during glob expansion). Even if it were fixed, the result of this
  820. - # check would be larger than it should be.
  821. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  822. - ;;
  823. -
  824. - gnu*)
  825. - # Under GNU Hurd, this test is not required because there is
  826. - # no limit to the length of command line arguments.
  827. - # Libtool will interpret -1 as no limit whatsoever
  828. - lt_cv_sys_max_cmd_len=-1;
  829. - ;;
  830. -
  831. - cygwin* | mingw*)
  832. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  833. - # about 5 minutes as the teststring grows exponentially.
  834. - # Worse, since 9x/ME are not pre-emptively multitasking,
  835. - # you end up with a "frozen" computer, even though with patience
  836. - # the test eventually succeeds (with a max line length of 256k).
  837. - # Instead, let's just punt: use the minimum linelength reported by
  838. - # all of the supported platforms: 8192 (on NT/2K/XP).
  839. - lt_cv_sys_max_cmd_len=8192;
  840. - ;;
  841. -
  842. - amigaos*)
  843. - # On AmigaOS with pdksh, this test takes hours, literally.
  844. - # So we just punt and use a minimum line length of 8192.
  845. - lt_cv_sys_max_cmd_len=8192;
  846. - ;;
  847. -
  848. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  849. - # This has been around since 386BSD, at least. Likely further.
  850. - if test -x /sbin/sysctl; then
  851. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  852. - elif test -x /usr/sbin/sysctl; then
  853. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  854. - else
  855. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  856. - fi
  857. - # And add a safety zone
  858. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  859. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  860. - ;;
  861. -
  862. - interix*)
  863. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  864. - lt_cv_sys_max_cmd_len=196608
  865. - ;;
  866. -
  867. - osf*)
  868. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  869. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  870. - # nice to cause kernel panics so lets avoid the loop below.
  871. - # First set a reasonable default.
  872. - lt_cv_sys_max_cmd_len=16384
  873. - #
  874. - if test -x /sbin/sysconfig; then
  875. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  876. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  877. - esac
  878. - fi
  879. - ;;
  880. - sco3.2v5*)
  881. - lt_cv_sys_max_cmd_len=102400
  882. - ;;
  883. - sysv5* | sco5v6* | sysv4.2uw2*)
  884. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  885. - if test -n "$kargmax"; then
  886. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  887. - else
  888. - lt_cv_sys_max_cmd_len=32768
  889. - fi
  890. - ;;
  891. - *)
  892. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  893. - if test -n "$lt_cv_sys_max_cmd_len"; then
  894. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  895. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  896. - else
  897. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  898. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  899. - = "XX$teststring") >/dev/null 2>&1 &&
  900. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  901. - lt_cv_sys_max_cmd_len=$new_result &&
  902. - test $i != 17 # 1/2 MB should be enough
  903. - do
  904. - i=`expr $i + 1`
  905. - teststring=$teststring$teststring
  906. - done
  907. - teststring=
  908. - # Add a significant safety factor because C++ compilers can tack on massive
  909. - # amounts of additional arguments before passing them to the linker.
  910. - # It appears as though 1/2 is a usable value.
  911. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  912. - fi
  913. - ;;
  914. - esac
  915. -])
  916. -if test -n $lt_cv_sys_max_cmd_len ; then
  917. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  918. -else
  919. - AC_MSG_RESULT(none)
  920. -fi
  921. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  922. -
  923. -
  924. -# _LT_AC_CHECK_DLFCN
  925. -# ------------------
  926. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  927. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  928. -])# _LT_AC_CHECK_DLFCN
  929. -
  930. -
  931. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  932. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  933. -# ---------------------------------------------------------------------
  934. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  935. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  936. -if test "$cross_compiling" = yes; then :
  937. - [$4]
  938. -else
  939. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  940. - lt_status=$lt_dlunknown
  941. - cat > conftest.$ac_ext <<EOF
  942. -[#line __oline__ "configure"
  943. -#include "confdefs.h"
  944. -
  945. -#if HAVE_DLFCN_H
  946. -#include <dlfcn.h>
  947. -#endif
  948. -
  949. -#include <stdio.h>
  950. -
  951. -#ifdef RTLD_GLOBAL
  952. -# define LT_DLGLOBAL RTLD_GLOBAL
  953. -#else
  954. -# ifdef DL_GLOBAL
  955. -# define LT_DLGLOBAL DL_GLOBAL
  956. -# else
  957. -# define LT_DLGLOBAL 0
  958. -# endif
  959. -#endif
  960. -
  961. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  962. - find out it does not work in some platform. */
  963. -#ifndef LT_DLLAZY_OR_NOW
  964. -# ifdef RTLD_LAZY
  965. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  966. -# else
  967. -# ifdef DL_LAZY
  968. -# define LT_DLLAZY_OR_NOW DL_LAZY
  969. -# else
  970. -# ifdef RTLD_NOW
  971. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  972. -# else
  973. -# ifdef DL_NOW
  974. -# define LT_DLLAZY_OR_NOW DL_NOW
  975. -# else
  976. -# define LT_DLLAZY_OR_NOW 0
  977. -# endif
  978. -# endif
  979. -# endif
  980. -# endif
  981. -#endif
  982. -
  983. -#ifdef __cplusplus
  984. -extern "C" void exit (int);
  985. -#endif
  986. -
  987. -void fnord() { int i=42;}
  988. -int main ()
  989. -{
  990. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  991. - int status = $lt_dlunknown;
  992. -
  993. - if (self)
  994. - {
  995. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  996. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  997. - /* dlclose (self); */
  998. - }
  999. - else
  1000. - puts (dlerror ());
  1001. -
  1002. - exit (status);
  1003. -}]
  1004. -EOF
  1005. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1006. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1007. - lt_status=$?
  1008. - case x$lt_status in
  1009. - x$lt_dlno_uscore) $1 ;;
  1010. - x$lt_dlneed_uscore) $2 ;;
  1011. - x$lt_dlunknown|x*) $3 ;;
  1012. - esac
  1013. - else :
  1014. - # compilation failed
  1015. - $3
  1016. - fi
  1017. -fi
  1018. -rm -fr conftest*
  1019. -])# _LT_AC_TRY_DLOPEN_SELF
  1020. -
  1021. -
  1022. -# AC_LIBTOOL_DLOPEN_SELF
  1023. -# ----------------------
  1024. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1025. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1026. -if test "x$enable_dlopen" != xyes; then
  1027. - enable_dlopen=unknown
  1028. - enable_dlopen_self=unknown
  1029. - enable_dlopen_self_static=unknown
  1030. -else
  1031. - lt_cv_dlopen=no
  1032. - lt_cv_dlopen_libs=
  1033. -
  1034. - case $host_os in
  1035. - beos*)
  1036. - lt_cv_dlopen="load_add_on"
  1037. - lt_cv_dlopen_libs=
  1038. - lt_cv_dlopen_self=yes
  1039. - ;;
  1040. -
  1041. - mingw* | pw32*)
  1042. - lt_cv_dlopen="LoadLibrary"
  1043. - lt_cv_dlopen_libs=
  1044. - ;;
  1045. -
  1046. - cygwin*)
  1047. - lt_cv_dlopen="dlopen"
  1048. - lt_cv_dlopen_libs=
  1049. - ;;
  1050. -
  1051. - darwin*)
  1052. - # if libdl is installed we need to link against it
  1053. - AC_CHECK_LIB([dl], [dlopen],
  1054. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1055. - lt_cv_dlopen="dyld"
  1056. - lt_cv_dlopen_libs=
  1057. - lt_cv_dlopen_self=yes
  1058. - ])
  1059. - ;;
  1060. -
  1061. - *)
  1062. - AC_CHECK_FUNC([shl_load],
  1063. - [lt_cv_dlopen="shl_load"],
  1064. - [AC_CHECK_LIB([dld], [shl_load],
  1065. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1066. - [AC_CHECK_FUNC([dlopen],
  1067. - [lt_cv_dlopen="dlopen"],
  1068. - [AC_CHECK_LIB([dl], [dlopen],
  1069. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1070. - [AC_CHECK_LIB([svld], [dlopen],
  1071. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1072. - [AC_CHECK_LIB([dld], [dld_link],
  1073. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1074. - ])
  1075. - ])
  1076. - ])
  1077. - ])
  1078. - ])
  1079. - ;;
  1080. - esac
  1081. -
  1082. - if test "x$lt_cv_dlopen" != xno; then
  1083. - enable_dlopen=yes
  1084. - else
  1085. - enable_dlopen=no
  1086. - fi
  1087. -
  1088. - case $lt_cv_dlopen in
  1089. - dlopen)
  1090. - save_CPPFLAGS="$CPPFLAGS"
  1091. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1092. -
  1093. - save_LDFLAGS="$LDFLAGS"
  1094. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1095. -
  1096. - save_LIBS="$LIBS"
  1097. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1098. -
  1099. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1100. - lt_cv_dlopen_self, [dnl
  1101. - _LT_AC_TRY_DLOPEN_SELF(
  1102. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1103. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1104. - ])
  1105. -
  1106. - if test "x$lt_cv_dlopen_self" = xyes; then
  1107. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1108. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1109. - lt_cv_dlopen_self_static, [dnl
  1110. - _LT_AC_TRY_DLOPEN_SELF(
  1111. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1112. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1113. - ])
  1114. - fi
  1115. -
  1116. - CPPFLAGS="$save_CPPFLAGS"
  1117. - LDFLAGS="$save_LDFLAGS"
  1118. - LIBS="$save_LIBS"
  1119. - ;;
  1120. - esac
  1121. -
  1122. - case $lt_cv_dlopen_self in
  1123. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1124. - *) enable_dlopen_self=unknown ;;
  1125. - esac
  1126. -
  1127. - case $lt_cv_dlopen_self_static in
  1128. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1129. - *) enable_dlopen_self_static=unknown ;;
  1130. - esac
  1131. -fi
  1132. -])# AC_LIBTOOL_DLOPEN_SELF
  1133. -
  1134. -
  1135. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1136. -# ---------------------------------
  1137. -# Check to see if options -c and -o are simultaneously supported by compiler
  1138. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1139. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1140. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1141. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1142. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1143. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1144. - $rm -r conftest 2>/dev/null
  1145. - mkdir conftest
  1146. - cd conftest
  1147. - mkdir out
  1148. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1149. -
  1150. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1151. - # Insert the option either (1) after the last *FLAGS variable, or
  1152. - # (2) before a word containing "conftest.", or (3) at the end.
  1153. - # Note that $ac_compile itself does not contain backslashes and begins
  1154. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1155. - lt_compile=`echo "$ac_compile" | $SED \
  1156. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1157. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1158. - -e 's:$: $lt_compiler_flag:'`
  1159. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1160. - (eval "$lt_compile" 2>out/conftest.err)
  1161. - ac_status=$?
  1162. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1163. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1164. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1165. - then
  1166. - # The compiler can only warn and ignore the option if not recognized
  1167. - # So say no if there are warnings
  1168. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1169. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1170. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1171. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1172. - fi
  1173. - fi
  1174. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1175. - $rm conftest*
  1176. - # SGI C++ compiler will create directory out/ii_files/ for
  1177. - # template instantiation
  1178. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1179. - $rm out/* && rmdir out
  1180. - cd ..
  1181. - rmdir conftest
  1182. - $rm conftest*
  1183. -])
  1184. -])# AC_LIBTOOL_PROG_CC_C_O
  1185. -
  1186. -
  1187. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1188. -# -----------------------------------------
  1189. -# Check to see if we can do hard links to lock some files if needed
  1190. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1191. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1192. -
  1193. -hard_links="nottested"
  1194. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1195. - # do not overwrite the value of need_locks provided by the user
  1196. - AC_MSG_CHECKING([if we can lock with hard links])
  1197. - hard_links=yes
  1198. - $rm conftest*
  1199. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1200. - touch conftest.a
  1201. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1202. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1203. - AC_MSG_RESULT([$hard_links])
  1204. - if test "$hard_links" = no; then
  1205. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1206. - need_locks=warn
  1207. - fi
  1208. -else
  1209. - need_locks=no
  1210. -fi
  1211. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1212. -
  1213. -
  1214. -# AC_LIBTOOL_OBJDIR
  1215. -# -----------------
  1216. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1217. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1218. -[rm -f .libs 2>/dev/null
  1219. -mkdir .libs 2>/dev/null
  1220. -if test -d .libs; then
  1221. - lt_cv_objdir=.libs
  1222. -else
  1223. - # MS-DOS does not allow filenames that begin with a dot.
  1224. - lt_cv_objdir=_libs
  1225. -fi
  1226. -rmdir .libs 2>/dev/null])
  1227. -objdir=$lt_cv_objdir
  1228. -])# AC_LIBTOOL_OBJDIR
  1229. -
  1230. -
  1231. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1232. -# ----------------------------------------------
  1233. -# Check hardcoding attributes.
  1234. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1235. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1236. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1237. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1238. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1239. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1240. -
  1241. - # We can hardcode non-existant directories.
  1242. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1243. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1244. - # have to relink, otherwise we might link with an installed library
  1245. - # when we should be linking with a yet-to-be-installed one
  1246. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1247. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1248. - # Linking always hardcodes the temporary library directory.
  1249. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1250. - else
  1251. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1252. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1253. - fi
  1254. -else
  1255. - # We cannot hardcode anything, or else we can only hardcode existing
  1256. - # directories.
  1257. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1258. -fi
  1259. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1260. -
  1261. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1262. - # Fast installation is not supported
  1263. - enable_fast_install=no
  1264. -elif test "$shlibpath_overrides_runpath" = yes ||
  1265. - test "$enable_shared" = no; then
  1266. - # Fast installation is not necessary
  1267. - enable_fast_install=needless
  1268. -fi
  1269. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1270. -
  1271. -
  1272. -# AC_LIBTOOL_SYS_LIB_STRIP
  1273. -# ------------------------
  1274. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1275. -[striplib=
  1276. -old_striplib=
  1277. -AC_MSG_CHECKING([whether stripping libraries is possible])
  1278. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1279. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1280. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1281. - AC_MSG_RESULT([yes])
  1282. -else
  1283. -# FIXME - insert some real tests, host_os isn't really good enough
  1284. - case $host_os in
  1285. - darwin*)
  1286. - if test -n "$STRIP" ; then
  1287. - striplib="$STRIP -x"
  1288. - old_striplib="$STRIP -S"
  1289. - AC_MSG_RESULT([yes])
  1290. - else
  1291. - AC_MSG_RESULT([no])
  1292. -fi
  1293. - ;;
  1294. - *)
  1295. - AC_MSG_RESULT([no])
  1296. - ;;
  1297. - esac
  1298. -fi
  1299. -])# AC_LIBTOOL_SYS_LIB_STRIP
  1300. -
  1301. -
  1302. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1303. -# -----------------------------
  1304. -# PORTME Fill in your ld.so characteristics
  1305. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1306. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1307. -AC_MSG_CHECKING([dynamic linker characteristics])
  1308. -library_names_spec=
  1309. -libname_spec='lib$name'
  1310. -soname_spec=
  1311. -shrext_cmds=".so"
  1312. -postinstall_cmds=
  1313. -postuninstall_cmds=
  1314. -finish_cmds=
  1315. -finish_eval=
  1316. -shlibpath_var=
  1317. -shlibpath_overrides_runpath=unknown
  1318. -version_type=none
  1319. -dynamic_linker="$host_os ld.so"
  1320. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1321. -m4_if($1,[],[
  1322. -if test "$GCC" = yes; then
  1323. - case $host_os in
  1324. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1325. - *) lt_awk_arg="/^libraries:/" ;;
  1326. - esac
  1327. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1328. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  1329. - # if the path contains ";" then we assume it to be the separator
  1330. - # otherwise default to the standard path separator (i.e. ":") - it is
  1331. - # assumed that no part of a normal pathname contains ";" but that should
  1332. - # okay in the real world where ";" in dirpaths is itself problematic.
  1333. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1334. - else
  1335. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1336. - fi
  1337. - # Ok, now we have the path, separated by spaces, we can step through it
  1338. - # and add multilib dir if necessary.
  1339. - lt_tmp_lt_search_path_spec=
  1340. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1341. - for lt_sys_path in $lt_search_path_spec; do
  1342. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1343. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1344. - else
  1345. - test -d "$lt_sys_path" && \
  1346. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1347. - fi
  1348. - done
  1349. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  1350. -BEGIN {RS=" "; FS="/|\n";} {
  1351. - lt_foo="";
  1352. - lt_count=0;
  1353. - for (lt_i = NF; lt_i > 0; lt_i--) {
  1354. - if ($lt_i != "" && $lt_i != ".") {
  1355. - if ($lt_i == "..") {
  1356. - lt_count++;
  1357. - } else {
  1358. - if (lt_count == 0) {
  1359. - lt_foo="/" $lt_i lt_foo;
  1360. - } else {
  1361. - lt_count--;
  1362. - }
  1363. - }
  1364. - }
  1365. - }
  1366. - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1367. - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1368. -}'`
  1369. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  1370. -else
  1371. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1372. -fi])
  1373. -need_lib_prefix=unknown
  1374. -hardcode_into_libs=no
  1375. -
  1376. -# when you set need_version to no, make sure it does not cause -set_version
  1377. -# flags to be left without arguments
  1378. -need_version=unknown
  1379. -
  1380. -case $host_os in
  1381. -aix3*)
  1382. - version_type=linux
  1383. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1384. - shlibpath_var=LIBPATH
  1385. -
  1386. - # AIX 3 has no versioning support, so we append a major version to the name.
  1387. - soname_spec='${libname}${release}${shared_ext}$major'
  1388. - ;;
  1389. -
  1390. -aix[[4-9]]*)
  1391. - version_type=linux
  1392. - need_lib_prefix=no
  1393. - need_version=no
  1394. - hardcode_into_libs=yes
  1395. - if test "$host_cpu" = ia64; then
  1396. - # AIX 5 supports IA64
  1397. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1398. - shlibpath_var=LD_LIBRARY_PATH
  1399. - else
  1400. - # With GCC up to 2.95.x, collect2 would create an import file
  1401. - # for dependence libraries. The import file would start with
  1402. - # the line `#! .'. This would cause the generated library to
  1403. - # depend on `.', always an invalid library. This was fixed in
  1404. - # development snapshots of GCC prior to 3.0.
  1405. - case $host_os in
  1406. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  1407. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1408. - echo ' yes '
  1409. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1410. - :
  1411. - else
  1412. - can_build_shared=no
  1413. - fi
  1414. - ;;
  1415. - esac
  1416. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1417. - # soname into executable. Probably we can add versioning support to
  1418. - # collect2, so additional links can be useful in future.
  1419. - if test "$aix_use_runtimelinking" = yes; then
  1420. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1421. - # instead of lib<name>.a to let people know that these are not
  1422. - # typical AIX shared libraries.
  1423. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1424. - else
  1425. - # We preserve .a as extension for shared libraries through AIX4.2
  1426. - # and later when we are not doing run time linking.
  1427. - library_names_spec='${libname}${release}.a $libname.a'
  1428. - soname_spec='${libname}${release}${shared_ext}$major'
  1429. - fi
  1430. - shlibpath_var=LIBPATH
  1431. - fi
  1432. - ;;
  1433. -
  1434. -amigaos*)
  1435. - library_names_spec='$libname.ixlibrary $libname.a'
  1436. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1437. - 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'
  1438. - ;;
  1439. -
  1440. -beos*)
  1441. - library_names_spec='${libname}${shared_ext}'
  1442. - dynamic_linker="$host_os ld.so"
  1443. - shlibpath_var=LIBRARY_PATH
  1444. - ;;
  1445. -
  1446. -bsdi[[45]]*)
  1447. - version_type=linux
  1448. - need_version=no
  1449. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1450. - soname_spec='${libname}${release}${shared_ext}$major'
  1451. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1452. - shlibpath_var=LD_LIBRARY_PATH
  1453. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1454. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1455. - # the default ld.so.conf also contains /usr/contrib/lib and
  1456. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1457. - # libtool to hard-code these into programs
  1458. - ;;
  1459. -
  1460. -cygwin* | mingw* | pw32*)
  1461. - version_type=windows
  1462. - shrext_cmds=".dll"
  1463. - need_version=no
  1464. - need_lib_prefix=no
  1465. -
  1466. - case $GCC,$host_os in
  1467. - yes,cygwin* | yes,mingw* | yes,pw32*)
  1468. - library_names_spec='$libname.dll.a'
  1469. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1470. - postinstall_cmds='base_file=`basename \${file}`~
  1471. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1472. - dldir=$destdir/`dirname \$dlpath`~
  1473. - test -d \$dldir || mkdir -p \$dldir~
  1474. - $install_prog $dir/$dlname \$dldir/$dlname~
  1475. - chmod a+x \$dldir/$dlname'
  1476. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1477. - dlpath=$dir/\$dldll~
  1478. - $rm \$dlpath'
  1479. - shlibpath_overrides_runpath=yes
  1480. -
  1481. - case $host_os in
  1482. - cygwin*)
  1483. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1484. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1485. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1486. - ;;
  1487. - mingw*)
  1488. - # MinGW DLLs use traditional 'lib' prefix
  1489. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1490. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1491. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1492. - # It is most probably a Windows format PATH printed by
  1493. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1494. - # path with ; separators, and with drive letters. We can handle the
  1495. - # drive letters (cygwin fileutils understands them), so leave them,
  1496. - # especially as we might pass files found there to a mingw objdump,
  1497. - # which wouldn't understand a cygwinified path. Ahh.
  1498. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1499. - else
  1500. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1501. - fi
  1502. - ;;
  1503. - pw32*)
  1504. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  1505. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1506. - ;;
  1507. - esac
  1508. - ;;
  1509. -
  1510. - *)
  1511. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1512. - ;;
  1513. - esac
  1514. - dynamic_linker='Win32 ld.exe'
  1515. - # FIXME: first we should search . and the directory the executable is in
  1516. - shlibpath_var=PATH
  1517. - ;;
  1518. -
  1519. -darwin* | rhapsody*)
  1520. - dynamic_linker="$host_os dyld"
  1521. - version_type=darwin
  1522. - need_lib_prefix=no
  1523. - need_version=no
  1524. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1525. - soname_spec='${libname}${release}${major}$shared_ext'
  1526. - shlibpath_overrides_runpath=yes
  1527. - shlibpath_var=DYLD_LIBRARY_PATH
  1528. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1529. - m4_if([$1], [],[
  1530. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  1531. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1532. - ;;
  1533. -
  1534. -dgux*)
  1535. - version_type=linux
  1536. - need_lib_prefix=no
  1537. - need_version=no
  1538. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1539. - soname_spec='${libname}${release}${shared_ext}$major'
  1540. - shlibpath_var=LD_LIBRARY_PATH
  1541. - ;;
  1542. -
  1543. -freebsd1*)
  1544. - dynamic_linker=no
  1545. - ;;
  1546. -
  1547. -freebsd* | dragonfly*)
  1548. - # DragonFly does not have aout. When/if they implement a new
  1549. - # versioning mechanism, adjust this.
  1550. - if test -x /usr/bin/objformat; then
  1551. - objformat=`/usr/bin/objformat`
  1552. - else
  1553. - case $host_os in
  1554. - freebsd[[123]]*) objformat=aout ;;
  1555. - *) objformat=elf ;;
  1556. - esac
  1557. - fi
  1558. - version_type=freebsd-$objformat
  1559. - case $version_type in
  1560. - freebsd-elf*)
  1561. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1562. - need_version=no
  1563. - need_lib_prefix=no
  1564. - ;;
  1565. - freebsd-*)
  1566. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1567. - need_version=yes
  1568. - ;;
  1569. - esac
  1570. - shlibpath_var=LD_LIBRARY_PATH
  1571. - case $host_os in
  1572. - freebsd2*)
  1573. - shlibpath_overrides_runpath=yes
  1574. - ;;
  1575. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1576. - shlibpath_overrides_runpath=yes
  1577. - hardcode_into_libs=yes
  1578. - ;;
  1579. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1580. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1581. - shlibpath_overrides_runpath=no
  1582. - hardcode_into_libs=yes
  1583. - ;;
  1584. - *) # from 4.6 on, and DragonFly
  1585. - shlibpath_overrides_runpath=yes
  1586. - hardcode_into_libs=yes
  1587. - ;;
  1588. - esac
  1589. - ;;
  1590. -
  1591. -gnu*)
  1592. - version_type=linux
  1593. - need_lib_prefix=no
  1594. - need_version=no
  1595. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1596. - soname_spec='${libname}${release}${shared_ext}$major'
  1597. - shlibpath_var=LD_LIBRARY_PATH
  1598. - hardcode_into_libs=yes
  1599. - ;;
  1600. -
  1601. -hpux9* | hpux10* | hpux11*)
  1602. - # Give a soname corresponding to the major version so that dld.sl refuses to
  1603. - # link against other versions.
  1604. - version_type=sunos
  1605. - need_lib_prefix=no
  1606. - need_version=no
  1607. - case $host_cpu in
  1608. - ia64*)
  1609. - shrext_cmds='.so'
  1610. - hardcode_into_libs=yes
  1611. - dynamic_linker="$host_os dld.so"
  1612. - shlibpath_var=LD_LIBRARY_PATH
  1613. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1614. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1615. - soname_spec='${libname}${release}${shared_ext}$major'
  1616. - if test "X$HPUX_IA64_MODE" = X32; then
  1617. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1618. - else
  1619. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1620. - fi
  1621. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1622. - ;;
  1623. - hppa*64*)
  1624. - shrext_cmds='.sl'
  1625. - hardcode_into_libs=yes
  1626. - dynamic_linker="$host_os dld.sl"
  1627. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1628. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1629. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1630. - soname_spec='${libname}${release}${shared_ext}$major'
  1631. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1632. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1633. - ;;
  1634. - *)
  1635. - shrext_cmds='.sl'
  1636. - dynamic_linker="$host_os dld.sl"
  1637. - shlibpath_var=SHLIB_PATH
  1638. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1639. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1640. - soname_spec='${libname}${release}${shared_ext}$major'
  1641. - ;;
  1642. - esac
  1643. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1644. - postinstall_cmds='chmod 555 $lib'
  1645. - ;;
  1646. -
  1647. -interix[[3-9]]*)
  1648. - version_type=linux
  1649. - need_lib_prefix=no
  1650. - need_version=no
  1651. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1652. - soname_spec='${libname}${release}${shared_ext}$major'
  1653. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1654. - shlibpath_var=LD_LIBRARY_PATH
  1655. - shlibpath_overrides_runpath=no
  1656. - hardcode_into_libs=yes
  1657. - ;;
  1658. -
  1659. -irix5* | irix6* | nonstopux*)
  1660. - case $host_os in
  1661. - nonstopux*) version_type=nonstopux ;;
  1662. - *)
  1663. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1664. - version_type=linux
  1665. - else
  1666. - version_type=irix
  1667. - fi ;;
  1668. - esac
  1669. - need_lib_prefix=no
  1670. - need_version=no
  1671. - soname_spec='${libname}${release}${shared_ext}$major'
  1672. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1673. - case $host_os in
  1674. - irix5* | nonstopux*)
  1675. - libsuff= shlibsuff=
  1676. - ;;
  1677. - *)
  1678. - case $LD in # libtool.m4 will add one of these switches to LD
  1679. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1680. - libsuff= shlibsuff= libmagic=32-bit;;
  1681. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1682. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  1683. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1684. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1685. - *) libsuff= shlibsuff= libmagic=never-match;;
  1686. - esac
  1687. - ;;
  1688. - esac
  1689. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1690. - shlibpath_overrides_runpath=no
  1691. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1692. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1693. - hardcode_into_libs=yes
  1694. - ;;
  1695. -
  1696. -# No shared lib support for Linux oldld, aout, or coff.
  1697. -linux*oldld* | linux*aout* | linux*coff*)
  1698. - dynamic_linker=no
  1699. - ;;
  1700. -
  1701. -# This must be Linux ELF.
  1702. -linux* | k*bsd*-gnu)
  1703. - version_type=linux
  1704. - need_lib_prefix=no
  1705. - need_version=no
  1706. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1707. - soname_spec='${libname}${release}${shared_ext}$major'
  1708. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1709. - shlibpath_var=LD_LIBRARY_PATH
  1710. - shlibpath_overrides_runpath=no
  1711. - # This implies no fast_install, which is unacceptable.
  1712. - # Some rework will be needed to allow for fast_install
  1713. - # before this can be enabled.
  1714. - hardcode_into_libs=yes
  1715. -
  1716. - # Append ld.so.conf contents to the search path
  1717. - if test -f /etc/ld.so.conf; then
  1718. - 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' ' '`
  1719. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1720. - fi
  1721. -
  1722. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  1723. - # powerpc, because MkLinux only supported shared libraries with the
  1724. - # GNU dynamic linker. Since this was broken with cross compilers,
  1725. - # most powerpc-linux boxes support dynamic linking these days and
  1726. - # people can always --disable-shared, the test was removed, and we
  1727. - # assume the GNU/Linux dynamic linker is in use.
  1728. - dynamic_linker='GNU/Linux ld.so'
  1729. - ;;
  1730. -
  1731. -netbsd*)
  1732. - version_type=sunos
  1733. - need_lib_prefix=no
  1734. - need_version=no
  1735. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1736. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1737. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1738. - dynamic_linker='NetBSD (a.out) ld.so'
  1739. - else
  1740. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1741. - soname_spec='${libname}${release}${shared_ext}$major'
  1742. - dynamic_linker='NetBSD ld.elf_so'
  1743. - fi
  1744. - shlibpath_var=LD_LIBRARY_PATH
  1745. - shlibpath_overrides_runpath=yes
  1746. - hardcode_into_libs=yes
  1747. - ;;
  1748. -
  1749. -newsos6)
  1750. - version_type=linux
  1751. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1752. - shlibpath_var=LD_LIBRARY_PATH
  1753. - shlibpath_overrides_runpath=yes
  1754. - ;;
  1755. -
  1756. -nto-qnx*)
  1757. - version_type=linux
  1758. - need_lib_prefix=no
  1759. - need_version=no
  1760. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1761. - soname_spec='${libname}${release}${shared_ext}$major'
  1762. - shlibpath_var=LD_LIBRARY_PATH
  1763. - shlibpath_overrides_runpath=yes
  1764. - ;;
  1765. -
  1766. -openbsd*)
  1767. - version_type=sunos
  1768. - sys_lib_dlsearch_path_spec="/usr/lib"
  1769. - need_lib_prefix=no
  1770. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1771. - case $host_os in
  1772. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1773. - *) need_version=no ;;
  1774. - esac
  1775. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1776. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1777. - shlibpath_var=LD_LIBRARY_PATH
  1778. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1779. - case $host_os in
  1780. - openbsd2.[[89]] | openbsd2.[[89]].*)
  1781. - shlibpath_overrides_runpath=no
  1782. - ;;
  1783. - *)
  1784. - shlibpath_overrides_runpath=yes
  1785. - ;;
  1786. - esac
  1787. - else
  1788. - shlibpath_overrides_runpath=yes
  1789. - fi
  1790. - ;;
  1791. -
  1792. -os2*)
  1793. - libname_spec='$name'
  1794. - shrext_cmds=".dll"
  1795. - need_lib_prefix=no
  1796. - library_names_spec='$libname${shared_ext} $libname.a'
  1797. - dynamic_linker='OS/2 ld.exe'
  1798. - shlibpath_var=LIBPATH
  1799. - ;;
  1800. -
  1801. -osf3* | osf4* | osf5*)
  1802. - version_type=osf
  1803. - need_lib_prefix=no
  1804. - need_version=no
  1805. - soname_spec='${libname}${release}${shared_ext}$major'
  1806. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1807. - shlibpath_var=LD_LIBRARY_PATH
  1808. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1809. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1810. - ;;
  1811. -
  1812. -rdos*)
  1813. - dynamic_linker=no
  1814. - ;;
  1815. -
  1816. -solaris*)
  1817. - version_type=linux
  1818. - need_lib_prefix=no
  1819. - need_version=no
  1820. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1821. - soname_spec='${libname}${release}${shared_ext}$major'
  1822. - shlibpath_var=LD_LIBRARY_PATH
  1823. - shlibpath_overrides_runpath=yes
  1824. - hardcode_into_libs=yes
  1825. - # ldd complains unless libraries are executable
  1826. - postinstall_cmds='chmod +x $lib'
  1827. - ;;
  1828. -
  1829. -sunos4*)
  1830. - version_type=sunos
  1831. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1832. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1833. - shlibpath_var=LD_LIBRARY_PATH
  1834. - shlibpath_overrides_runpath=yes
  1835. - if test "$with_gnu_ld" = yes; then
  1836. - need_lib_prefix=no
  1837. - fi
  1838. - need_version=yes
  1839. - ;;
  1840. -
  1841. -sysv4 | sysv4.3*)
  1842. - version_type=linux
  1843. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1844. - soname_spec='${libname}${release}${shared_ext}$major'
  1845. - shlibpath_var=LD_LIBRARY_PATH
  1846. - case $host_vendor in
  1847. - sni)
  1848. - shlibpath_overrides_runpath=no
  1849. - need_lib_prefix=no
  1850. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  1851. - runpath_var=LD_RUN_PATH
  1852. - ;;
  1853. - siemens)
  1854. - need_lib_prefix=no
  1855. - ;;
  1856. - motorola)
  1857. - need_lib_prefix=no
  1858. - need_version=no
  1859. - shlibpath_overrides_runpath=no
  1860. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1861. - ;;
  1862. - esac
  1863. - ;;
  1864. -
  1865. -sysv4*MP*)
  1866. - if test -d /usr/nec ;then
  1867. - version_type=linux
  1868. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1869. - soname_spec='$libname${shared_ext}.$major'
  1870. - shlibpath_var=LD_LIBRARY_PATH
  1871. - fi
  1872. - ;;
  1873. -
  1874. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1875. - version_type=freebsd-elf
  1876. - need_lib_prefix=no
  1877. - need_version=no
  1878. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1879. - soname_spec='${libname}${release}${shared_ext}$major'
  1880. - shlibpath_var=LD_LIBRARY_PATH
  1881. - hardcode_into_libs=yes
  1882. - if test "$with_gnu_ld" = yes; then
  1883. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1884. - shlibpath_overrides_runpath=no
  1885. - else
  1886. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1887. - shlibpath_overrides_runpath=yes
  1888. - case $host_os in
  1889. - sco3.2v5*)
  1890. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1891. - ;;
  1892. - esac
  1893. - fi
  1894. - sys_lib_dlsearch_path_spec='/usr/lib'
  1895. - ;;
  1896. -
  1897. -uts4*)
  1898. - version_type=linux
  1899. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1900. - soname_spec='${libname}${release}${shared_ext}$major'
  1901. - shlibpath_var=LD_LIBRARY_PATH
  1902. - ;;
  1903. -
  1904. -*)
  1905. - dynamic_linker=no
  1906. - ;;
  1907. -esac
  1908. -AC_MSG_RESULT([$dynamic_linker])
  1909. -test "$dynamic_linker" = no && can_build_shared=no
  1910. -
  1911. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  1912. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  1913. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  1914. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  1915. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  1916. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  1917. -
  1918. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1919. -if test "$GCC" = yes; then
  1920. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1921. -fi
  1922. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1923. -
  1924. -
  1925. -# _LT_AC_TAGCONFIG
  1926. -# ----------------
  1927. -AC_DEFUN([_LT_AC_TAGCONFIG],
  1928. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1929. -AC_ARG_WITH([tags],
  1930. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1931. - [include additional configurations @<:@automatic@:>@])],
  1932. - [tagnames="$withval"])
  1933. -
  1934. -if test -f "$ltmain" && test -n "$tagnames"; then
  1935. - if test ! -f "${ofile}"; then
  1936. - AC_MSG_WARN([output file `$ofile' does not exist])
  1937. - fi
  1938. -
  1939. - if test -z "$LTCC"; then
  1940. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1941. - if test -z "$LTCC"; then
  1942. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1943. - else
  1944. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1945. - fi
  1946. - fi
  1947. - if test -z "$LTCFLAGS"; then
  1948. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1949. - fi
  1950. -
  1951. - # Extract list of available tagged configurations in $ofile.
  1952. - # Note that this assumes the entire list is on one line.
  1953. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1954. -
  1955. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1956. - for tagname in $tagnames; do
  1957. - IFS="$lt_save_ifs"
  1958. - # Check whether tagname contains only valid characters
  1959. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1960. - "") ;;
  1961. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  1962. - ;;
  1963. - esac
  1964. -
  1965. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1966. - then
  1967. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1968. - fi
  1969. -
  1970. - # Update the list of available tags.
  1971. - if test -n "$tagname"; then
  1972. - echo appending configuration tag \"$tagname\" to $ofile
  1973. -
  1974. - case $tagname in
  1975. - CXX)
  1976. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1977. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1978. - (test "X$CXX" != "Xg++"))) ; then
  1979. - AC_LIBTOOL_LANG_CXX_CONFIG
  1980. - else
  1981. - tagname=""
  1982. - fi
  1983. - ;;
  1984. -
  1985. - F77)
  1986. - if test -n "$F77" && test "X$F77" != "Xno"; then
  1987. - AC_LIBTOOL_LANG_F77_CONFIG
  1988. - else
  1989. - tagname=""
  1990. - fi
  1991. - ;;
  1992. -
  1993. - GCJ)
  1994. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1995. - AC_LIBTOOL_LANG_GCJ_CONFIG
  1996. - else
  1997. - tagname=""
  1998. - fi
  1999. - ;;
  2000. -
  2001. - RC)
  2002. - AC_LIBTOOL_LANG_RC_CONFIG
  2003. - ;;
  2004. -
  2005. - *)
  2006. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2007. - ;;
  2008. - esac
  2009. -
  2010. - # Append the new tag name to the list of available tags.
  2011. - if test -n "$tagname" ; then
  2012. - available_tags="$available_tags $tagname"
  2013. - fi
  2014. - fi
  2015. - done
  2016. - IFS="$lt_save_ifs"
  2017. -
  2018. - # Now substitute the updated list of available tags.
  2019. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2020. - mv "${ofile}T" "$ofile"
  2021. - chmod +x "$ofile"
  2022. - else
  2023. - rm -f "${ofile}T"
  2024. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2025. - fi
  2026. -fi
  2027. -])# _LT_AC_TAGCONFIG
  2028. -
  2029. -
  2030. -# AC_LIBTOOL_DLOPEN
  2031. -# -----------------
  2032. -# enable checks for dlopen support
  2033. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2034. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2035. -])# AC_LIBTOOL_DLOPEN
  2036. -
  2037. -
  2038. -# AC_LIBTOOL_WIN32_DLL
  2039. -# --------------------
  2040. -# declare package support for building win32 DLLs
  2041. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2042. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2043. -])# AC_LIBTOOL_WIN32_DLL
  2044. -
  2045. -
  2046. -# AC_ENABLE_SHARED([DEFAULT])
  2047. -# ---------------------------
  2048. -# implement the --enable-shared flag
  2049. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2050. -AC_DEFUN([AC_ENABLE_SHARED],
  2051. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2052. -AC_ARG_ENABLE([shared],
  2053. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2054. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2055. - [p=${PACKAGE-default}
  2056. - case $enableval in
  2057. - yes) enable_shared=yes ;;
  2058. - no) enable_shared=no ;;
  2059. - *)
  2060. - enable_shared=no
  2061. - # Look at the argument we got. We use all the common list separators.
  2062. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2063. - for pkg in $enableval; do
  2064. - IFS="$lt_save_ifs"
  2065. - if test "X$pkg" = "X$p"; then
  2066. - enable_shared=yes
  2067. - fi
  2068. - done
  2069. - IFS="$lt_save_ifs"
  2070. - ;;
  2071. - esac],
  2072. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2073. -])# AC_ENABLE_SHARED
  2074. -
  2075. -
  2076. -# AC_DISABLE_SHARED
  2077. -# -----------------
  2078. -# set the default shared flag to --disable-shared
  2079. -AC_DEFUN([AC_DISABLE_SHARED],
  2080. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2081. -AC_ENABLE_SHARED(no)
  2082. -])# AC_DISABLE_SHARED
  2083. -
  2084. -
  2085. -# AC_ENABLE_STATIC([DEFAULT])
  2086. -# ---------------------------
  2087. -# implement the --enable-static flag
  2088. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2089. -AC_DEFUN([AC_ENABLE_STATIC],
  2090. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2091. -AC_ARG_ENABLE([static],
  2092. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2093. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2094. - [p=${PACKAGE-default}
  2095. - case $enableval in
  2096. - yes) enable_static=yes ;;
  2097. - no) enable_static=no ;;
  2098. - *)
  2099. - enable_static=no
  2100. - # Look at the argument we got. We use all the common list separators.
  2101. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2102. - for pkg in $enableval; do
  2103. - IFS="$lt_save_ifs"
  2104. - if test "X$pkg" = "X$p"; then
  2105. - enable_static=yes
  2106. - fi
  2107. - done
  2108. - IFS="$lt_save_ifs"
  2109. - ;;
  2110. - esac],
  2111. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2112. -])# AC_ENABLE_STATIC
  2113. -
  2114. -
  2115. -# AC_DISABLE_STATIC
  2116. -# -----------------
  2117. -# set the default static flag to --disable-static
  2118. -AC_DEFUN([AC_DISABLE_STATIC],
  2119. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2120. -AC_ENABLE_STATIC(no)
  2121. -])# AC_DISABLE_STATIC
  2122. -
  2123. -
  2124. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2125. -# ---------------------------------
  2126. -# implement the --enable-fast-install flag
  2127. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2128. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2129. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2130. -AC_ARG_ENABLE([fast-install],
  2131. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2132. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2133. - [p=${PACKAGE-default}
  2134. - case $enableval in
  2135. - yes) enable_fast_install=yes ;;
  2136. - no) enable_fast_install=no ;;
  2137. - *)
  2138. - enable_fast_install=no
  2139. - # Look at the argument we got. We use all the common list separators.
  2140. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2141. - for pkg in $enableval; do
  2142. - IFS="$lt_save_ifs"
  2143. - if test "X$pkg" = "X$p"; then
  2144. - enable_fast_install=yes
  2145. - fi
  2146. - done
  2147. - IFS="$lt_save_ifs"
  2148. - ;;
  2149. - esac],
  2150. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2151. -])# AC_ENABLE_FAST_INSTALL
  2152. -
  2153. -
  2154. -# AC_DISABLE_FAST_INSTALL
  2155. -# -----------------------
  2156. -# set the default to --disable-fast-install
  2157. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2158. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2159. -AC_ENABLE_FAST_INSTALL(no)
  2160. -])# AC_DISABLE_FAST_INSTALL
  2161. -
  2162. -
  2163. -# AC_LIBTOOL_PICMODE([MODE])
  2164. -# --------------------------
  2165. -# implement the --with-pic flag
  2166. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2167. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2168. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2169. -pic_mode=ifelse($#,1,$1,default)
  2170. -])# AC_LIBTOOL_PICMODE
  2171. -
  2172. -
  2173. -# AC_PROG_EGREP
  2174. -# -------------
  2175. -# This is predefined starting with Autoconf 2.54, so this conditional
  2176. -# definition can be removed once we require Autoconf 2.54 or later.
  2177. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2178. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2179. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2180. - then ac_cv_prog_egrep='grep -E'
  2181. - else ac_cv_prog_egrep='egrep'
  2182. - fi])
  2183. - EGREP=$ac_cv_prog_egrep
  2184. - AC_SUBST([EGREP])
  2185. -])])
  2186. -
  2187. -
  2188. -# AC_PATH_TOOL_PREFIX
  2189. -# -------------------
  2190. -# find a file program which can recognize shared library
  2191. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2192. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2193. -AC_MSG_CHECKING([for $1])
  2194. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2195. -[case $MAGIC_CMD in
  2196. -[[\\/*] | ?:[\\/]*])
  2197. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2198. - ;;
  2199. -*)
  2200. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  2201. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2202. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  2203. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  2204. -dnl not every word. This closes a longstanding sh security hole.
  2205. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2206. - for ac_dir in $ac_dummy; do
  2207. - IFS="$lt_save_ifs"
  2208. - test -z "$ac_dir" && ac_dir=.
  2209. - if test -f $ac_dir/$1; then
  2210. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2211. - if test -n "$file_magic_test_file"; then
  2212. - case $deplibs_check_method in
  2213. - "file_magic "*)
  2214. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2215. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2216. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2217. - $EGREP "$file_magic_regex" > /dev/null; then
  2218. - :
  2219. - else
  2220. - cat <<EOF 1>&2
  2221. -
  2222. -*** Warning: the command libtool uses to detect shared libraries,
  2223. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  2224. -*** The result is that libtool may fail to recognize shared libraries
  2225. -*** as such. This will affect the creation of libtool libraries that
  2226. -*** depend on shared libraries, but programs linked with such libtool
  2227. -*** libraries will work regardless of this problem. Nevertheless, you
  2228. -*** may want to report the problem to your system manager and/or to
  2229. -*** bug-libtool@gnu.org
  2230. -
  2231. -EOF
  2232. - fi ;;
  2233. - esac
  2234. - fi
  2235. - break
  2236. - fi
  2237. - done
  2238. - IFS="$lt_save_ifs"
  2239. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  2240. - ;;
  2241. -esac])
  2242. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2243. -if test -n "$MAGIC_CMD"; then
  2244. - AC_MSG_RESULT($MAGIC_CMD)
  2245. -else
  2246. - AC_MSG_RESULT(no)
  2247. -fi
  2248. -])# AC_PATH_TOOL_PREFIX
  2249. -
  2250. -
  2251. -# AC_PATH_MAGIC
  2252. -# -------------
  2253. -# find a file program which can recognize a shared library
  2254. -AC_DEFUN([AC_PATH_MAGIC],
  2255. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2256. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  2257. - if test -n "$ac_tool_prefix"; then
  2258. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2259. - else
  2260. - MAGIC_CMD=:
  2261. - fi
  2262. -fi
  2263. -])# AC_PATH_MAGIC
  2264. -
  2265. -
  2266. -# AC_PROG_LD
  2267. -# ----------
  2268. -# find the pathname to the GNU or non-GNU linker
  2269. -AC_DEFUN([AC_PROG_LD],
  2270. -[AC_ARG_WITH([gnu-ld],
  2271. - [AC_HELP_STRING([--with-gnu-ld],
  2272. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2273. - [test "$withval" = no || with_gnu_ld=yes],
  2274. - [with_gnu_ld=no])
  2275. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2276. -AC_REQUIRE([AC_PROG_CC])dnl
  2277. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2278. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2279. -ac_prog=ld
  2280. -if test "$GCC" = yes; then
  2281. - # Check if gcc -print-prog-name=ld gives a path.
  2282. - AC_MSG_CHECKING([for ld used by $CC])
  2283. - case $host in
  2284. - *-*-mingw*)
  2285. - # gcc leaves a trailing carriage return which upsets mingw
  2286. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2287. - *)
  2288. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2289. - esac
  2290. - case $ac_prog in
  2291. - # Accept absolute paths.
  2292. - [[\\/]]* | ?:[[\\/]]*)
  2293. - re_direlt='/[[^/]][[^/]]*/\.\./'
  2294. - # Canonicalize the pathname of ld
  2295. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2296. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2297. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2298. - done
  2299. - test -z "$LD" && LD="$ac_prog"
  2300. - ;;
  2301. - "")
  2302. - # If it fails, then pretend we aren't using GCC.
  2303. - ac_prog=ld
  2304. - ;;
  2305. - *)
  2306. - # If it is relative, then search for the first ld in PATH.
  2307. - with_gnu_ld=unknown
  2308. - ;;
  2309. - esac
  2310. -elif test "$with_gnu_ld" = yes; then
  2311. - AC_MSG_CHECKING([for GNU ld])
  2312. -else
  2313. - AC_MSG_CHECKING([for non-GNU ld])
  2314. -fi
  2315. -AC_CACHE_VAL(lt_cv_path_LD,
  2316. -[if test -z "$LD"; then
  2317. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2318. - for ac_dir in $PATH; do
  2319. - IFS="$lt_save_ifs"
  2320. - test -z "$ac_dir" && ac_dir=.
  2321. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2322. - lt_cv_path_LD="$ac_dir/$ac_prog"
  2323. - # Check to see if the program is GNU ld. I'd rather use --version,
  2324. - # but apparently some variants of GNU ld only accept -v.
  2325. - # Break only if it was the GNU/non-GNU ld that we prefer.
  2326. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2327. - *GNU* | *'with BFD'*)
  2328. - test "$with_gnu_ld" != no && break
  2329. - ;;
  2330. - *)
  2331. - test "$with_gnu_ld" != yes && break
  2332. - ;;
  2333. - esac
  2334. - fi
  2335. - done
  2336. - IFS="$lt_save_ifs"
  2337. -else
  2338. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2339. -fi])
  2340. -LD="$lt_cv_path_LD"
  2341. -if test -n "$LD"; then
  2342. - AC_MSG_RESULT($LD)
  2343. -else
  2344. - AC_MSG_RESULT(no)
  2345. -fi
  2346. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2347. -AC_PROG_LD_GNU
  2348. -])# AC_PROG_LD
  2349. -
  2350. -
  2351. -# AC_PROG_LD_GNU
  2352. -# --------------
  2353. -AC_DEFUN([AC_PROG_LD_GNU],
  2354. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2355. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2356. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2357. -case `$LD -v 2>&1 </dev/null` in
  2358. -*GNU* | *'with BFD'*)
  2359. - lt_cv_prog_gnu_ld=yes
  2360. - ;;
  2361. -*)
  2362. - lt_cv_prog_gnu_ld=no
  2363. - ;;
  2364. -esac])
  2365. -with_gnu_ld=$lt_cv_prog_gnu_ld
  2366. -])# AC_PROG_LD_GNU
  2367. -
  2368. -
  2369. -# AC_PROG_LD_RELOAD_FLAG
  2370. -# ----------------------
  2371. -# find reload flag for linker
  2372. -# -- PORTME Some linkers may need a different reload flag.
  2373. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  2374. -[AC_CACHE_CHECK([for $LD option to reload object files],
  2375. - lt_cv_ld_reload_flag,
  2376. - [lt_cv_ld_reload_flag='-r'])
  2377. -reload_flag=$lt_cv_ld_reload_flag
  2378. -case $reload_flag in
  2379. -"" | " "*) ;;
  2380. -*) reload_flag=" $reload_flag" ;;
  2381. -esac
  2382. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2383. -case $host_os in
  2384. - darwin*)
  2385. - if test "$GCC" = yes; then
  2386. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2387. - else
  2388. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2389. - fi
  2390. - ;;
  2391. -esac
  2392. -])# AC_PROG_LD_RELOAD_FLAG
  2393. -
  2394. -
  2395. -# AC_DEPLIBS_CHECK_METHOD
  2396. -# -----------------------
  2397. -# how to check for library dependencies
  2398. -# -- PORTME fill in with the dynamic library characteristics
  2399. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  2400. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  2401. -lt_cv_deplibs_check_method,
  2402. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  2403. -lt_cv_file_magic_test_file=
  2404. -lt_cv_deplibs_check_method='unknown'
  2405. -# Need to set the preceding variable on all platforms that support
  2406. -# interlibrary dependencies.
  2407. -# 'none' -- dependencies not supported.
  2408. -# `unknown' -- same as none, but documents that we really don't know.
  2409. -# 'pass_all' -- all dependencies passed with no checks.
  2410. -# 'test_compile' -- check by making test program.
  2411. -# 'file_magic [[regex]]' -- check by looking for files in library path
  2412. -# which responds to the $file_magic_cmd with a given extended regex.
  2413. -# If you have `file' or equivalent on your system and you're not sure
  2414. -# whether `pass_all' will *always* work, you probably want this one.
  2415. -
  2416. -case $host_os in
  2417. -aix[[4-9]]*)
  2418. - lt_cv_deplibs_check_method=pass_all
  2419. - ;;
  2420. -
  2421. -beos*)
  2422. - lt_cv_deplibs_check_method=pass_all
  2423. - ;;
  2424. -
  2425. -bsdi[[45]]*)
  2426. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2427. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  2428. - lt_cv_file_magic_test_file=/shlib/libc.so
  2429. - ;;
  2430. -
  2431. -cygwin*)
  2432. - # func_win32_libid is a shell function defined in ltmain.sh
  2433. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2434. - lt_cv_file_magic_cmd='func_win32_libid'
  2435. - ;;
  2436. -
  2437. -mingw* | pw32*)
  2438. - # Base MSYS/MinGW do not provide the 'file' command needed by
  2439. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2440. - # unless we find 'file', for example because we are cross-compiling.
  2441. - if ( file / ) >/dev/null 2>&1; then
  2442. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2443. - lt_cv_file_magic_cmd='func_win32_libid'
  2444. - else
  2445. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2446. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  2447. - fi
  2448. - ;;
  2449. -
  2450. -darwin* | rhapsody*)
  2451. - lt_cv_deplibs_check_method=pass_all
  2452. - ;;
  2453. -
  2454. -freebsd* | dragonfly*)
  2455. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2456. - case $host_cpu in
  2457. - i*86 )
  2458. - # Not sure whether the presence of OpenBSD here was a mistake.
  2459. - # Let's accept both of them until this is cleared up.
  2460. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2461. - lt_cv_file_magic_cmd=/usr/bin/file
  2462. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2463. - ;;
  2464. - esac
  2465. - else
  2466. - lt_cv_deplibs_check_method=pass_all
  2467. - fi
  2468. - ;;
  2469. -
  2470. -gnu*)
  2471. - lt_cv_deplibs_check_method=pass_all
  2472. - ;;
  2473. -
  2474. -hpux10.20* | hpux11*)
  2475. - lt_cv_file_magic_cmd=/usr/bin/file
  2476. - case $host_cpu in
  2477. - ia64*)
  2478. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2479. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2480. - ;;
  2481. - hppa*64*)
  2482. - [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]']
  2483. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2484. - ;;
  2485. - *)
  2486. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2487. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2488. - ;;
  2489. - esac
  2490. - ;;
  2491. -
  2492. -interix[[3-9]]*)
  2493. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2494. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2495. - ;;
  2496. -
  2497. -irix5* | irix6* | nonstopux*)
  2498. - case $LD in
  2499. - *-32|*"-32 ") libmagic=32-bit;;
  2500. - *-n32|*"-n32 ") libmagic=N32;;
  2501. - *-64|*"-64 ") libmagic=64-bit;;
  2502. - *) libmagic=never-match;;
  2503. - esac
  2504. - lt_cv_deplibs_check_method=pass_all
  2505. - ;;
  2506. -
  2507. -# This must be Linux ELF.
  2508. -linux* | k*bsd*-gnu)
  2509. - lt_cv_deplibs_check_method=pass_all
  2510. - ;;
  2511. -
  2512. -netbsd*)
  2513. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2514. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2515. - else
  2516. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2517. - fi
  2518. - ;;
  2519. -
  2520. -newos6*)
  2521. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2522. - lt_cv_file_magic_cmd=/usr/bin/file
  2523. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2524. - ;;
  2525. -
  2526. -nto-qnx*)
  2527. - lt_cv_deplibs_check_method=unknown
  2528. - ;;
  2529. -
  2530. -openbsd*)
  2531. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2532. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2533. - else
  2534. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2535. - fi
  2536. - ;;
  2537. -
  2538. -osf3* | osf4* | osf5*)
  2539. - lt_cv_deplibs_check_method=pass_all
  2540. - ;;
  2541. -
  2542. -rdos*)
  2543. - lt_cv_deplibs_check_method=pass_all
  2544. - ;;
  2545. -
  2546. -solaris*)
  2547. - lt_cv_deplibs_check_method=pass_all
  2548. - ;;
  2549. -
  2550. -sysv4 | sysv4.3*)
  2551. - case $host_vendor in
  2552. - motorola)
  2553. - 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]]'
  2554. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2555. - ;;
  2556. - ncr)
  2557. - lt_cv_deplibs_check_method=pass_all
  2558. - ;;
  2559. - sequent)
  2560. - lt_cv_file_magic_cmd='/bin/file'
  2561. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2562. - ;;
  2563. - sni)
  2564. - lt_cv_file_magic_cmd='/bin/file'
  2565. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2566. - lt_cv_file_magic_test_file=/lib/libc.so
  2567. - ;;
  2568. - siemens)
  2569. - lt_cv_deplibs_check_method=pass_all
  2570. - ;;
  2571. - pc)
  2572. - lt_cv_deplibs_check_method=pass_all
  2573. - ;;
  2574. - esac
  2575. - ;;
  2576. -
  2577. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2578. - lt_cv_deplibs_check_method=pass_all
  2579. - ;;
  2580. -esac
  2581. -])
  2582. -file_magic_cmd=$lt_cv_file_magic_cmd
  2583. -deplibs_check_method=$lt_cv_deplibs_check_method
  2584. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2585. -])# AC_DEPLIBS_CHECK_METHOD
  2586. -
  2587. -
  2588. -# AC_PROG_NM
  2589. -# ----------
  2590. -# find the pathname to a BSD-compatible name lister
  2591. -AC_DEFUN([AC_PROG_NM],
  2592. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2593. -[if test -n "$NM"; then
  2594. - # Let the user override the test.
  2595. - lt_cv_path_NM="$NM"
  2596. -else
  2597. - lt_nm_to_check="${ac_tool_prefix}nm"
  2598. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2599. - lt_nm_to_check="$lt_nm_to_check nm"
  2600. - fi
  2601. - for lt_tmp_nm in $lt_nm_to_check; do
  2602. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2603. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2604. - IFS="$lt_save_ifs"
  2605. - test -z "$ac_dir" && ac_dir=.
  2606. - tmp_nm="$ac_dir/$lt_tmp_nm"
  2607. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2608. - # Check to see if the nm accepts a BSD-compat flag.
  2609. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2610. - # nm: unknown option "B" ignored
  2611. - # Tru64's nm complains that /dev/null is an invalid object file
  2612. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2613. - */dev/null* | *'Invalid file or object type'*)
  2614. - lt_cv_path_NM="$tmp_nm -B"
  2615. - break
  2616. - ;;
  2617. - *)
  2618. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2619. - */dev/null*)
  2620. - lt_cv_path_NM="$tmp_nm -p"
  2621. - break
  2622. - ;;
  2623. - *)
  2624. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2625. - continue # so that we can try to find one that supports BSD flags
  2626. - ;;
  2627. - esac
  2628. - ;;
  2629. - esac
  2630. - fi
  2631. - done
  2632. - IFS="$lt_save_ifs"
  2633. - done
  2634. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2635. -fi])
  2636. -NM="$lt_cv_path_NM"
  2637. -])# AC_PROG_NM
  2638. -
  2639. -
  2640. -# AC_CHECK_LIBM
  2641. -# -------------
  2642. -# check for math library
  2643. -AC_DEFUN([AC_CHECK_LIBM],
  2644. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2645. -LIBM=
  2646. -case $host in
  2647. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2648. - # These system don't have libm, or don't need it
  2649. - ;;
  2650. -*-ncr-sysv4.3*)
  2651. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2652. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2653. - ;;
  2654. -*)
  2655. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  2656. - ;;
  2657. -esac
  2658. -])# AC_CHECK_LIBM
  2659. -
  2660. -
  2661. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2662. -# -----------------------------------
  2663. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  2664. -# LTDLINCL to the include flags for the libltdl header and adds
  2665. -# --enable-ltdl-convenience to the configure arguments. Note that
  2666. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2667. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  2668. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  2669. -# (note the single quotes!). If your package is not flat and you're not
  2670. -# using automake, define top_builddir and top_srcdir appropriately in
  2671. -# the Makefiles.
  2672. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2673. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2674. - case $enable_ltdl_convenience in
  2675. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2676. - "") enable_ltdl_convenience=yes
  2677. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2678. - esac
  2679. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2680. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2681. - # For backwards non-gettext consistent compatibility...
  2682. - INCLTDL="$LTDLINCL"
  2683. -])# AC_LIBLTDL_CONVENIENCE
  2684. -
  2685. -
  2686. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2687. -# -----------------------------------
  2688. -# sets LIBLTDL to the link flags for the libltdl installable library and
  2689. -# LTDLINCL to the include flags for the libltdl header and adds
  2690. -# --enable-ltdl-install to the configure arguments. Note that
  2691. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2692. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  2693. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  2694. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  2695. -# flat and you're not using automake, define top_builddir and top_srcdir
  2696. -# appropriately in the Makefiles.
  2697. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2698. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2699. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2700. - AC_CHECK_LIB(ltdl, lt_dlinit,
  2701. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2702. - [if test x"$enable_ltdl_install" = xno; then
  2703. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  2704. - else
  2705. - enable_ltdl_install=yes
  2706. - fi
  2707. - ])
  2708. - if test x"$enable_ltdl_install" = x"yes"; then
  2709. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2710. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2711. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2712. - else
  2713. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2714. - LIBLTDL="-lltdl"
  2715. - LTDLINCL=
  2716. - fi
  2717. - # For backwards non-gettext consistent compatibility...
  2718. - INCLTDL="$LTDLINCL"
  2719. -])# AC_LIBLTDL_INSTALLABLE
  2720. -
  2721. -
  2722. -# AC_LIBTOOL_CXX
  2723. -# --------------
  2724. -# enable support for C++ libraries
  2725. -AC_DEFUN([AC_LIBTOOL_CXX],
  2726. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  2727. -])# AC_LIBTOOL_CXX
  2728. -
  2729. -
  2730. -# _LT_AC_LANG_CXX
  2731. -# ---------------
  2732. -AC_DEFUN([_LT_AC_LANG_CXX],
  2733. -[AC_REQUIRE([AC_PROG_CXX])
  2734. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2735. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2736. -])# _LT_AC_LANG_CXX
  2737. -
  2738. -# _LT_AC_PROG_CXXCPP
  2739. -# ------------------
  2740. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  2741. -[
  2742. -AC_REQUIRE([AC_PROG_CXX])
  2743. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2744. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2745. - (test "X$CXX" != "Xg++"))) ; then
  2746. - AC_PROG_CXXCPP
  2747. -fi
  2748. -])# _LT_AC_PROG_CXXCPP
  2749. -
  2750. -# AC_LIBTOOL_F77
  2751. -# --------------
  2752. -# enable support for Fortran 77 libraries
  2753. -AC_DEFUN([AC_LIBTOOL_F77],
  2754. -[AC_REQUIRE([_LT_AC_LANG_F77])
  2755. -])# AC_LIBTOOL_F77
  2756. -
  2757. -
  2758. -# _LT_AC_LANG_F77
  2759. -# ---------------
  2760. -AC_DEFUN([_LT_AC_LANG_F77],
  2761. -[AC_REQUIRE([AC_PROG_F77])
  2762. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2763. -])# _LT_AC_LANG_F77
  2764. -
  2765. -
  2766. -# AC_LIBTOOL_GCJ
  2767. -# --------------
  2768. -# enable support for GCJ libraries
  2769. -AC_DEFUN([AC_LIBTOOL_GCJ],
  2770. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  2771. -])# AC_LIBTOOL_GCJ
  2772. -
  2773. -
  2774. -# _LT_AC_LANG_GCJ
  2775. -# ---------------
  2776. -AC_DEFUN([_LT_AC_LANG_GCJ],
  2777. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2778. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2779. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2780. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2781. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2782. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2783. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2784. -])# _LT_AC_LANG_GCJ
  2785. -
  2786. -
  2787. -# AC_LIBTOOL_RC
  2788. -# -------------
  2789. -# enable support for Windows resource files
  2790. -AC_DEFUN([AC_LIBTOOL_RC],
  2791. -[AC_REQUIRE([LT_AC_PROG_RC])
  2792. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2793. -])# AC_LIBTOOL_RC
  2794. -
  2795. -
  2796. -# AC_LIBTOOL_LANG_C_CONFIG
  2797. -# ------------------------
  2798. -# Ensure that the configuration vars for the C compiler are
  2799. -# suitably defined. Those variables are subsequently used by
  2800. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2801. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2802. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2803. -[lt_save_CC="$CC"
  2804. -AC_LANG_PUSH(C)
  2805. -
  2806. -# Source file extension for C test sources.
  2807. -ac_ext=c
  2808. -
  2809. -# Object file extension for compiled C test sources.
  2810. -objext=o
  2811. -_LT_AC_TAGVAR(objext, $1)=$objext
  2812. -
  2813. -# Code to be used in simple compile tests
  2814. -lt_simple_compile_test_code="int some_variable = 0;"
  2815. -
  2816. -# Code to be used in simple link tests
  2817. -lt_simple_link_test_code='int main(){return(0);}'
  2818. -
  2819. -_LT_AC_SYS_COMPILER
  2820. -
  2821. -# save warnings/boilerplate of simple test code
  2822. -_LT_COMPILER_BOILERPLATE
  2823. -_LT_LINKER_BOILERPLATE
  2824. -
  2825. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2826. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2827. -AC_LIBTOOL_PROG_CC_C_O($1)
  2828. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2829. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2830. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2831. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2832. -AC_LIBTOOL_SYS_LIB_STRIP
  2833. -AC_LIBTOOL_DLOPEN_SELF
  2834. -
  2835. -# Report which library types will actually be built
  2836. -AC_MSG_CHECKING([if libtool supports shared libraries])
  2837. -AC_MSG_RESULT([$can_build_shared])
  2838. -
  2839. -AC_MSG_CHECKING([whether to build shared libraries])
  2840. -test "$can_build_shared" = "no" && enable_shared=no
  2841. -
  2842. -# On AIX, shared libraries and static libraries use the same namespace, and
  2843. -# are all built from PIC.
  2844. -case $host_os in
  2845. -aix3*)
  2846. - test "$enable_shared" = yes && enable_static=no
  2847. - if test -n "$RANLIB"; then
  2848. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2849. - postinstall_cmds='$RANLIB $lib'
  2850. - fi
  2851. - ;;
  2852. -
  2853. -aix[[4-9]]*)
  2854. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2855. - test "$enable_shared" = yes && enable_static=no
  2856. - fi
  2857. - ;;
  2858. -esac
  2859. -AC_MSG_RESULT([$enable_shared])
  2860. -
  2861. -AC_MSG_CHECKING([whether to build static libraries])
  2862. -# Make sure either enable_shared or enable_static is yes.
  2863. -test "$enable_shared" = yes || enable_static=yes
  2864. -AC_MSG_RESULT([$enable_static])
  2865. -
  2866. -AC_LIBTOOL_CONFIG($1)
  2867. -
  2868. -AC_LANG_POP
  2869. -CC="$lt_save_CC"
  2870. -])# AC_LIBTOOL_LANG_C_CONFIG
  2871. -
  2872. -
  2873. -# AC_LIBTOOL_LANG_CXX_CONFIG
  2874. -# --------------------------
  2875. -# Ensure that the configuration vars for the C compiler are
  2876. -# suitably defined. Those variables are subsequently used by
  2877. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2878. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2879. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2880. -[AC_LANG_PUSH(C++)
  2881. -AC_REQUIRE([AC_PROG_CXX])
  2882. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2883. -
  2884. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2885. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2886. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  2887. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2888. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2889. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  2890. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2891. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2892. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2893. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2894. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2895. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2896. -_LT_AC_TAGVAR(module_cmds, $1)=
  2897. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2898. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2899. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2900. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  2901. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2902. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2903. -
  2904. -# Dependencies to place before and after the object being linked:
  2905. -_LT_AC_TAGVAR(predep_objects, $1)=
  2906. -_LT_AC_TAGVAR(postdep_objects, $1)=
  2907. -_LT_AC_TAGVAR(predeps, $1)=
  2908. -_LT_AC_TAGVAR(postdeps, $1)=
  2909. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2910. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  2911. -
  2912. -# Source file extension for C++ test sources.
  2913. -ac_ext=cpp
  2914. -
  2915. -# Object file extension for compiled C++ test sources.
  2916. -objext=o
  2917. -_LT_AC_TAGVAR(objext, $1)=$objext
  2918. -
  2919. -# Code to be used in simple compile tests
  2920. -lt_simple_compile_test_code="int some_variable = 0;"
  2921. -
  2922. -# Code to be used in simple link tests
  2923. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  2924. -
  2925. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2926. -_LT_AC_SYS_COMPILER
  2927. -
  2928. -# save warnings/boilerplate of simple test code
  2929. -_LT_COMPILER_BOILERPLATE
  2930. -_LT_LINKER_BOILERPLATE
  2931. -
  2932. -# Allow CC to be a program name with arguments.
  2933. -lt_save_CC=$CC
  2934. -lt_save_LD=$LD
  2935. -lt_save_GCC=$GCC
  2936. -GCC=$GXX
  2937. -lt_save_with_gnu_ld=$with_gnu_ld
  2938. -lt_save_path_LD=$lt_cv_path_LD
  2939. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2940. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2941. -else
  2942. - $as_unset lt_cv_prog_gnu_ld
  2943. -fi
  2944. -if test -n "${lt_cv_path_LDCXX+set}"; then
  2945. - lt_cv_path_LD=$lt_cv_path_LDCXX
  2946. -else
  2947. - $as_unset lt_cv_path_LD
  2948. -fi
  2949. -test -z "${LDCXX+set}" || LD=$LDCXX
  2950. -CC=${CXX-"c++"}
  2951. -compiler=$CC
  2952. -_LT_AC_TAGVAR(compiler, $1)=$CC
  2953. -_LT_CC_BASENAME([$compiler])
  2954. -
  2955. -# We don't want -fno-exception wen compiling C++ code, so set the
  2956. -# no_builtin_flag separately
  2957. -if test "$GXX" = yes; then
  2958. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2959. -else
  2960. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2961. -fi
  2962. -
  2963. -if test "$GXX" = yes; then
  2964. - # Set up default GNU C++ configuration
  2965. -
  2966. - AC_PROG_LD
  2967. -
  2968. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2969. - # archiving commands below assume that GNU ld is being used.
  2970. - if test "$with_gnu_ld" = yes; then
  2971. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2972. - _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'
  2973. -
  2974. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2975. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2976. -
  2977. - # If archive_cmds runs LD, not CC, wlarc should be empty
  2978. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2979. - # investigate it a little bit more. (MM)
  2980. - wlarc='${wl}'
  2981. -
  2982. - # ancient GNU ld didn't support --whole-archive et. al.
  2983. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  2984. - grep 'no-whole-archive' > /dev/null; then
  2985. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2986. - else
  2987. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2988. - fi
  2989. - else
  2990. - with_gnu_ld=no
  2991. - wlarc=
  2992. -
  2993. - # A generic and very simple default shared library creation
  2994. - # command for GNU C++ for the case where it uses the native
  2995. - # linker, instead of GNU ld. If possible, this setting should
  2996. - # overridden to take advantage of the native linker features on
  2997. - # the platform it is being used on.
  2998. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2999. - fi
  3000. -
  3001. - # Commands to make compiler produce verbose output that lists
  3002. - # what "hidden" libraries, object files and flags are used when
  3003. - # linking a shared library.
  3004. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3005. -
  3006. -else
  3007. - GXX=no
  3008. - with_gnu_ld=no
  3009. - wlarc=
  3010. -fi
  3011. -
  3012. -# PORTME: fill in a description of your system's C++ link characteristics
  3013. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3014. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3015. -case $host_os in
  3016. - aix3*)
  3017. - # FIXME: insert proper C++ library support
  3018. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3019. - ;;
  3020. - aix[[4-9]]*)
  3021. - if test "$host_cpu" = ia64; then
  3022. - # On IA64, the linker does run time linking by default, so we don't
  3023. - # have to do anything special.
  3024. - aix_use_runtimelinking=no
  3025. - exp_sym_flag='-Bexport'
  3026. - no_entry_flag=""
  3027. - else
  3028. - aix_use_runtimelinking=no
  3029. -
  3030. - # Test if we are trying to use run time linking or normal
  3031. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3032. - # need to do runtime linking.
  3033. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  3034. - for ld_flag in $LDFLAGS; do
  3035. - case $ld_flag in
  3036. - *-brtl*)
  3037. - aix_use_runtimelinking=yes
  3038. - break
  3039. - ;;
  3040. - esac
  3041. - done
  3042. - ;;
  3043. - esac
  3044. -
  3045. - exp_sym_flag='-bexport'
  3046. - no_entry_flag='-bnoentry'
  3047. - fi
  3048. -
  3049. - # When large executables or shared objects are built, AIX ld can
  3050. - # have problems creating the table of contents. If linking a library
  3051. - # or program results in "error TOC overflow" add -mminimal-toc to
  3052. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3053. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3054. -
  3055. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3056. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3057. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3058. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3059. -
  3060. - if test "$GXX" = yes; then
  3061. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3062. - # We only want to do this on AIX 4.2 and lower, the check
  3063. - # below for broken collect2 doesn't work under 4.3+
  3064. - collect2name=`${CC} -print-prog-name=collect2`
  3065. - if test -f "$collect2name" && \
  3066. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3067. - then
  3068. - # We have reworked collect2
  3069. - :
  3070. - else
  3071. - # We have old collect2
  3072. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3073. - # It fails to find uninstalled libraries when the uninstalled
  3074. - # path is not listed in the libpath. Setting hardcode_minus_L
  3075. - # to unsupported forces relinking
  3076. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3077. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3078. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3079. - fi
  3080. - ;;
  3081. - esac
  3082. - shared_flag='-shared'
  3083. - if test "$aix_use_runtimelinking" = yes; then
  3084. - shared_flag="$shared_flag "'${wl}-G'
  3085. - fi
  3086. - else
  3087. - # not using gcc
  3088. - if test "$host_cpu" = ia64; then
  3089. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3090. - # chokes on -Wl,-G. The following line is correct:
  3091. - shared_flag='-G'
  3092. - else
  3093. - if test "$aix_use_runtimelinking" = yes; then
  3094. - shared_flag='${wl}-G'
  3095. - else
  3096. - shared_flag='${wl}-bM:SRE'
  3097. - fi
  3098. - fi
  3099. - fi
  3100. -
  3101. - # It seems that -bexpall does not export symbols beginning with
  3102. - # underscore (_), so it is better to generate a list of symbols to export.
  3103. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3104. - if test "$aix_use_runtimelinking" = yes; then
  3105. - # Warning - without using the other runtime loading flags (-brtl),
  3106. - # -berok will link without error, but may produce a broken library.
  3107. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3108. - # Determine the default libpath from the value encoded in an empty executable.
  3109. - _LT_AC_SYS_LIBPATH_AIX
  3110. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3111. -
  3112. - _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"
  3113. - else
  3114. - if test "$host_cpu" = ia64; then
  3115. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3116. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3117. - _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"
  3118. - else
  3119. - # Determine the default libpath from the value encoded in an empty executable.
  3120. - _LT_AC_SYS_LIBPATH_AIX
  3121. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3122. - # Warning - without using the other run time loading flags,
  3123. - # -berok will link without error, but may produce a broken library.
  3124. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3125. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3126. - # Exported symbols can be pulled into shared objects from archives
  3127. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3128. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3129. - # This is similar to how AIX traditionally builds its shared libraries.
  3130. - _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'
  3131. - fi
  3132. - fi
  3133. - ;;
  3134. -
  3135. - beos*)
  3136. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3137. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3138. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3139. - # support --undefined. This deserves some investigation. FIXME
  3140. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3141. - else
  3142. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3143. - fi
  3144. - ;;
  3145. -
  3146. - chorus*)
  3147. - case $cc_basename in
  3148. - *)
  3149. - # FIXME: insert proper C++ library support
  3150. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3151. - ;;
  3152. - esac
  3153. - ;;
  3154. -
  3155. - cygwin* | mingw* | pw32*)
  3156. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3157. - # as there is no search path for DLLs.
  3158. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3159. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3160. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3161. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3162. -
  3163. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3164. - _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'
  3165. - # If the export-symbols file already is a .def file (1st line
  3166. - # is EXPORTS), use it as is; otherwise, prepend...
  3167. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3168. - cp $export_symbols $output_objdir/$soname.def;
  3169. - else
  3170. - echo EXPORTS > $output_objdir/$soname.def;
  3171. - cat $export_symbols >> $output_objdir/$soname.def;
  3172. - fi~
  3173. - $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'
  3174. - else
  3175. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3176. - fi
  3177. - ;;
  3178. - darwin* | rhapsody*)
  3179. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3180. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3181. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3182. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3183. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3184. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3185. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3186. - if test "$GXX" = yes ; then
  3187. - output_verbose_link_cmd='echo'
  3188. - _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}"
  3189. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3190. - _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}"
  3191. - _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}"
  3192. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3193. - _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}"
  3194. - _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}"
  3195. - fi
  3196. - else
  3197. - case $cc_basename in
  3198. - xlc*)
  3199. - output_verbose_link_cmd='echo'
  3200. - _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'
  3201. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3202. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3203. - _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}'
  3204. - _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}'
  3205. - ;;
  3206. - *)
  3207. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3208. - ;;
  3209. - esac
  3210. - fi
  3211. - ;;
  3212. -
  3213. - dgux*)
  3214. - case $cc_basename in
  3215. - ec++*)
  3216. - # FIXME: insert proper C++ library support
  3217. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3218. - ;;
  3219. - ghcx*)
  3220. - # Green Hills C++ Compiler
  3221. - # FIXME: insert proper C++ library support
  3222. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3223. - ;;
  3224. - *)
  3225. - # FIXME: insert proper C++ library support
  3226. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3227. - ;;
  3228. - esac
  3229. - ;;
  3230. - freebsd[[12]]*)
  3231. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3232. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3233. - ;;
  3234. - freebsd-elf*)
  3235. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3236. - ;;
  3237. - freebsd* | dragonfly*)
  3238. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3239. - # conventions
  3240. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3241. - ;;
  3242. - gnu*)
  3243. - ;;
  3244. - hpux9*)
  3245. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3246. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3247. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3248. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3249. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3250. - # but as the default
  3251. - # location of the library.
  3252. -
  3253. - case $cc_basename in
  3254. - CC*)
  3255. - # FIXME: insert proper C++ library support
  3256. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3257. - ;;
  3258. - aCC*)
  3259. - _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'
  3260. - # Commands to make compiler produce verbose output that lists
  3261. - # what "hidden" libraries, object files and flags are used when
  3262. - # linking a shared library.
  3263. - #
  3264. - # There doesn't appear to be a way to prevent this compiler from
  3265. - # explicitly linking system object files so we need to strip them
  3266. - # from the output so that they don't get included in the library
  3267. - # dependencies.
  3268. - 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'
  3269. - ;;
  3270. - *)
  3271. - if test "$GXX" = yes; then
  3272. - _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'
  3273. - else
  3274. - # FIXME: insert proper C++ library support
  3275. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3276. - fi
  3277. - ;;
  3278. - esac
  3279. - ;;
  3280. - hpux10*|hpux11*)
  3281. - if test $with_gnu_ld = no; then
  3282. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3283. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3284. -
  3285. - case $host_cpu in
  3286. - hppa*64*|ia64*) ;;
  3287. - *)
  3288. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3289. - ;;
  3290. - esac
  3291. - fi
  3292. - case $host_cpu in
  3293. - hppa*64*|ia64*)
  3294. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3295. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3296. - ;;
  3297. - *)
  3298. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3299. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3300. - # but as the default
  3301. - # location of the library.
  3302. - ;;
  3303. - esac
  3304. -
  3305. - case $cc_basename in
  3306. - CC*)
  3307. - # FIXME: insert proper C++ library support
  3308. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3309. - ;;
  3310. - aCC*)
  3311. - case $host_cpu in
  3312. - hppa*64*)
  3313. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3314. - ;;
  3315. - ia64*)
  3316. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3317. - ;;
  3318. - *)
  3319. - _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'
  3320. - ;;
  3321. - esac
  3322. - # Commands to make compiler produce verbose output that lists
  3323. - # what "hidden" libraries, object files and flags are used when
  3324. - # linking a shared library.
  3325. - #
  3326. - # There doesn't appear to be a way to prevent this compiler from
  3327. - # explicitly linking system object files so we need to strip them
  3328. - # from the output so that they don't get included in the library
  3329. - # dependencies.
  3330. - 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'
  3331. - ;;
  3332. - *)
  3333. - if test "$GXX" = yes; then
  3334. - if test $with_gnu_ld = no; then
  3335. - case $host_cpu in
  3336. - hppa*64*)
  3337. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3338. - ;;
  3339. - ia64*)
  3340. - _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'
  3341. - ;;
  3342. - *)
  3343. - _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'
  3344. - ;;
  3345. - esac
  3346. - fi
  3347. - else
  3348. - # FIXME: insert proper C++ library support
  3349. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3350. - fi
  3351. - ;;
  3352. - esac
  3353. - ;;
  3354. - interix[[3-9]]*)
  3355. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3356. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3357. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3358. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3359. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3360. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  3361. - # default) and relocated if they conflict, which is a slow very memory
  3362. - # consuming and fragmenting process. To avoid this, we pick a random,
  3363. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3364. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3365. - _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'
  3366. - _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'
  3367. - ;;
  3368. - irix5* | irix6*)
  3369. - case $cc_basename in
  3370. - CC*)
  3371. - # SGI C++
  3372. - _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'
  3373. -
  3374. - # Archives containing C++ object files must be created using
  3375. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  3376. - # necessary to make sure instantiated templates are included
  3377. - # in the archive.
  3378. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3379. - ;;
  3380. - *)
  3381. - if test "$GXX" = yes; then
  3382. - if test "$with_gnu_ld" = no; then
  3383. - _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'
  3384. - else
  3385. - _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'
  3386. - fi
  3387. - fi
  3388. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3389. - ;;
  3390. - esac
  3391. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3392. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3393. - ;;
  3394. - linux* | k*bsd*-gnu)
  3395. - case $cc_basename in
  3396. - KCC*)
  3397. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3398. -
  3399. - # KCC will only create a shared library if the output file
  3400. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3401. - # to its proper name (with version) after linking.
  3402. - _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'
  3403. - _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'
  3404. - # Commands to make compiler produce verbose output that lists
  3405. - # what "hidden" libraries, object files and flags are used when
  3406. - # linking a shared library.
  3407. - #
  3408. - # There doesn't appear to be a way to prevent this compiler from
  3409. - # explicitly linking system object files so we need to strip them
  3410. - # from the output so that they don't get included in the library
  3411. - # dependencies.
  3412. - 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'
  3413. -
  3414. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3415. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3416. -
  3417. - # Archives containing C++ object files must be created using
  3418. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3419. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3420. - ;;
  3421. - icpc*)
  3422. - # Intel C++
  3423. - with_gnu_ld=yes
  3424. - # version 8.0 and above of icpc choke on multiply defined symbols
  3425. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  3426. - # earlier do not add the objects themselves.
  3427. - case `$CC -V 2>&1` in
  3428. - *"Version 7."*)
  3429. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3430. - _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'
  3431. - ;;
  3432. - *) # Version 8.0 or newer
  3433. - tmp_idyn=
  3434. - case $host_cpu in
  3435. - ia64*) tmp_idyn=' -i_dynamic';;
  3436. - esac
  3437. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3438. - _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'
  3439. - ;;
  3440. - esac
  3441. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3442. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3443. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3444. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3445. - ;;
  3446. - pgCC* | pgcpp*)
  3447. - # Portland Group C++ compiler
  3448. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  3449. - _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'
  3450. -
  3451. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3452. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3453. - _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'
  3454. - ;;
  3455. - cxx*)
  3456. - # Compaq C++
  3457. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3458. - _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'
  3459. -
  3460. - runpath_var=LD_RUN_PATH
  3461. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3462. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3463. -
  3464. - # Commands to make compiler produce verbose output that lists
  3465. - # what "hidden" libraries, object files and flags are used when
  3466. - # linking a shared library.
  3467. - #
  3468. - # There doesn't appear to be a way to prevent this compiler from
  3469. - # explicitly linking system object files so we need to strip them
  3470. - # from the output so that they don't get included in the library
  3471. - # dependencies.
  3472. - 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'
  3473. - ;;
  3474. - *)
  3475. - case `$CC -V 2>&1 | sed 5q` in
  3476. - *Sun\ C*)
  3477. - # Sun C++ 5.9
  3478. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3479. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3480. - _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'
  3481. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3482. - _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'
  3483. -
  3484. - # Not sure whether something based on
  3485. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  3486. - # would be better.
  3487. - output_verbose_link_cmd='echo'
  3488. -
  3489. - # Archives containing C++ object files must be created using
  3490. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3491. - # necessary to make sure instantiated templates are included
  3492. - # in the archive.
  3493. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3494. - ;;
  3495. - esac
  3496. - ;;
  3497. - esac
  3498. - ;;
  3499. - lynxos*)
  3500. - # FIXME: insert proper C++ library support
  3501. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3502. - ;;
  3503. - m88k*)
  3504. - # FIXME: insert proper C++ library support
  3505. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3506. - ;;
  3507. - mvs*)
  3508. - case $cc_basename in
  3509. - cxx*)
  3510. - # FIXME: insert proper C++ library support
  3511. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3512. - ;;
  3513. - *)
  3514. - # FIXME: insert proper C++ library support
  3515. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3516. - ;;
  3517. - esac
  3518. - ;;
  3519. - netbsd*)
  3520. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3521. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3522. - wlarc=
  3523. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3524. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3525. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3526. - fi
  3527. - # Workaround some broken pre-1.5 toolchains
  3528. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3529. - ;;
  3530. - openbsd2*)
  3531. - # C++ shared libraries are fairly broken
  3532. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3533. - ;;
  3534. - openbsd*)
  3535. - if test -f /usr/libexec/ld.so; then
  3536. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3537. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3538. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3539. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3540. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3541. - _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'
  3542. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3543. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3544. - fi
  3545. - output_verbose_link_cmd='echo'
  3546. - else
  3547. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3548. - fi
  3549. - ;;
  3550. - osf3*)
  3551. - case $cc_basename in
  3552. - KCC*)
  3553. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3554. -
  3555. - # KCC will only create a shared library if the output file
  3556. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3557. - # to its proper name (with version) after linking.
  3558. - _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'
  3559. -
  3560. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3561. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3562. -
  3563. - # Archives containing C++ object files must be created using
  3564. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3565. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3566. -
  3567. - ;;
  3568. - RCC*)
  3569. - # Rational C++ 2.4.1
  3570. - # FIXME: insert proper C++ library support
  3571. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3572. - ;;
  3573. - cxx*)
  3574. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3575. - _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'
  3576. -
  3577. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3578. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3579. -
  3580. - # Commands to make compiler produce verbose output that lists
  3581. - # what "hidden" libraries, object files and flags are used when
  3582. - # linking a shared library.
  3583. - #
  3584. - # There doesn't appear to be a way to prevent this compiler from
  3585. - # explicitly linking system object files so we need to strip them
  3586. - # from the output so that they don't get included in the library
  3587. - # dependencies.
  3588. - 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'
  3589. - ;;
  3590. - *)
  3591. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3592. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3593. - _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'
  3594. -
  3595. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3596. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3597. -
  3598. - # Commands to make compiler produce verbose output that lists
  3599. - # what "hidden" libraries, object files and flags are used when
  3600. - # linking a shared library.
  3601. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3602. -
  3603. - else
  3604. - # FIXME: insert proper C++ library support
  3605. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3606. - fi
  3607. - ;;
  3608. - esac
  3609. - ;;
  3610. - osf4* | osf5*)
  3611. - case $cc_basename in
  3612. - KCC*)
  3613. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3614. -
  3615. - # KCC will only create a shared library if the output file
  3616. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3617. - # to its proper name (with version) after linking.
  3618. - _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'
  3619. -
  3620. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3621. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3622. -
  3623. - # Archives containing C++ object files must be created using
  3624. - # the KAI C++ compiler.
  3625. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3626. - ;;
  3627. - RCC*)
  3628. - # Rational C++ 2.4.1
  3629. - # FIXME: insert proper C++ library support
  3630. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3631. - ;;
  3632. - cxx*)
  3633. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3634. - _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'
  3635. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3636. - echo "-hidden">> $lib.exp~
  3637. - $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~
  3638. - $rm $lib.exp'
  3639. -
  3640. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3641. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3642. -
  3643. - # Commands to make compiler produce verbose output that lists
  3644. - # what "hidden" libraries, object files and flags are used when
  3645. - # linking a shared library.
  3646. - #
  3647. - # There doesn't appear to be a way to prevent this compiler from
  3648. - # explicitly linking system object files so we need to strip them
  3649. - # from the output so that they don't get included in the library
  3650. - # dependencies.
  3651. - 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'
  3652. - ;;
  3653. - *)
  3654. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3655. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3656. - _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'
  3657. -
  3658. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3659. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3660. -
  3661. - # Commands to make compiler produce verbose output that lists
  3662. - # what "hidden" libraries, object files and flags are used when
  3663. - # linking a shared library.
  3664. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3665. -
  3666. - else
  3667. - # FIXME: insert proper C++ library support
  3668. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3669. - fi
  3670. - ;;
  3671. - esac
  3672. - ;;
  3673. - psos*)
  3674. - # FIXME: insert proper C++ library support
  3675. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3676. - ;;
  3677. - sunos4*)
  3678. - case $cc_basename in
  3679. - CC*)
  3680. - # Sun C++ 4.x
  3681. - # FIXME: insert proper C++ library support
  3682. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3683. - ;;
  3684. - lcc*)
  3685. - # Lucid
  3686. - # FIXME: insert proper C++ library support
  3687. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3688. - ;;
  3689. - *)
  3690. - # FIXME: insert proper C++ library support
  3691. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3692. - ;;
  3693. - esac
  3694. - ;;
  3695. - solaris*)
  3696. - case $cc_basename in
  3697. - CC*)
  3698. - # Sun C++ 4.2, 5.x and Centerline C++
  3699. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  3700. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3701. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3702. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3703. - $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'
  3704. -
  3705. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3706. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3707. - case $host_os in
  3708. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3709. - *)
  3710. - # The compiler driver will combine and reorder linker options,
  3711. - # but understands `-z linker_flag'.
  3712. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  3713. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  3714. - ;;
  3715. - esac
  3716. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3717. -
  3718. - output_verbose_link_cmd='echo'
  3719. -
  3720. - # Archives containing C++ object files must be created using
  3721. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3722. - # necessary to make sure instantiated templates are included
  3723. - # in the archive.
  3724. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3725. - ;;
  3726. - gcx*)
  3727. - # Green Hills C++ Compiler
  3728. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3729. -
  3730. - # The C++ compiler must be used to create the archive.
  3731. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3732. - ;;
  3733. - *)
  3734. - # GNU C++ compiler with Solaris linker
  3735. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3736. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3737. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  3738. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3739. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3740. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3741. -
  3742. - # Commands to make compiler produce verbose output that lists
  3743. - # what "hidden" libraries, object files and flags are used when
  3744. - # linking a shared library.
  3745. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3746. - else
  3747. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3748. - # platform.
  3749. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3750. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3751. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3752. -
  3753. - # Commands to make compiler produce verbose output that lists
  3754. - # what "hidden" libraries, object files and flags are used when
  3755. - # linking a shared library.
  3756. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3757. - fi
  3758. -
  3759. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3760. - case $host_os in
  3761. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3762. - *)
  3763. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3764. - ;;
  3765. - esac
  3766. - fi
  3767. - ;;
  3768. - esac
  3769. - ;;
  3770. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  3771. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3772. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3773. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3774. - runpath_var='LD_RUN_PATH'
  3775. -
  3776. - case $cc_basename in
  3777. - CC*)
  3778. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3779. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3780. - ;;
  3781. - *)
  3782. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3783. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3784. - ;;
  3785. - esac
  3786. - ;;
  3787. - sysv5* | sco3.2v5* | sco5v6*)
  3788. - # Note: We can NOT use -z defs as we might desire, because we do not
  3789. - # link with -lc, and that would cause any symbols used from libc to
  3790. - # always be unresolved, which means just about no library would
  3791. - # ever link correctly. If we're not using GNU ld we use -z text
  3792. - # though, which does catch some bad symbols but isn't as heavy-handed
  3793. - # as -z defs.
  3794. - # For security reasons, it is highly recommended that you always
  3795. - # use absolute paths for naming shared libraries, and exclude the
  3796. - # DT_RUNPATH tag from executables and libraries. But doing so
  3797. - # requires that you compile everything twice, which is a pain.
  3798. - # So that behaviour is only enabled if SCOABSPATH is set to a
  3799. - # non-empty value in the environment. Most likely only useful for
  3800. - # creating official distributions of packages.
  3801. - # This is a hack until libtool officially supports absolute path
  3802. - # names for shared libraries.
  3803. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3804. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  3805. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3806. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3807. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  3808. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3809. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3810. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3811. - runpath_var='LD_RUN_PATH'
  3812. -
  3813. - case $cc_basename in
  3814. - CC*)
  3815. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3816. - _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'
  3817. - ;;
  3818. - *)
  3819. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3820. - _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'
  3821. - ;;
  3822. - esac
  3823. - ;;
  3824. - tandem*)
  3825. - case $cc_basename in
  3826. - NCC*)
  3827. - # NonStop-UX NCC 3.20
  3828. - # FIXME: insert proper C++ library support
  3829. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3830. - ;;
  3831. - *)
  3832. - # FIXME: insert proper C++ library support
  3833. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3834. - ;;
  3835. - esac
  3836. - ;;
  3837. - vxworks*)
  3838. - # FIXME: insert proper C++ library support
  3839. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3840. - ;;
  3841. - *)
  3842. - # FIXME: insert proper C++ library support
  3843. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3844. - ;;
  3845. -esac
  3846. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3847. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3848. -
  3849. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  3850. -_LT_AC_TAGVAR(LD, $1)="$LD"
  3851. -
  3852. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  3853. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3854. -AC_LIBTOOL_PROG_CC_C_O($1)
  3855. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3856. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3857. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3858. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3859. -
  3860. -AC_LIBTOOL_CONFIG($1)
  3861. -
  3862. -AC_LANG_POP
  3863. -CC=$lt_save_CC
  3864. -LDCXX=$LD
  3865. -LD=$lt_save_LD
  3866. -GCC=$lt_save_GCC
  3867. -with_gnu_ldcxx=$with_gnu_ld
  3868. -with_gnu_ld=$lt_save_with_gnu_ld
  3869. -lt_cv_path_LDCXX=$lt_cv_path_LD
  3870. -lt_cv_path_LD=$lt_save_path_LD
  3871. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3872. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3873. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  3874. -
  3875. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3876. -# ------------------------------------
  3877. -# Figure out "hidden" library dependencies from verbose
  3878. -# compiler output when linking a shared library.
  3879. -# Parse the compiler output and extract the necessary
  3880. -# objects, libraries and library flags.
  3881. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  3882. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  3883. -dnl we can't use the lt_simple_compile_test_code here,
  3884. -dnl because it contains code intended for an executable,
  3885. -dnl not a library. It's possible we should let each
  3886. -dnl tag define a new lt_????_link_test_code variable,
  3887. -dnl but it's only used here...
  3888. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3889. -int a;
  3890. -void foo (void) { a = 0; }
  3891. -EOF
  3892. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3893. -class Foo
  3894. -{
  3895. -public:
  3896. - Foo (void) { a = 0; }
  3897. -private:
  3898. - int a;
  3899. -};
  3900. -EOF
  3901. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3902. - subroutine foo
  3903. - implicit none
  3904. - integer*4 a
  3905. - a=0
  3906. - return
  3907. - end
  3908. -EOF
  3909. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3910. -public class foo {
  3911. - private int a;
  3912. - public void bar (void) {
  3913. - a = 0;
  3914. - }
  3915. -};
  3916. -EOF
  3917. -])
  3918. -dnl Parse the compiler output and extract the necessary
  3919. -dnl objects, libraries and library flags.
  3920. -if AC_TRY_EVAL(ac_compile); then
  3921. - # Parse the compiler output and extract the necessary
  3922. - # objects, libraries and library flags.
  3923. -
  3924. - # Sentinel used to keep track of whether or not we are before
  3925. - # the conftest object file.
  3926. - pre_test_object_deps_done=no
  3927. -
  3928. - # The `*' in the case matches for architectures that use `case' in
  3929. - # $output_verbose_cmd can trigger glob expansion during the loop
  3930. - # eval without this substitution.
  3931. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  3932. -
  3933. - for p in `eval $output_verbose_link_cmd`; do
  3934. - case $p in
  3935. -
  3936. - -L* | -R* | -l*)
  3937. - # Some compilers place space between "-{L,R}" and the path.
  3938. - # Remove the space.
  3939. - if test $p = "-L" \
  3940. - || test $p = "-R"; then
  3941. - prev=$p
  3942. - continue
  3943. - else
  3944. - prev=
  3945. - fi
  3946. -
  3947. - if test "$pre_test_object_deps_done" = no; then
  3948. - case $p in
  3949. - -L* | -R*)
  3950. - # Internal compiler library paths should come after those
  3951. - # provided the user. The postdeps already come after the
  3952. - # user supplied libs so there is no need to process them.
  3953. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3954. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3955. - else
  3956. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3957. - fi
  3958. - ;;
  3959. - # The "-l" case would never come before the object being
  3960. - # linked, so don't bother handling this case.
  3961. - esac
  3962. - else
  3963. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3964. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3965. - else
  3966. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3967. - fi
  3968. - fi
  3969. - ;;
  3970. -
  3971. - *.$objext)
  3972. - # This assumes that the test object file only shows up
  3973. - # once in the compiler output.
  3974. - if test "$p" = "conftest.$objext"; then
  3975. - pre_test_object_deps_done=yes
  3976. - continue
  3977. - fi
  3978. -
  3979. - if test "$pre_test_object_deps_done" = no; then
  3980. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3981. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3982. - else
  3983. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3984. - fi
  3985. - else
  3986. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3987. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3988. - else
  3989. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3990. - fi
  3991. - fi
  3992. - ;;
  3993. -
  3994. - *) ;; # Ignore the rest.
  3995. -
  3996. - esac
  3997. - done
  3998. -
  3999. - # Clean up.
  4000. - rm -f a.out a.exe
  4001. -else
  4002. - echo "libtool.m4: error: problem compiling $1 test program"
  4003. -fi
  4004. -
  4005. -$rm -f confest.$objext
  4006. -
  4007. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  4008. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  4009. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  4010. -fi
  4011. -
  4012. -# PORTME: override above test on systems where it is broken
  4013. -ifelse([$1],[CXX],
  4014. -[case $host_os in
  4015. -interix[[3-9]]*)
  4016. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  4017. - # hack all around it, let's just trust "g++" to DTRT.
  4018. - _LT_AC_TAGVAR(predep_objects,$1)=
  4019. - _LT_AC_TAGVAR(postdep_objects,$1)=
  4020. - _LT_AC_TAGVAR(postdeps,$1)=
  4021. - ;;
  4022. -
  4023. -linux*)
  4024. - case `$CC -V 2>&1 | sed 5q` in
  4025. - *Sun\ C*)
  4026. - # Sun C++ 5.9
  4027. - #
  4028. - # The more standards-conforming stlport4 library is
  4029. - # incompatible with the Cstd library. Avoid specifying
  4030. - # it if it's in CXXFLAGS. Ignore libCrun as
  4031. - # -library=stlport4 depends on it.
  4032. - case " $CXX $CXXFLAGS " in
  4033. - *" -library=stlport4 "*)
  4034. - solaris_use_stlport4=yes
  4035. - ;;
  4036. - esac
  4037. - if test "$solaris_use_stlport4" != yes; then
  4038. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  4039. - fi
  4040. - ;;
  4041. - esac
  4042. - ;;
  4043. -
  4044. -solaris*)
  4045. - case $cc_basename in
  4046. - CC*)
  4047. - # The more standards-conforming stlport4 library is
  4048. - # incompatible with the Cstd library. Avoid specifying
  4049. - # it if it's in CXXFLAGS. Ignore libCrun as
  4050. - # -library=stlport4 depends on it.
  4051. - case " $CXX $CXXFLAGS " in
  4052. - *" -library=stlport4 "*)
  4053. - solaris_use_stlport4=yes
  4054. - ;;
  4055. - esac
  4056. -
  4057. - # Adding this requires a known-good setup of shared libraries for
  4058. - # Sun compiler versions before 5.6, else PIC objects from an old
  4059. - # archive will be linked into the output, leading to subtle bugs.
  4060. - if test "$solaris_use_stlport4" != yes; then
  4061. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  4062. - fi
  4063. - ;;
  4064. - esac
  4065. - ;;
  4066. -esac
  4067. -])
  4068. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  4069. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  4070. -esac
  4071. -])# AC_LIBTOOL_POSTDEP_PREDEP
  4072. -
  4073. -# AC_LIBTOOL_LANG_F77_CONFIG
  4074. -# --------------------------
  4075. -# Ensure that the configuration vars for the C compiler are
  4076. -# suitably defined. Those variables are subsequently used by
  4077. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4078. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  4079. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  4080. -[AC_REQUIRE([AC_PROG_F77])
  4081. -AC_LANG_PUSH(Fortran 77)
  4082. -
  4083. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4084. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4085. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4086. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4087. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4088. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4089. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4090. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4091. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4092. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4093. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4094. -_LT_AC_TAGVAR(module_cmds, $1)=
  4095. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4096. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4097. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4098. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4099. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4100. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4101. -
  4102. -# Source file extension for f77 test sources.
  4103. -ac_ext=f
  4104. -
  4105. -# Object file extension for compiled f77 test sources.
  4106. -objext=o
  4107. -_LT_AC_TAGVAR(objext, $1)=$objext
  4108. -
  4109. -# Code to be used in simple compile tests
  4110. -lt_simple_compile_test_code="\
  4111. - subroutine t
  4112. - return
  4113. - end
  4114. -"
  4115. -
  4116. -# Code to be used in simple link tests
  4117. -lt_simple_link_test_code="\
  4118. - program t
  4119. - end
  4120. -"
  4121. -
  4122. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4123. -_LT_AC_SYS_COMPILER
  4124. -
  4125. -# save warnings/boilerplate of simple test code
  4126. -_LT_COMPILER_BOILERPLATE
  4127. -_LT_LINKER_BOILERPLATE
  4128. -
  4129. -# Allow CC to be a program name with arguments.
  4130. -lt_save_CC="$CC"
  4131. -CC=${F77-"f77"}
  4132. -compiler=$CC
  4133. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4134. -_LT_CC_BASENAME([$compiler])
  4135. -
  4136. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4137. -AC_MSG_RESULT([$can_build_shared])
  4138. -
  4139. -AC_MSG_CHECKING([whether to build shared libraries])
  4140. -test "$can_build_shared" = "no" && enable_shared=no
  4141. -
  4142. -# On AIX, shared libraries and static libraries use the same namespace, and
  4143. -# are all built from PIC.
  4144. -case $host_os in
  4145. -aix3*)
  4146. - test "$enable_shared" = yes && enable_static=no
  4147. - if test -n "$RANLIB"; then
  4148. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4149. - postinstall_cmds='$RANLIB $lib'
  4150. - fi
  4151. - ;;
  4152. -aix[[4-9]]*)
  4153. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4154. - test "$enable_shared" = yes && enable_static=no
  4155. - fi
  4156. - ;;
  4157. -esac
  4158. -AC_MSG_RESULT([$enable_shared])
  4159. -
  4160. -AC_MSG_CHECKING([whether to build static libraries])
  4161. -# Make sure either enable_shared or enable_static is yes.
  4162. -test "$enable_shared" = yes || enable_static=yes
  4163. -AC_MSG_RESULT([$enable_static])
  4164. -
  4165. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  4166. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4167. -
  4168. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4169. -AC_LIBTOOL_PROG_CC_C_O($1)
  4170. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4171. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4172. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4173. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4174. -
  4175. -AC_LIBTOOL_CONFIG($1)
  4176. -
  4177. -AC_LANG_POP
  4178. -CC="$lt_save_CC"
  4179. -])# AC_LIBTOOL_LANG_F77_CONFIG
  4180. -
  4181. -
  4182. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  4183. -# --------------------------
  4184. -# Ensure that the configuration vars for the C compiler are
  4185. -# suitably defined. Those variables are subsequently used by
  4186. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4187. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  4188. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  4189. -[AC_LANG_SAVE
  4190. -
  4191. -# Source file extension for Java test sources.
  4192. -ac_ext=java
  4193. -
  4194. -# Object file extension for compiled Java test sources.
  4195. -objext=o
  4196. -_LT_AC_TAGVAR(objext, $1)=$objext
  4197. -
  4198. -# Code to be used in simple compile tests
  4199. -lt_simple_compile_test_code="class foo {}"
  4200. -
  4201. -# Code to be used in simple link tests
  4202. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  4203. -
  4204. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4205. -_LT_AC_SYS_COMPILER
  4206. -
  4207. -# save warnings/boilerplate of simple test code
  4208. -_LT_COMPILER_BOILERPLATE
  4209. -_LT_LINKER_BOILERPLATE
  4210. -
  4211. -# Allow CC to be a program name with arguments.
  4212. -lt_save_CC="$CC"
  4213. -CC=${GCJ-"gcj"}
  4214. -compiler=$CC
  4215. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4216. -_LT_CC_BASENAME([$compiler])
  4217. -
  4218. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  4219. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4220. -
  4221. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4222. -
  4223. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4224. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4225. -AC_LIBTOOL_PROG_CC_C_O($1)
  4226. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4227. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4228. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4229. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4230. -
  4231. -AC_LIBTOOL_CONFIG($1)
  4232. -
  4233. -AC_LANG_RESTORE
  4234. -CC="$lt_save_CC"
  4235. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  4236. -
  4237. -
  4238. -# AC_LIBTOOL_LANG_RC_CONFIG
  4239. -# -------------------------
  4240. -# Ensure that the configuration vars for the Windows resource compiler are
  4241. -# suitably defined. Those variables are subsequently used by
  4242. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4243. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  4244. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  4245. -[AC_LANG_SAVE
  4246. -
  4247. -# Source file extension for RC test sources.
  4248. -ac_ext=rc
  4249. -
  4250. -# Object file extension for compiled RC test sources.
  4251. -objext=o
  4252. -_LT_AC_TAGVAR(objext, $1)=$objext
  4253. -
  4254. -# Code to be used in simple compile tests
  4255. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  4256. -
  4257. -# Code to be used in simple link tests
  4258. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  4259. -
  4260. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4261. -_LT_AC_SYS_COMPILER
  4262. -
  4263. -# save warnings/boilerplate of simple test code
  4264. -_LT_COMPILER_BOILERPLATE
  4265. -_LT_LINKER_BOILERPLATE
  4266. -
  4267. -# Allow CC to be a program name with arguments.
  4268. -lt_save_CC="$CC"
  4269. -CC=${RC-"windres"}
  4270. -compiler=$CC
  4271. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4272. -_LT_CC_BASENAME([$compiler])
  4273. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4274. -
  4275. -AC_LIBTOOL_CONFIG($1)
  4276. -
  4277. -AC_LANG_RESTORE
  4278. -CC="$lt_save_CC"
  4279. -])# AC_LIBTOOL_LANG_RC_CONFIG
  4280. -
  4281. -
  4282. -# AC_LIBTOOL_CONFIG([TAGNAME])
  4283. -# ----------------------------
  4284. -# If TAGNAME is not passed, then create an initial libtool script
  4285. -# with a default configuration from the untagged config vars. Otherwise
  4286. -# add code to config.status for appending the configuration named by
  4287. -# TAGNAME from the matching tagged config vars.
  4288. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  4289. -[# The else clause should only fire when bootstrapping the
  4290. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  4291. -# with your package, and you will get complaints that there are
  4292. -# no rules to generate ltmain.sh.
  4293. -if test -f "$ltmain"; then
  4294. - # See if we are running on zsh, and set the options which allow our commands through
  4295. - # without removal of \ escapes.
  4296. - if test -n "${ZSH_VERSION+set}" ; then
  4297. - setopt NO_GLOB_SUBST
  4298. - fi
  4299. - # Now quote all the things that may contain metacharacters while being
  4300. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  4301. - # variables and quote the copies for generation of the libtool script.
  4302. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  4303. - SED SHELL STRIP \
  4304. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  4305. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  4306. - deplibs_check_method reload_flag reload_cmds need_locks \
  4307. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  4308. - lt_cv_sys_global_symbol_to_c_name_address \
  4309. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4310. - old_postinstall_cmds old_postuninstall_cmds \
  4311. - _LT_AC_TAGVAR(compiler, $1) \
  4312. - _LT_AC_TAGVAR(CC, $1) \
  4313. - _LT_AC_TAGVAR(LD, $1) \
  4314. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  4315. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  4316. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  4317. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  4318. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  4319. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  4320. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  4321. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  4322. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  4323. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  4324. - _LT_AC_TAGVAR(predep_objects, $1) \
  4325. - _LT_AC_TAGVAR(postdep_objects, $1) \
  4326. - _LT_AC_TAGVAR(predeps, $1) \
  4327. - _LT_AC_TAGVAR(postdeps, $1) \
  4328. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  4329. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  4330. - _LT_AC_TAGVAR(archive_cmds, $1) \
  4331. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  4332. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  4333. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  4334. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  4335. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  4336. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  4337. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  4338. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  4339. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  4340. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  4341. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  4342. - _LT_AC_TAGVAR(module_cmds, $1) \
  4343. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  4344. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  4345. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  4346. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  4347. - _LT_AC_TAGVAR(include_expsyms, $1); do
  4348. -
  4349. - case $var in
  4350. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  4351. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  4352. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  4353. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  4354. - _LT_AC_TAGVAR(module_cmds, $1) | \
  4355. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  4356. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  4357. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  4358. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  4359. - postinstall_cmds | postuninstall_cmds | \
  4360. - old_postinstall_cmds | old_postuninstall_cmds | \
  4361. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4362. - # Double-quote double-evaled strings.
  4363. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4364. - ;;
  4365. - *)
  4366. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4367. - ;;
  4368. - esac
  4369. - done
  4370. -
  4371. - case $lt_echo in
  4372. - *'\[$]0 --fallback-echo"')
  4373. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  4374. - ;;
  4375. - esac
  4376. -
  4377. -ifelse([$1], [],
  4378. - [cfgfile="${ofile}T"
  4379. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  4380. - $rm -f "$cfgfile"
  4381. - AC_MSG_NOTICE([creating $ofile])],
  4382. - [cfgfile="$ofile"])
  4383. -
  4384. - cat <<__EOF__ >> "$cfgfile"
  4385. -ifelse([$1], [],
  4386. -[#! $SHELL
  4387. -
  4388. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4389. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4390. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4391. -#
  4392. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  4393. -# Free Software Foundation, Inc.
  4394. -#
  4395. -# This file is part of GNU Libtool:
  4396. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  4397. -#
  4398. -# This program is free software; you can redistribute it and/or modify
  4399. -# it under the terms of the GNU General Public License as published by
  4400. -# the Free Software Foundation; either version 2 of the License, or
  4401. -# (at your option) any later version.
  4402. -#
  4403. -# This program is distributed in the hope that it will be useful, but
  4404. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  4405. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  4406. -# General Public License for more details.
  4407. -#
  4408. -# You should have received a copy of the GNU General Public License
  4409. -# along with this program; if not, write to the Free Software
  4410. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  4411. -#
  4412. -# As a special exception to the GNU General Public License, if you
  4413. -# distribute this file as part of a program that contains a
  4414. -# configuration script generated by Autoconf, you may include it under
  4415. -# the same distribution terms that you use for the rest of that program.
  4416. -
  4417. -# A sed program that does not truncate output.
  4418. -SED=$lt_SED
  4419. -
  4420. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4421. -Xsed="$SED -e 1s/^X//"
  4422. -
  4423. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  4424. -# if CDPATH is set.
  4425. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4426. -
  4427. -# The names of the tagged configurations supported by this script.
  4428. -available_tags=
  4429. -
  4430. -# ### BEGIN LIBTOOL CONFIG],
  4431. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  4432. -
  4433. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4434. -
  4435. -# Shell to use when invoking shell scripts.
  4436. -SHELL=$lt_SHELL
  4437. -
  4438. -# Whether or not to build shared libraries.
  4439. -build_libtool_libs=$enable_shared
  4440. -
  4441. -# Whether or not to build static libraries.
  4442. -build_old_libs=$enable_static
  4443. -
  4444. -# Whether or not to add -lc for building shared libraries.
  4445. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  4446. -
  4447. -# Whether or not to disallow shared libs when runtime libs are static
  4448. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  4449. -
  4450. -# Whether or not to optimize for fast installation.
  4451. -fast_install=$enable_fast_install
  4452. -
  4453. -# The host system.
  4454. -host_alias=$host_alias
  4455. -host=$host
  4456. -host_os=$host_os
  4457. -
  4458. -# The build system.
  4459. -build_alias=$build_alias
  4460. -build=$build
  4461. -build_os=$build_os
  4462. -
  4463. -# An echo program that does not interpret backslashes.
  4464. -echo=$lt_echo
  4465. -
  4466. -# The archiver.
  4467. -AR=$lt_AR
  4468. -AR_FLAGS=$lt_AR_FLAGS
  4469. -
  4470. -# A C compiler.
  4471. -LTCC=$lt_LTCC
  4472. -
  4473. -# LTCC compiler flags.
  4474. -LTCFLAGS=$lt_LTCFLAGS
  4475. -
  4476. -# A language-specific compiler.
  4477. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  4478. -
  4479. -# Is the compiler the GNU C compiler?
  4480. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  4481. -
  4482. -# An ERE matcher.
  4483. -EGREP=$lt_EGREP
  4484. -
  4485. -# The linker used to build libraries.
  4486. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  4487. -
  4488. -# Whether we need hard or soft links.
  4489. -LN_S=$lt_LN_S
  4490. -
  4491. -# A BSD-compatible nm program.
  4492. -NM=$lt_NM
  4493. -
  4494. -# A symbol stripping program
  4495. -STRIP=$lt_STRIP
  4496. -
  4497. -# Used to examine libraries when file_magic_cmd begins "file"
  4498. -MAGIC_CMD=$MAGIC_CMD
  4499. -
  4500. -# Used on cygwin: DLL creation program.
  4501. -DLLTOOL="$DLLTOOL"
  4502. -
  4503. -# Used on cygwin: object dumper.
  4504. -OBJDUMP="$OBJDUMP"
  4505. -
  4506. -# Used on cygwin: assembler.
  4507. -AS="$AS"
  4508. -
  4509. -# The name of the directory that contains temporary libtool files.
  4510. -objdir=$objdir
  4511. -
  4512. -# How to create reloadable object files.
  4513. -reload_flag=$lt_reload_flag
  4514. -reload_cmds=$lt_reload_cmds
  4515. -
  4516. -# How to pass a linker flag through the compiler.
  4517. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  4518. -
  4519. -# Object file suffix (normally "o").
  4520. -objext="$ac_objext"
  4521. -
  4522. -# Old archive suffix (normally "a").
  4523. -libext="$libext"
  4524. -
  4525. -# Shared library suffix (normally ".so").
  4526. -shrext_cmds='$shrext_cmds'
  4527. -
  4528. -# Executable file suffix (normally "").
  4529. -exeext="$exeext"
  4530. -
  4531. -# Additional compiler flags for building library objects.
  4532. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  4533. -pic_mode=$pic_mode
  4534. -
  4535. -# What is the maximum length of a command?
  4536. -max_cmd_len=$lt_cv_sys_max_cmd_len
  4537. -
  4538. -# Does compiler simultaneously support -c and -o options?
  4539. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  4540. -
  4541. -# Must we lock files when doing compilation?
  4542. -need_locks=$lt_need_locks
  4543. -
  4544. -# Do we need the lib prefix for modules?
  4545. -need_lib_prefix=$need_lib_prefix
  4546. -
  4547. -# Do we need a version for libraries?
  4548. -need_version=$need_version
  4549. -
  4550. -# Whether dlopen is supported.
  4551. -dlopen_support=$enable_dlopen
  4552. -
  4553. -# Whether dlopen of programs is supported.
  4554. -dlopen_self=$enable_dlopen_self
  4555. -
  4556. -# Whether dlopen of statically linked programs is supported.
  4557. -dlopen_self_static=$enable_dlopen_self_static
  4558. -
  4559. -# Compiler flag to prevent dynamic linking.
  4560. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  4561. -
  4562. -# Compiler flag to turn off builtin functions.
  4563. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  4564. -
  4565. -# Compiler flag to allow reflexive dlopens.
  4566. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  4567. -
  4568. -# Compiler flag to generate shared objects directly from archives.
  4569. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  4570. -
  4571. -# Compiler flag to generate thread-safe objects.
  4572. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  4573. -
  4574. -# Library versioning type.
  4575. -version_type=$version_type
  4576. -
  4577. -# Format of library name prefix.
  4578. -libname_spec=$lt_libname_spec
  4579. -
  4580. -# List of archive names. First name is the real one, the rest are links.
  4581. -# The last name is the one that the linker finds with -lNAME.
  4582. -library_names_spec=$lt_library_names_spec
  4583. -
  4584. -# The coded name of the library, if different from the real name.
  4585. -soname_spec=$lt_soname_spec
  4586. -
  4587. -# Commands used to build and install an old-style archive.
  4588. -RANLIB=$lt_RANLIB
  4589. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  4590. -old_postinstall_cmds=$lt_old_postinstall_cmds
  4591. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4592. -
  4593. -# Create an old-style archive from a shared archive.
  4594. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  4595. -
  4596. -# Create a temporary old-style archive to link instead of a shared archive.
  4597. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  4598. -
  4599. -# Commands used to build and install a shared archive.
  4600. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  4601. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  4602. -postinstall_cmds=$lt_postinstall_cmds
  4603. -postuninstall_cmds=$lt_postuninstall_cmds
  4604. -
  4605. -# Commands used to build a loadable module (assumed same as above if empty)
  4606. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  4607. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  4608. -
  4609. -# Commands to strip libraries.
  4610. -old_striplib=$lt_old_striplib
  4611. -striplib=$lt_striplib
  4612. -
  4613. -# Dependencies to place before the objects being linked to create a
  4614. -# shared library.
  4615. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  4616. -
  4617. -# Dependencies to place after the objects being linked to create a
  4618. -# shared library.
  4619. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  4620. -
  4621. -# Dependencies to place before the objects being linked to create a
  4622. -# shared library.
  4623. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  4624. -
  4625. -# Dependencies to place after the objects being linked to create a
  4626. -# shared library.
  4627. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  4628. -
  4629. -# The directories searched by this compiler when creating a shared
  4630. -# library
  4631. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  4632. -
  4633. -# The library search path used internally by the compiler when linking
  4634. -# a shared library.
  4635. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  4636. -
  4637. -# Method to check whether dependent libraries are shared objects.
  4638. -deplibs_check_method=$lt_deplibs_check_method
  4639. -
  4640. -# Command to use when deplibs_check_method == file_magic.
  4641. -file_magic_cmd=$lt_file_magic_cmd
  4642. -
  4643. -# Flag that allows shared libraries with undefined symbols to be built.
  4644. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  4645. -
  4646. -# Flag that forces no undefined symbols.
  4647. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  4648. -
  4649. -# Commands used to finish a libtool library installation in a directory.
  4650. -finish_cmds=$lt_finish_cmds
  4651. -
  4652. -# Same as above, but a single script fragment to be evaled but not shown.
  4653. -finish_eval=$lt_finish_eval
  4654. -
  4655. -# Take the output of nm and produce a listing of raw symbols and C names.
  4656. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  4657. -
  4658. -# Transform the output of nm in a proper C declaration
  4659. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  4660. -
  4661. -# Transform the output of nm in a C name address pair
  4662. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  4663. -
  4664. -# This is the shared library runtime path variable.
  4665. -runpath_var=$runpath_var
  4666. -
  4667. -# This is the shared library path variable.
  4668. -shlibpath_var=$shlibpath_var
  4669. -
  4670. -# Is shlibpath searched before the hard-coded library search path?
  4671. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4672. -
  4673. -# How to hardcode a shared library path into an executable.
  4674. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  4675. -
  4676. -# Whether we should hardcode library paths into libraries.
  4677. -hardcode_into_libs=$hardcode_into_libs
  4678. -
  4679. -# Flag to hardcode \$libdir into a binary during linking.
  4680. -# This must work even if \$libdir does not exist.
  4681. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  4682. -
  4683. -# If ld is used when linking, flag to hardcode \$libdir into
  4684. -# a binary during linking. This must work even if \$libdir does
  4685. -# not exist.
  4686. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  4687. -
  4688. -# Whether we need a single -rpath flag with a separated argument.
  4689. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  4690. -
  4691. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  4692. -# resulting binary.
  4693. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  4694. -
  4695. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  4696. -# resulting binary.
  4697. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  4698. -
  4699. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  4700. -# the resulting binary.
  4701. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  4702. -
  4703. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  4704. -# and all subsequent libraries and executables linked against it.
  4705. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  4706. -
  4707. -# Variables whose values should be saved in libtool wrapper scripts and
  4708. -# restored at relink time.
  4709. -variables_saved_for_relink="$variables_saved_for_relink"
  4710. -
  4711. -# Whether libtool must link a program against all its dependency libraries.
  4712. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  4713. -
  4714. -# Compile-time system search path for libraries
  4715. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4716. -
  4717. -# Run-time system search path for libraries
  4718. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4719. -
  4720. -# Fix the shell variable \$srcfile for the compiler.
  4721. -fix_srcfile_path=$lt_fix_srcfile_path
  4722. -
  4723. -# Set to yes if exported symbols are required.
  4724. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4725. -
  4726. -# The commands to list exported symbols.
  4727. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  4728. -
  4729. -# The commands to extract the exported symbol list from a shared archive.
  4730. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4731. -
  4732. -# Symbols that should not be listed in the preloaded symbols.
  4733. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  4734. -
  4735. -# Symbols that must always be exported.
  4736. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  4737. -
  4738. -ifelse([$1],[],
  4739. -[# ### END LIBTOOL CONFIG],
  4740. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  4741. -
  4742. -__EOF__
  4743. -
  4744. -ifelse([$1],[], [
  4745. - case $host_os in
  4746. - aix3*)
  4747. - cat <<\EOF >> "$cfgfile"
  4748. -
  4749. -# AIX sometimes has problems with the GCC collect2 program. For some
  4750. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  4751. -# vanish in a puff of smoke.
  4752. -if test "X${COLLECT_NAMES+set}" != Xset; then
  4753. - COLLECT_NAMES=
  4754. - export COLLECT_NAMES
  4755. -fi
  4756. -EOF
  4757. - ;;
  4758. - esac
  4759. -
  4760. - # We use sed instead of cat because bash on DJGPP gets confused if
  4761. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4762. - # text mode, it properly converts lines to CR/LF. This bash problem
  4763. - # is reportedly fixed, but why not run on old versions too?
  4764. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  4765. -
  4766. - mv -f "$cfgfile" "$ofile" || \
  4767. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4768. - chmod +x "$ofile"
  4769. -])
  4770. -else
  4771. - # If there is no Makefile yet, we rely on a make rule to execute
  4772. - # `config.status --recheck' to rerun these tests and create the
  4773. - # libtool script then.
  4774. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  4775. - if test -f "$ltmain_in"; then
  4776. - test -f Makefile && make "$ltmain"
  4777. - fi
  4778. -fi
  4779. -])# AC_LIBTOOL_CONFIG
  4780. -
  4781. -
  4782. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  4783. -# -------------------------------------------
  4784. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  4785. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  4786. -
  4787. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4788. -
  4789. -if test "$GCC" = yes; then
  4790. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4791. -
  4792. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4793. - lt_cv_prog_compiler_rtti_exceptions,
  4794. - [-fno-rtti -fno-exceptions], [],
  4795. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4796. -fi
  4797. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  4798. -
  4799. -
  4800. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4801. -# ---------------------------------
  4802. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4803. -[AC_REQUIRE([AC_CANONICAL_HOST])
  4804. -AC_REQUIRE([LT_AC_PROG_SED])
  4805. -AC_REQUIRE([AC_PROG_NM])
  4806. -AC_REQUIRE([AC_OBJEXT])
  4807. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  4808. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4809. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4810. -[
  4811. -# These are sane defaults that work on at least a few old systems.
  4812. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4813. -
  4814. -# Character class describing NM global symbol codes.
  4815. -symcode='[[BCDEGRST]]'
  4816. -
  4817. -# Regexp to match symbols that can be accessed directly from C.
  4818. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4819. -
  4820. -# Transform an extracted symbol line into a proper C declaration
  4821. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4822. -
  4823. -# Transform an extracted symbol line into symbol name and symbol address
  4824. -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'"
  4825. -
  4826. -# Define system-specific variables.
  4827. -case $host_os in
  4828. -aix*)
  4829. - symcode='[[BCDT]]'
  4830. - ;;
  4831. -cygwin* | mingw* | pw32*)
  4832. - symcode='[[ABCDGISTW]]'
  4833. - ;;
  4834. -hpux*) # Its linker distinguishes data from code symbols
  4835. - if test "$host_cpu" = ia64; then
  4836. - symcode='[[ABCDEGRST]]'
  4837. - fi
  4838. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4839. - 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'"
  4840. - ;;
  4841. -linux* | k*bsd*-gnu)
  4842. - if test "$host_cpu" = ia64; then
  4843. - symcode='[[ABCDGIRSTW]]'
  4844. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4845. - 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'"
  4846. - fi
  4847. - ;;
  4848. -irix* | nonstopux*)
  4849. - symcode='[[BCDEGRST]]'
  4850. - ;;
  4851. -osf*)
  4852. - symcode='[[BCDEGQRST]]'
  4853. - ;;
  4854. -solaris*)
  4855. - symcode='[[BDRT]]'
  4856. - ;;
  4857. -sco3.2v5*)
  4858. - symcode='[[DT]]'
  4859. - ;;
  4860. -sysv4.2uw2*)
  4861. - symcode='[[DT]]'
  4862. - ;;
  4863. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4864. - symcode='[[ABDT]]'
  4865. - ;;
  4866. -sysv4)
  4867. - symcode='[[DFNSTU]]'
  4868. - ;;
  4869. -esac
  4870. -
  4871. -# Handle CRLF in mingw tool chain
  4872. -opt_cr=
  4873. -case $build_os in
  4874. -mingw*)
  4875. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4876. - ;;
  4877. -esac
  4878. -
  4879. -# If we're using GNU nm, then use its standard symbol codes.
  4880. -case `$NM -V 2>&1` in
  4881. -*GNU* | *'with BFD'*)
  4882. - symcode='[[ABCDGIRSTW]]' ;;
  4883. -esac
  4884. -
  4885. -# Try without a prefix undercore, then with it.
  4886. -for ac_symprfx in "" "_"; do
  4887. -
  4888. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4889. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  4890. -
  4891. - # Write the raw and C identifiers.
  4892. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4893. -
  4894. - # Check to see that the pipe works correctly.
  4895. - pipe_works=no
  4896. -
  4897. - rm -f conftest*
  4898. - cat > conftest.$ac_ext <<EOF
  4899. -#ifdef __cplusplus
  4900. -extern "C" {
  4901. -#endif
  4902. -char nm_test_var;
  4903. -void nm_test_func(){}
  4904. -#ifdef __cplusplus
  4905. -}
  4906. -#endif
  4907. -int main(){nm_test_var='a';nm_test_func();return(0);}
  4908. -EOF
  4909. -
  4910. - if AC_TRY_EVAL(ac_compile); then
  4911. - # Now try to grab the symbols.
  4912. - nlist=conftest.nm
  4913. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4914. - # Try sorting and uniquifying the output.
  4915. - if sort "$nlist" | uniq > "$nlist"T; then
  4916. - mv -f "$nlist"T "$nlist"
  4917. - else
  4918. - rm -f "$nlist"T
  4919. - fi
  4920. -
  4921. - # Make sure that we snagged all the symbols we need.
  4922. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4923. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4924. - cat <<EOF > conftest.$ac_ext
  4925. -#ifdef __cplusplus
  4926. -extern "C" {
  4927. -#endif
  4928. -
  4929. -EOF
  4930. - # Now generate the symbol file.
  4931. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4932. -
  4933. - cat <<EOF >> conftest.$ac_ext
  4934. -#if defined (__STDC__) && __STDC__
  4935. -# define lt_ptr_t void *
  4936. -#else
  4937. -# define lt_ptr_t char *
  4938. -# define const
  4939. -#endif
  4940. -
  4941. -/* The mapping between symbol names and symbols. */
  4942. -const struct {
  4943. - const char *name;
  4944. - lt_ptr_t address;
  4945. -}
  4946. -lt_preloaded_symbols[[]] =
  4947. -{
  4948. -EOF
  4949. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4950. - cat <<\EOF >> conftest.$ac_ext
  4951. - {0, (lt_ptr_t) 0}
  4952. -};
  4953. -
  4954. -#ifdef __cplusplus
  4955. -}
  4956. -#endif
  4957. -EOF
  4958. - # Now try linking the two files.
  4959. - mv conftest.$ac_objext conftstm.$ac_objext
  4960. - lt_save_LIBS="$LIBS"
  4961. - lt_save_CFLAGS="$CFLAGS"
  4962. - LIBS="conftstm.$ac_objext"
  4963. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4964. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4965. - pipe_works=yes
  4966. - fi
  4967. - LIBS="$lt_save_LIBS"
  4968. - CFLAGS="$lt_save_CFLAGS"
  4969. - else
  4970. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4971. - fi
  4972. - else
  4973. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4974. - fi
  4975. - else
  4976. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4977. - fi
  4978. - else
  4979. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4980. - cat conftest.$ac_ext >&5
  4981. - fi
  4982. - rm -rf conftest* conftst*
  4983. -
  4984. - # Do not use the global_symbol_pipe unless it works.
  4985. - if test "$pipe_works" = yes; then
  4986. - break
  4987. - else
  4988. - lt_cv_sys_global_symbol_pipe=
  4989. - fi
  4990. -done
  4991. -])
  4992. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4993. - lt_cv_sys_global_symbol_to_cdecl=
  4994. -fi
  4995. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4996. - AC_MSG_RESULT(failed)
  4997. -else
  4998. - AC_MSG_RESULT(ok)
  4999. -fi
  5000. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  5001. -
  5002. -
  5003. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  5004. -# ---------------------------------------
  5005. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  5006. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  5007. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5008. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  5009. -
  5010. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  5011. - ifelse([$1],[CXX],[
  5012. - # C++ specific cases for pic, static, wl, etc.
  5013. - if test "$GXX" = yes; then
  5014. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5015. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5016. -
  5017. - case $host_os in
  5018. - aix*)
  5019. - # All AIX code is PIC.
  5020. - if test "$host_cpu" = ia64; then
  5021. - # AIX 5 now supports IA64 processor
  5022. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5023. - fi
  5024. - ;;
  5025. - amigaos*)
  5026. - # FIXME: we need at least 68020 code to build shared libraries, but
  5027. - # adding the `-m68020' flag to GCC prevents building anything better,
  5028. - # like `-m68040'.
  5029. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5030. - ;;
  5031. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5032. - # PIC is the default for these OSes.
  5033. - ;;
  5034. - mingw* | cygwin* | os2* | pw32*)
  5035. - # This hack is so that the source file can tell whether it is being
  5036. - # built for inclusion in a dll (and should export symbols for example).
  5037. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5038. - # (--disable-auto-import) libraries
  5039. - m4_if([$1], [GCJ], [],
  5040. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5041. - ;;
  5042. - darwin* | rhapsody*)
  5043. - # PIC is the default on this platform
  5044. - # Common symbols not allowed in MH_DYLIB files
  5045. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5046. - ;;
  5047. - *djgpp*)
  5048. - # DJGPP does not support shared libraries at all
  5049. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5050. - ;;
  5051. - interix[[3-9]]*)
  5052. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5053. - # Instead, we relocate shared libraries at runtime.
  5054. - ;;
  5055. - sysv4*MP*)
  5056. - if test -d /usr/nec; then
  5057. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5058. - fi
  5059. - ;;
  5060. - hpux*)
  5061. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5062. - # not for PA HP-UX.
  5063. - case $host_cpu in
  5064. - hppa*64*|ia64*)
  5065. - ;;
  5066. - *)
  5067. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5068. - ;;
  5069. - esac
  5070. - ;;
  5071. - *)
  5072. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5073. - ;;
  5074. - esac
  5075. - else
  5076. - case $host_os in
  5077. - aix[[4-9]]*)
  5078. - # All AIX code is PIC.
  5079. - if test "$host_cpu" = ia64; then
  5080. - # AIX 5 now supports IA64 processor
  5081. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5082. - else
  5083. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5084. - fi
  5085. - ;;
  5086. - chorus*)
  5087. - case $cc_basename in
  5088. - cxch68*)
  5089. - # Green Hills C++ Compiler
  5090. - # _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"
  5091. - ;;
  5092. - esac
  5093. - ;;
  5094. - darwin*)
  5095. - # PIC is the default on this platform
  5096. - # Common symbols not allowed in MH_DYLIB files
  5097. - case $cc_basename in
  5098. - xlc*)
  5099. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  5100. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5101. - ;;
  5102. - esac
  5103. - ;;
  5104. - dgux*)
  5105. - case $cc_basename in
  5106. - ec++*)
  5107. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5108. - ;;
  5109. - ghcx*)
  5110. - # Green Hills C++ Compiler
  5111. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5112. - ;;
  5113. - *)
  5114. - ;;
  5115. - esac
  5116. - ;;
  5117. - freebsd* | dragonfly*)
  5118. - # FreeBSD uses GNU C++
  5119. - ;;
  5120. - hpux9* | hpux10* | hpux11*)
  5121. - case $cc_basename in
  5122. - CC*)
  5123. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5124. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5125. - if test "$host_cpu" != ia64; then
  5126. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5127. - fi
  5128. - ;;
  5129. - aCC*)
  5130. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5131. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5132. - case $host_cpu in
  5133. - hppa*64*|ia64*)
  5134. - # +Z the default
  5135. - ;;
  5136. - *)
  5137. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5138. - ;;
  5139. - esac
  5140. - ;;
  5141. - *)
  5142. - ;;
  5143. - esac
  5144. - ;;
  5145. - interix*)
  5146. - # This is c89, which is MS Visual C++ (no shared libs)
  5147. - # Anyone wants to do a port?
  5148. - ;;
  5149. - irix5* | irix6* | nonstopux*)
  5150. - case $cc_basename in
  5151. - CC*)
  5152. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5153. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5154. - # CC pic flag -KPIC is the default.
  5155. - ;;
  5156. - *)
  5157. - ;;
  5158. - esac
  5159. - ;;
  5160. - linux* | k*bsd*-gnu)
  5161. - case $cc_basename in
  5162. - KCC*)
  5163. - # KAI C++ Compiler
  5164. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5165. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5166. - ;;
  5167. - icpc* | ecpc*)
  5168. - # Intel C++
  5169. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5170. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5171. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5172. - ;;
  5173. - pgCC* | pgcpp*)
  5174. - # Portland Group C++ compiler.
  5175. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5176. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5177. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5178. - ;;
  5179. - cxx*)
  5180. - # Compaq C++
  5181. - # Make sure the PIC flag is empty. It appears that all Alpha
  5182. - # Linux and Compaq Tru64 Unix objects are PIC.
  5183. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5184. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5185. - ;;
  5186. - *)
  5187. - case `$CC -V 2>&1 | sed 5q` in
  5188. - *Sun\ C*)
  5189. - # Sun C++ 5.9
  5190. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5191. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5192. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5193. - ;;
  5194. - esac
  5195. - ;;
  5196. - esac
  5197. - ;;
  5198. - lynxos*)
  5199. - ;;
  5200. - m88k*)
  5201. - ;;
  5202. - mvs*)
  5203. - case $cc_basename in
  5204. - cxx*)
  5205. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5206. - ;;
  5207. - *)
  5208. - ;;
  5209. - esac
  5210. - ;;
  5211. - netbsd*)
  5212. - ;;
  5213. - osf3* | osf4* | osf5*)
  5214. - case $cc_basename in
  5215. - KCC*)
  5216. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5217. - ;;
  5218. - RCC*)
  5219. - # Rational C++ 2.4.1
  5220. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5221. - ;;
  5222. - cxx*)
  5223. - # Digital/Compaq C++
  5224. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5225. - # Make sure the PIC flag is empty. It appears that all Alpha
  5226. - # Linux and Compaq Tru64 Unix objects are PIC.
  5227. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5228. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5229. - ;;
  5230. - *)
  5231. - ;;
  5232. - esac
  5233. - ;;
  5234. - psos*)
  5235. - ;;
  5236. - solaris*)
  5237. - case $cc_basename in
  5238. - CC*)
  5239. - # Sun C++ 4.2, 5.x and Centerline C++
  5240. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5241. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5242. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5243. - ;;
  5244. - gcx*)
  5245. - # Green Hills C++ Compiler
  5246. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5247. - ;;
  5248. - *)
  5249. - ;;
  5250. - esac
  5251. - ;;
  5252. - sunos4*)
  5253. - case $cc_basename in
  5254. - CC*)
  5255. - # Sun C++ 4.x
  5256. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5257. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5258. - ;;
  5259. - lcc*)
  5260. - # Lucid
  5261. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5262. - ;;
  5263. - *)
  5264. - ;;
  5265. - esac
  5266. - ;;
  5267. - tandem*)
  5268. - case $cc_basename in
  5269. - NCC*)
  5270. - # NonStop-UX NCC 3.20
  5271. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5272. - ;;
  5273. - *)
  5274. - ;;
  5275. - esac
  5276. - ;;
  5277. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5278. - case $cc_basename in
  5279. - CC*)
  5280. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5281. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5282. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5283. - ;;
  5284. - esac
  5285. - ;;
  5286. - vxworks*)
  5287. - ;;
  5288. - *)
  5289. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5290. - ;;
  5291. - esac
  5292. - fi
  5293. -],
  5294. -[
  5295. - if test "$GCC" = yes; then
  5296. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5297. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5298. -
  5299. - case $host_os in
  5300. - aix*)
  5301. - # All AIX code is PIC.
  5302. - if test "$host_cpu" = ia64; then
  5303. - # AIX 5 now supports IA64 processor
  5304. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5305. - fi
  5306. - ;;
  5307. -
  5308. - amigaos*)
  5309. - # FIXME: we need at least 68020 code to build shared libraries, but
  5310. - # adding the `-m68020' flag to GCC prevents building anything better,
  5311. - # like `-m68040'.
  5312. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5313. - ;;
  5314. -
  5315. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5316. - # PIC is the default for these OSes.
  5317. - ;;
  5318. -
  5319. - mingw* | cygwin* | pw32* | os2*)
  5320. - # This hack is so that the source file can tell whether it is being
  5321. - # built for inclusion in a dll (and should export symbols for example).
  5322. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5323. - # (--disable-auto-import) libraries
  5324. - m4_if([$1], [GCJ], [],
  5325. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5326. - ;;
  5327. -
  5328. - darwin* | rhapsody*)
  5329. - # PIC is the default on this platform
  5330. - # Common symbols not allowed in MH_DYLIB files
  5331. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5332. - ;;
  5333. -
  5334. - interix[[3-9]]*)
  5335. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5336. - # Instead, we relocate shared libraries at runtime.
  5337. - ;;
  5338. -
  5339. - msdosdjgpp*)
  5340. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  5341. - # on systems that don't support them.
  5342. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5343. - enable_shared=no
  5344. - ;;
  5345. -
  5346. - sysv4*MP*)
  5347. - if test -d /usr/nec; then
  5348. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5349. - fi
  5350. - ;;
  5351. -
  5352. - hpux*)
  5353. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5354. - # not for PA HP-UX.
  5355. - case $host_cpu in
  5356. - hppa*64*|ia64*)
  5357. - # +Z the default
  5358. - ;;
  5359. - *)
  5360. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5361. - ;;
  5362. - esac
  5363. - ;;
  5364. -
  5365. - *)
  5366. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5367. - ;;
  5368. - esac
  5369. - else
  5370. - # PORTME Check for flag to pass linker flags through the system compiler.
  5371. - case $host_os in
  5372. - aix*)
  5373. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5374. - if test "$host_cpu" = ia64; then
  5375. - # AIX 5 now supports IA64 processor
  5376. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5377. - else
  5378. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5379. - fi
  5380. - ;;
  5381. - darwin*)
  5382. - # PIC is the default on this platform
  5383. - # Common symbols not allowed in MH_DYLIB files
  5384. - case $cc_basename in
  5385. - xlc*)
  5386. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  5387. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5388. - ;;
  5389. - esac
  5390. - ;;
  5391. -
  5392. - mingw* | cygwin* | pw32* | os2*)
  5393. - # This hack is so that the source file can tell whether it is being
  5394. - # built for inclusion in a dll (and should export symbols for example).
  5395. - m4_if([$1], [GCJ], [],
  5396. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5397. - ;;
  5398. -
  5399. - hpux9* | hpux10* | hpux11*)
  5400. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5401. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5402. - # not for PA HP-UX.
  5403. - case $host_cpu in
  5404. - hppa*64*|ia64*)
  5405. - # +Z the default
  5406. - ;;
  5407. - *)
  5408. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5409. - ;;
  5410. - esac
  5411. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5412. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5413. - ;;
  5414. -
  5415. - irix5* | irix6* | nonstopux*)
  5416. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5417. - # PIC (with -KPIC) is the default.
  5418. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5419. - ;;
  5420. -
  5421. - newsos6)
  5422. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5423. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5424. - ;;
  5425. -
  5426. - linux* | k*bsd*-gnu)
  5427. - case $cc_basename in
  5428. - icc* | ecc*)
  5429. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5430. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5431. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5432. - ;;
  5433. - pgcc* | pgf77* | pgf90* | pgf95*)
  5434. - # Portland Group compilers (*not* the Pentium gcc compiler,
  5435. - # which looks to be a dead project)
  5436. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5437. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5438. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5439. - ;;
  5440. - ccc*)
  5441. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5442. - # All Alpha code is PIC.
  5443. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5444. - ;;
  5445. - *)
  5446. - case `$CC -V 2>&1 | sed 5q` in
  5447. - *Sun\ C*)
  5448. - # Sun C 5.9
  5449. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5450. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5451. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5452. - ;;
  5453. - *Sun\ F*)
  5454. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5455. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5456. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5457. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  5458. - ;;
  5459. - esac
  5460. - ;;
  5461. - esac
  5462. - ;;
  5463. -
  5464. - osf3* | osf4* | osf5*)
  5465. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5466. - # All OSF/1 code is PIC.
  5467. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5468. - ;;
  5469. -
  5470. - rdos*)
  5471. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5472. - ;;
  5473. -
  5474. - solaris*)
  5475. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5476. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5477. - case $cc_basename in
  5478. - f77* | f90* | f95*)
  5479. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5480. - *)
  5481. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5482. - esac
  5483. - ;;
  5484. -
  5485. - sunos4*)
  5486. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5487. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5488. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5489. - ;;
  5490. -
  5491. - sysv4 | sysv4.2uw2* | sysv4.3*)
  5492. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5493. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5494. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5495. - ;;
  5496. -
  5497. - sysv4*MP*)
  5498. - if test -d /usr/nec ;then
  5499. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5500. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5501. - fi
  5502. - ;;
  5503. -
  5504. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5505. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5506. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5507. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5508. - ;;
  5509. -
  5510. - unicos*)
  5511. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5512. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5513. - ;;
  5514. -
  5515. - uts4*)
  5516. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5517. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5518. - ;;
  5519. -
  5520. - *)
  5521. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5522. - ;;
  5523. - esac
  5524. - fi
  5525. -])
  5526. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  5527. -
  5528. -#
  5529. -# Check to make sure the PIC flag actually works.
  5530. -#
  5531. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5532. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  5533. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  5534. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  5535. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  5536. - "" | " "*) ;;
  5537. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5538. - esac],
  5539. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5540. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5541. -fi
  5542. -case $host_os in
  5543. - # For platforms which do not support PIC, -DPIC is meaningless:
  5544. - *djgpp*)
  5545. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5546. - ;;
  5547. - *)
  5548. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  5549. - ;;
  5550. -esac
  5551. -
  5552. -#
  5553. -# Check to make sure the static flag actually works.
  5554. -#
  5555. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  5556. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5557. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5558. - $lt_tmp_static_flag,
  5559. - [],
  5560. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  5561. -])
  5562. -
  5563. -
  5564. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  5565. -# ------------------------------------
  5566. -# See if the linker supports building shared libraries.
  5567. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  5568. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  5569. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5570. -ifelse([$1],[CXX],[
  5571. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5572. - case $host_os in
  5573. - aix[[4-9]]*)
  5574. - # If we're using GNU nm, then we don't want the "-C" option.
  5575. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5576. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5577. - _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'
  5578. - else
  5579. - _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'
  5580. - fi
  5581. - ;;
  5582. - pw32*)
  5583. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5584. - ;;
  5585. - cygwin* | mingw*)
  5586. - _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'
  5587. - ;;
  5588. - *)
  5589. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5590. - ;;
  5591. - esac
  5592. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5593. -],[
  5594. - runpath_var=
  5595. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5596. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5597. - _LT_AC_TAGVAR(archive_cmds, $1)=
  5598. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5599. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  5600. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5601. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5602. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5603. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  5604. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5605. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5606. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5607. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5608. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5609. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5610. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5611. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5612. - _LT_AC_TAGVAR(module_cmds, $1)=
  5613. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5614. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5615. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5616. - # include_expsyms should be a list of space-separated symbols to be *always*
  5617. - # included in the symbol list
  5618. - _LT_AC_TAGVAR(include_expsyms, $1)=
  5619. - # exclude_expsyms can be an extended regexp of symbols to exclude
  5620. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5621. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5622. - # as well as any symbol that contains `d'.
  5623. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5624. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5625. - # platforms (ab)use it in PIC code, but their linkers get confused if
  5626. - # the symbol is explicitly referenced. Since portable code cannot
  5627. - # rely on this symbol name, it's probably fine to never include it in
  5628. - # preloaded symbol tables.
  5629. - # Exclude shared library initialization/finalization symbols.
  5630. -dnl Note also adjust exclude_expsyms for C++ above.
  5631. - extract_expsyms_cmds=
  5632. - # Just being paranoid about ensuring that cc_basename is set.
  5633. - _LT_CC_BASENAME([$compiler])
  5634. - case $host_os in
  5635. - cygwin* | mingw* | pw32*)
  5636. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5637. - # When not using gcc, we currently assume that we are using
  5638. - # Microsoft Visual C++.
  5639. - if test "$GCC" != yes; then
  5640. - with_gnu_ld=no
  5641. - fi
  5642. - ;;
  5643. - interix*)
  5644. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  5645. - with_gnu_ld=yes
  5646. - ;;
  5647. - openbsd*)
  5648. - with_gnu_ld=no
  5649. - ;;
  5650. - esac
  5651. -
  5652. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5653. - if test "$with_gnu_ld" = yes; then
  5654. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5655. - wlarc='${wl}'
  5656. -
  5657. - # Set some defaults for GNU ld with shared library support. These
  5658. - # are reset later if shared libraries are not supported. Putting them
  5659. - # here allows them to be overridden if necessary.
  5660. - runpath_var=LD_RUN_PATH
  5661. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5662. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5663. - # ancient GNU ld didn't support --whole-archive et. al.
  5664. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5665. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5666. - else
  5667. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5668. - fi
  5669. - supports_anon_versioning=no
  5670. - case `$LD -v 2>/dev/null` in
  5671. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5672. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5673. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5674. - *\ 2.11.*) ;; # other 2.11 versions
  5675. - *) supports_anon_versioning=yes ;;
  5676. - esac
  5677. -
  5678. - # See if GNU ld supports shared libraries.
  5679. - case $host_os in
  5680. - aix[[3-9]]*)
  5681. - # On AIX/PPC, the GNU linker is very broken
  5682. - if test "$host_cpu" != ia64; then
  5683. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5684. - cat <<EOF 1>&2
  5685. -
  5686. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5687. -*** to be unable to reliably create shared libraries on AIX.
  5688. -*** Therefore, libtool is disabling shared libraries support. If you
  5689. -*** really care for shared libraries, you may want to modify your PATH
  5690. -*** so that a non-GNU linker is found, and then restart.
  5691. -
  5692. -EOF
  5693. - fi
  5694. - ;;
  5695. -
  5696. - amigaos*)
  5697. - _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)'
  5698. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5699. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5700. -
  5701. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5702. - # that the semantics of dynamic libraries on AmigaOS, at least up
  5703. - # to version 4, is to share data among multiple programs linked
  5704. - # with the same dynamic library. Since this doesn't match the
  5705. - # behavior of shared libraries on other platforms, we can't use
  5706. - # them.
  5707. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5708. - ;;
  5709. -
  5710. - beos*)
  5711. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5712. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5713. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5714. - # support --undefined. This deserves some investigation. FIXME
  5715. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5716. - else
  5717. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5718. - fi
  5719. - ;;
  5720. -
  5721. - cygwin* | mingw* | pw32*)
  5722. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5723. - # as there is no search path for DLLs.
  5724. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5725. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5726. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5727. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5728. - _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'
  5729. -
  5730. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5731. - _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'
  5732. - # If the export-symbols file already is a .def file (1st line
  5733. - # is EXPORTS), use it as is; otherwise, prepend...
  5734. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5735. - cp $export_symbols $output_objdir/$soname.def;
  5736. - else
  5737. - echo EXPORTS > $output_objdir/$soname.def;
  5738. - cat $export_symbols >> $output_objdir/$soname.def;
  5739. - fi~
  5740. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5741. - else
  5742. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5743. - fi
  5744. - ;;
  5745. -
  5746. - interix[[3-9]]*)
  5747. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5748. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5749. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5750. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5751. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5752. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5753. - # default) and relocated if they conflict, which is a slow very memory
  5754. - # consuming and fragmenting process. To avoid this, we pick a random,
  5755. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5756. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5757. - _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'
  5758. - _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'
  5759. - ;;
  5760. -
  5761. - gnu* | linux* | k*bsd*-gnu)
  5762. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5763. - tmp_addflag=
  5764. - case $cc_basename,$host_cpu in
  5765. - pgcc*) # Portland Group C compiler
  5766. - _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'
  5767. - tmp_addflag=' $pic_flag'
  5768. - ;;
  5769. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5770. - _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'
  5771. - tmp_addflag=' $pic_flag -Mnomain' ;;
  5772. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5773. - tmp_addflag=' -i_dynamic' ;;
  5774. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5775. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  5776. - ifc* | ifort*) # Intel Fortran compiler
  5777. - tmp_addflag=' -nofor_main' ;;
  5778. - esac
  5779. - case `$CC -V 2>&1 | sed 5q` in
  5780. - *Sun\ C*) # Sun C 5.9
  5781. - _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'
  5782. - tmp_sharedflag='-G' ;;
  5783. - *Sun\ F*) # Sun Fortran 8.3
  5784. - tmp_sharedflag='-G' ;;
  5785. - *)
  5786. - tmp_sharedflag='-shared' ;;
  5787. - esac
  5788. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5789. -
  5790. - if test $supports_anon_versioning = yes; then
  5791. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  5792. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5793. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  5794. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5795. - fi
  5796. - else
  5797. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5798. - fi
  5799. - ;;
  5800. -
  5801. - netbsd*)
  5802. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5803. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5804. - wlarc=
  5805. - else
  5806. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5807. - _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'
  5808. - fi
  5809. - ;;
  5810. -
  5811. - solaris*)
  5812. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5813. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5814. - cat <<EOF 1>&2
  5815. -
  5816. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5817. -*** create shared libraries on Solaris systems. Therefore, libtool
  5818. -*** is disabling shared libraries support. We urge you to upgrade GNU
  5819. -*** binutils to release 2.9.1 or newer. Another option is to modify
  5820. -*** your PATH or compiler configuration so that the native linker is
  5821. -*** used, and then restart.
  5822. -
  5823. -EOF
  5824. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5825. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5826. - _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'
  5827. - else
  5828. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5829. - fi
  5830. - ;;
  5831. -
  5832. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5833. - case `$LD -v 2>&1` in
  5834. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5835. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5836. - cat <<_LT_EOF 1>&2
  5837. -
  5838. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5839. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  5840. -*** is disabling shared libraries support. We urge you to upgrade GNU
  5841. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5842. -*** your PATH or compiler configuration so that the native linker is
  5843. -*** used, and then restart.
  5844. -
  5845. -_LT_EOF
  5846. - ;;
  5847. - *)
  5848. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5849. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5850. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5851. - _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'
  5852. - else
  5853. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5854. - fi
  5855. - ;;
  5856. - esac
  5857. - ;;
  5858. -
  5859. - sunos4*)
  5860. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5861. - wlarc=
  5862. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5863. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5864. - ;;
  5865. -
  5866. - *)
  5867. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5868. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5869. - _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'
  5870. - else
  5871. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5872. - fi
  5873. - ;;
  5874. - esac
  5875. -
  5876. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  5877. - runpath_var=
  5878. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5879. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5880. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5881. - fi
  5882. - else
  5883. - # PORTME fill in a description of your system's linker (not GNU ld)
  5884. - case $host_os in
  5885. - aix3*)
  5886. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5887. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5888. - _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'
  5889. - # Note: this linker hardcodes the directories in LIBPATH if there
  5890. - # are no directories specified by -L.
  5891. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5892. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5893. - # Neither direct hardcoding nor static linking is supported with a
  5894. - # broken collect2.
  5895. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5896. - fi
  5897. - ;;
  5898. -
  5899. - aix[[4-9]]*)
  5900. - if test "$host_cpu" = ia64; then
  5901. - # On IA64, the linker does run time linking by default, so we don't
  5902. - # have to do anything special.
  5903. - aix_use_runtimelinking=no
  5904. - exp_sym_flag='-Bexport'
  5905. - no_entry_flag=""
  5906. - else
  5907. - # If we're using GNU nm, then we don't want the "-C" option.
  5908. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5909. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5910. - _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'
  5911. - else
  5912. - _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'
  5913. - fi
  5914. - aix_use_runtimelinking=no
  5915. -
  5916. - # Test if we are trying to use run time linking or normal
  5917. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5918. - # need to do runtime linking.
  5919. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5920. - for ld_flag in $LDFLAGS; do
  5921. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5922. - aix_use_runtimelinking=yes
  5923. - break
  5924. - fi
  5925. - done
  5926. - ;;
  5927. - esac
  5928. -
  5929. - exp_sym_flag='-bexport'
  5930. - no_entry_flag='-bnoentry'
  5931. - fi
  5932. -
  5933. - # When large executables or shared objects are built, AIX ld can
  5934. - # have problems creating the table of contents. If linking a library
  5935. - # or program results in "error TOC overflow" add -mminimal-toc to
  5936. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5937. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5938. -
  5939. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5940. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5941. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5942. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5943. -
  5944. - if test "$GCC" = yes; then
  5945. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5946. - # We only want to do this on AIX 4.2 and lower, the check
  5947. - # below for broken collect2 doesn't work under 4.3+
  5948. - collect2name=`${CC} -print-prog-name=collect2`
  5949. - if test -f "$collect2name" && \
  5950. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5951. - then
  5952. - # We have reworked collect2
  5953. - :
  5954. - else
  5955. - # We have old collect2
  5956. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5957. - # It fails to find uninstalled libraries when the uninstalled
  5958. - # path is not listed in the libpath. Setting hardcode_minus_L
  5959. - # to unsupported forces relinking
  5960. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5961. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5962. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5963. - fi
  5964. - ;;
  5965. - esac
  5966. - shared_flag='-shared'
  5967. - if test "$aix_use_runtimelinking" = yes; then
  5968. - shared_flag="$shared_flag "'${wl}-G'
  5969. - fi
  5970. - else
  5971. - # not using gcc
  5972. - if test "$host_cpu" = ia64; then
  5973. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5974. - # chokes on -Wl,-G. The following line is correct:
  5975. - shared_flag='-G'
  5976. - else
  5977. - if test "$aix_use_runtimelinking" = yes; then
  5978. - shared_flag='${wl}-G'
  5979. - else
  5980. - shared_flag='${wl}-bM:SRE'
  5981. - fi
  5982. - fi
  5983. - fi
  5984. -
  5985. - # It seems that -bexpall does not export symbols beginning with
  5986. - # underscore (_), so it is better to generate a list of symbols to export.
  5987. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5988. - if test "$aix_use_runtimelinking" = yes; then
  5989. - # Warning - without using the other runtime loading flags (-brtl),
  5990. - # -berok will link without error, but may produce a broken library.
  5991. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5992. - # Determine the default libpath from the value encoded in an empty executable.
  5993. - _LT_AC_SYS_LIBPATH_AIX
  5994. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5995. - _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"
  5996. - else
  5997. - if test "$host_cpu" = ia64; then
  5998. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5999. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6000. - _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"
  6001. - else
  6002. - # Determine the default libpath from the value encoded in an empty executable.
  6003. - _LT_AC_SYS_LIBPATH_AIX
  6004. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6005. - # Warning - without using the other run time loading flags,
  6006. - # -berok will link without error, but may produce a broken library.
  6007. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6008. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6009. - # Exported symbols can be pulled into shared objects from archives
  6010. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6011. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6012. - # This is similar to how AIX traditionally builds its shared libraries.
  6013. - _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'
  6014. - fi
  6015. - fi
  6016. - ;;
  6017. -
  6018. - amigaos*)
  6019. - _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)'
  6020. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6021. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6022. - # see comment about different semantics on the GNU ld section
  6023. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6024. - ;;
  6025. -
  6026. - bsdi[[45]]*)
  6027. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6028. - ;;
  6029. -
  6030. - cygwin* | mingw* | pw32*)
  6031. - # When not using gcc, we currently assume that we are using
  6032. - # Microsoft Visual C++.
  6033. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  6034. - # no search path for DLLs.
  6035. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6036. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6037. - # Tell ltmain to make .lib files, not .a files.
  6038. - libext=lib
  6039. - # Tell ltmain to make .dll files, not .so files.
  6040. - shrext_cmds=".dll"
  6041. - # FIXME: Setting linknames here is a bad hack.
  6042. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6043. - # The linker will automatically build a .lib file if we build a DLL.
  6044. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  6045. - # FIXME: Should let the user specify the lib program.
  6046. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6047. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6048. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6049. - ;;
  6050. -
  6051. - darwin* | rhapsody*)
  6052. - case $host_os in
  6053. - rhapsody* | darwin1.[[012]])
  6054. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  6055. - ;;
  6056. - *) # Darwin 1.3 on
  6057. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6058. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6059. - else
  6060. - case ${MACOSX_DEPLOYMENT_TARGET} in
  6061. - 10.[[012]])
  6062. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6063. - ;;
  6064. - 10.*)
  6065. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  6066. - ;;
  6067. - esac
  6068. - fi
  6069. - ;;
  6070. - esac
  6071. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6072. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6073. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  6074. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6075. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  6076. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6077. - if test "$GCC" = yes ; then
  6078. - output_verbose_link_cmd='echo'
  6079. - _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}"
  6080. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  6081. - _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}"
  6082. - _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}"
  6083. - else
  6084. - case $cc_basename in
  6085. - xlc*)
  6086. - output_verbose_link_cmd='echo'
  6087. - _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'
  6088. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6089. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6090. - _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}'
  6091. - _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}'
  6092. - ;;
  6093. - *)
  6094. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6095. - ;;
  6096. - esac
  6097. - fi
  6098. - ;;
  6099. -
  6100. - dgux*)
  6101. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6102. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6103. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6104. - ;;
  6105. -
  6106. - freebsd1*)
  6107. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6108. - ;;
  6109. -
  6110. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6111. - # support. Future versions do this automatically, but an explicit c++rt0.o
  6112. - # does not break anything, and helps significantly (at the cost of a little
  6113. - # extra space).
  6114. - freebsd2.2*)
  6115. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6116. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6117. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6118. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6119. - ;;
  6120. -
  6121. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6122. - freebsd2*)
  6123. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6124. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6125. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6126. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6127. - ;;
  6128. -
  6129. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6130. - freebsd* | dragonfly*)
  6131. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6132. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6133. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6134. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6135. - ;;
  6136. -
  6137. - hpux9*)
  6138. - if test "$GCC" = yes; then
  6139. - _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'
  6140. - else
  6141. - _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'
  6142. - fi
  6143. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6144. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6145. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6146. -
  6147. - # hardcode_minus_L: Not really in the search PATH,
  6148. - # but as the default location of the library.
  6149. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6150. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6151. - ;;
  6152. -
  6153. - hpux10*)
  6154. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6155. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6156. - else
  6157. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6158. - fi
  6159. - if test "$with_gnu_ld" = no; then
  6160. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6161. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6162. -
  6163. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6164. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6165. -
  6166. - # hardcode_minus_L: Not really in the search PATH,
  6167. - # but as the default location of the library.
  6168. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6169. - fi
  6170. - ;;
  6171. -
  6172. - hpux11*)
  6173. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6174. - case $host_cpu in
  6175. - hppa*64*)
  6176. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6177. - ;;
  6178. - ia64*)
  6179. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6180. - ;;
  6181. - *)
  6182. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6183. - ;;
  6184. - esac
  6185. - else
  6186. - case $host_cpu in
  6187. - hppa*64*)
  6188. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6189. - ;;
  6190. - ia64*)
  6191. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6192. - ;;
  6193. - *)
  6194. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6195. - ;;
  6196. - esac
  6197. - fi
  6198. - if test "$with_gnu_ld" = no; then
  6199. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6200. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6201. -
  6202. - case $host_cpu in
  6203. - hppa*64*|ia64*)
  6204. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6205. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6206. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6207. - ;;
  6208. - *)
  6209. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6210. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6211. -
  6212. - # hardcode_minus_L: Not really in the search PATH,
  6213. - # but as the default location of the library.
  6214. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6215. - ;;
  6216. - esac
  6217. - fi
  6218. - ;;
  6219. -
  6220. - irix5* | irix6* | nonstopux*)
  6221. - if test "$GCC" = yes; then
  6222. - _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'
  6223. - else
  6224. - _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'
  6225. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  6226. - fi
  6227. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6228. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6229. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6230. - ;;
  6231. -
  6232. - netbsd*)
  6233. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6234. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6235. - else
  6236. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6237. - fi
  6238. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6239. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6240. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6241. - ;;
  6242. -
  6243. - newsos6)
  6244. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6245. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6246. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6247. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6248. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6249. - ;;
  6250. -
  6251. - openbsd*)
  6252. - if test -f /usr/libexec/ld.so; then
  6253. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6254. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6255. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6256. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6257. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6258. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6259. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6260. - else
  6261. - case $host_os in
  6262. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6263. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6264. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6265. - ;;
  6266. - *)
  6267. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6268. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6269. - ;;
  6270. - esac
  6271. - fi
  6272. - else
  6273. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6274. - fi
  6275. - ;;
  6276. -
  6277. - os2*)
  6278. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6279. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6280. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6281. - _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'
  6282. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6283. - ;;
  6284. -
  6285. - osf3*)
  6286. - if test "$GCC" = yes; then
  6287. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6288. - _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'
  6289. - else
  6290. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6291. - _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'
  6292. - fi
  6293. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6294. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6295. - ;;
  6296. -
  6297. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  6298. - if test "$GCC" = yes; then
  6299. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6300. - _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'
  6301. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6302. - else
  6303. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6304. - _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'
  6305. - _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~
  6306. - $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'
  6307. -
  6308. - # Both c and cxx compiler support -rpath directly
  6309. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6310. - fi
  6311. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6312. - ;;
  6313. -
  6314. - solaris*)
  6315. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  6316. - if test "$GCC" = yes; then
  6317. - wlarc='${wl}'
  6318. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6319. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6320. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6321. - else
  6322. - wlarc=''
  6323. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6324. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6325. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6326. - fi
  6327. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6328. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6329. - case $host_os in
  6330. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6331. - *)
  6332. - # The compiler driver will combine and reorder linker options,
  6333. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  6334. - # but is careful enough not to reorder.
  6335. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6336. - if test "$GCC" = yes; then
  6337. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6338. - else
  6339. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6340. - fi
  6341. - ;;
  6342. - esac
  6343. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6344. - ;;
  6345. -
  6346. - sunos4*)
  6347. - if test "x$host_vendor" = xsequent; then
  6348. - # Use $CC to link under sequent, because it throws in some extra .o
  6349. - # files that make .init and .fini sections work.
  6350. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6351. - else
  6352. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6353. - fi
  6354. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6355. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6356. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6357. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6358. - ;;
  6359. -
  6360. - sysv4)
  6361. - case $host_vendor in
  6362. - sni)
  6363. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6364. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6365. - ;;
  6366. - siemens)
  6367. - ## LD is ld it makes a PLAMLIB
  6368. - ## CC just makes a GrossModule.
  6369. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6370. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6371. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6372. - ;;
  6373. - motorola)
  6374. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6375. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6376. - ;;
  6377. - esac
  6378. - runpath_var='LD_RUN_PATH'
  6379. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6380. - ;;
  6381. -
  6382. - sysv4.3*)
  6383. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6384. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6385. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6386. - ;;
  6387. -
  6388. - sysv4*MP*)
  6389. - if test -d /usr/nec; then
  6390. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6391. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6392. - runpath_var=LD_RUN_PATH
  6393. - hardcode_runpath_var=yes
  6394. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  6395. - fi
  6396. - ;;
  6397. -
  6398. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6399. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6400. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6401. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6402. - runpath_var='LD_RUN_PATH'
  6403. -
  6404. - if test "$GCC" = yes; then
  6405. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6406. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6407. - else
  6408. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6409. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6410. - fi
  6411. - ;;
  6412. -
  6413. - sysv5* | sco3.2v5* | sco5v6*)
  6414. - # Note: We can NOT use -z defs as we might desire, because we do not
  6415. - # link with -lc, and that would cause any symbols used from libc to
  6416. - # always be unresolved, which means just about no library would
  6417. - # ever link correctly. If we're not using GNU ld we use -z text
  6418. - # though, which does catch some bad symbols but isn't as heavy-handed
  6419. - # as -z defs.
  6420. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6421. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6422. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6423. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6424. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6425. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6426. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6427. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6428. - runpath_var='LD_RUN_PATH'
  6429. -
  6430. - if test "$GCC" = yes; then
  6431. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6432. - _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'
  6433. - else
  6434. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6435. - _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'
  6436. - fi
  6437. - ;;
  6438. -
  6439. - uts4*)
  6440. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6441. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6442. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6443. - ;;
  6444. -
  6445. - *)
  6446. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6447. - ;;
  6448. - esac
  6449. - fi
  6450. -])
  6451. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6452. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6453. -
  6454. -#
  6455. -# Do we need to explicitly link libc?
  6456. -#
  6457. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  6458. -x|xyes)
  6459. - # Assume -lc should be added
  6460. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6461. -
  6462. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  6463. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  6464. - *'~'*)
  6465. - # FIXME: we may have to deal with multi-command sequences.
  6466. - ;;
  6467. - '$CC '*)
  6468. - # Test whether the compiler implicitly links with -lc since on some
  6469. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6470. - # to ld, don't add -lc before -lgcc.
  6471. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6472. - $rm conftest*
  6473. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6474. -
  6475. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6476. - soname=conftest
  6477. - lib=conftest
  6478. - libobjs=conftest.$ac_objext
  6479. - deplibs=
  6480. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6481. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6482. - compiler_flags=-v
  6483. - linker_flags=-v
  6484. - verstring=
  6485. - output_objdir=.
  6486. - libname=conftest
  6487. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6488. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6489. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  6490. - then
  6491. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6492. - else
  6493. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6494. - fi
  6495. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6496. - else
  6497. - cat conftest.err 1>&5
  6498. - fi
  6499. - $rm conftest*
  6500. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  6501. - ;;
  6502. - esac
  6503. - fi
  6504. - ;;
  6505. -esac
  6506. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  6507. -
  6508. -
  6509. -# _LT_AC_FILE_LTDLL_C
  6510. -# -------------------
  6511. -# Be careful that the start marker always follows a newline.
  6512. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  6513. -# /* ltdll.c starts here */
  6514. -# #define WIN32_LEAN_AND_MEAN
  6515. -# #include <windows.h>
  6516. -# #undef WIN32_LEAN_AND_MEAN
  6517. -# #include <stdio.h>
  6518. -#
  6519. -# #ifndef __CYGWIN__
  6520. -# # ifdef __CYGWIN32__
  6521. -# # define __CYGWIN__ __CYGWIN32__
  6522. -# # endif
  6523. -# #endif
  6524. -#
  6525. -# #ifdef __cplusplus
  6526. -# extern "C" {
  6527. -# #endif
  6528. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  6529. -# #ifdef __cplusplus
  6530. -# }
  6531. -# #endif
  6532. -#
  6533. -# #ifdef __CYGWIN__
  6534. -# #include <cygwin/cygwin_dll.h>
  6535. -# DECLARE_CYGWIN_DLL( DllMain );
  6536. -# #endif
  6537. -# HINSTANCE __hDllInstance_base;
  6538. -#
  6539. -# BOOL APIENTRY
  6540. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  6541. -# {
  6542. -# __hDllInstance_base = hInst;
  6543. -# return TRUE;
  6544. -# }
  6545. -# /* ltdll.c ends here */
  6546. -])# _LT_AC_FILE_LTDLL_C
  6547. -
  6548. -
  6549. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  6550. -# ---------------------------------
  6551. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  6552. -
  6553. -
  6554. -# old names
  6555. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  6556. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  6557. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  6558. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  6559. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  6560. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  6561. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  6562. -
  6563. -# This is just to silence aclocal about the macro not being used
  6564. -ifelse([AC_DISABLE_FAST_INSTALL])
  6565. -
  6566. -AC_DEFUN([LT_AC_PROG_GCJ],
  6567. -[AC_CHECK_TOOL(GCJ, gcj, no)
  6568. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6569. - AC_SUBST(GCJFLAGS)
  6570. -])
  6571. -
  6572. -AC_DEFUN([LT_AC_PROG_RC],
  6573. -[AC_CHECK_TOOL(RC, windres, no)
  6574. -])
  6575. -
  6576. -
  6577. -# Cheap backport of AS_EXECUTABLE_P and required macros
  6578. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  6579. -
  6580. -# _AS_TEST_PREPARE
  6581. -# ----------------
  6582. -m4_ifndef([_AS_TEST_PREPARE],
  6583. -[m4_defun([_AS_TEST_PREPARE],
  6584. -[if test -x / >/dev/null 2>&1; then
  6585. - as_executable_p='test -x'
  6586. -else
  6587. - as_executable_p='test -f'
  6588. -fi
  6589. -])])# _AS_TEST_PREPARE
  6590. -
  6591. -# AS_EXECUTABLE_P
  6592. -# ---------------
  6593. -# Check whether a file is executable.
  6594. -m4_ifndef([AS_EXECUTABLE_P],
  6595. -[m4_defun([AS_EXECUTABLE_P],
  6596. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  6597. -$as_executable_p $1[]dnl
  6598. -])])# AS_EXECUTABLE_P
  6599. -
  6600. -# NOTE: This macro has been submitted for inclusion into #
  6601. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  6602. -# a released version of Autoconf we should remove this #
  6603. -# macro and use it instead. #
  6604. -# LT_AC_PROG_SED
  6605. -# --------------
  6606. -# Check for a fully-functional sed program, that truncates
  6607. -# as few characters as possible. Prefer GNU sed if found.
  6608. -AC_DEFUN([LT_AC_PROG_SED],
  6609. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  6610. -AC_CACHE_VAL(lt_cv_path_SED,
  6611. -[# Loop through the user's path and test for sed and gsed.
  6612. -# Then use that list of sed's as ones to test for truncation.
  6613. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6614. -for as_dir in $PATH
  6615. -do
  6616. - IFS=$as_save_IFS
  6617. - test -z "$as_dir" && as_dir=.
  6618. - for lt_ac_prog in sed gsed; do
  6619. - for ac_exec_ext in '' $ac_executable_extensions; do
  6620. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  6621. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6622. - fi
  6623. - done
  6624. - done
  6625. -done
  6626. -IFS=$as_save_IFS
  6627. -lt_ac_max=0
  6628. -lt_ac_count=0
  6629. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6630. -# along with /bin/sed that truncates output.
  6631. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6632. - test ! -f $lt_ac_sed && continue
  6633. - cat /dev/null > conftest.in
  6634. - lt_ac_count=0
  6635. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6636. - # Check for GNU sed and select it if it is found.
  6637. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6638. - lt_cv_path_SED=$lt_ac_sed
  6639. - break
  6640. - fi
  6641. - while true; do
  6642. - cat conftest.in conftest.in >conftest.tmp
  6643. - mv conftest.tmp conftest.in
  6644. - cp conftest.in conftest.nl
  6645. - echo >>conftest.nl
  6646. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6647. - cmp -s conftest.out conftest.nl || break
  6648. - # 10000 chars as input seems more than enough
  6649. - test $lt_ac_count -gt 10 && break
  6650. - lt_ac_count=`expr $lt_ac_count + 1`
  6651. - if test $lt_ac_count -gt $lt_ac_max; then
  6652. - lt_ac_max=$lt_ac_count
  6653. - lt_cv_path_SED=$lt_ac_sed
  6654. - fi
  6655. - done
  6656. -done
  6657. -])
  6658. -SED=$lt_cv_path_SED
  6659. -AC_SUBST([SED])
  6660. -AC_MSG_RESULT([$SED])
  6661. -])
  6662. -
  6663. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  6664. #
  6665. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  6666. @@ -6723,14 +87,16 @@
  6667. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  6668. # ---------------------------------------------
  6669. m4_define([_PKG_CONFIG],
  6670. -[if test -n "$$1"; then
  6671. - pkg_cv_[]$1="$$1"
  6672. - elif test -n "$PKG_CONFIG"; then
  6673. - PKG_CHECK_EXISTS([$3],
  6674. - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  6675. - [pkg_failed=yes])
  6676. - else
  6677. - pkg_failed=untried
  6678. +[if test -n "$PKG_CONFIG"; then
  6679. + if test -n "$$1"; then
  6680. + pkg_cv_[]$1="$$1"
  6681. + else
  6682. + PKG_CHECK_EXISTS([$3],
  6683. + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  6684. + [pkg_failed=yes])
  6685. + fi
  6686. +else
  6687. + pkg_failed=untried
  6688. fi[]dnl
  6689. ])# _PKG_CONFIG
  6690. @@ -6774,9 +140,9 @@
  6691. if test $pkg_failed = yes; then
  6692. _PKG_SHORT_ERRORS_SUPPORTED
  6693. if test $_pkg_short_errors_supported = yes; then
  6694. - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  6695. + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  6696. else
  6697. - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  6698. + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  6699. fi
  6700. # Put the nasty error message in config.log where it belongs
  6701. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  6702. @@ -6811,7 +177,7 @@
  6703. fi[]dnl
  6704. ])# PKG_CHECK_MODULES
  6705. -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
  6706. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  6707. #
  6708. # This file is free software; the Free Software Foundation
  6709. # gives unlimited permission to copy and/or distribute it,
  6710. @@ -6823,10 +189,10 @@
  6711. # generated from the m4 files accompanying Automake X.Y.
  6712. # (This private macro should not be called outside this file.)
  6713. AC_DEFUN([AM_AUTOMAKE_VERSION],
  6714. -[am__api_version='1.10'
  6715. +[am__api_version='1.11'
  6716. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  6717. dnl require some minimum version. Point them to the right macro.
  6718. -m4_if([$1], [1.10.1], [],
  6719. +m4_if([$1], [1.11.1], [],
  6720. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  6721. ])
  6722. @@ -6840,12 +206,12 @@
  6723. # AM_SET_CURRENT_AUTOMAKE_VERSION
  6724. # -------------------------------
  6725. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  6726. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  6727. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  6728. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  6729. -[AM_AUTOMAKE_VERSION([1.10.1])dnl
  6730. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  6731. m4_ifndef([AC_AUTOCONF_VERSION],
  6732. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  6733. -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  6734. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  6735. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  6736. @@ -6902,14 +268,14 @@
  6737. # AM_CONDITIONAL -*- Autoconf -*-
  6738. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  6739. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  6740. # Free Software Foundation, Inc.
  6741. #
  6742. # This file is free software; the Free Software Foundation
  6743. # gives unlimited permission to copy and/or distribute it,
  6744. # with or without modifications, as long as this notice is preserved.
  6745. -# serial 8
  6746. +# serial 9
  6747. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  6748. # -------------------------------------
  6749. @@ -6922,6 +288,7 @@
  6750. AC_SUBST([$1_FALSE])dnl
  6751. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  6752. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  6753. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  6754. if $2; then
  6755. $1_TRUE=
  6756. $1_FALSE='#'
  6757. @@ -6935,14 +302,14 @@
  6758. Usually this means the macro was only invoked conditionally.]])
  6759. fi])])
  6760. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  6761. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  6762. # Free Software Foundation, Inc.
  6763. #
  6764. # This file is free software; the Free Software Foundation
  6765. # gives unlimited permission to copy and/or distribute it,
  6766. # with or without modifications, as long as this notice is preserved.
  6767. -# serial 9
  6768. +# serial 10
  6769. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  6770. # written in clear, in which case automake, when reading aclocal.m4,
  6771. @@ -6999,6 +366,16 @@
  6772. if test "$am_compiler_list" = ""; then
  6773. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  6774. fi
  6775. + am__universal=false
  6776. + m4_case([$1], [CC],
  6777. + [case " $depcc " in #(
  6778. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6779. + esac],
  6780. + [CXX],
  6781. + [case " $depcc " in #(
  6782. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6783. + esac])
  6784. +
  6785. for depmode in $am_compiler_list; do
  6786. # Setup a source with many dependencies, because some compilers
  6787. # like to wrap large dependency lists on column 80 (with \), and
  6788. @@ -7016,7 +393,17 @@
  6789. done
  6790. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6791. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6792. + # mode. It turns out that the SunPro C++ compiler does not properly
  6793. + # handle `-M -o', and we need to detect this. Also, some Intel
  6794. + # versions had trouble with output in subdirs
  6795. + am__obj=sub/conftest.${OBJEXT-o}
  6796. + am__minus_obj="-o $am__obj"
  6797. case $depmode in
  6798. + gcc)
  6799. + # This depmode causes a compiler race in universal mode.
  6800. + test "$am__universal" = false || continue
  6801. + ;;
  6802. nosideeffect)
  6803. # after this tag, mechanisms are not by side-effect, so they'll
  6804. # only be used when explicitly requested
  6805. @@ -7026,19 +413,23 @@
  6806. break
  6807. fi
  6808. ;;
  6809. + msvisualcpp | msvcmsys)
  6810. + # This compiler won't grok `-c -o', but also, the minuso test has
  6811. + # not run yet. These depmodes are late enough in the game, and
  6812. + # so weak that their functioning should not be impacted.
  6813. + am__obj=conftest.${OBJEXT-o}
  6814. + am__minus_obj=
  6815. + ;;
  6816. none) break ;;
  6817. esac
  6818. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6819. - # mode. It turns out that the SunPro C++ compiler does not properly
  6820. - # handle `-M -o', and we need to detect this.
  6821. if depmode=$depmode \
  6822. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6823. + source=sub/conftest.c object=$am__obj \
  6824. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6825. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6826. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6827. >/dev/null 2>conftest.err &&
  6828. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6829. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6830. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6831. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6832. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6833. # icc doesn't choke on unknown options, it will just issue warnings
  6834. # or remarks (even with -Werror). So we grep stderr for any message
  6835. @@ -7095,57 +486,68 @@
  6836. # Generate code to set up dependency tracking. -*- Autoconf -*-
  6837. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  6838. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  6839. # Free Software Foundation, Inc.
  6840. #
  6841. # This file is free software; the Free Software Foundation
  6842. # gives unlimited permission to copy and/or distribute it,
  6843. # with or without modifications, as long as this notice is preserved.
  6844. -#serial 3
  6845. +#serial 5
  6846. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  6847. # ------------------------------
  6848. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  6849. -[for mf in $CONFIG_FILES; do
  6850. - # Strip MF so we end up with the name of the file.
  6851. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  6852. - # Check whether this is an Automake generated Makefile or not.
  6853. - # We used to match only the files named `Makefile.in', but
  6854. - # some people rename them; so instead we look at the file content.
  6855. - # Grep'ing the first line is not enough: some people post-process
  6856. - # each Makefile.in and add a new line on top of each file to say so.
  6857. - # Grep'ing the whole file is not good either: AIX grep has a line
  6858. - # limit of 2048, but all sed's we know have understand at least 4000.
  6859. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  6860. - dirpart=`AS_DIRNAME("$mf")`
  6861. - else
  6862. - continue
  6863. - fi
  6864. - # Extract the definition of DEPDIR, am__include, and am__quote
  6865. - # from the Makefile without running `make'.
  6866. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6867. - test -z "$DEPDIR" && continue
  6868. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6869. - test -z "am__include" && continue
  6870. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6871. - # When using ansi2knr, U may be empty or an underscore; expand it
  6872. - U=`sed -n 's/^U = //p' < "$mf"`
  6873. - # Find all dependency output files, they are included files with
  6874. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  6875. - # simplest approach to changing $(DEPDIR) to its actual value in the
  6876. - # expansion.
  6877. - for file in `sed -n "
  6878. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6879. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6880. - # Make sure the directory exists.
  6881. - test -f "$dirpart/$file" && continue
  6882. - fdir=`AS_DIRNAME(["$file"])`
  6883. - AS_MKDIR_P([$dirpart/$fdir])
  6884. - # echo "creating $dirpart/$file"
  6885. - echo '# dummy' > "$dirpart/$file"
  6886. +[{
  6887. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  6888. + # are listed without --file. Let's play safe and only enable the eval
  6889. + # if we detect the quoting.
  6890. + case $CONFIG_FILES in
  6891. + *\'*) eval set x "$CONFIG_FILES" ;;
  6892. + *) set x $CONFIG_FILES ;;
  6893. + esac
  6894. + shift
  6895. + for mf
  6896. + do
  6897. + # Strip MF so we end up with the name of the file.
  6898. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  6899. + # Check whether this is an Automake generated Makefile or not.
  6900. + # We used to match only the files named `Makefile.in', but
  6901. + # some people rename them; so instead we look at the file content.
  6902. + # Grep'ing the first line is not enough: some people post-process
  6903. + # each Makefile.in and add a new line on top of each file to say so.
  6904. + # Grep'ing the whole file is not good either: AIX grep has a line
  6905. + # limit of 2048, but all sed's we know have understand at least 4000.
  6906. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  6907. + dirpart=`AS_DIRNAME("$mf")`
  6908. + else
  6909. + continue
  6910. + fi
  6911. + # Extract the definition of DEPDIR, am__include, and am__quote
  6912. + # from the Makefile without running `make'.
  6913. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6914. + test -z "$DEPDIR" && continue
  6915. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6916. + test -z "am__include" && continue
  6917. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6918. + # When using ansi2knr, U may be empty or an underscore; expand it
  6919. + U=`sed -n 's/^U = //p' < "$mf"`
  6920. + # Find all dependency output files, they are included files with
  6921. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  6922. + # simplest approach to changing $(DEPDIR) to its actual value in the
  6923. + # expansion.
  6924. + for file in `sed -n "
  6925. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6926. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6927. + # Make sure the directory exists.
  6928. + test -f "$dirpart/$file" && continue
  6929. + fdir=`AS_DIRNAME(["$file"])`
  6930. + AS_MKDIR_P([$dirpart/$fdir])
  6931. + # echo "creating $dirpart/$file"
  6932. + echo '# dummy' > "$dirpart/$file"
  6933. + done
  6934. done
  6935. -done
  6936. +}
  6937. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  6938. @@ -7177,13 +579,13 @@
  6939. # Do all the work for Automake. -*- Autoconf -*-
  6940. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  6941. -# 2005, 2006, 2008 Free Software Foundation, Inc.
  6942. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  6943. #
  6944. # This file is free software; the Free Software Foundation
  6945. # gives unlimited permission to copy and/or distribute it,
  6946. # with or without modifications, as long as this notice is preserved.
  6947. -# serial 13
  6948. +# serial 16
  6949. # This macro actually does too much. Some checks are only needed if
  6950. # your package does certain things. But this isn't really a big deal.
  6951. @@ -7200,7 +602,7 @@
  6952. # arguments mandatory, and then we can depend on a new Autoconf
  6953. # release and drop the old call support.
  6954. AC_DEFUN([AM_INIT_AUTOMAKE],
  6955. -[AC_PREREQ([2.60])dnl
  6956. +[AC_PREREQ([2.62])dnl
  6957. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  6958. dnl the ones we care about.
  6959. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  6960. @@ -7251,8 +653,8 @@
  6961. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  6962. AM_MISSING_PROG(AUTOHEADER, autoheader)
  6963. AM_MISSING_PROG(MAKEINFO, makeinfo)
  6964. -AM_PROG_INSTALL_SH
  6965. -AM_PROG_INSTALL_STRIP
  6966. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  6967. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  6968. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  6969. # We need awk for the "check" target. The system "awk" is bad on
  6970. # some platforms.
  6971. @@ -7260,23 +662,36 @@
  6972. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  6973. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  6974. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  6975. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6976. - [_AM_PROG_TAR([v7])])])
  6977. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6978. + [_AM_PROG_TAR([v7])])])
  6979. _AM_IF_OPTION([no-dependencies],,
  6980. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  6981. - [_AM_DEPENDENCIES(CC)],
  6982. - [define([AC_PROG_CC],
  6983. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6984. + [_AM_DEPENDENCIES(CC)],
  6985. + [define([AC_PROG_CC],
  6986. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6987. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  6988. - [_AM_DEPENDENCIES(CXX)],
  6989. - [define([AC_PROG_CXX],
  6990. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6991. + [_AM_DEPENDENCIES(CXX)],
  6992. + [define([AC_PROG_CXX],
  6993. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6994. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  6995. - [_AM_DEPENDENCIES(OBJC)],
  6996. - [define([AC_PROG_OBJC],
  6997. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  6998. -])
  6999. -])
  7000. + [_AM_DEPENDENCIES(OBJC)],
  7001. + [define([AC_PROG_OBJC],
  7002. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  7003. +])
  7004. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  7005. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  7006. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  7007. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  7008. +AC_CONFIG_COMMANDS_PRE(dnl
  7009. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  7010. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  7011. +])
  7012. +
  7013. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  7014. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  7015. +dnl mangled by Autoconf and run in a shell conditional statement.
  7016. +m4_define([_AC_COMPILER_EXEEXT],
  7017. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  7018. # When config.status generates a header, we must update the stamp-h file.
  7019. @@ -7300,7 +715,7 @@
  7020. done
  7021. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  7022. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7023. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  7024. #
  7025. # This file is free software; the Free Software Foundation
  7026. # gives unlimited permission to copy and/or distribute it,
  7027. @@ -7311,7 +726,14 @@
  7028. # Define $install_sh.
  7029. AC_DEFUN([AM_PROG_INSTALL_SH],
  7030. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  7031. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  7032. +if test x"${install_sh}" != xset; then
  7033. + case $am_aux_dir in
  7034. + *\ * | *\ *)
  7035. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  7036. + *)
  7037. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  7038. + esac
  7039. +fi
  7040. AC_SUBST(install_sh)])
  7041. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  7042. @@ -7338,27 +760,38 @@
  7043. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  7044. # From Jim Meyering
  7045. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  7046. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  7047. # Free Software Foundation, Inc.
  7048. #
  7049. # This file is free software; the Free Software Foundation
  7050. # gives unlimited permission to copy and/or distribute it,
  7051. # with or without modifications, as long as this notice is preserved.
  7052. -# serial 4
  7053. +# serial 5
  7054. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  7055. +# ----------------------------------
  7056. +# Control maintainer-specific portions of Makefiles.
  7057. +# Default is to disable them, unless `enable' is passed literally.
  7058. +# For symmetry, `disable' may be passed as well. Anyway, the user
  7059. +# can override the default with the --enable/--disable switch.
  7060. AC_DEFUN([AM_MAINTAINER_MODE],
  7061. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  7062. - dnl maintainer-mode is disabled by default
  7063. - AC_ARG_ENABLE(maintainer-mode,
  7064. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  7065. +[m4_case(m4_default([$1], [disable]),
  7066. + [enable], [m4_define([am_maintainer_other], [disable])],
  7067. + [disable], [m4_define([am_maintainer_other], [enable])],
  7068. + [m4_define([am_maintainer_other], [enable])
  7069. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  7070. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  7071. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  7072. + AC_ARG_ENABLE([maintainer-mode],
  7073. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  7074. (and sometimes confusing) to the casual installer],
  7075. - USE_MAINTAINER_MODE=$enableval,
  7076. - USE_MAINTAINER_MODE=no)
  7077. + [USE_MAINTAINER_MODE=$enableval],
  7078. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  7079. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  7080. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  7081. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  7082. MAINT=$MAINTAINER_MODE_TRUE
  7083. - AC_SUBST(MAINT)dnl
  7084. + AC_SUBST([MAINT])dnl
  7085. ]
  7086. )
  7087. @@ -7366,13 +799,13 @@
  7088. # Check to see how 'make' treats includes. -*- Autoconf -*-
  7089. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  7090. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  7091. #
  7092. # This file is free software; the Free Software Foundation
  7093. # gives unlimited permission to copy and/or distribute it,
  7094. # with or without modifications, as long as this notice is preserved.
  7095. -# serial 3
  7096. +# serial 4
  7097. # AM_MAKE_INCLUDE()
  7098. # -----------------
  7099. @@ -7381,7 +814,7 @@
  7100. [am_make=${MAKE-make}
  7101. cat > confinc << 'END'
  7102. am__doit:
  7103. - @echo done
  7104. + @echo this is the am__doit target
  7105. .PHONY: am__doit
  7106. END
  7107. # If we don't find an include directive, just comment out the code.
  7108. @@ -7391,24 +824,24 @@
  7109. _am_result=none
  7110. # First try GNU make style include.
  7111. echo "include confinc" > confmf
  7112. -# We grep out `Entering directory' and `Leaving directory'
  7113. -# messages which can occur if `w' ends up in MAKEFLAGS.
  7114. -# In particular we don't look at `^make:' because GNU make might
  7115. -# be invoked under some other name (usually "gmake"), in which
  7116. -# case it prints its new name instead of `make'.
  7117. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  7118. - am__include=include
  7119. - am__quote=
  7120. - _am_result=GNU
  7121. -fi
  7122. +# Ignore all kinds of additional output from `make'.
  7123. +case `$am_make -s -f confmf 2> /dev/null` in #(
  7124. +*the\ am__doit\ target*)
  7125. + am__include=include
  7126. + am__quote=
  7127. + _am_result=GNU
  7128. + ;;
  7129. +esac
  7130. # Now try BSD make style include.
  7131. if test "$am__include" = "#"; then
  7132. echo '.include "confinc"' > confmf
  7133. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  7134. - am__include=.include
  7135. - am__quote="\""
  7136. - _am_result=BSD
  7137. - fi
  7138. + case `$am_make -s -f confmf 2> /dev/null` in #(
  7139. + *the\ am__doit\ target*)
  7140. + am__include=.include
  7141. + am__quote="\""
  7142. + _am_result=BSD
  7143. + ;;
  7144. + esac
  7145. fi
  7146. AC_SUBST([am__include])
  7147. AC_SUBST([am__quote])
  7148. @@ -7418,14 +851,14 @@
  7149. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  7150. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  7151. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  7152. # Free Software Foundation, Inc.
  7153. #
  7154. # This file is free software; the Free Software Foundation
  7155. # gives unlimited permission to copy and/or distribute it,
  7156. # with or without modifications, as long as this notice is preserved.
  7157. -# serial 5
  7158. +# serial 6
  7159. # AM_MISSING_PROG(NAME, PROGRAM)
  7160. # ------------------------------
  7161. @@ -7442,7 +875,14 @@
  7162. AC_DEFUN([AM_MISSING_HAS_RUN],
  7163. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  7164. AC_REQUIRE_AUX_FILE([missing])dnl
  7165. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  7166. +if test x"${MISSING+set}" != xset; then
  7167. + case $am_aux_dir in
  7168. + *\ * | *\ *)
  7169. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  7170. + *)
  7171. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  7172. + esac
  7173. +fi
  7174. # Use eval to expand $SHELL
  7175. if eval "$MISSING --run true"; then
  7176. am_missing_run="$MISSING --run "
  7177. @@ -7480,13 +920,13 @@
  7178. # Helper functions for option handling. -*- Autoconf -*-
  7179. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  7180. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  7181. #
  7182. # This file is free software; the Free Software Foundation
  7183. # gives unlimited permission to copy and/or distribute it,
  7184. # with or without modifications, as long as this notice is preserved.
  7185. -# serial 3
  7186. +# serial 4
  7187. # _AM_MANGLE_OPTION(NAME)
  7188. # -----------------------
  7189. @@ -7503,7 +943,7 @@
  7190. # ----------------------------------
  7191. # OPTIONS is a space-separated list of Automake options.
  7192. AC_DEFUN([_AM_SET_OPTIONS],
  7193. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  7194. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  7195. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  7196. # -------------------------------------------
  7197. @@ -7513,14 +953,14 @@
  7198. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  7199. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  7200. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  7201. # Free Software Foundation, Inc.
  7202. #
  7203. # This file is free software; the Free Software Foundation
  7204. # gives unlimited permission to copy and/or distribute it,
  7205. # with or without modifications, as long as this notice is preserved.
  7206. -# serial 4
  7207. +# serial 5
  7208. # AM_SANITY_CHECK
  7209. # ---------------
  7210. @@ -7529,16 +969,29 @@
  7211. # Just in case
  7212. sleep 1
  7213. echo timestamp > conftest.file
  7214. +# Reject unsafe characters in $srcdir or the absolute working directory
  7215. +# name. Accept space and tab only in the latter.
  7216. +am_lf='
  7217. +'
  7218. +case `pwd` in
  7219. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  7220. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  7221. +esac
  7222. +case $srcdir in
  7223. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  7224. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  7225. +esac
  7226. +
  7227. # Do `set' in a subshell so we don't clobber the current shell's
  7228. # arguments. Must try -L first in case configure is actually a
  7229. # symlink; some systems play weird games with the mod time of symlinks
  7230. # (eg FreeBSD returns the mod time of the symlink's containing
  7231. # directory).
  7232. if (
  7233. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  7234. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  7235. if test "$[*]" = "X"; then
  7236. # -L didn't work.
  7237. - set X `ls -t $srcdir/configure conftest.file`
  7238. + set X `ls -t "$srcdir/configure" conftest.file`
  7239. fi
  7240. rm -f conftest.file
  7241. if test "$[*]" != "X $srcdir/configure conftest.file" \
  7242. @@ -7591,18 +1044,25 @@
  7243. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  7244. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  7245. -# Copyright (C) 2006 Free Software Foundation, Inc.
  7246. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  7247. #
  7248. # This file is free software; the Free Software Foundation
  7249. # gives unlimited permission to copy and/or distribute it,
  7250. # with or without modifications, as long as this notice is preserved.
  7251. +# serial 2
  7252. +
  7253. # _AM_SUBST_NOTMAKE(VARIABLE)
  7254. # ---------------------------
  7255. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  7256. # This macro is traced by Automake.
  7257. AC_DEFUN([_AM_SUBST_NOTMAKE])
  7258. +# AM_SUBST_NOTMAKE(VARIABLE)
  7259. +# ---------------------------
  7260. +# Public sister of _AM_SUBST_NOTMAKE.
  7261. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  7262. +
  7263. # Check how to create a tarball. -*- Autoconf -*-
  7264. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  7265. @@ -7701,3 +1161,8 @@
  7266. m4_include([m4/as-arts.m4])
  7267. m4_include([m4/as-compiler-flag.m4])
  7268. +m4_include([m4/libtool.m4])
  7269. +m4_include([m4/ltoptions.m4])
  7270. +m4_include([m4/ltsugar.m4])
  7271. +m4_include([m4/ltversion.m4])
  7272. +m4_include([m4/lt~obsolete.m4])
  7273. diff -Nur esound-0.2.41.orig/config.guess esound-0.2.41/config.guess
  7274. --- esound-0.2.41.orig/config.guess 2008-11-18 21:54:41.000000000 +0100
  7275. +++ esound-0.2.41/config.guess 2011-02-24 20:05:03.923552829 +0100
  7276. @@ -1,10 +1,10 @@
  7277. #! /bin/sh
  7278. # Attempt to guess a canonical system name.
  7279. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  7280. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  7281. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  7282. # Free Software Foundation, Inc.
  7283. -timestamp='2008-01-08'
  7284. +timestamp='2009-06-10'
  7285. # This file is free software; you can redistribute it and/or modify it
  7286. # under the terms of the GNU General Public License as published by
  7287. @@ -139,16 +139,6 @@
  7288. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  7289. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  7290. -case "${UNAME_MACHINE}" in
  7291. - i?86)
  7292. - test -z "$VENDOR" && VENDOR=pc
  7293. - ;;
  7294. - *)
  7295. - test -z "$VENDOR" && VENDOR=unknown
  7296. - ;;
  7297. -esac
  7298. -test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
  7299. -
  7300. # Note: order is significant - the case branches are not exclusive.
  7301. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  7302. @@ -180,7 +170,7 @@
  7303. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  7304. eval $set_cc_for_build
  7305. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  7306. - | grep __ELF__ >/dev/null
  7307. + | grep -q __ELF__
  7308. then
  7309. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  7310. # Return netbsd for either. FIX?
  7311. @@ -334,6 +324,9 @@
  7312. case `/usr/bin/uname -p` in
  7313. sparc) echo sparc-icl-nx7; exit ;;
  7314. esac ;;
  7315. + s390x:SunOS:*:*)
  7316. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  7317. + exit ;;
  7318. sun4H:SunOS:5.*:*)
  7319. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  7320. exit ;;
  7321. @@ -341,7 +334,20 @@
  7322. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  7323. exit ;;
  7324. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  7325. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  7326. + eval $set_cc_for_build
  7327. + SUN_ARCH="i386"
  7328. + # If there is a compiler, see if it is configured for 64-bit objects.
  7329. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  7330. + # This test works for both compilers.
  7331. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  7332. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  7333. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  7334. + grep IS_64BIT_ARCH >/dev/null
  7335. + then
  7336. + SUN_ARCH="x86_64"
  7337. + fi
  7338. + fi
  7339. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  7340. exit ;;
  7341. sun4*:SunOS:6*:*)
  7342. # According to config.sub, this is the proper way to canonicalize
  7343. @@ -650,7 +656,7 @@
  7344. # => hppa64-hp-hpux11.23
  7345. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  7346. - grep __LP64__ >/dev/null
  7347. + grep -q __LP64__
  7348. then
  7349. HP_ARCH="hppa2.0w"
  7350. else
  7351. @@ -806,7 +812,7 @@
  7352. x86)
  7353. echo i586-pc-interix${UNAME_RELEASE}
  7354. exit ;;
  7355. - EM64T | authenticamd)
  7356. + EM64T | authenticamd | genuineintel)
  7357. echo x86_64-unknown-interix${UNAME_RELEASE}
  7358. exit ;;
  7359. IA64)
  7360. @@ -816,6 +822,9 @@
  7361. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  7362. echo i${UNAME_MACHINE}-pc-mks
  7363. exit ;;
  7364. + 8664:Windows_NT:*)
  7365. + echo x86_64-pc-mks
  7366. + exit ;;
  7367. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  7368. # How do we know it's Interix rather than the generic POSIX subsystem?
  7369. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  7370. @@ -850,13 +859,13 @@
  7371. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  7372. | grep -q __ARM_EABI__
  7373. then
  7374. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7375. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7376. else
  7377. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
  7378. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  7379. fi
  7380. exit ;;
  7381. avr32*:Linux:*:*)
  7382. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7383. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7384. exit ;;
  7385. cris:Linux:*:*)
  7386. echo cris-axis-linux-gnu
  7387. @@ -865,51 +874,28 @@
  7388. echo crisv32-axis-linux-gnu
  7389. exit ;;
  7390. frv:Linux:*:*)
  7391. - echo frv-${VENDOR}-linux-gnu
  7392. + echo frv-unknown-linux-gnu
  7393. exit ;;
  7394. ia64:Linux:*:*)
  7395. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7396. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7397. exit ;;
  7398. m32r*:Linux:*:*)
  7399. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7400. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7401. exit ;;
  7402. m68*:Linux:*:*)
  7403. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7404. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7405. exit ;;
  7406. - mips:Linux:*:*)
  7407. - eval $set_cc_for_build
  7408. - sed 's/^ //' << EOF >$dummy.c
  7409. - #undef CPU
  7410. - #undef mips
  7411. - #undef mipsel
  7412. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  7413. - CPU=mipsel
  7414. - #else
  7415. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  7416. - CPU=mips
  7417. - #else
  7418. - CPU=
  7419. - #endif
  7420. - #endif
  7421. -EOF
  7422. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  7423. - /^CPU/{
  7424. - s: ::g
  7425. - p
  7426. - }'`"
  7427. - test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
  7428. - ;;
  7429. - mips64:Linux:*:*)
  7430. + mips:Linux:*:* | mips64:Linux:*:*)
  7431. eval $set_cc_for_build
  7432. sed 's/^ //' << EOF >$dummy.c
  7433. #undef CPU
  7434. - #undef mips64
  7435. - #undef mips64el
  7436. + #undef ${UNAME_MACHINE}
  7437. + #undef ${UNAME_MACHINE}el
  7438. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  7439. - CPU=mips64el
  7440. + CPU=${UNAME_MACHINE}el
  7441. #else
  7442. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  7443. - CPU=mips64
  7444. + CPU=${UNAME_MACHINE}
  7445. #else
  7446. CPU=
  7447. #endif
  7448. @@ -920,16 +906,16 @@
  7449. s: ::g
  7450. p
  7451. }'`"
  7452. - test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
  7453. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  7454. ;;
  7455. or32:Linux:*:*)
  7456. - echo or32-${VENDOR}-linux-gnu
  7457. + echo or32-unknown-linux-gnu
  7458. exit ;;
  7459. ppc:Linux:*:*)
  7460. - echo powerpc-${VENDOR}-linux-gnu
  7461. + echo powerpc-unknown-linux-gnu
  7462. exit ;;
  7463. ppc64:Linux:*:*)
  7464. - echo powerpc64-${VENDOR}-linux-gnu
  7465. + echo powerpc64-unknown-linux-gnu
  7466. exit ;;
  7467. alpha:Linux:*:*)
  7468. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  7469. @@ -941,41 +927,44 @@
  7470. EV67) UNAME_MACHINE=alphaev67 ;;
  7471. EV68*) UNAME_MACHINE=alphaev68 ;;
  7472. esac
  7473. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  7474. + objdump --private-headers /bin/sh | grep -q ld.so.1
  7475. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  7476. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
  7477. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  7478. + exit ;;
  7479. + padre:Linux:*:*)
  7480. + echo sparc-unknown-linux-gnu
  7481. exit ;;
  7482. parisc:Linux:*:* | hppa:Linux:*:*)
  7483. # Look for CPU level
  7484. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  7485. - PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
  7486. - PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
  7487. - *) echo hppa-${VENDOR}-linux-gnu ;;
  7488. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  7489. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  7490. + *) echo hppa-unknown-linux-gnu ;;
  7491. esac
  7492. exit ;;
  7493. parisc64:Linux:*:* | hppa64:Linux:*:*)
  7494. - echo hppa64-${VENDOR}-linux-gnu
  7495. + echo hppa64-unknown-linux-gnu
  7496. exit ;;
  7497. s390:Linux:*:* | s390x:Linux:*:*)
  7498. echo ${UNAME_MACHINE}-ibm-linux
  7499. exit ;;
  7500. sh64*:Linux:*:*)
  7501. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7502. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7503. exit ;;
  7504. sh*:Linux:*:*)
  7505. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7506. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7507. exit ;;
  7508. sparc:Linux:*:* | sparc64:Linux:*:*)
  7509. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7510. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7511. exit ;;
  7512. vax:Linux:*:*)
  7513. echo ${UNAME_MACHINE}-dec-linux-gnu
  7514. exit ;;
  7515. x86_64:Linux:*:*)
  7516. - echo x86_64-${VENDOR}-linux-gnu
  7517. + echo x86_64-unknown-linux-gnu
  7518. exit ;;
  7519. xtensa*:Linux:*:*)
  7520. - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
  7521. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  7522. exit ;;
  7523. i*86:Linux:*:*)
  7524. # The BFD linker knows what the default object file format is, so
  7525. @@ -990,19 +979,8 @@
  7526. p'`
  7527. case "$ld_supported_targets" in
  7528. elf32-i386)
  7529. - TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
  7530. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  7531. ;;
  7532. - a.out-i386-linux)
  7533. - echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
  7534. - exit ;;
  7535. - coff-i386)
  7536. - echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
  7537. - exit ;;
  7538. - "")
  7539. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  7540. - # one that does not give us useful --help.
  7541. - echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
  7542. - exit ;;
  7543. esac
  7544. # Determine whether the default compiler is a.out or elf
  7545. eval $set_cc_for_build
  7546. @@ -1035,7 +1013,7 @@
  7547. p
  7548. }'`"
  7549. test x"${LIBC}" != x && {
  7550. - echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
  7551. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  7552. exit
  7553. }
  7554. test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  7555. @@ -1068,7 +1046,7 @@
  7556. i*86:syllable:*:*)
  7557. echo ${UNAME_MACHINE}-pc-syllable
  7558. exit ;;
  7559. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  7560. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  7561. echo i386-unknown-lynxos${UNAME_RELEASE}
  7562. exit ;;
  7563. i*86:*DOS:*:*)
  7564. @@ -1112,8 +1090,11 @@
  7565. pc:*:*:*)
  7566. # Left here for compatibility:
  7567. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  7568. - # the processor, so we play safe by assuming i386.
  7569. - echo i386-pc-msdosdjgpp
  7570. + # the processor, so we play safe by assuming i586.
  7571. + # Note: whatever this is, it MUST be the same as what config.sub
  7572. + # prints for the "djgpp" host, or else GDB configury will decide that
  7573. + # this is a cross-build.
  7574. + echo i586-pc-msdosdjgpp
  7575. exit ;;
  7576. Intel:Mach:3*:*)
  7577. echo i386-pc-mach3
  7578. @@ -1151,6 +1132,16 @@
  7579. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  7580. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  7581. && { echo i486-ncr-sysv4; exit; } ;;
  7582. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  7583. + OS_REL='.3'
  7584. + test -r /etc/.relid \
  7585. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  7586. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  7587. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  7588. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  7589. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  7590. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  7591. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  7592. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  7593. echo m68k-unknown-lynxos${UNAME_RELEASE}
  7594. exit ;;
  7595. @@ -1163,7 +1154,7 @@
  7596. rs6000:LynxOS:2.*:*)
  7597. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  7598. exit ;;
  7599. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  7600. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  7601. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  7602. exit ;;
  7603. SM[BE]S:UNIX_SV:*:*)
  7604. @@ -1226,6 +1217,9 @@
  7605. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  7606. echo i586-pc-beos
  7607. exit ;;
  7608. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  7609. + echo i586-pc-haiku
  7610. + exit ;;
  7611. SX-4:SUPER-UX:*:*)
  7612. echo sx4-nec-superux${UNAME_RELEASE}
  7613. exit ;;
  7614. @@ -1334,6 +1328,9 @@
  7615. i*86:rdos:*:*)
  7616. echo ${UNAME_MACHINE}-pc-rdos
  7617. exit ;;
  7618. + i*86:AROS:*:*)
  7619. + echo ${UNAME_MACHINE}-pc-aros
  7620. + exit ;;
  7621. esac
  7622. #echo '(No uname command or uname output not recognized.)' 1>&2
  7623. @@ -1494,9 +1491,9 @@
  7624. the operating system you are using. It is advised that you
  7625. download the most up to date version of the config scripts from
  7626. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  7627. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  7628. and
  7629. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  7630. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  7631. If the version you run ($0) is already up to date, please
  7632. send the following data and any information you think might be
  7633. diff -Nur esound-0.2.41.orig/config.h.in esound-0.2.41/config.h.in
  7634. --- esound-0.2.41.orig/config.h.in 2008-11-18 21:54:39.000000000 +0100
  7635. +++ esound-0.2.41/config.h.in 2011-02-24 20:05:03.403551434 +0100
  7636. @@ -1,5 +1,8 @@
  7637. /* config.h.in. Generated from configure.ac by autoheader. */
  7638. +/* Define if building universal (internal helper macro) */
  7639. +#undef AC_APPLE_UNIVERSAL_BUILD
  7640. +
  7641. /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  7642. systems. This function is required for `alloca.c' support on those systems.
  7643. */
  7644. @@ -204,6 +207,10 @@
  7645. /* Defined as the address of the loopback interface */
  7646. #undef INADDR_LOOPBACK
  7647. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  7648. + */
  7649. +#undef LT_OBJDIR
  7650. +
  7651. /* Name of package */
  7652. #undef PACKAGE
  7653. @@ -219,6 +226,9 @@
  7654. /* Define to the one symbol short name of this package. */
  7655. #undef PACKAGE_TARNAME
  7656. +/* Define to the home page for this package. */
  7657. +#undef PACKAGE_URL
  7658. +
  7659. /* Define to the version of this package. */
  7660. #undef PACKAGE_VERSION
  7661. @@ -239,9 +249,17 @@
  7662. /* Version number of package */
  7663. #undef VERSION
  7664. -/* Define to 1 if your processor stores words with the most significant byte
  7665. - first (like Motorola and SPARC, unlike Intel and VAX). */
  7666. -#undef WORDS_BIGENDIAN
  7667. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  7668. + significant byte first (like Motorola and SPARC, unlike Intel). */
  7669. +#if defined AC_APPLE_UNIVERSAL_BUILD
  7670. +# if defined __BIG_ENDIAN__
  7671. +# define WORDS_BIGENDIAN 1
  7672. +# endif
  7673. +#else
  7674. +# ifndef WORDS_BIGENDIAN
  7675. +# undef WORDS_BIGENDIAN
  7676. +# endif
  7677. +#endif
  7678. /* Define to empty if `const' does not conform to ANSI C. */
  7679. #undef const
  7680. diff -Nur esound-0.2.41.orig/config.h.in~ esound-0.2.41/config.h.in~
  7681. --- esound-0.2.41.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  7682. +++ esound-0.2.41/config.h.in~ 2008-11-18 21:54:39.000000000 +0100
  7683. @@ -0,0 +1,253 @@
  7684. +/* config.h.in. Generated from configure.ac by autoheader. */
  7685. +
  7686. +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  7687. + systems. This function is required for `alloca.c' support on those systems.
  7688. + */
  7689. +#undef CRAY_STACKSEG_END
  7690. +
  7691. +/* Define to 1 if using `alloca.c'. */
  7692. +#undef C_ALLOCA
  7693. +
  7694. +/* Defined if AIX backend is enabled */
  7695. +#undef DRIVER_AIX
  7696. +
  7697. +/* Defined if ALSA backend is enabled (deprecated) */
  7698. +#undef DRIVER_ALSA
  7699. +
  7700. +/* Defined if ALSA-1.0 backend is enabled */
  7701. +#undef DRIVER_ALSA_09
  7702. +
  7703. +/* Defined if alsa-0.9 new pcm api is detected */
  7704. +#undef DRIVER_ALSA_09_NEW_PCM_API
  7705. +
  7706. +/* Defined if Arts backend is enabled */
  7707. +#undef DRIVER_ARTS
  7708. +
  7709. +/* Defined if CoreAudio backend is enabled */
  7710. +#undef DRIVER_COREAUDIO
  7711. +
  7712. +/* Defined if OS/2 backend is enabled */
  7713. +#undef DRIVER_DART
  7714. +
  7715. +/* Defined if HPUX backend is enabled */
  7716. +#undef DRIVER_HPUX
  7717. +
  7718. +/* Defined if IRIX backend is enabled */
  7719. +#undef DRIVER_IRIX
  7720. +
  7721. +/* Defined if old ALSA backend is enabled (deprecated) */
  7722. +#undef DRIVER_NEWALSA
  7723. +
  7724. +/* Defined if no backend is enabled */
  7725. +#undef DRIVER_NONE
  7726. +
  7727. +/* Defined if OSF backend is enabled */
  7728. +#undef DRIVER_OSF
  7729. +
  7730. +/* Defined if OSS backend is enabled */
  7731. +#undef DRIVER_OSS
  7732. +
  7733. +/* Defined if Solaris backend is enabled */
  7734. +#undef DRIVER_SOLARIS
  7735. +
  7736. +/* Defined if ipv6 is enabled */
  7737. +#undef ENABLE_IPV6
  7738. +
  7739. +/* Defined if debugging is enabled */
  7740. +#undef ESDBG
  7741. +
  7742. +/* Define to 1 if you have `alloca', as a function or macro. */
  7743. +#undef HAVE_ALLOCA
  7744. +
  7745. +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
  7746. + */
  7747. +#undef HAVE_ALLOCA_H
  7748. +
  7749. +/* Define to 1 if you have the <alsa/asoundlib.h> header file. */
  7750. +#undef HAVE_ALSA_ASOUNDLIB_H
  7751. +
  7752. +/* Define to 1 if you have the <CoreAudio/CoreAudio.h> header file. */
  7753. +#undef HAVE_COREAUDIO_COREAUDIO_H
  7754. +
  7755. +/* Define to 1 if you have the <dlfcn.h> header file. */
  7756. +#undef HAVE_DLFCN_H
  7757. +
  7758. +/* Define to 1 if you have the <dmedia/audio.h> header file. */
  7759. +#undef HAVE_DMEDIA_AUDIO_H
  7760. +
  7761. +/* Define to 1 if you have the `fchmod' function. */
  7762. +#undef HAVE_FCHMOD
  7763. +
  7764. +/* Define to 1 if you have the `fchown' function. */
  7765. +#undef HAVE_FCHOWN
  7766. +
  7767. +/* Define to 1 if you have the `gethostbyname2' function. */
  7768. +#undef HAVE_GETHOSTBYNAME2
  7769. +
  7770. +/* Defined if inet_aton() works */
  7771. +#undef HAVE_INET_ATON
  7772. +
  7773. +/* Defined if inet_ntop() works */
  7774. +#undef HAVE_INET_NTOP
  7775. +
  7776. +/* Defined if inet_pton() works */
  7777. +#undef HAVE_INET_PTON
  7778. +
  7779. +/* Define to 1 if you have the <inttypes.h> header file. */
  7780. +#undef HAVE_INTTYPES_H
  7781. +
  7782. +/* Define to 1 if you have the `asound' library (-lasound). */
  7783. +#undef HAVE_LIBASOUND
  7784. +
  7785. +/* Define to 1 if you have the `audio' library (-laudio). */
  7786. +#undef HAVE_LIBAUDIO
  7787. +
  7788. +/* Define to 1 if you have the `nsl' library (-lnsl). */
  7789. +#undef HAVE_LIBNSL
  7790. +
  7791. +/* Define to 1 if you have the `ossaudio' library (-lossaudio). */
  7792. +#undef HAVE_LIBOSSAUDIO
  7793. +
  7794. +/* Define to 1 if you have the `posix4' library (-lposix4). */
  7795. +#undef HAVE_LIBPOSIX4
  7796. +
  7797. +/* Define to 1 if you have the `resolv' library (-lresolv). */
  7798. +#undef HAVE_LIBRESOLV
  7799. +
  7800. +/* Define to 1 if you have the `rt' library (-lrt). */
  7801. +#undef HAVE_LIBRT
  7802. +
  7803. +/* Define to 1 if you have the `socket' library (-lsocket). */
  7804. +#undef HAVE_LIBSOCKET
  7805. +
  7806. +/* Define to 1 if you have the `sound' library (-lsound). */
  7807. +#undef HAVE_LIBSOUND
  7808. +
  7809. +/* Define to 1 if you have the <machine/soundcard.h> header file. */
  7810. +#undef HAVE_MACHINE_SOUNDCARD_H
  7811. +
  7812. +/* Define to 1 if you have the <memory.h> header file. */
  7813. +#undef HAVE_MEMORY_H
  7814. +
  7815. +/* Define to 1 if you have the <mme/mme_api.h> header file. */
  7816. +#undef HAVE_MME_MME_API_H
  7817. +
  7818. +/* Defined if nanosleep() works */
  7819. +#undef HAVE_NANOSLEEP
  7820. +
  7821. +/* Define to 1 if you have the `putenv' function. */
  7822. +#undef HAVE_PUTENV
  7823. +
  7824. +/* Define to 1 if you have the `setenv' function. */
  7825. +#undef HAVE_SETENV
  7826. +
  7827. +/* Define to 1 if you have the <soundcard.h> header file. */
  7828. +#undef HAVE_SOUNDCARD_H
  7829. +
  7830. +/* Define to 1 if you have the <stdint.h> header file. */
  7831. +#undef HAVE_STDINT_H
  7832. +
  7833. +/* Define to 1 if you have the <stdlib.h> header file. */
  7834. +#undef HAVE_STDLIB_H
  7835. +
  7836. +/* Define to 1 if you have the <strings.h> header file. */
  7837. +#undef HAVE_STRINGS_H
  7838. +
  7839. +/* Define to 1 if you have the <string.h> header file. */
  7840. +#undef HAVE_STRING_H
  7841. +
  7842. +/* Define to 1 if you have the `strtok_r' function. */
  7843. +#undef HAVE_STRTOK_R
  7844. +
  7845. +/* Define to 1 if you have the <sun/audioio.h> header file. */
  7846. +#undef HAVE_SUN_AUDIOIO_H
  7847. +
  7848. +/* Defined if SUN_LEN() exists */
  7849. +#undef HAVE_SUN_LEN
  7850. +
  7851. +/* Define to 1 if you have the <sys/asoundlib.h> header file. */
  7852. +#undef HAVE_SYS_ASOUNDLIB_H
  7853. +
  7854. +/* Define to 1 if you have the <sys/audioio.h> header file. */
  7855. +#undef HAVE_SYS_AUDIOIO_H
  7856. +
  7857. +/* Define to 1 if you have the <sys/audio.h> header file. */
  7858. +#undef HAVE_SYS_AUDIO_H
  7859. +
  7860. +/* Define to 1 if you have the <sys/audio.io.h> header file. */
  7861. +#undef HAVE_SYS_AUDIO_IO_H
  7862. +
  7863. +/* Define to 1 if you have the <sys/filio.h> header file. */
  7864. +#undef HAVE_SYS_FILIO_H
  7865. +
  7866. +/* Define to 1 if you have the <sys/ioctl.h> header file. */
  7867. +#undef HAVE_SYS_IOCTL_H
  7868. +
  7869. +/* Define to 1 if you have the <sys/soundcard.h> header file. */
  7870. +#undef HAVE_SYS_SOUNDCARD_H
  7871. +
  7872. +/* Define to 1 if you have the <sys/soundlib.h> header file. */
  7873. +#undef HAVE_SYS_SOUNDLIB_H
  7874. +
  7875. +/* Define to 1 if you have the <sys/stat.h> header file. */
  7876. +#undef HAVE_SYS_STAT_H
  7877. +
  7878. +/* Define to 1 if you have the <sys/types.h> header file. */
  7879. +#undef HAVE_SYS_TYPES_H
  7880. +
  7881. +/* Define to 1 if you have the <unistd.h> header file. */
  7882. +#undef HAVE_UNISTD_H
  7883. +
  7884. +/* Define to 1 if you have the `usleep' function. */
  7885. +#undef HAVE_USLEEP
  7886. +
  7887. +/* Defined as the address of the loopback interface */
  7888. +#undef INADDR_LOOPBACK
  7889. +
  7890. +/* Name of package */
  7891. +#undef PACKAGE
  7892. +
  7893. +/* Define to the address where bug reports for this package should be sent. */
  7894. +#undef PACKAGE_BUGREPORT
  7895. +
  7896. +/* Define to the full name of this package. */
  7897. +#undef PACKAGE_NAME
  7898. +
  7899. +/* Define to the full name and version of this package. */
  7900. +#undef PACKAGE_STRING
  7901. +
  7902. +/* Define to the one symbol short name of this package. */
  7903. +#undef PACKAGE_TARNAME
  7904. +
  7905. +/* Define to the version of this package. */
  7906. +#undef PACKAGE_VERSION
  7907. +
  7908. +/* If using the C implementation of alloca, define if you know the
  7909. + direction of stack growth for your system; otherwise it will be
  7910. + automatically deduced at runtime.
  7911. + STACK_DIRECTION > 0 => grows toward higher addresses
  7912. + STACK_DIRECTION < 0 => grows toward lower addresses
  7913. + STACK_DIRECTION = 0 => direction of growth unknown */
  7914. +#undef STACK_DIRECTION
  7915. +
  7916. +/* Define to 1 if you have the ANSI C header files. */
  7917. +#undef STDC_HEADERS
  7918. +
  7919. +/* Defined if libwrap is used */
  7920. +#undef USE_LIBWRAP
  7921. +
  7922. +/* Version number of package */
  7923. +#undef VERSION
  7924. +
  7925. +/* Define to 1 if your processor stores words with the most significant byte
  7926. + first (like Motorola and SPARC, unlike Intel and VAX). */
  7927. +#undef WORDS_BIGENDIAN
  7928. +
  7929. +/* Define to empty if `const' does not conform to ANSI C. */
  7930. +#undef const
  7931. +
  7932. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  7933. + calls it, or to nothing if 'inline' is not supported under any name. */
  7934. +#ifndef __cplusplus
  7935. +#undef inline
  7936. +#endif
  7937. diff -Nur esound-0.2.41.orig/config.sub esound-0.2.41/config.sub
  7938. --- esound-0.2.41.orig/config.sub 2008-11-18 21:54:41.000000000 +0100
  7939. +++ esound-0.2.41/config.sub 2011-02-24 20:05:03.933550953 +0100
  7940. @@ -1,10 +1,10 @@
  7941. #! /bin/sh
  7942. # Configuration validation subroutine script.
  7943. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  7944. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  7945. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  7946. # Free Software Foundation, Inc.
  7947. -timestamp='2008-01-16'
  7948. +timestamp='2009-06-11'
  7949. # This file is (in principle) common to ALL GNU software.
  7950. # The presence of a machine in this file suggests that SOME GNU software
  7951. @@ -122,6 +122,7 @@
  7952. case $maybe_os in
  7953. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  7954. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  7955. + kopensolaris*-gnu* | \
  7956. storm-chaos* | os2-emx* | rtmk-nova*)
  7957. os=-$maybe_os
  7958. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  7959. @@ -152,6 +153,9 @@
  7960. os=
  7961. basic_machine=$1
  7962. ;;
  7963. + -bluegene*)
  7964. + os=-cnk
  7965. + ;;
  7966. -sim | -cisco | -oki | -wec | -winbond)
  7967. os=
  7968. basic_machine=$1
  7969. @@ -249,13 +253,16 @@
  7970. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  7971. | i370 | i860 | i960 | ia64 \
  7972. | ip2k | iq2000 \
  7973. + | lm32 \
  7974. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  7975. - | maxq | mb | microblaze | mcore | mep \
  7976. + | maxq | mb | microblaze | mcore | mep | metag \
  7977. | mips | mipsbe | mipseb | mipsel | mipsle \
  7978. | mips16 \
  7979. | mips64 | mips64el \
  7980. - | mips64vr | mips64vrel \
  7981. + | mips64octeon | mips64octeonel \
  7982. | mips64orion | mips64orionel \
  7983. + | mips64r5900 | mips64r5900el \
  7984. + | mips64vr | mips64vrel \
  7985. | mips64vr4100 | mips64vr4100el \
  7986. | mips64vr4300 | mips64vr4300el \
  7987. | mips64vr5000 | mips64vr5000el \
  7988. @@ -268,6 +275,7 @@
  7989. | mipsisa64sr71k | mipsisa64sr71kel \
  7990. | mipstx39 | mipstx39el \
  7991. | mn10200 | mn10300 \
  7992. + | moxie \
  7993. | mt \
  7994. | msp430 \
  7995. | nios | nios2 \
  7996. @@ -277,7 +285,7 @@
  7997. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  7998. | pyramid \
  7999. | score \
  8000. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  8001. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  8002. | sh64 | sh64le \
  8003. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  8004. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  8005. @@ -286,7 +294,7 @@
  8006. | v850 | v850e \
  8007. | we32k \
  8008. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  8009. - | z8k)
  8010. + | z8k | z80)
  8011. basic_machine=$basic_machine-unknown
  8012. ;;
  8013. m6811 | m68hc11 | m6812 | m68hc12)
  8014. @@ -329,14 +337,17 @@
  8015. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  8016. | i*86-* | i860-* | i960-* | ia64-* \
  8017. | ip2k-* | iq2000-* \
  8018. + | lm32-* \
  8019. | m32c-* | m32r-* | m32rle-* \
  8020. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  8021. - | m88110-* | m88k-* | maxq-* | mcore-* \
  8022. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  8023. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  8024. | mips16-* \
  8025. | mips64-* | mips64el-* \
  8026. - | mips64vr-* | mips64vrel-* \
  8027. + | mips64octeon-* | mips64octeonel-* \
  8028. | mips64orion-* | mips64orionel-* \
  8029. + | mips64r5900-* | mips64r5900el-* \
  8030. + | mips64vr-* | mips64vrel-* \
  8031. | mips64vr4100-* | mips64vr4100el-* \
  8032. | mips64vr4300-* | mips64vr4300el-* \
  8033. | mips64vr5000-* | mips64vr5000el-* \
  8034. @@ -358,20 +369,20 @@
  8035. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  8036. | pyramid-* \
  8037. | romp-* | rs6000-* \
  8038. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  8039. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  8040. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  8041. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  8042. | sparclite-* \
  8043. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  8044. | tahoe-* | thumb-* \
  8045. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  8046. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  8047. | tron-* \
  8048. | v850-* | v850e-* | vax-* \
  8049. | we32k-* \
  8050. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  8051. | xstormy16-* | xtensa*-* \
  8052. | ymp-* \
  8053. - | z8k-*)
  8054. + | z8k-* | z80-*)
  8055. ;;
  8056. # Recognize the basic CPU types without company name, with glob match.
  8057. xtensa*)
  8058. @@ -439,6 +450,10 @@
  8059. basic_machine=m68k-apollo
  8060. os=-bsd
  8061. ;;
  8062. + aros)
  8063. + basic_machine=i386-pc
  8064. + os=-aros
  8065. + ;;
  8066. aux)
  8067. basic_machine=m68k-apple
  8068. os=-aux
  8069. @@ -455,10 +470,18 @@
  8070. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  8071. os=-linux
  8072. ;;
  8073. + bluegene*)
  8074. + basic_machine=powerpc-ibm
  8075. + os=-cnk
  8076. + ;;
  8077. c90)
  8078. basic_machine=c90-cray
  8079. os=-unicos
  8080. ;;
  8081. + cegcc)
  8082. + basic_machine=arm-unknown
  8083. + os=-cegcc
  8084. + ;;
  8085. convex-c1)
  8086. basic_machine=c1-convex
  8087. os=-bsd
  8088. @@ -526,6 +549,10 @@
  8089. basic_machine=m88k-motorola
  8090. os=-sysv3
  8091. ;;
  8092. + dicos)
  8093. + basic_machine=i686-pc
  8094. + os=-dicos
  8095. + ;;
  8096. djgpp)
  8097. basic_machine=i586-pc
  8098. os=-msdosdjgpp
  8099. @@ -1128,6 +1155,10 @@
  8100. basic_machine=z8k-unknown
  8101. os=-sim
  8102. ;;
  8103. + z80-*-coff)
  8104. + basic_machine=z80-unknown
  8105. + os=-sim
  8106. + ;;
  8107. none)
  8108. basic_machine=none-none
  8109. os=-none
  8110. @@ -1166,7 +1197,7 @@
  8111. we32k)
  8112. basic_machine=we32k-att
  8113. ;;
  8114. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  8115. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  8116. basic_machine=sh-unknown
  8117. ;;
  8118. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  8119. @@ -1236,10 +1267,11 @@
  8120. # Each alternative MUST END IN A *, to match a version number.
  8121. # -sysv* is not here because it comes later, after sysvr4.
  8122. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  8123. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  8124. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  8125. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  8126. + | -kopensolaris* \
  8127. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  8128. - | -aos* \
  8129. + | -aos* | -aros* \
  8130. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  8131. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  8132. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  8133. @@ -1248,7 +1280,7 @@
  8134. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  8135. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  8136. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  8137. - | -chorusos* | -chorusrdb* \
  8138. + | -chorusos* | -chorusrdb* | -cegcc* \
  8139. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  8140. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  8141. | -uxpv* | -beos* | -mpeix* | -udk* \
  8142. @@ -1388,6 +1420,9 @@
  8143. -zvmoe)
  8144. os=-zvmoe
  8145. ;;
  8146. + -dicos*)
  8147. + os=-dicos
  8148. + ;;
  8149. -none)
  8150. ;;
  8151. *)
  8152. @@ -1585,7 +1620,7 @@
  8153. -sunos*)
  8154. vendor=sun
  8155. ;;
  8156. - -aix*)
  8157. + -cnk*|-aix*)
  8158. vendor=ibm
  8159. ;;
  8160. -beos*)
  8161. diff -Nur esound-0.2.41.orig/configure esound-0.2.41/configure
  8162. --- esound-0.2.41.orig/configure 2008-11-18 21:54:39.000000000 +0100
  8163. +++ esound-0.2.41/configure 2011-02-24 20:05:02.713550515 +0100
  8164. @@ -1,60 +1,83 @@
  8165. #! /bin/sh
  8166. # Guess values for system-dependent variables and create Makefiles.
  8167. -# Generated by GNU Autoconf 2.61 for esound 0.2.41.
  8168. +# Generated by GNU Autoconf 2.65 for esound 0.2.41.
  8169. +#
  8170. #
  8171. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8172. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8173. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8174. +# Inc.
  8175. +#
  8176. +#
  8177. # This configure script is free software; the Free Software Foundation
  8178. # gives unlimited permission to copy, distribute and modify it.
  8179. -## --------------------- ##
  8180. -## M4sh Initialization. ##
  8181. -## --------------------- ##
  8182. +## -------------------- ##
  8183. +## M4sh Initialization. ##
  8184. +## -------------------- ##
  8185. # Be more Bourne compatible
  8186. DUALCASE=1; export DUALCASE # for MKS sh
  8187. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8188. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8189. emulate sh
  8190. NULLCMD=:
  8191. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8192. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8193. # is contrary to our usage. Disable this feature.
  8194. alias -g '${1+"$@"}'='"$@"'
  8195. setopt NO_GLOB_SUBST
  8196. else
  8197. - case `(set -o) 2>/dev/null` in
  8198. - *posix*) set -o posix ;;
  8199. + case `(set -o) 2>/dev/null` in #(
  8200. + *posix*) :
  8201. + set -o posix ;; #(
  8202. + *) :
  8203. + ;;
  8204. esac
  8205. -
  8206. fi
  8207. -
  8208. -
  8209. -# PATH needs CR
  8210. -# Avoid depending upon Character Ranges.
  8211. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8212. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8213. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8214. -as_cr_digits='0123456789'
  8215. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  8216. -
  8217. -# The user is always right.
  8218. -if test "${PATH_SEPARATOR+set}" != set; then
  8219. - echo "#! /bin/sh" >conf$$.sh
  8220. - echo "exit 0" >>conf$$.sh
  8221. - chmod +x conf$$.sh
  8222. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8223. - PATH_SEPARATOR=';'
  8224. - else
  8225. - PATH_SEPARATOR=:
  8226. +as_nl='
  8227. +'
  8228. +export as_nl
  8229. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  8230. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8231. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8232. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8233. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  8234. +# but without wasting forks for bash or zsh.
  8235. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  8236. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8237. + as_echo='print -r --'
  8238. + as_echo_n='print -rn --'
  8239. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8240. + as_echo='printf %s\n'
  8241. + as_echo_n='printf %s'
  8242. +else
  8243. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8244. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8245. + as_echo_n='/usr/ucb/echo -n'
  8246. + else
  8247. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8248. + as_echo_n_body='eval
  8249. + arg=$1;
  8250. + case $arg in #(
  8251. + *"$as_nl"*)
  8252. + expr "X$arg" : "X\\(.*\\)$as_nl";
  8253. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8254. + esac;
  8255. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8256. + '
  8257. + export as_echo_n_body
  8258. + as_echo_n='sh -c $as_echo_n_body as_echo'
  8259. fi
  8260. - rm -f conf$$.sh
  8261. + export as_echo_body
  8262. + as_echo='sh -c $as_echo_body as_echo'
  8263. fi
  8264. -# Support unset when possible.
  8265. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8266. - as_unset=unset
  8267. -else
  8268. - as_unset=false
  8269. +# The user is always right.
  8270. +if test "${PATH_SEPARATOR+set}" != set; then
  8271. + PATH_SEPARATOR=:
  8272. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8273. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8274. + PATH_SEPARATOR=';'
  8275. + }
  8276. fi
  8277. @@ -63,20 +86,18 @@
  8278. # there to prevent editors from complaining about space-tab.
  8279. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8280. # splitting by setting IFS to empty value.)
  8281. -as_nl='
  8282. -'
  8283. IFS=" "" $as_nl"
  8284. # Find who we are. Look in the path if we contain no directory separator.
  8285. -case $0 in
  8286. +case $0 in #((
  8287. *[\\/]* ) as_myself=$0 ;;
  8288. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8289. for as_dir in $PATH
  8290. do
  8291. IFS=$as_save_IFS
  8292. test -z "$as_dir" && as_dir=.
  8293. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8294. -done
  8295. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8296. + done
  8297. IFS=$as_save_IFS
  8298. ;;
  8299. @@ -87,32 +108,270 @@
  8300. as_myself=$0
  8301. fi
  8302. if test ! -f "$as_myself"; then
  8303. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8304. - { (exit 1); exit 1; }
  8305. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8306. + exit 1
  8307. fi
  8308. -# Work around bugs in pre-3.0 UWIN ksh.
  8309. -for as_var in ENV MAIL MAILPATH
  8310. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8311. +# Unset variables that we do not need and which cause bugs (e.g. in
  8312. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8313. +# suppresses any "Segmentation fault" message there. '((' could
  8314. +# trigger a bug in pdksh 5.2.14.
  8315. +for as_var in BASH_ENV ENV MAIL MAILPATH
  8316. +do eval test x\${$as_var+set} = xset \
  8317. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8318. done
  8319. PS1='$ '
  8320. PS2='> '
  8321. PS4='+ '
  8322. # NLS nuisances.
  8323. -for as_var in \
  8324. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8325. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8326. - LC_TELEPHONE LC_TIME
  8327. +LC_ALL=C
  8328. +export LC_ALL
  8329. +LANGUAGE=C
  8330. +export LANGUAGE
  8331. +
  8332. +# CDPATH.
  8333. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8334. +
  8335. +if test "x$CONFIG_SHELL" = x; then
  8336. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  8337. + emulate sh
  8338. + NULLCMD=:
  8339. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  8340. + # is contrary to our usage. Disable this feature.
  8341. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  8342. + setopt NO_GLOB_SUBST
  8343. +else
  8344. + case \`(set -o) 2>/dev/null\` in #(
  8345. + *posix*) :
  8346. + set -o posix ;; #(
  8347. + *) :
  8348. + ;;
  8349. +esac
  8350. +fi
  8351. +"
  8352. + as_required="as_fn_return () { (exit \$1); }
  8353. +as_fn_success () { as_fn_return 0; }
  8354. +as_fn_failure () { as_fn_return 1; }
  8355. +as_fn_ret_success () { return 0; }
  8356. +as_fn_ret_failure () { return 1; }
  8357. +
  8358. +exitcode=0
  8359. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  8360. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  8361. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  8362. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  8363. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  8364. +
  8365. +else
  8366. + exitcode=1; echo positional parameters were not saved.
  8367. +fi
  8368. +test x\$exitcode = x0 || exit 1"
  8369. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  8370. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  8371. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  8372. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  8373. +test \$(( 1 + 1 )) = 2 || exit 1"
  8374. + if (eval "$as_required") 2>/dev/null; then :
  8375. + as_have_required=yes
  8376. +else
  8377. + as_have_required=no
  8378. +fi
  8379. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  8380. +
  8381. +else
  8382. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8383. +as_found=false
  8384. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8385. do
  8386. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8387. - eval $as_var=C; export $as_var
  8388. - else
  8389. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8390. - fi
  8391. + IFS=$as_save_IFS
  8392. + test -z "$as_dir" && as_dir=.
  8393. + as_found=:
  8394. + case $as_dir in #(
  8395. + /*)
  8396. + for as_base in sh bash ksh sh5; do
  8397. + # Try only shells that exist, to save several forks.
  8398. + as_shell=$as_dir/$as_base
  8399. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  8400. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  8401. + CONFIG_SHELL=$as_shell as_have_required=yes
  8402. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  8403. + break 2
  8404. +fi
  8405. +fi
  8406. + done;;
  8407. + esac
  8408. + as_found=false
  8409. done
  8410. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  8411. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  8412. + CONFIG_SHELL=$SHELL as_have_required=yes
  8413. +fi; }
  8414. +IFS=$as_save_IFS
  8415. +
  8416. +
  8417. + if test "x$CONFIG_SHELL" != x; then :
  8418. + # We cannot yet assume a decent shell, so we have to provide a
  8419. + # neutralization value for shells without unset; and this also
  8420. + # works around shells that cannot unset nonexistent variables.
  8421. + BASH_ENV=/dev/null
  8422. + ENV=/dev/null
  8423. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  8424. + export CONFIG_SHELL
  8425. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  8426. +fi
  8427. +
  8428. + if test x$as_have_required = xno; then :
  8429. + $as_echo "$0: This script requires a shell more modern than all"
  8430. + $as_echo "$0: the shells that I found on your system."
  8431. + if test x${ZSH_VERSION+set} = xset ; then
  8432. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  8433. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  8434. + else
  8435. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  8436. +$0: including any error possibly output before this
  8437. +$0: message. Then install a modern shell, or manually run
  8438. +$0: the script under such a shell if you do have one."
  8439. + fi
  8440. + exit 1
  8441. +fi
  8442. +fi
  8443. +fi
  8444. +SHELL=${CONFIG_SHELL-/bin/sh}
  8445. +export SHELL
  8446. +# Unset more variables known to interfere with behavior of common tools.
  8447. +CLICOLOR_FORCE= GREP_OPTIONS=
  8448. +unset CLICOLOR_FORCE GREP_OPTIONS
  8449. +
  8450. +## --------------------- ##
  8451. +## M4sh Shell Functions. ##
  8452. +## --------------------- ##
  8453. +# as_fn_unset VAR
  8454. +# ---------------
  8455. +# Portably unset VAR.
  8456. +as_fn_unset ()
  8457. +{
  8458. + { eval $1=; unset $1;}
  8459. +}
  8460. +as_unset=as_fn_unset
  8461. +
  8462. +# as_fn_set_status STATUS
  8463. +# -----------------------
  8464. +# Set $? to STATUS, without forking.
  8465. +as_fn_set_status ()
  8466. +{
  8467. + return $1
  8468. +} # as_fn_set_status
  8469. +
  8470. +# as_fn_exit STATUS
  8471. +# -----------------
  8472. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8473. +as_fn_exit ()
  8474. +{
  8475. + set +e
  8476. + as_fn_set_status $1
  8477. + exit $1
  8478. +} # as_fn_exit
  8479. +
  8480. +# as_fn_mkdir_p
  8481. +# -------------
  8482. +# Create "$as_dir" as a directory, including parents if necessary.
  8483. +as_fn_mkdir_p ()
  8484. +{
  8485. +
  8486. + case $as_dir in #(
  8487. + -*) as_dir=./$as_dir;;
  8488. + esac
  8489. + test -d "$as_dir" || eval $as_mkdir_p || {
  8490. + as_dirs=
  8491. + while :; do
  8492. + case $as_dir in #(
  8493. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8494. + *) as_qdir=$as_dir;;
  8495. + esac
  8496. + as_dirs="'$as_qdir' $as_dirs"
  8497. + as_dir=`$as_dirname -- "$as_dir" ||
  8498. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8499. + X"$as_dir" : 'X\(//\)[^/]' \| \
  8500. + X"$as_dir" : 'X\(//\)$' \| \
  8501. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8502. +$as_echo X"$as_dir" |
  8503. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8504. + s//\1/
  8505. + q
  8506. + }
  8507. + /^X\(\/\/\)[^/].*/{
  8508. + s//\1/
  8509. + q
  8510. + }
  8511. + /^X\(\/\/\)$/{
  8512. + s//\1/
  8513. + q
  8514. + }
  8515. + /^X\(\/\).*/{
  8516. + s//\1/
  8517. + q
  8518. + }
  8519. + s/.*/./; q'`
  8520. + test -d "$as_dir" && break
  8521. + done
  8522. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  8523. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  8524. +
  8525. +
  8526. +} # as_fn_mkdir_p
  8527. +# as_fn_append VAR VALUE
  8528. +# ----------------------
  8529. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  8530. +# advantage of any shell optimizations that allow amortized linear growth over
  8531. +# repeated appends, instead of the typical quadratic growth present in naive
  8532. +# implementations.
  8533. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8534. + eval 'as_fn_append ()
  8535. + {
  8536. + eval $1+=\$2
  8537. + }'
  8538. +else
  8539. + as_fn_append ()
  8540. + {
  8541. + eval $1=\$$1\$2
  8542. + }
  8543. +fi # as_fn_append
  8544. +
  8545. +# as_fn_arith ARG...
  8546. +# ------------------
  8547. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  8548. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  8549. +# must be portable across $(()) and expr.
  8550. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8551. + eval 'as_fn_arith ()
  8552. + {
  8553. + as_val=$(( $* ))
  8554. + }'
  8555. +else
  8556. + as_fn_arith ()
  8557. + {
  8558. + as_val=`expr "$@" || test $? -eq 1`
  8559. + }
  8560. +fi # as_fn_arith
  8561. +
  8562. +
  8563. +# as_fn_error ERROR [LINENO LOG_FD]
  8564. +# ---------------------------------
  8565. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8566. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8567. +# script with status $?, using 1 if that was 0.
  8568. +as_fn_error ()
  8569. +{
  8570. + as_status=$?; test $as_status -eq 0 && as_status=1
  8571. + if test "$3"; then
  8572. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8573. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  8574. + fi
  8575. + $as_echo "$as_me: error: $1" >&2
  8576. + as_fn_exit $as_status
  8577. +} # as_fn_error
  8578. -# Required to use basename.
  8579. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8580. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8581. as_expr=expr
  8582. @@ -126,13 +385,17 @@
  8583. as_basename=false
  8584. fi
  8585. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8586. + as_dirname=dirname
  8587. +else
  8588. + as_dirname=false
  8589. +fi
  8590. -# Name of the executable.
  8591. as_me=`$as_basename -- "$0" ||
  8592. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8593. X"$0" : 'X\(//\)$' \| \
  8594. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8595. -echo X/"$0" |
  8596. +$as_echo X/"$0" |
  8597. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8598. s//\1/
  8599. q
  8600. @@ -147,428 +410,142 @@
  8601. }
  8602. s/.*/./; q'`
  8603. -# CDPATH.
  8604. -$as_unset CDPATH
  8605. +# Avoid depending upon Character Ranges.
  8606. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8607. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8608. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8609. +as_cr_digits='0123456789'
  8610. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8611. -if test "x$CONFIG_SHELL" = x; then
  8612. - if (eval ":") 2>/dev/null; then
  8613. - as_have_required=yes
  8614. -else
  8615. - as_have_required=no
  8616. -fi
  8617. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  8618. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  8619. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  8620. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  8621. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  8622. + sed -n '
  8623. + p
  8624. + /[$]LINENO/=
  8625. + ' <$as_myself |
  8626. + sed '
  8627. + s/[$]LINENO.*/&-/
  8628. + t lineno
  8629. + b
  8630. + :lineno
  8631. + N
  8632. + :loop
  8633. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  8634. + t loop
  8635. + s/-\n.*//
  8636. + ' >$as_me.lineno &&
  8637. + chmod +x "$as_me.lineno" ||
  8638. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  8639. - if test $as_have_required = yes && (eval ":
  8640. -(as_func_return () {
  8641. - (exit \$1)
  8642. -}
  8643. -as_func_success () {
  8644. - as_func_return 0
  8645. -}
  8646. -as_func_failure () {
  8647. - as_func_return 1
  8648. -}
  8649. -as_func_ret_success () {
  8650. - return 0
  8651. -}
  8652. -as_func_ret_failure () {
  8653. - return 1
  8654. + # Don't try to exec as it changes $[0], causing all sort of problems
  8655. + # (the dirname of $[0] is not the place where we might find the
  8656. + # original and so on. Autoconf is especially sensitive to this).
  8657. + . "./$as_me.lineno"
  8658. + # Exit status is that of the last command.
  8659. + exit
  8660. }
  8661. -exitcode=0
  8662. -if as_func_success; then
  8663. - :
  8664. -else
  8665. - exitcode=1
  8666. - echo as_func_success failed.
  8667. -fi
  8668. +ECHO_C= ECHO_N= ECHO_T=
  8669. +case `echo -n x` in #(((((
  8670. +-n*)
  8671. + case `echo 'xy\c'` in
  8672. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8673. + xy) ECHO_C='\c';;
  8674. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8675. + ECHO_T=' ';;
  8676. + esac;;
  8677. +*)
  8678. + ECHO_N='-n';;
  8679. +esac
  8680. -if as_func_failure; then
  8681. - exitcode=1
  8682. - echo as_func_failure succeeded.
  8683. +rm -f conf$$ conf$$.exe conf$$.file
  8684. +if test -d conf$$.dir; then
  8685. + rm -f conf$$.dir/conf$$.file
  8686. +else
  8687. + rm -f conf$$.dir
  8688. + mkdir conf$$.dir 2>/dev/null
  8689. fi
  8690. -
  8691. -if as_func_ret_success; then
  8692. - :
  8693. +if (echo >conf$$.file) 2>/dev/null; then
  8694. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  8695. + as_ln_s='ln -s'
  8696. + # ... but there are two gotchas:
  8697. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8698. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8699. + # In both cases, we have to default to `cp -p'.
  8700. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8701. + as_ln_s='cp -p'
  8702. + elif ln conf$$.file conf$$ 2>/dev/null; then
  8703. + as_ln_s=ln
  8704. + else
  8705. + as_ln_s='cp -p'
  8706. + fi
  8707. else
  8708. - exitcode=1
  8709. - echo as_func_ret_success failed.
  8710. + as_ln_s='cp -p'
  8711. fi
  8712. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8713. +rmdir conf$$.dir 2>/dev/null
  8714. -if as_func_ret_failure; then
  8715. - exitcode=1
  8716. - echo as_func_ret_failure succeeded.
  8717. +if mkdir -p . 2>/dev/null; then
  8718. + as_mkdir_p='mkdir -p "$as_dir"'
  8719. +else
  8720. + test -d ./-p && rmdir ./-p
  8721. + as_mkdir_p=false
  8722. fi
  8723. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  8724. - :
  8725. +if test -x / >/dev/null 2>&1; then
  8726. + as_test_x='test -x'
  8727. else
  8728. - exitcode=1
  8729. - echo positional parameters were not saved.
  8730. + if ls -dL / >/dev/null 2>&1; then
  8731. + as_ls_L_option=L
  8732. + else
  8733. + as_ls_L_option=
  8734. + fi
  8735. + as_test_x='
  8736. + eval sh -c '\''
  8737. + if test -d "$1"; then
  8738. + test -d "$1/.";
  8739. + else
  8740. + case $1 in #(
  8741. + -*)set "./$1";;
  8742. + esac;
  8743. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  8744. + ???[sx]*):;;*)false;;esac;fi
  8745. + '\'' sh
  8746. + '
  8747. fi
  8748. +as_executable_p=$as_test_x
  8749. -test \$exitcode = 0) || { (exit 1); exit 1; }
  8750. -
  8751. -(
  8752. - as_lineno_1=\$LINENO
  8753. - as_lineno_2=\$LINENO
  8754. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  8755. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  8756. -") 2> /dev/null; then
  8757. - :
  8758. -else
  8759. - as_candidate_shells=
  8760. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8761. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8762. -do
  8763. - IFS=$as_save_IFS
  8764. - test -z "$as_dir" && as_dir=.
  8765. - case $as_dir in
  8766. - /*)
  8767. - for as_base in sh bash ksh sh5; do
  8768. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  8769. - done;;
  8770. - esac
  8771. -done
  8772. -IFS=$as_save_IFS
  8773. +# Sed expression to map a string onto a valid CPP name.
  8774. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8775. +# Sed expression to map a string onto a valid variable name.
  8776. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8777. - for as_shell in $as_candidate_shells $SHELL; do
  8778. - # Try only shells that exist, to save several forks.
  8779. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  8780. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  8781. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8782. - emulate sh
  8783. - NULLCMD=:
  8784. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8785. - # is contrary to our usage. Disable this feature.
  8786. - alias -g '${1+"$@"}'='"$@"'
  8787. - setopt NO_GLOB_SUBST
  8788. -else
  8789. - case `(set -o) 2>/dev/null` in
  8790. - *posix*) set -o posix ;;
  8791. -esac
  8792. -fi
  8793. +# Check that we are running under the correct shell.
  8794. +SHELL=${CONFIG_SHELL-/bin/sh}
  8795. -:
  8796. -_ASEOF
  8797. -}; then
  8798. - CONFIG_SHELL=$as_shell
  8799. - as_have_required=yes
  8800. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  8801. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8802. - emulate sh
  8803. - NULLCMD=:
  8804. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8805. - # is contrary to our usage. Disable this feature.
  8806. - alias -g '${1+"$@"}'='"$@"'
  8807. - setopt NO_GLOB_SUBST
  8808. -else
  8809. - case `(set -o) 2>/dev/null` in
  8810. - *posix*) set -o posix ;;
  8811. +case X$lt_ECHO in
  8812. +X*--fallback-echo)
  8813. + # Remove one level of quotation (which was required for Make).
  8814. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  8815. + ;;
  8816. esac
  8817. -fi
  8818. -
  8819. -
  8820. -:
  8821. -(as_func_return () {
  8822. - (exit $1)
  8823. -}
  8824. -as_func_success () {
  8825. - as_func_return 0
  8826. -}
  8827. -as_func_failure () {
  8828. - as_func_return 1
  8829. -}
  8830. -as_func_ret_success () {
  8831. - return 0
  8832. -}
  8833. -as_func_ret_failure () {
  8834. - return 1
  8835. -}
  8836. -
  8837. -exitcode=0
  8838. -if as_func_success; then
  8839. - :
  8840. -else
  8841. - exitcode=1
  8842. - echo as_func_success failed.
  8843. -fi
  8844. -
  8845. -if as_func_failure; then
  8846. - exitcode=1
  8847. - echo as_func_failure succeeded.
  8848. -fi
  8849. -
  8850. -if as_func_ret_success; then
  8851. - :
  8852. -else
  8853. - exitcode=1
  8854. - echo as_func_ret_success failed.
  8855. -fi
  8856. -
  8857. -if as_func_ret_failure; then
  8858. - exitcode=1
  8859. - echo as_func_ret_failure succeeded.
  8860. -fi
  8861. -
  8862. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  8863. - :
  8864. -else
  8865. - exitcode=1
  8866. - echo positional parameters were not saved.
  8867. -fi
  8868. -
  8869. -test $exitcode = 0) || { (exit 1); exit 1; }
  8870. -
  8871. -(
  8872. - as_lineno_1=$LINENO
  8873. - as_lineno_2=$LINENO
  8874. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  8875. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  8876. -
  8877. -_ASEOF
  8878. -}; then
  8879. - break
  8880. -fi
  8881. -
  8882. -fi
  8883. -
  8884. - done
  8885. -
  8886. - if test "x$CONFIG_SHELL" != x; then
  8887. - for as_var in BASH_ENV ENV
  8888. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8889. - done
  8890. - export CONFIG_SHELL
  8891. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  8892. -fi
  8893. -
  8894. -
  8895. - if test $as_have_required = no; then
  8896. - echo This script requires a shell more modern than all the
  8897. - echo shells that I found on your system. Please install a
  8898. - echo modern shell, or manually run the script under such a
  8899. - echo shell if you do have one.
  8900. - { (exit 1); exit 1; }
  8901. -fi
  8902. -
  8903. -
  8904. -fi
  8905. -
  8906. -fi
  8907. -
  8908. -
  8909. -
  8910. -(eval "as_func_return () {
  8911. - (exit \$1)
  8912. -}
  8913. -as_func_success () {
  8914. - as_func_return 0
  8915. -}
  8916. -as_func_failure () {
  8917. - as_func_return 1
  8918. -}
  8919. -as_func_ret_success () {
  8920. - return 0
  8921. -}
  8922. -as_func_ret_failure () {
  8923. - return 1
  8924. -}
  8925. -
  8926. -exitcode=0
  8927. -if as_func_success; then
  8928. - :
  8929. -else
  8930. - exitcode=1
  8931. - echo as_func_success failed.
  8932. -fi
  8933. -
  8934. -if as_func_failure; then
  8935. - exitcode=1
  8936. - echo as_func_failure succeeded.
  8937. -fi
  8938. -
  8939. -if as_func_ret_success; then
  8940. - :
  8941. -else
  8942. - exitcode=1
  8943. - echo as_func_ret_success failed.
  8944. -fi
  8945. -
  8946. -if as_func_ret_failure; then
  8947. - exitcode=1
  8948. - echo as_func_ret_failure succeeded.
  8949. -fi
  8950. -
  8951. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  8952. - :
  8953. -else
  8954. - exitcode=1
  8955. - echo positional parameters were not saved.
  8956. -fi
  8957. -
  8958. -test \$exitcode = 0") || {
  8959. - echo No shell found that supports shell functions.
  8960. - echo Please tell autoconf@gnu.org about your system,
  8961. - echo including any error possibly output before this
  8962. - echo message
  8963. -}
  8964. -
  8965. -
  8966. -
  8967. - as_lineno_1=$LINENO
  8968. - as_lineno_2=$LINENO
  8969. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  8970. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  8971. -
  8972. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8973. - # uniformly replaced by the line number. The first 'sed' inserts a
  8974. - # line-number line after each line using $LINENO; the second 'sed'
  8975. - # does the real work. The second script uses 'N' to pair each
  8976. - # line-number line with the line containing $LINENO, and appends
  8977. - # trailing '-' during substitution so that $LINENO is not a special
  8978. - # case at line end.
  8979. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8980. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  8981. - # E. McMahon (1931-1989) for sed's syntax. :-)
  8982. - sed -n '
  8983. - p
  8984. - /[$]LINENO/=
  8985. - ' <$as_myself |
  8986. - sed '
  8987. - s/[$]LINENO.*/&-/
  8988. - t lineno
  8989. - b
  8990. - :lineno
  8991. - N
  8992. - :loop
  8993. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  8994. - t loop
  8995. - s/-\n.*//
  8996. - ' >$as_me.lineno &&
  8997. - chmod +x "$as_me.lineno" ||
  8998. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  8999. - { (exit 1); exit 1; }; }
  9000. -
  9001. - # Don't try to exec as it changes $[0], causing all sort of problems
  9002. - # (the dirname of $[0] is not the place where we might find the
  9003. - # original and so on. Autoconf is especially sensitive to this).
  9004. - . "./$as_me.lineno"
  9005. - # Exit status is that of the last command.
  9006. - exit
  9007. -}
  9008. -
  9009. -
  9010. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9011. - as_dirname=dirname
  9012. -else
  9013. - as_dirname=false
  9014. -fi
  9015. -
  9016. -ECHO_C= ECHO_N= ECHO_T=
  9017. -case `echo -n x` in
  9018. --n*)
  9019. - case `echo 'x\c'` in
  9020. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9021. - *) ECHO_C='\c';;
  9022. - esac;;
  9023. -*)
  9024. - ECHO_N='-n';;
  9025. -esac
  9026. -
  9027. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  9028. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9029. - as_expr=expr
  9030. -else
  9031. - as_expr=false
  9032. -fi
  9033. -
  9034. -rm -f conf$$ conf$$.exe conf$$.file
  9035. -if test -d conf$$.dir; then
  9036. - rm -f conf$$.dir/conf$$.file
  9037. -else
  9038. - rm -f conf$$.dir
  9039. - mkdir conf$$.dir
  9040. -fi
  9041. -echo >conf$$.file
  9042. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  9043. - as_ln_s='ln -s'
  9044. - # ... but there are two gotchas:
  9045. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9046. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9047. - # In both cases, we have to default to `cp -p'.
  9048. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9049. - as_ln_s='cp -p'
  9050. -elif ln conf$$.file conf$$ 2>/dev/null; then
  9051. - as_ln_s=ln
  9052. -else
  9053. - as_ln_s='cp -p'
  9054. -fi
  9055. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9056. -rmdir conf$$.dir 2>/dev/null
  9057. -
  9058. -if mkdir -p . 2>/dev/null; then
  9059. - as_mkdir_p=:
  9060. -else
  9061. - test -d ./-p && rmdir ./-p
  9062. - as_mkdir_p=false
  9063. -fi
  9064. -
  9065. -if test -x / >/dev/null 2>&1; then
  9066. - as_test_x='test -x'
  9067. -else
  9068. - if ls -dL / >/dev/null 2>&1; then
  9069. - as_ls_L_option=L
  9070. - else
  9071. - as_ls_L_option=
  9072. - fi
  9073. - as_test_x='
  9074. - eval sh -c '\''
  9075. - if test -d "$1"; then
  9076. - test -d "$1/.";
  9077. - else
  9078. - case $1 in
  9079. - -*)set "./$1";;
  9080. - esac;
  9081. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  9082. - ???[sx]*):;;*)false;;esac;fi
  9083. - '\'' sh
  9084. - '
  9085. -fi
  9086. -as_executable_p=$as_test_x
  9087. -
  9088. -# Sed expression to map a string onto a valid CPP name.
  9089. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9090. -
  9091. -# Sed expression to map a string onto a valid variable name.
  9092. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9093. -
  9094. -
  9095. -
  9096. -
  9097. -# Check that we are running under the correct shell.
  9098. -SHELL=${CONFIG_SHELL-/bin/sh}
  9099. -
  9100. -case X$ECHO in
  9101. -X*--fallback-echo)
  9102. - # Remove one level of quotation (which was required for Make).
  9103. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  9104. - ;;
  9105. -esac
  9106. -
  9107. -echo=${ECHO-echo}
  9108. +ECHO=${lt_ECHO-echo}
  9109. if test "X$1" = X--no-reexec; then
  9110. # Discard the --no-reexec flag, and continue.
  9111. shift
  9112. elif test "X$1" = X--fallback-echo; then
  9113. # Avoid inline document here, it may be left over
  9114. :
  9115. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  9116. - # Yippee, $echo works!
  9117. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  9118. + # Yippee, $ECHO works!
  9119. :
  9120. else
  9121. # Restart under the correct shell.
  9122. @@ -578,9 +555,9 @@
  9123. if test "X$1" = X--fallback-echo; then
  9124. # used as fallback echo
  9125. shift
  9126. - cat <<EOF
  9127. + cat <<_LT_EOF
  9128. $*
  9129. -EOF
  9130. +_LT_EOF
  9131. exit 0
  9132. fi
  9133. @@ -588,122 +565,118 @@
  9134. # if CDPATH is set.
  9135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9136. -if test -z "$ECHO"; then
  9137. -if test "X${echo_test_string+set}" != Xset; then
  9138. -# find a string as large as possible, as long as the shell can cope with it
  9139. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  9140. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  9141. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  9142. - echo_test_string=`eval $cmd` &&
  9143. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  9144. - then
  9145. - break
  9146. - fi
  9147. - done
  9148. -fi
  9149. +if test -z "$lt_ECHO"; then
  9150. + if test "X${echo_test_string+set}" != Xset; then
  9151. + # find a string as large as possible, as long as the shell can cope with it
  9152. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  9153. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  9154. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  9155. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  9156. + then
  9157. + break
  9158. + fi
  9159. + done
  9160. + fi
  9161. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  9162. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  9163. - test "X$echo_testing_string" = "X$echo_test_string"; then
  9164. - :
  9165. -else
  9166. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  9167. - # backslashes. This makes it impossible to quote backslashes using
  9168. - # echo "$something" | sed 's/\\/\\\\/g'
  9169. - #
  9170. - # So, first we look for a working echo in the user's PATH.
  9171. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  9172. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  9173. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9174. + :
  9175. + else
  9176. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  9177. + # backslashes. This makes it impossible to quote backslashes using
  9178. + # echo "$something" | sed 's/\\/\\\\/g'
  9179. + #
  9180. + # So, first we look for a working echo in the user's PATH.
  9181. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9182. - for dir in $PATH /usr/ucb; do
  9183. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9184. + for dir in $PATH /usr/ucb; do
  9185. + IFS="$lt_save_ifs"
  9186. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  9187. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  9188. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  9189. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9190. + ECHO="$dir/echo"
  9191. + break
  9192. + fi
  9193. + done
  9194. IFS="$lt_save_ifs"
  9195. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  9196. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  9197. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  9198. - test "X$echo_testing_string" = "X$echo_test_string"; then
  9199. - echo="$dir/echo"
  9200. - break
  9201. - fi
  9202. - done
  9203. - IFS="$lt_save_ifs"
  9204. - if test "X$echo" = Xecho; then
  9205. - # We didn't find a better echo, so look for alternatives.
  9206. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  9207. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  9208. - test "X$echo_testing_string" = "X$echo_test_string"; then
  9209. - # This shell has a builtin print -r that does the trick.
  9210. - echo='print -r'
  9211. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  9212. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  9213. - # If we have ksh, try running configure again with it.
  9214. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  9215. - export ORIGINAL_CONFIG_SHELL
  9216. - CONFIG_SHELL=/bin/ksh
  9217. - export CONFIG_SHELL
  9218. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  9219. - else
  9220. - # Try using printf.
  9221. - echo='printf %s\n'
  9222. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  9223. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  9224. - test "X$echo_testing_string" = "X$echo_test_string"; then
  9225. - # Cool, printf works
  9226. - :
  9227. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9228. - test "X$echo_testing_string" = 'X\t' &&
  9229. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9230. - test "X$echo_testing_string" = "X$echo_test_string"; then
  9231. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  9232. - export CONFIG_SHELL
  9233. - SHELL="$CONFIG_SHELL"
  9234. - export SHELL
  9235. - echo="$CONFIG_SHELL $0 --fallback-echo"
  9236. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9237. - test "X$echo_testing_string" = 'X\t' &&
  9238. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9239. - test "X$echo_testing_string" = "X$echo_test_string"; then
  9240. - echo="$CONFIG_SHELL $0 --fallback-echo"
  9241. + if test "X$ECHO" = Xecho; then
  9242. + # We didn't find a better echo, so look for alternatives.
  9243. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  9244. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  9245. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9246. + # This shell has a builtin print -r that does the trick.
  9247. + ECHO='print -r'
  9248. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  9249. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  9250. + # If we have ksh, try running configure again with it.
  9251. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  9252. + export ORIGINAL_CONFIG_SHELL
  9253. + CONFIG_SHELL=/bin/ksh
  9254. + export CONFIG_SHELL
  9255. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  9256. else
  9257. - # maybe with a smaller string...
  9258. - prev=:
  9259. + # Try using printf.
  9260. + ECHO='printf %s\n'
  9261. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  9262. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  9263. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9264. + # Cool, printf works
  9265. + :
  9266. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9267. + test "X$echo_testing_string" = 'X\t' &&
  9268. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9269. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9270. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  9271. + export CONFIG_SHELL
  9272. + SHELL="$CONFIG_SHELL"
  9273. + export SHELL
  9274. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  9275. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9276. + test "X$echo_testing_string" = 'X\t' &&
  9277. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9278. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9279. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  9280. + else
  9281. + # maybe with a smaller string...
  9282. + prev=:
  9283. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  9284. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  9285. - then
  9286. - break
  9287. - fi
  9288. - prev="$cmd"
  9289. - done
  9290. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  9291. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  9292. + then
  9293. + break
  9294. + fi
  9295. + prev="$cmd"
  9296. + done
  9297. - if test "$prev" != 'sed 50q "$0"'; then
  9298. - echo_test_string=`eval $prev`
  9299. - export echo_test_string
  9300. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  9301. - else
  9302. - # Oops. We lost completely, so just stick with echo.
  9303. - echo=echo
  9304. - fi
  9305. + if test "$prev" != 'sed 50q "$0"'; then
  9306. + echo_test_string=`eval $prev`
  9307. + export echo_test_string
  9308. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  9309. + else
  9310. + # Oops. We lost completely, so just stick with echo.
  9311. + ECHO=echo
  9312. + fi
  9313. + fi
  9314. fi
  9315. fi
  9316. fi
  9317. fi
  9318. -fi
  9319. # Copy echo and quote the copy suitably for passing to libtool from
  9320. # the Makefile, instead of quoting the original, which is used later.
  9321. -ECHO=$echo
  9322. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  9323. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  9324. +lt_ECHO=$ECHO
  9325. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  9326. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  9327. fi
  9328. -tagnames=${tagnames+${tagnames},}CXX
  9329. -
  9330. -tagnames=${tagnames+${tagnames},}F77
  9331. -
  9332. -exec 7<&0 </dev/null 6>&1
  9333. +test -n "$DJDIR" || exec 7<&0 </dev/null
  9334. +exec 6>&1
  9335. # Name of the host.
  9336. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  9337. @@ -721,7 +694,6 @@
  9338. subdirs=
  9339. MFLAGS=
  9340. MAKEFLAGS=
  9341. -SHELL=${CONFIG_SHELL-/bin/sh}
  9342. # Identity of this package.
  9343. PACKAGE_NAME='esound'
  9344. @@ -729,6 +701,7 @@
  9345. PACKAGE_VERSION='0.2.41'
  9346. PACKAGE_STRING='esound 0.2.41'
  9347. PACKAGE_BUGREPORT=''
  9348. +PACKAGE_URL=''
  9349. ac_unique_file="esd.h"
  9350. # Factoring default headers for most tests.
  9351. @@ -767,151 +740,182 @@
  9352. # include <unistd.h>
  9353. #endif"
  9354. -ac_subst_vars='SHELL
  9355. -PATH_SEPARATOR
  9356. -PACKAGE_NAME
  9357. -PACKAGE_TARNAME
  9358. -PACKAGE_VERSION
  9359. -PACKAGE_STRING
  9360. -PACKAGE_BUGREPORT
  9361. -exec_prefix
  9362. -prefix
  9363. -program_transform_name
  9364. -bindir
  9365. -sbindir
  9366. -libexecdir
  9367. -datarootdir
  9368. -datadir
  9369. -sysconfdir
  9370. -sharedstatedir
  9371. -localstatedir
  9372. -includedir
  9373. -oldincludedir
  9374. -docdir
  9375. -infodir
  9376. -htmldir
  9377. -dvidir
  9378. -pdfdir
  9379. -psdir
  9380. -libdir
  9381. -localedir
  9382. -mandir
  9383. -DEFS
  9384. -ECHO_C
  9385. -ECHO_N
  9386. -ECHO_T
  9387. -LIBS
  9388. -build_alias
  9389. -host_alias
  9390. -target_alias
  9391. -build
  9392. -build_cpu
  9393. -build_vendor
  9394. -build_os
  9395. -host
  9396. -host_cpu
  9397. -host_vendor
  9398. -host_os
  9399. -target
  9400. -target_cpu
  9401. -target_vendor
  9402. -target_os
  9403. -INSTALL_PROGRAM
  9404. -INSTALL_SCRIPT
  9405. -INSTALL_DATA
  9406. -am__isrc
  9407. -CYGPATH_W
  9408. -PACKAGE
  9409. -VERSION
  9410. -ACLOCAL
  9411. -AUTOCONF
  9412. -AUTOMAKE
  9413. -AUTOHEADER
  9414. -MAKEINFO
  9415. -install_sh
  9416. -STRIP
  9417. -INSTALL_STRIP_PROGRAM
  9418. -mkdir_p
  9419. -AWK
  9420. -SET_MAKE
  9421. -am__leading_dot
  9422. -AMTAR
  9423. -am__tar
  9424. -am__untar
  9425. -MAINTAINER_MODE_TRUE
  9426. -MAINTAINER_MODE_FALSE
  9427. -MAINT
  9428. -ESD_MAJOR_VERSION
  9429. -ESD_MINOR_VERSION
  9430. -ESD_MICRO_VERSION
  9431. -ESD_VERSION
  9432. -ESD_VERSION_INFO
  9433. -CC
  9434. -CFLAGS
  9435. -LDFLAGS
  9436. -CPPFLAGS
  9437. -ac_ct_CC
  9438. -EXEEXT
  9439. -OBJEXT
  9440. -DEPDIR
  9441. -am__include
  9442. -am__quote
  9443. -AMDEP_TRUE
  9444. -AMDEP_FALSE
  9445. -AMDEPBACKSLASH
  9446. -CCDEPMODE
  9447. -am__fastdepCC_TRUE
  9448. -am__fastdepCC_FALSE
  9449. -CXX
  9450. -CXXFLAGS
  9451. -ac_ct_CXX
  9452. -CXXDEPMODE
  9453. -am__fastdepCXX_TRUE
  9454. -am__fastdepCXX_FALSE
  9455. -CPP
  9456. -SED
  9457. -GREP
  9458. -EGREP
  9459. -LN_S
  9460. -ECHO
  9461. -AR
  9462. -RANLIB
  9463. -DSYMUTIL
  9464. +ac_subst_vars='am__EXEEXT_FALSE
  9465. +am__EXEEXT_TRUE
  9466. +LTLIBOBJS
  9467. +LIBOBJS
  9468. +DISTDOCS
  9469. +DOCS
  9470. +DL_LIB
  9471. +SOUND_LIBS
  9472. +WRAP_LIB
  9473. +HAVE_JW_FALSE
  9474. +HAVE_JW_TRUE
  9475. +JW
  9476. +BUILD_ESDPLAY_FALSE
  9477. +BUILD_ESDPLAY_TRUE
  9478. +AUDIOFILE_LIBS
  9479. +AUDIOFILE_CFLAGS
  9480. +PKG_CONFIG
  9481. +ESD_PC_DIR
  9482. +ESD_DIR
  9483. +ARTS_LIBS
  9484. +ARTS_CXXFLAGS
  9485. +ARTS_CONFIG
  9486. +BUILD_ESDDSP_FALSE
  9487. +BUILD_ESDDSP_TRUE
  9488. +NEED_GETOPT_FALSE
  9489. +NEED_GETOPT_TRUE
  9490. +ALLOCA
  9491. +CXXCPP
  9492. +OTOOL64
  9493. +OTOOL
  9494. +LIPO
  9495. NMEDIT
  9496. +DSYMUTIL
  9497. +lt_ECHO
  9498. +RANLIB
  9499. +AR
  9500. +LN_S
  9501. +NM
  9502. +ac_ct_DUMPBIN
  9503. +DUMPBIN
  9504. +LD
  9505. +FGREP
  9506. +EGREP
  9507. +GREP
  9508. +SED
  9509. +LIBTOOL
  9510. +OBJDUMP
  9511. DLLTOOL
  9512. AS
  9513. -OBJDUMP
  9514. -CXXCPP
  9515. -F77
  9516. -FFLAGS
  9517. -ac_ct_F77
  9518. -LIBTOOL
  9519. -ALLOCA
  9520. -NEED_GETOPT_TRUE
  9521. -NEED_GETOPT_FALSE
  9522. -BUILD_ESDDSP_TRUE
  9523. -BUILD_ESDDSP_FALSE
  9524. -ARTS_CONFIG
  9525. -ARTS_CXXFLAGS
  9526. -ARTS_LIBS
  9527. -ESD_DIR
  9528. -ESD_PC_DIR
  9529. -PKG_CONFIG
  9530. -AUDIOFILE_CFLAGS
  9531. -AUDIOFILE_LIBS
  9532. -BUILD_ESDPLAY_TRUE
  9533. -BUILD_ESDPLAY_FALSE
  9534. -JW
  9535. -HAVE_JW_TRUE
  9536. -HAVE_JW_FALSE
  9537. -WRAP_LIB
  9538. -SOUND_LIBS
  9539. -DL_LIB
  9540. -DOCS
  9541. -DISTDOCS
  9542. -LIBOBJS
  9543. -LTLIBOBJS'
  9544. +CPP
  9545. +am__fastdepCXX_FALSE
  9546. +am__fastdepCXX_TRUE
  9547. +CXXDEPMODE
  9548. +ac_ct_CXX
  9549. +CXXFLAGS
  9550. +CXX
  9551. +am__fastdepCC_FALSE
  9552. +am__fastdepCC_TRUE
  9553. +CCDEPMODE
  9554. +AMDEPBACKSLASH
  9555. +AMDEP_FALSE
  9556. +AMDEP_TRUE
  9557. +am__quote
  9558. +am__include
  9559. +DEPDIR
  9560. +OBJEXT
  9561. +EXEEXT
  9562. +ac_ct_CC
  9563. +CPPFLAGS
  9564. +LDFLAGS
  9565. +CFLAGS
  9566. +CC
  9567. +ESD_VERSION_INFO
  9568. +ESD_VERSION
  9569. +ESD_MICRO_VERSION
  9570. +ESD_MINOR_VERSION
  9571. +ESD_MAJOR_VERSION
  9572. +MAINT
  9573. +MAINTAINER_MODE_FALSE
  9574. +MAINTAINER_MODE_TRUE
  9575. +am__untar
  9576. +am__tar
  9577. +AMTAR
  9578. +am__leading_dot
  9579. +SET_MAKE
  9580. +AWK
  9581. +mkdir_p
  9582. +MKDIR_P
  9583. +INSTALL_STRIP_PROGRAM
  9584. +STRIP
  9585. +install_sh
  9586. +MAKEINFO
  9587. +AUTOHEADER
  9588. +AUTOMAKE
  9589. +AUTOCONF
  9590. +ACLOCAL
  9591. +VERSION
  9592. +PACKAGE
  9593. +CYGPATH_W
  9594. +am__isrc
  9595. +INSTALL_DATA
  9596. +INSTALL_SCRIPT
  9597. +INSTALL_PROGRAM
  9598. +target_os
  9599. +target_vendor
  9600. +target_cpu
  9601. +target
  9602. +host_os
  9603. +host_vendor
  9604. +host_cpu
  9605. +host
  9606. +build_os
  9607. +build_vendor
  9608. +build_cpu
  9609. +build
  9610. +target_alias
  9611. +host_alias
  9612. +build_alias
  9613. +LIBS
  9614. +ECHO_T
  9615. +ECHO_N
  9616. +ECHO_C
  9617. +DEFS
  9618. +mandir
  9619. +localedir
  9620. +libdir
  9621. +psdir
  9622. +pdfdir
  9623. +dvidir
  9624. +htmldir
  9625. +infodir
  9626. +docdir
  9627. +oldincludedir
  9628. +includedir
  9629. +localstatedir
  9630. +sharedstatedir
  9631. +sysconfdir
  9632. +datadir
  9633. +datarootdir
  9634. +libexecdir
  9635. +sbindir
  9636. +bindir
  9637. +program_transform_name
  9638. +prefix
  9639. +exec_prefix
  9640. +PACKAGE_URL
  9641. +PACKAGE_BUGREPORT
  9642. +PACKAGE_STRING
  9643. +PACKAGE_VERSION
  9644. +PACKAGE_TARNAME
  9645. +PACKAGE_NAME
  9646. +PATH_SEPARATOR
  9647. +SHELL'
  9648. ac_subst_files=''
  9649. +ac_user_opts='
  9650. +enable_option_checking
  9651. +enable_maintainer_mode
  9652. +enable_dependency_tracking
  9653. +enable_shared
  9654. +enable_static
  9655. +with_pic
  9656. +enable_fast_install
  9657. +with_gnu_ld
  9658. +enable_libtool_lock
  9659. +enable_ipv6
  9660. +enable_debugging
  9661. +enable_local_sound
  9662. +enable_oss
  9663. +enable_alsa
  9664. +enable_arts
  9665. +with_arts_prefix
  9666. +with_arts_exec_prefix
  9667. +enable_artstest
  9668. +with_esd_dir
  9669. +with_libwrap
  9670. +'
  9671. ac_precious_vars='build_alias
  9672. host_alias
  9673. target_alias
  9674. @@ -925,8 +929,6 @@
  9675. CCC
  9676. CPP
  9677. CXXCPP
  9678. -F77
  9679. -FFLAGS
  9680. PKG_CONFIG
  9681. AUDIOFILE_CFLAGS
  9682. AUDIOFILE_LIBS'
  9683. @@ -935,6 +937,8 @@
  9684. # Initialize some variables set by options.
  9685. ac_init_help=
  9686. ac_init_version=false
  9687. +ac_unrecognized_opts=
  9688. +ac_unrecognized_sep=
  9689. # The variables have the same names as the options, with
  9690. # dashes changed to underlines.
  9691. cache_file=/dev/null
  9692. @@ -1033,13 +1037,20 @@
  9693. datarootdir=$ac_optarg ;;
  9694. -disable-* | --disable-*)
  9695. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  9696. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  9697. # Reject names that are not valid shell variable names.
  9698. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9699. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9700. - { (exit 1); exit 1; }; }
  9701. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  9702. - eval enable_$ac_feature=no ;;
  9703. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9704. + as_fn_error "invalid feature name: $ac_useropt"
  9705. + ac_useropt_orig=$ac_useropt
  9706. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9707. + case $ac_user_opts in
  9708. + *"
  9709. +"enable_$ac_useropt"
  9710. +"*) ;;
  9711. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  9712. + ac_unrecognized_sep=', ';;
  9713. + esac
  9714. + eval enable_$ac_useropt=no ;;
  9715. -docdir | --docdir | --docdi | --doc | --do)
  9716. ac_prev=docdir ;;
  9717. @@ -1052,13 +1063,20 @@
  9718. dvidir=$ac_optarg ;;
  9719. -enable-* | --enable-*)
  9720. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  9721. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  9722. # Reject names that are not valid shell variable names.
  9723. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9724. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9725. - { (exit 1); exit 1; }; }
  9726. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  9727. - eval enable_$ac_feature=\$ac_optarg ;;
  9728. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9729. + as_fn_error "invalid feature name: $ac_useropt"
  9730. + ac_useropt_orig=$ac_useropt
  9731. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9732. + case $ac_user_opts in
  9733. + *"
  9734. +"enable_$ac_useropt"
  9735. +"*) ;;
  9736. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  9737. + ac_unrecognized_sep=', ';;
  9738. + esac
  9739. + eval enable_$ac_useropt=\$ac_optarg ;;
  9740. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  9741. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  9742. @@ -1249,22 +1267,36 @@
  9743. ac_init_version=: ;;
  9744. -with-* | --with-*)
  9745. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  9746. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  9747. # Reject names that are not valid shell variable names.
  9748. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9749. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  9750. - { (exit 1); exit 1; }; }
  9751. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  9752. - eval with_$ac_package=\$ac_optarg ;;
  9753. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9754. + as_fn_error "invalid package name: $ac_useropt"
  9755. + ac_useropt_orig=$ac_useropt
  9756. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9757. + case $ac_user_opts in
  9758. + *"
  9759. +"with_$ac_useropt"
  9760. +"*) ;;
  9761. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  9762. + ac_unrecognized_sep=', ';;
  9763. + esac
  9764. + eval with_$ac_useropt=\$ac_optarg ;;
  9765. -without-* | --without-*)
  9766. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  9767. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  9768. # Reject names that are not valid shell variable names.
  9769. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9770. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  9771. - { (exit 1); exit 1; }; }
  9772. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  9773. - eval with_$ac_package=no ;;
  9774. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9775. + as_fn_error "invalid package name: $ac_useropt"
  9776. + ac_useropt_orig=$ac_useropt
  9777. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9778. + case $ac_user_opts in
  9779. + *"
  9780. +"with_$ac_useropt"
  9781. +"*) ;;
  9782. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  9783. + ac_unrecognized_sep=', ';;
  9784. + esac
  9785. + eval with_$ac_useropt=no ;;
  9786. --x)
  9787. # Obsolete; use --with-x.
  9788. @@ -1284,25 +1316,25 @@
  9789. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  9790. x_libraries=$ac_optarg ;;
  9791. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  9792. -Try \`$0 --help' for more information." >&2
  9793. - { (exit 1); exit 1; }; }
  9794. + -*) as_fn_error "unrecognized option: \`$ac_option'
  9795. +Try \`$0 --help' for more information."
  9796. ;;
  9797. *=*)
  9798. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  9799. # Reject names that are not valid shell variable names.
  9800. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  9801. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  9802. - { (exit 1); exit 1; }; }
  9803. + case $ac_envvar in #(
  9804. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  9805. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  9806. + esac
  9807. eval $ac_envvar=\$ac_optarg
  9808. export $ac_envvar ;;
  9809. *)
  9810. # FIXME: should be removed in autoconf 3.0.
  9811. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  9812. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  9813. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9814. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  9815. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  9816. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  9817. ;;
  9818. @@ -1311,23 +1343,36 @@
  9819. if test -n "$ac_prev"; then
  9820. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  9821. - { echo "$as_me: error: missing argument to $ac_option" >&2
  9822. - { (exit 1); exit 1; }; }
  9823. + as_fn_error "missing argument to $ac_option"
  9824. +fi
  9825. +
  9826. +if test -n "$ac_unrecognized_opts"; then
  9827. + case $enable_option_checking in
  9828. + no) ;;
  9829. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  9830. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  9831. + esac
  9832. fi
  9833. -# Be sure to have absolute directory names.
  9834. +# Check all directory arguments for consistency.
  9835. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  9836. datadir sysconfdir sharedstatedir localstatedir includedir \
  9837. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  9838. libdir localedir mandir
  9839. do
  9840. eval ac_val=\$$ac_var
  9841. + # Remove trailing slashes.
  9842. + case $ac_val in
  9843. + */ )
  9844. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  9845. + eval $ac_var=\$ac_val;;
  9846. + esac
  9847. + # Be sure to have absolute directory names.
  9848. case $ac_val in
  9849. [\\/$]* | ?:[\\/]* ) continue;;
  9850. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  9851. esac
  9852. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9853. - { (exit 1); exit 1; }; }
  9854. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  9855. done
  9856. # There might be people who depend on the old broken behavior: `$host'
  9857. @@ -1341,7 +1386,7 @@
  9858. if test "x$host_alias" != x; then
  9859. if test "x$build_alias" = x; then
  9860. cross_compiling=maybe
  9861. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  9862. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  9863. If a cross compiler is detected then cross compile mode will be used." >&2
  9864. elif test "x$build_alias" != "x$host_alias"; then
  9865. cross_compiling=yes
  9866. @@ -1357,23 +1402,21 @@
  9867. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  9868. ac_ls_di=`ls -di .` &&
  9869. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  9870. - { echo "$as_me: error: Working directory cannot be determined" >&2
  9871. - { (exit 1); exit 1; }; }
  9872. + as_fn_error "working directory cannot be determined"
  9873. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  9874. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  9875. - { (exit 1); exit 1; }; }
  9876. + as_fn_error "pwd does not report name of working directory"
  9877. # Find the source files, if location was not specified.
  9878. if test -z "$srcdir"; then
  9879. ac_srcdir_defaulted=yes
  9880. # Try the directory containing this script, then the parent directory.
  9881. - ac_confdir=`$as_dirname -- "$0" ||
  9882. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9883. - X"$0" : 'X\(//\)[^/]' \| \
  9884. - X"$0" : 'X\(//\)$' \| \
  9885. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9886. -echo X"$0" |
  9887. + ac_confdir=`$as_dirname -- "$as_myself" ||
  9888. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9889. + X"$as_myself" : 'X\(//\)[^/]' \| \
  9890. + X"$as_myself" : 'X\(//\)$' \| \
  9891. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  9892. +$as_echo X"$as_myself" |
  9893. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9894. s//\1/
  9895. q
  9896. @@ -1400,13 +1443,11 @@
  9897. fi
  9898. if test ! -r "$srcdir/$ac_unique_file"; then
  9899. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  9900. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  9901. - { (exit 1); exit 1; }; }
  9902. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  9903. fi
  9904. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  9905. ac_abs_confdir=`(
  9906. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  9907. - { (exit 1); exit 1; }; }
  9908. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  9909. pwd)`
  9910. # When building in place, set srcdir=.
  9911. if test "$ac_abs_confdir" = "$ac_pwd"; then
  9912. @@ -1454,9 +1495,9 @@
  9913. Installation directories:
  9914. --prefix=PREFIX install architecture-independent files in PREFIX
  9915. - [$ac_default_prefix]
  9916. + [$ac_default_prefix]
  9917. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9918. - [PREFIX]
  9919. + [PREFIX]
  9920. By default, \`make install' will install all the files in
  9921. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  9922. @@ -1466,25 +1507,25 @@
  9923. For better control, use the options below.
  9924. Fine tuning of the installation directories:
  9925. - --bindir=DIR user executables [EPREFIX/bin]
  9926. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  9927. - --libexecdir=DIR program executables [EPREFIX/libexec]
  9928. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  9929. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  9930. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  9931. - --libdir=DIR object code libraries [EPREFIX/lib]
  9932. - --includedir=DIR C header files [PREFIX/include]
  9933. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  9934. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  9935. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  9936. - --infodir=DIR info documentation [DATAROOTDIR/info]
  9937. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  9938. - --mandir=DIR man documentation [DATAROOTDIR/man]
  9939. - --docdir=DIR documentation root [DATAROOTDIR/doc/esound]
  9940. - --htmldir=DIR html documentation [DOCDIR]
  9941. - --dvidir=DIR dvi documentation [DOCDIR]
  9942. - --pdfdir=DIR pdf documentation [DOCDIR]
  9943. - --psdir=DIR ps documentation [DOCDIR]
  9944. + --bindir=DIR user executables [EPREFIX/bin]
  9945. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  9946. + --libexecdir=DIR program executables [EPREFIX/libexec]
  9947. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  9948. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  9949. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  9950. + --libdir=DIR object code libraries [EPREFIX/lib]
  9951. + --includedir=DIR C header files [PREFIX/include]
  9952. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  9953. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  9954. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  9955. + --infodir=DIR info documentation [DATAROOTDIR/info]
  9956. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  9957. + --mandir=DIR man documentation [DATAROOTDIR/man]
  9958. + --docdir=DIR documentation root [DATAROOTDIR/doc/esound]
  9959. + --htmldir=DIR html documentation [DOCDIR]
  9960. + --dvidir=DIR dvi documentation [DOCDIR]
  9961. + --pdfdir=DIR pdf documentation [DOCDIR]
  9962. + --psdir=DIR ps documentation [DOCDIR]
  9963. _ACEOF
  9964. cat <<\_ACEOF
  9965. @@ -1508,6 +1549,7 @@
  9966. cat <<\_ACEOF
  9967. Optional Features:
  9968. + --disable-option-checking ignore unrecognized --enable/--with options
  9969. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  9970. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  9971. --enable-maintainer-mode enable make rules and dependencies not useful
  9972. @@ -1520,20 +1562,19 @@
  9973. optimize for fast installation [default=yes]
  9974. --disable-libtool-lock avoid locking (might break parallel builds)
  9975. --enable-ipv6 enable IPv6 extensions
  9976. - --enable-debugging enable verbose diagnostic info default=no
  9977. - --enable-local-sound turn on local sound playing default=yes
  9978. - --enable-oss use OSS if available default=yes
  9979. - --enable-alsa use ALSA if available default=yes
  9980. - --enable-arts use arts if available default=no
  9981. + --enable-debugging enable verbose diagnostic info [default=no]
  9982. + --enable-local-sound turn on local sound playing [default=yes]
  9983. + --enable-oss use OSS if available [default=yes]
  9984. + --enable-alsa use ALSA if available [default=yes]
  9985. + --enable-arts use arts if available [default=no]
  9986. --disable-artstest do not try to compile and run a test ARTS program
  9987. Optional Packages:
  9988. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  9989. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  9990. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  9991. --with-pic try to use only PIC/non-PIC objects [default=use
  9992. both]
  9993. - --with-tags[=TAGS] include additional configurations [automatic]
  9994. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  9995. --with-arts-prefix=PFX prefix where ARTS is installed (optional)
  9996. --with-arts-exec-prefix=PFX
  9997. exec prefix where ARTS is installed (optional)
  9998. @@ -1546,14 +1587,12 @@
  9999. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  10000. nonstandard directory <lib dir>
  10001. LIBS libraries to pass to the linker, e.g. -l<library>
  10002. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  10003. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  10004. you have headers in a nonstandard directory <include dir>
  10005. CXX C++ compiler command
  10006. CXXFLAGS C++ compiler flags
  10007. CPP C preprocessor
  10008. CXXCPP C++ preprocessor
  10009. - F77 Fortran 77 compiler command
  10010. - FFLAGS Fortran 77 compiler flags
  10011. PKG_CONFIG path to pkg-config utility
  10012. AUDIOFILE_CFLAGS
  10013. C compiler flags for AUDIOFILE, overriding pkg-config
  10014. @@ -1563,6 +1602,7 @@
  10015. Use these variables to override the choices made by `configure' or to help
  10016. it to find libraries and programs with nonstandard names/locations.
  10017. +Report bugs to the package provider.
  10018. _ACEOF
  10019. ac_status=$?
  10020. fi
  10021. @@ -1570,15 +1610,17 @@
  10022. if test "$ac_init_help" = "recursive"; then
  10023. # If there are subdirs, report their specific --help.
  10024. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  10025. - test -d "$ac_dir" || continue
  10026. + test -d "$ac_dir" ||
  10027. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  10028. + continue
  10029. ac_builddir=.
  10030. case "$ac_dir" in
  10031. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10032. *)
  10033. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10034. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10035. # A ".." for each directory in $ac_dir_suffix.
  10036. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  10037. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10038. case $ac_top_builddir_sub in
  10039. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10040. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10041. @@ -1614,7 +1656,7 @@
  10042. echo &&
  10043. $SHELL "$ac_srcdir/configure" --help=recursive
  10044. else
  10045. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  10046. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  10047. fi || ac_status=$?
  10048. cd "$ac_pwd" || { ac_status=$?; break; }
  10049. done
  10050. @@ -1624,21 +1666,535 @@
  10051. if $ac_init_version; then
  10052. cat <<\_ACEOF
  10053. esound configure 0.2.41
  10054. -generated by GNU Autoconf 2.61
  10055. +generated by GNU Autoconf 2.65
  10056. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  10057. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  10058. +Copyright (C) 2009 Free Software Foundation, Inc.
  10059. This configure script is free software; the Free Software Foundation
  10060. gives unlimited permission to copy, distribute and modify it.
  10061. _ACEOF
  10062. exit
  10063. fi
  10064. -cat >config.log <<_ACEOF
  10065. +
  10066. +## ------------------------ ##
  10067. +## Autoconf initialization. ##
  10068. +## ------------------------ ##
  10069. +
  10070. +# ac_fn_c_try_compile LINENO
  10071. +# --------------------------
  10072. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  10073. +ac_fn_c_try_compile ()
  10074. +{
  10075. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10076. + rm -f conftest.$ac_objext
  10077. + if { { ac_try="$ac_compile"
  10078. +case "(($ac_try" in
  10079. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10080. + *) ac_try_echo=$ac_try;;
  10081. +esac
  10082. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10083. +$as_echo "$ac_try_echo"; } >&5
  10084. + (eval "$ac_compile") 2>conftest.err
  10085. + ac_status=$?
  10086. + if test -s conftest.err; then
  10087. + grep -v '^ *+' conftest.err >conftest.er1
  10088. + cat conftest.er1 >&5
  10089. + mv -f conftest.er1 conftest.err
  10090. + fi
  10091. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10092. + test $ac_status = 0; } && {
  10093. + test -z "$ac_c_werror_flag" ||
  10094. + test ! -s conftest.err
  10095. + } && test -s conftest.$ac_objext; then :
  10096. + ac_retval=0
  10097. +else
  10098. + $as_echo "$as_me: failed program was:" >&5
  10099. +sed 's/^/| /' conftest.$ac_ext >&5
  10100. +
  10101. + ac_retval=1
  10102. +fi
  10103. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10104. + as_fn_set_status $ac_retval
  10105. +
  10106. +} # ac_fn_c_try_compile
  10107. +
  10108. +# ac_fn_cxx_try_compile LINENO
  10109. +# ----------------------------
  10110. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  10111. +ac_fn_cxx_try_compile ()
  10112. +{
  10113. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10114. + rm -f conftest.$ac_objext
  10115. + if { { ac_try="$ac_compile"
  10116. +case "(($ac_try" in
  10117. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10118. + *) ac_try_echo=$ac_try;;
  10119. +esac
  10120. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10121. +$as_echo "$ac_try_echo"; } >&5
  10122. + (eval "$ac_compile") 2>conftest.err
  10123. + ac_status=$?
  10124. + if test -s conftest.err; then
  10125. + grep -v '^ *+' conftest.err >conftest.er1
  10126. + cat conftest.er1 >&5
  10127. + mv -f conftest.er1 conftest.err
  10128. + fi
  10129. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10130. + test $ac_status = 0; } && {
  10131. + test -z "$ac_cxx_werror_flag" ||
  10132. + test ! -s conftest.err
  10133. + } && test -s conftest.$ac_objext; then :
  10134. + ac_retval=0
  10135. +else
  10136. + $as_echo "$as_me: failed program was:" >&5
  10137. +sed 's/^/| /' conftest.$ac_ext >&5
  10138. +
  10139. + ac_retval=1
  10140. +fi
  10141. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10142. + as_fn_set_status $ac_retval
  10143. +
  10144. +} # ac_fn_cxx_try_compile
  10145. +
  10146. +# ac_fn_c_try_cpp LINENO
  10147. +# ----------------------
  10148. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  10149. +ac_fn_c_try_cpp ()
  10150. +{
  10151. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10152. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  10153. +case "(($ac_try" in
  10154. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10155. + *) ac_try_echo=$ac_try;;
  10156. +esac
  10157. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10158. +$as_echo "$ac_try_echo"; } >&5
  10159. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  10160. + ac_status=$?
  10161. + if test -s conftest.err; then
  10162. + grep -v '^ *+' conftest.err >conftest.er1
  10163. + cat conftest.er1 >&5
  10164. + mv -f conftest.er1 conftest.err
  10165. + fi
  10166. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10167. + test $ac_status = 0; } >/dev/null && {
  10168. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10169. + test ! -s conftest.err
  10170. + }; then :
  10171. + ac_retval=0
  10172. +else
  10173. + $as_echo "$as_me: failed program was:" >&5
  10174. +sed 's/^/| /' conftest.$ac_ext >&5
  10175. +
  10176. + ac_retval=1
  10177. +fi
  10178. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10179. + as_fn_set_status $ac_retval
  10180. +
  10181. +} # ac_fn_c_try_cpp
  10182. +
  10183. +# ac_fn_c_try_link LINENO
  10184. +# -----------------------
  10185. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  10186. +ac_fn_c_try_link ()
  10187. +{
  10188. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10189. + rm -f conftest.$ac_objext conftest$ac_exeext
  10190. + if { { ac_try="$ac_link"
  10191. +case "(($ac_try" in
  10192. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10193. + *) ac_try_echo=$ac_try;;
  10194. +esac
  10195. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10196. +$as_echo "$ac_try_echo"; } >&5
  10197. + (eval "$ac_link") 2>conftest.err
  10198. + ac_status=$?
  10199. + if test -s conftest.err; then
  10200. + grep -v '^ *+' conftest.err >conftest.er1
  10201. + cat conftest.er1 >&5
  10202. + mv -f conftest.er1 conftest.err
  10203. + fi
  10204. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10205. + test $ac_status = 0; } && {
  10206. + test -z "$ac_c_werror_flag" ||
  10207. + test ! -s conftest.err
  10208. + } && test -s conftest$ac_exeext && {
  10209. + test "$cross_compiling" = yes ||
  10210. + $as_test_x conftest$ac_exeext
  10211. + }; then :
  10212. + ac_retval=0
  10213. +else
  10214. + $as_echo "$as_me: failed program was:" >&5
  10215. +sed 's/^/| /' conftest.$ac_ext >&5
  10216. +
  10217. + ac_retval=1
  10218. +fi
  10219. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  10220. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  10221. + # interfere with the next link command; also delete a directory that is
  10222. + # left behind by Apple's compiler. We do this before executing the actions.
  10223. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  10224. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10225. + as_fn_set_status $ac_retval
  10226. +
  10227. +} # ac_fn_c_try_link
  10228. +
  10229. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  10230. +# -------------------------------------------------------
  10231. +# Tests whether HEADER exists and can be compiled using the include files in
  10232. +# INCLUDES, setting the cache variable VAR accordingly.
  10233. +ac_fn_c_check_header_compile ()
  10234. +{
  10235. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10236. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  10237. +$as_echo_n "checking for $2... " >&6; }
  10238. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10239. + $as_echo_n "(cached) " >&6
  10240. +else
  10241. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10242. +/* end confdefs.h. */
  10243. +$4
  10244. +#include <$2>
  10245. +_ACEOF
  10246. +if ac_fn_c_try_compile "$LINENO"; then :
  10247. + eval "$3=yes"
  10248. +else
  10249. + eval "$3=no"
  10250. +fi
  10251. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10252. +fi
  10253. +eval ac_res=\$$3
  10254. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10255. +$as_echo "$ac_res" >&6; }
  10256. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10257. +
  10258. +} # ac_fn_c_check_header_compile
  10259. +
  10260. +# ac_fn_c_try_run LINENO
  10261. +# ----------------------
  10262. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  10263. +# that executables *can* be run.
  10264. +ac_fn_c_try_run ()
  10265. +{
  10266. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10267. + if { { ac_try="$ac_link"
  10268. +case "(($ac_try" in
  10269. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10270. + *) ac_try_echo=$ac_try;;
  10271. +esac
  10272. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10273. +$as_echo "$ac_try_echo"; } >&5
  10274. + (eval "$ac_link") 2>&5
  10275. + ac_status=$?
  10276. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10277. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  10278. + { { case "(($ac_try" in
  10279. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10280. + *) ac_try_echo=$ac_try;;
  10281. +esac
  10282. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10283. +$as_echo "$ac_try_echo"; } >&5
  10284. + (eval "$ac_try") 2>&5
  10285. + ac_status=$?
  10286. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10287. + test $ac_status = 0; }; }; then :
  10288. + ac_retval=0
  10289. +else
  10290. + $as_echo "$as_me: program exited with status $ac_status" >&5
  10291. + $as_echo "$as_me: failed program was:" >&5
  10292. +sed 's/^/| /' conftest.$ac_ext >&5
  10293. +
  10294. + ac_retval=$ac_status
  10295. +fi
  10296. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  10297. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10298. + as_fn_set_status $ac_retval
  10299. +
  10300. +} # ac_fn_c_try_run
  10301. +
  10302. +# ac_fn_c_check_func LINENO FUNC VAR
  10303. +# ----------------------------------
  10304. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  10305. +ac_fn_c_check_func ()
  10306. +{
  10307. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10308. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  10309. +$as_echo_n "checking for $2... " >&6; }
  10310. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10311. + $as_echo_n "(cached) " >&6
  10312. +else
  10313. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10314. +/* end confdefs.h. */
  10315. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  10316. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10317. +#define $2 innocuous_$2
  10318. +
  10319. +/* System header to define __stub macros and hopefully few prototypes,
  10320. + which can conflict with char $2 (); below.
  10321. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10322. + <limits.h> exists even on freestanding compilers. */
  10323. +
  10324. +#ifdef __STDC__
  10325. +# include <limits.h>
  10326. +#else
  10327. +# include <assert.h>
  10328. +#endif
  10329. +
  10330. +#undef $2
  10331. +
  10332. +/* Override any GCC internal prototype to avoid an error.
  10333. + Use char because int might match the return type of a GCC
  10334. + builtin and then its argument prototype would still apply. */
  10335. +#ifdef __cplusplus
  10336. +extern "C"
  10337. +#endif
  10338. +char $2 ();
  10339. +/* The GNU C library defines this for functions which it implements
  10340. + to always fail with ENOSYS. Some functions are actually named
  10341. + something starting with __ and the normal name is an alias. */
  10342. +#if defined __stub_$2 || defined __stub___$2
  10343. +choke me
  10344. +#endif
  10345. +
  10346. +int
  10347. +main ()
  10348. +{
  10349. +return $2 ();
  10350. + ;
  10351. + return 0;
  10352. +}
  10353. +_ACEOF
  10354. +if ac_fn_c_try_link "$LINENO"; then :
  10355. + eval "$3=yes"
  10356. +else
  10357. + eval "$3=no"
  10358. +fi
  10359. +rm -f core conftest.err conftest.$ac_objext \
  10360. + conftest$ac_exeext conftest.$ac_ext
  10361. +fi
  10362. +eval ac_res=\$$3
  10363. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10364. +$as_echo "$ac_res" >&6; }
  10365. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10366. +
  10367. +} # ac_fn_c_check_func
  10368. +
  10369. +# ac_fn_cxx_try_cpp LINENO
  10370. +# ------------------------
  10371. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  10372. +ac_fn_cxx_try_cpp ()
  10373. +{
  10374. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10375. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  10376. +case "(($ac_try" in
  10377. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10378. + *) ac_try_echo=$ac_try;;
  10379. +esac
  10380. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10381. +$as_echo "$ac_try_echo"; } >&5
  10382. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  10383. + ac_status=$?
  10384. + if test -s conftest.err; then
  10385. + grep -v '^ *+' conftest.err >conftest.er1
  10386. + cat conftest.er1 >&5
  10387. + mv -f conftest.er1 conftest.err
  10388. + fi
  10389. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10390. + test $ac_status = 0; } >/dev/null && {
  10391. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10392. + test ! -s conftest.err
  10393. + }; then :
  10394. + ac_retval=0
  10395. +else
  10396. + $as_echo "$as_me: failed program was:" >&5
  10397. +sed 's/^/| /' conftest.$ac_ext >&5
  10398. +
  10399. + ac_retval=1
  10400. +fi
  10401. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10402. + as_fn_set_status $ac_retval
  10403. +
  10404. +} # ac_fn_cxx_try_cpp
  10405. +
  10406. +# ac_fn_cxx_try_link LINENO
  10407. +# -------------------------
  10408. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  10409. +ac_fn_cxx_try_link ()
  10410. +{
  10411. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10412. + rm -f conftest.$ac_objext conftest$ac_exeext
  10413. + if { { ac_try="$ac_link"
  10414. +case "(($ac_try" in
  10415. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10416. + *) ac_try_echo=$ac_try;;
  10417. +esac
  10418. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10419. +$as_echo "$ac_try_echo"; } >&5
  10420. + (eval "$ac_link") 2>conftest.err
  10421. + ac_status=$?
  10422. + if test -s conftest.err; then
  10423. + grep -v '^ *+' conftest.err >conftest.er1
  10424. + cat conftest.er1 >&5
  10425. + mv -f conftest.er1 conftest.err
  10426. + fi
  10427. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10428. + test $ac_status = 0; } && {
  10429. + test -z "$ac_cxx_werror_flag" ||
  10430. + test ! -s conftest.err
  10431. + } && test -s conftest$ac_exeext && {
  10432. + test "$cross_compiling" = yes ||
  10433. + $as_test_x conftest$ac_exeext
  10434. + }; then :
  10435. + ac_retval=0
  10436. +else
  10437. + $as_echo "$as_me: failed program was:" >&5
  10438. +sed 's/^/| /' conftest.$ac_ext >&5
  10439. +
  10440. + ac_retval=1
  10441. +fi
  10442. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  10443. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  10444. + # interfere with the next link command; also delete a directory that is
  10445. + # left behind by Apple's compiler. We do this before executing the actions.
  10446. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  10447. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10448. + as_fn_set_status $ac_retval
  10449. +
  10450. +} # ac_fn_cxx_try_link
  10451. +
  10452. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  10453. +# -------------------------------------------------------
  10454. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  10455. +# the include files in INCLUDES and setting the cache variable VAR
  10456. +# accordingly.
  10457. +ac_fn_c_check_header_mongrel ()
  10458. +{
  10459. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10460. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10461. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  10462. +$as_echo_n "checking for $2... " >&6; }
  10463. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10464. + $as_echo_n "(cached) " >&6
  10465. +fi
  10466. +eval ac_res=\$$3
  10467. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10468. +$as_echo "$ac_res" >&6; }
  10469. +else
  10470. + # Is the header compilable?
  10471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  10472. +$as_echo_n "checking $2 usability... " >&6; }
  10473. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10474. +/* end confdefs.h. */
  10475. +$4
  10476. +#include <$2>
  10477. +_ACEOF
  10478. +if ac_fn_c_try_compile "$LINENO"; then :
  10479. + ac_header_compiler=yes
  10480. +else
  10481. + ac_header_compiler=no
  10482. +fi
  10483. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10484. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  10485. +$as_echo "$ac_header_compiler" >&6; }
  10486. +
  10487. +# Is the header present?
  10488. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  10489. +$as_echo_n "checking $2 presence... " >&6; }
  10490. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. +/* end confdefs.h. */
  10492. +#include <$2>
  10493. +_ACEOF
  10494. +if ac_fn_c_try_cpp "$LINENO"; then :
  10495. + ac_header_preproc=yes
  10496. +else
  10497. + ac_header_preproc=no
  10498. +fi
  10499. +rm -f conftest.err conftest.$ac_ext
  10500. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  10501. +$as_echo "$ac_header_preproc" >&6; }
  10502. +
  10503. +# So? What about this header?
  10504. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  10505. + yes:no: )
  10506. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  10507. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10508. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  10509. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  10510. + ;;
  10511. + no:yes:* )
  10512. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  10513. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  10514. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  10515. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  10516. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  10517. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  10518. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  10519. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  10520. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  10521. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  10522. + ;;
  10523. +esac
  10524. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  10525. +$as_echo_n "checking for $2... " >&6; }
  10526. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10527. + $as_echo_n "(cached) " >&6
  10528. +else
  10529. + eval "$3=\$ac_header_compiler"
  10530. +fi
  10531. +eval ac_res=\$$3
  10532. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10533. +$as_echo "$ac_res" >&6; }
  10534. +fi
  10535. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10536. +
  10537. +} # ac_fn_c_check_header_mongrel
  10538. +
  10539. +# ac_fn_cxx_try_run LINENO
  10540. +# ------------------------
  10541. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  10542. +# that executables *can* be run.
  10543. +ac_fn_cxx_try_run ()
  10544. +{
  10545. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10546. + if { { ac_try="$ac_link"
  10547. +case "(($ac_try" in
  10548. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10549. + *) ac_try_echo=$ac_try;;
  10550. +esac
  10551. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10552. +$as_echo "$ac_try_echo"; } >&5
  10553. + (eval "$ac_link") 2>&5
  10554. + ac_status=$?
  10555. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10556. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  10557. + { { case "(($ac_try" in
  10558. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10559. + *) ac_try_echo=$ac_try;;
  10560. +esac
  10561. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10562. +$as_echo "$ac_try_echo"; } >&5
  10563. + (eval "$ac_try") 2>&5
  10564. + ac_status=$?
  10565. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10566. + test $ac_status = 0; }; }; then :
  10567. + ac_retval=0
  10568. +else
  10569. + $as_echo "$as_me: program exited with status $ac_status" >&5
  10570. + $as_echo "$as_me: failed program was:" >&5
  10571. +sed 's/^/| /' conftest.$ac_ext >&5
  10572. +
  10573. + ac_retval=$ac_status
  10574. +fi
  10575. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  10576. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10577. + as_fn_set_status $ac_retval
  10578. +
  10579. +} # ac_fn_cxx_try_run
  10580. +cat >config.log <<_ACEOF
  10581. This file contains any messages produced by compilers while
  10582. running configure, to aid debugging if configure makes a mistake.
  10583. It was created by esound $as_me 0.2.41, which was
  10584. -generated by GNU Autoconf 2.61. Invocation command line was
  10585. +generated by GNU Autoconf 2.65. Invocation command line was
  10586. $ $0 $@
  10587. @@ -1674,8 +2230,8 @@
  10588. do
  10589. IFS=$as_save_IFS
  10590. test -z "$as_dir" && as_dir=.
  10591. - echo "PATH: $as_dir"
  10592. -done
  10593. + $as_echo "PATH: $as_dir"
  10594. + done
  10595. IFS=$as_save_IFS
  10596. } >&5
  10597. @@ -1709,12 +2265,12 @@
  10598. | -silent | --silent | --silen | --sile | --sil)
  10599. continue ;;
  10600. *\'*)
  10601. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10602. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10603. esac
  10604. case $ac_pass in
  10605. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  10606. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  10607. 2)
  10608. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  10609. + as_fn_append ac_configure_args1 " '$ac_arg'"
  10610. if test $ac_must_keep_next = true; then
  10611. ac_must_keep_next=false # Got value, back to normal.
  10612. else
  10613. @@ -1730,13 +2286,13 @@
  10614. -* ) ac_must_keep_next=true ;;
  10615. esac
  10616. fi
  10617. - ac_configure_args="$ac_configure_args '$ac_arg'"
  10618. + as_fn_append ac_configure_args " '$ac_arg'"
  10619. ;;
  10620. esac
  10621. done
  10622. done
  10623. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  10624. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  10625. +{ ac_configure_args0=; unset ac_configure_args0;}
  10626. +{ ac_configure_args1=; unset ac_configure_args1;}
  10627. # When interrupted or exit'd, cleanup temporary files, and complete
  10628. # config.log. We remove comments because anyway the quotes in there
  10629. @@ -1761,12 +2317,13 @@
  10630. case $ac_val in #(
  10631. *${as_nl}*)
  10632. case $ac_var in #(
  10633. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10634. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10635. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10636. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10637. esac
  10638. case $ac_var in #(
  10639. _ | IFS | as_nl) ;; #(
  10640. - *) $as_unset $ac_var ;;
  10641. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10642. + *) { eval $ac_var=; unset $ac_var;} ;;
  10643. esac ;;
  10644. esac
  10645. done
  10646. @@ -1795,9 +2352,9 @@
  10647. do
  10648. eval ac_val=\$$ac_var
  10649. case $ac_val in
  10650. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10651. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10652. esac
  10653. - echo "$ac_var='\''$ac_val'\''"
  10654. + $as_echo "$ac_var='\''$ac_val'\''"
  10655. done | sort
  10656. echo
  10657. @@ -1812,9 +2369,9 @@
  10658. do
  10659. eval ac_val=\$$ac_var
  10660. case $ac_val in
  10661. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10662. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10663. esac
  10664. - echo "$ac_var='\''$ac_val'\''"
  10665. + $as_echo "$ac_var='\''$ac_val'\''"
  10666. done | sort
  10667. echo
  10668. fi
  10669. @@ -1830,83 +2387,88 @@
  10670. echo
  10671. fi
  10672. test "$ac_signal" != 0 &&
  10673. - echo "$as_me: caught signal $ac_signal"
  10674. - echo "$as_me: exit $exit_status"
  10675. + $as_echo "$as_me: caught signal $ac_signal"
  10676. + $as_echo "$as_me: exit $exit_status"
  10677. } >&5
  10678. rm -f core *.core core.conftest.* &&
  10679. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  10680. exit $exit_status
  10681. ' 0
  10682. for ac_signal in 1 2 13 15; do
  10683. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  10684. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  10685. done
  10686. ac_signal=0
  10687. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  10688. rm -f -r conftest* confdefs.h
  10689. +$as_echo "/* confdefs.h */" > confdefs.h
  10690. +
  10691. # Predefined preprocessor variables.
  10692. cat >>confdefs.h <<_ACEOF
  10693. #define PACKAGE_NAME "$PACKAGE_NAME"
  10694. _ACEOF
  10695. -
  10696. cat >>confdefs.h <<_ACEOF
  10697. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  10698. _ACEOF
  10699. -
  10700. cat >>confdefs.h <<_ACEOF
  10701. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  10702. _ACEOF
  10703. -
  10704. cat >>confdefs.h <<_ACEOF
  10705. #define PACKAGE_STRING "$PACKAGE_STRING"
  10706. _ACEOF
  10707. -
  10708. cat >>confdefs.h <<_ACEOF
  10709. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  10710. _ACEOF
  10711. +cat >>confdefs.h <<_ACEOF
  10712. +#define PACKAGE_URL "$PACKAGE_URL"
  10713. +_ACEOF
  10714. +
  10715. # Let the site file select an alternate cache file if it wants to.
  10716. -# Prefer explicitly selected file to automatically selected ones.
  10717. +# Prefer an explicitly selected file to automatically selected ones.
  10718. +ac_site_file1=NONE
  10719. +ac_site_file2=NONE
  10720. if test -n "$CONFIG_SITE"; then
  10721. - set x "$CONFIG_SITE"
  10722. + ac_site_file1=$CONFIG_SITE
  10723. elif test "x$prefix" != xNONE; then
  10724. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  10725. + ac_site_file1=$prefix/share/config.site
  10726. + ac_site_file2=$prefix/etc/config.site
  10727. else
  10728. - set x "$ac_default_prefix/share/config.site" \
  10729. - "$ac_default_prefix/etc/config.site"
  10730. + ac_site_file1=$ac_default_prefix/share/config.site
  10731. + ac_site_file2=$ac_default_prefix/etc/config.site
  10732. fi
  10733. -shift
  10734. -for ac_site_file
  10735. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  10736. do
  10737. - if test -r "$ac_site_file"; then
  10738. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  10739. -echo "$as_me: loading site script $ac_site_file" >&6;}
  10740. + test "x$ac_site_file" = xNONE && continue
  10741. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  10742. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  10743. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  10744. sed 's/^/| /' "$ac_site_file" >&5
  10745. . "$ac_site_file"
  10746. fi
  10747. done
  10748. if test -r "$cache_file"; then
  10749. - # Some versions of bash will fail to source /dev/null (special
  10750. - # files actually), so we avoid doing that.
  10751. - if test -f "$cache_file"; then
  10752. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  10753. -echo "$as_me: loading cache $cache_file" >&6;}
  10754. + # Some versions of bash will fail to source /dev/null (special files
  10755. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  10756. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  10757. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  10758. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  10759. case $cache_file in
  10760. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  10761. *) . "./$cache_file";;
  10762. esac
  10763. fi
  10764. else
  10765. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  10766. -echo "$as_me: creating cache $cache_file" >&6;}
  10767. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  10768. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  10769. >$cache_file
  10770. fi
  10771. @@ -1920,68 +2482,56 @@
  10772. eval ac_new_val=\$ac_env_${ac_var}_value
  10773. case $ac_old_set,$ac_new_set in
  10774. set,)
  10775. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  10776. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  10777. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  10778. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  10779. ac_cache_corrupted=: ;;
  10780. ,set)
  10781. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  10782. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  10783. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  10784. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  10785. ac_cache_corrupted=: ;;
  10786. ,);;
  10787. *)
  10788. if test "x$ac_old_val" != "x$ac_new_val"; then
  10789. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  10790. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  10791. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  10792. -echo "$as_me: former value: $ac_old_val" >&2;}
  10793. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  10794. -echo "$as_me: current value: $ac_new_val" >&2;}
  10795. - ac_cache_corrupted=:
  10796. + # differences in whitespace do not lead to failure.
  10797. + ac_old_val_w=`echo x $ac_old_val`
  10798. + ac_new_val_w=`echo x $ac_new_val`
  10799. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  10800. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  10801. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  10802. + ac_cache_corrupted=:
  10803. + else
  10804. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  10805. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  10806. + eval $ac_var=\$ac_old_val
  10807. + fi
  10808. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  10809. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  10810. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  10811. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  10812. fi;;
  10813. esac
  10814. # Pass precious variables to config.status.
  10815. if test "$ac_new_set" = set; then
  10816. case $ac_new_val in
  10817. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  10818. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  10819. *) ac_arg=$ac_var=$ac_new_val ;;
  10820. esac
  10821. case " $ac_configure_args " in
  10822. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  10823. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  10824. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  10825. esac
  10826. fi
  10827. done
  10828. if $ac_cache_corrupted; then
  10829. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  10830. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  10831. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  10832. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  10833. - { (exit 1); exit 1; }; }
  10834. -fi
  10835. -
  10836. -
  10837. -
  10838. -
  10839. -
  10840. -
  10841. -
  10842. -
  10843. -
  10844. -
  10845. -
  10846. -
  10847. -
  10848. -
  10849. -
  10850. -
  10851. -
  10852. -
  10853. -
  10854. -
  10855. -
  10856. -
  10857. -
  10858. -
  10859. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10860. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10861. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  10862. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  10863. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  10864. +fi
  10865. +## -------------------- ##
  10866. +## Main body of script. ##
  10867. +## -------------------- ##
  10868. ac_ext=c
  10869. ac_cpp='$CPP $CPPFLAGS'
  10870. @@ -1998,24 +2548,16 @@
  10871. ac_aux_dir=
  10872. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  10873. - if test -f "$ac_dir/install-sh"; then
  10874. - ac_aux_dir=$ac_dir
  10875. - ac_install_sh="$ac_aux_dir/install-sh -c"
  10876. - break
  10877. - elif test -f "$ac_dir/install.sh"; then
  10878. - ac_aux_dir=$ac_dir
  10879. - ac_install_sh="$ac_aux_dir/install.sh -c"
  10880. - break
  10881. - elif test -f "$ac_dir/shtool"; then
  10882. - ac_aux_dir=$ac_dir
  10883. - ac_install_sh="$ac_aux_dir/shtool install -c"
  10884. - break
  10885. - fi
  10886. + for ac_t in install-sh install.sh shtool; do
  10887. + if test -f "$ac_dir/$ac_t"; then
  10888. + ac_aux_dir=$ac_dir
  10889. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  10890. + break 2
  10891. + fi
  10892. + done
  10893. done
  10894. if test -z "$ac_aux_dir"; then
  10895. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  10896. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  10897. - { (exit 1); exit 1; }; }
  10898. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  10899. fi
  10900. # These three variables are undocumented and unsupported,
  10901. @@ -2029,35 +2571,27 @@
  10902. # Make sure we can run config.sub.
  10903. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  10904. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  10905. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  10906. - { (exit 1); exit 1; }; }
  10907. -
  10908. -{ echo "$as_me:$LINENO: checking build system type" >&5
  10909. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  10910. -if test "${ac_cv_build+set}" = set; then
  10911. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10912. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  10913. +
  10914. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  10915. +$as_echo_n "checking build system type... " >&6; }
  10916. +if test "${ac_cv_build+set}" = set; then :
  10917. + $as_echo_n "(cached) " >&6
  10918. else
  10919. ac_build_alias=$build_alias
  10920. test "x$ac_build_alias" = x &&
  10921. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  10922. test "x$ac_build_alias" = x &&
  10923. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  10924. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  10925. - { (exit 1); exit 1; }; }
  10926. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  10927. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  10928. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  10929. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  10930. - { (exit 1); exit 1; }; }
  10931. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  10932. fi
  10933. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  10934. -echo "${ECHO_T}$ac_cv_build" >&6; }
  10935. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  10936. +$as_echo "$ac_cv_build" >&6; }
  10937. case $ac_cv_build in
  10938. *-*-*) ;;
  10939. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  10940. -echo "$as_me: error: invalid value of canonical build" >&2;}
  10941. - { (exit 1); exit 1; }; };;
  10942. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  10943. esac
  10944. build=$ac_cv_build
  10945. ac_save_IFS=$IFS; IFS='-'
  10946. @@ -2073,28 +2607,24 @@
  10947. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  10948. -{ echo "$as_me:$LINENO: checking host system type" >&5
  10949. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  10950. -if test "${ac_cv_host+set}" = set; then
  10951. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10952. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  10953. +$as_echo_n "checking host system type... " >&6; }
  10954. +if test "${ac_cv_host+set}" = set; then :
  10955. + $as_echo_n "(cached) " >&6
  10956. else
  10957. if test "x$host_alias" = x; then
  10958. ac_cv_host=$ac_cv_build
  10959. else
  10960. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  10961. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  10962. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  10963. - { (exit 1); exit 1; }; }
  10964. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  10965. fi
  10966. fi
  10967. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  10968. -echo "${ECHO_T}$ac_cv_host" >&6; }
  10969. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  10970. +$as_echo "$ac_cv_host" >&6; }
  10971. case $ac_cv_host in
  10972. *-*-*) ;;
  10973. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  10974. -echo "$as_me: error: invalid value of canonical host" >&2;}
  10975. - { (exit 1); exit 1; }; };;
  10976. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  10977. esac
  10978. host=$ac_cv_host
  10979. ac_save_IFS=$IFS; IFS='-'
  10980. @@ -2110,28 +2640,24 @@
  10981. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  10982. -{ echo "$as_me:$LINENO: checking target system type" >&5
  10983. -echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  10984. -if test "${ac_cv_target+set}" = set; then
  10985. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10986. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  10987. +$as_echo_n "checking target system type... " >&6; }
  10988. +if test "${ac_cv_target+set}" = set; then :
  10989. + $as_echo_n "(cached) " >&6
  10990. else
  10991. if test "x$target_alias" = x; then
  10992. ac_cv_target=$ac_cv_host
  10993. else
  10994. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  10995. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  10996. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  10997. - { (exit 1); exit 1; }; }
  10998. + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  10999. fi
  11000. fi
  11001. -{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  11002. -echo "${ECHO_T}$ac_cv_target" >&6; }
  11003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  11004. +$as_echo "$ac_cv_target" >&6; }
  11005. case $ac_cv_target in
  11006. *-*-*) ;;
  11007. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  11008. -echo "$as_me: error: invalid value of canonical target" >&2;}
  11009. - { (exit 1); exit 1; }; };;
  11010. +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  11011. esac
  11012. target=$ac_cv_target
  11013. ac_save_IFS=$IFS; IFS='-'
  11014. @@ -2153,7 +2679,7 @@
  11015. test "$program_prefix$program_suffix$program_transform_name" = \
  11016. NONENONEs,x,x, &&
  11017. program_prefix=${target_alias}-
  11018. -am__api_version='1.10'
  11019. +am__api_version='1.11'
  11020. # Find a good install program. We prefer a C program (faster),
  11021. # so one script is as good as another. But avoid the broken or
  11022. @@ -2168,22 +2694,23 @@
  11023. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  11024. # OS/2's system install, which has a completely different semantic
  11025. # ./install, which can be erroneously created by make from ./install.sh.
  11026. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  11027. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  11028. +# Reject install programs that cannot install multiple files.
  11029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  11030. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  11031. if test -z "$INSTALL"; then
  11032. -if test "${ac_cv_path_install+set}" = set; then
  11033. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11034. +if test "${ac_cv_path_install+set}" = set; then :
  11035. + $as_echo_n "(cached) " >&6
  11036. else
  11037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11038. for as_dir in $PATH
  11039. do
  11040. IFS=$as_save_IFS
  11041. test -z "$as_dir" && as_dir=.
  11042. - # Account for people who put trailing slashes in PATH elements.
  11043. -case $as_dir/ in
  11044. - ./ | .// | /cC/* | \
  11045. + # Account for people who put trailing slashes in PATH elements.
  11046. +case $as_dir/ in #((
  11047. + ./ | .// | /[cC]/* | \
  11048. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  11049. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  11050. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  11051. /usr/ucb/* ) ;;
  11052. *)
  11053. # OSF1 and SCO ODT 3.0 have their own names for install.
  11054. @@ -2201,17 +2728,29 @@
  11055. # program-specific install script used by HP pwplus--don't use.
  11056. :
  11057. else
  11058. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  11059. - break 3
  11060. + rm -rf conftest.one conftest.two conftest.dir
  11061. + echo one > conftest.one
  11062. + echo two > conftest.two
  11063. + mkdir conftest.dir
  11064. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  11065. + test -s conftest.one && test -s conftest.two &&
  11066. + test -s conftest.dir/conftest.one &&
  11067. + test -s conftest.dir/conftest.two
  11068. + then
  11069. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  11070. + break 3
  11071. + fi
  11072. fi
  11073. fi
  11074. done
  11075. done
  11076. ;;
  11077. esac
  11078. -done
  11079. +
  11080. + done
  11081. IFS=$as_save_IFS
  11082. +rm -rf conftest.one conftest.two conftest.dir
  11083. fi
  11084. if test "${ac_cv_path_install+set}" = set; then
  11085. @@ -2224,8 +2763,8 @@
  11086. INSTALL=$ac_install_sh
  11087. fi
  11088. fi
  11089. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  11090. -echo "${ECHO_T}$INSTALL" >&6; }
  11091. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  11092. +$as_echo "$INSTALL" >&6; }
  11093. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  11094. # It thinks the first close brace ends the variable substitution.
  11095. @@ -2235,21 +2774,34 @@
  11096. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  11097. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  11098. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  11099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  11100. +$as_echo_n "checking whether build environment is sane... " >&6; }
  11101. # Just in case
  11102. sleep 1
  11103. echo timestamp > conftest.file
  11104. +# Reject unsafe characters in $srcdir or the absolute working directory
  11105. +# name. Accept space and tab only in the latter.
  11106. +am_lf='
  11107. +'
  11108. +case `pwd` in
  11109. + *[\\\"\#\$\&\'\`$am_lf]*)
  11110. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  11111. +esac
  11112. +case $srcdir in
  11113. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  11114. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  11115. +esac
  11116. +
  11117. # Do `set' in a subshell so we don't clobber the current shell's
  11118. # arguments. Must try -L first in case configure is actually a
  11119. # symlink; some systems play weird games with the mod time of symlinks
  11120. # (eg FreeBSD returns the mod time of the symlink's containing
  11121. # directory).
  11122. if (
  11123. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11124. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11125. if test "$*" = "X"; then
  11126. # -L didn't work.
  11127. - set X `ls -t $srcdir/configure conftest.file`
  11128. + set X `ls -t "$srcdir/configure" conftest.file`
  11129. fi
  11130. rm -f conftest.file
  11131. if test "$*" != "X $srcdir/configure conftest.file" \
  11132. @@ -2259,11 +2811,8 @@
  11133. # if, for instance, CONFIG_SHELL is bash and it inherits a
  11134. # broken ls alias from the environment. This has actually
  11135. # happened. Such a system could not be considered "sane".
  11136. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  11137. -alias in your environment" >&5
  11138. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  11139. -alias in your environment" >&2;}
  11140. - { (exit 1); exit 1; }; }
  11141. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  11142. +alias in your environment" "$LINENO" 5
  11143. fi
  11144. test "$2" = conftest.file
  11145. @@ -2272,52 +2821,162 @@
  11146. # Ok.
  11147. :
  11148. else
  11149. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  11150. -Check your system clock" >&5
  11151. -echo "$as_me: error: newly created file is older than distributed files!
  11152. -Check your system clock" >&2;}
  11153. - { (exit 1); exit 1; }; }
  11154. + as_fn_error "newly created file is older than distributed files!
  11155. +Check your system clock" "$LINENO" 5
  11156. fi
  11157. -{ echo "$as_me:$LINENO: result: yes" >&5
  11158. -echo "${ECHO_T}yes" >&6; }
  11159. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11160. +$as_echo "yes" >&6; }
  11161. test "$program_prefix" != NONE &&
  11162. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  11163. # Use a double $ so make ignores it.
  11164. test "$program_suffix" != NONE &&
  11165. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  11166. -# Double any \ or $. echo might interpret backslashes.
  11167. +# Double any \ or $.
  11168. # By default was `s,x,x', remove it if useless.
  11169. -cat <<\_ACEOF >conftest.sed
  11170. -s/[\\$]/&&/g;s/;s,x,x,$//
  11171. -_ACEOF
  11172. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  11173. -rm -f conftest.sed
  11174. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  11175. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  11176. # expand $ac_aux_dir to an absolute path
  11177. am_aux_dir=`cd $ac_aux_dir && pwd`
  11178. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11179. +if test x"${MISSING+set}" != xset; then
  11180. + case $am_aux_dir in
  11181. + *\ * | *\ *)
  11182. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11183. + *)
  11184. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11185. + esac
  11186. +fi
  11187. # Use eval to expand $SHELL
  11188. if eval "$MISSING --run true"; then
  11189. am_missing_run="$MISSING --run "
  11190. else
  11191. am_missing_run=
  11192. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  11193. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  11194. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  11195. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  11196. +fi
  11197. +
  11198. +if test x"${install_sh}" != xset; then
  11199. + case $am_aux_dir in
  11200. + *\ * | *\ *)
  11201. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11202. + *)
  11203. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  11204. + esac
  11205. +fi
  11206. +
  11207. +# Installed binaries are usually stripped using `strip' when the user
  11208. +# run `make install-strip'. However `strip' might not be the right
  11209. +# tool to use in cross-compilation environments, therefore Automake
  11210. +# will honor the `STRIP' environment variable to overrule this program.
  11211. +if test "$cross_compiling" != no; then
  11212. + if test -n "$ac_tool_prefix"; then
  11213. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  11214. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  11215. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11216. +$as_echo_n "checking for $ac_word... " >&6; }
  11217. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  11218. + $as_echo_n "(cached) " >&6
  11219. +else
  11220. + if test -n "$STRIP"; then
  11221. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  11222. +else
  11223. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11224. +for as_dir in $PATH
  11225. +do
  11226. + IFS=$as_save_IFS
  11227. + test -z "$as_dir" && as_dir=.
  11228. + for ac_exec_ext in '' $ac_executable_extensions; do
  11229. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11230. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  11231. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11232. + break 2
  11233. + fi
  11234. +done
  11235. + done
  11236. +IFS=$as_save_IFS
  11237. +
  11238. +fi
  11239. +fi
  11240. +STRIP=$ac_cv_prog_STRIP
  11241. +if test -n "$STRIP"; then
  11242. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  11243. +$as_echo "$STRIP" >&6; }
  11244. +else
  11245. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11246. +$as_echo "no" >&6; }
  11247. +fi
  11248. +
  11249. +
  11250. +fi
  11251. +if test -z "$ac_cv_prog_STRIP"; then
  11252. + ac_ct_STRIP=$STRIP
  11253. + # Extract the first word of "strip", so it can be a program name with args.
  11254. +set dummy strip; ac_word=$2
  11255. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11256. +$as_echo_n "checking for $ac_word... " >&6; }
  11257. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  11258. + $as_echo_n "(cached) " >&6
  11259. +else
  11260. + if test -n "$ac_ct_STRIP"; then
  11261. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  11262. +else
  11263. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11264. +for as_dir in $PATH
  11265. +do
  11266. + IFS=$as_save_IFS
  11267. + test -z "$as_dir" && as_dir=.
  11268. + for ac_exec_ext in '' $ac_executable_extensions; do
  11269. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11270. + ac_cv_prog_ac_ct_STRIP="strip"
  11271. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11272. + break 2
  11273. + fi
  11274. +done
  11275. + done
  11276. +IFS=$as_save_IFS
  11277. +
  11278. +fi
  11279. +fi
  11280. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  11281. +if test -n "$ac_ct_STRIP"; then
  11282. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  11283. +$as_echo "$ac_ct_STRIP" >&6; }
  11284. +else
  11285. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11286. +$as_echo "no" >&6; }
  11287. +fi
  11288. +
  11289. + if test "x$ac_ct_STRIP" = x; then
  11290. + STRIP=":"
  11291. + else
  11292. + case $cross_compiling:$ac_tool_warned in
  11293. +yes:)
  11294. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11295. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11296. +ac_tool_warned=yes ;;
  11297. +esac
  11298. + STRIP=$ac_ct_STRIP
  11299. + fi
  11300. +else
  11301. + STRIP="$ac_cv_prog_STRIP"
  11302. +fi
  11303. +
  11304. fi
  11305. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11306. -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  11307. -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  11308. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  11309. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  11310. if test -z "$MKDIR_P"; then
  11311. - if test "${ac_cv_path_mkdir+set}" = set; then
  11312. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11313. + if test "${ac_cv_path_mkdir+set}" = set; then :
  11314. + $as_echo_n "(cached) " >&6
  11315. else
  11316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11317. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  11318. do
  11319. IFS=$as_save_IFS
  11320. test -z "$as_dir" && as_dir=.
  11321. - for ac_prog in mkdir gmkdir; do
  11322. + for ac_prog in mkdir gmkdir; do
  11323. for ac_exec_ext in '' $ac_executable_extensions; do
  11324. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  11325. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  11326. @@ -2329,11 +2988,12 @@
  11327. esac
  11328. done
  11329. done
  11330. -done
  11331. + done
  11332. IFS=$as_save_IFS
  11333. fi
  11334. + test -d ./--version && rmdir ./--version
  11335. if test "${ac_cv_path_mkdir+set}" = set; then
  11336. MKDIR_P="$ac_cv_path_mkdir -p"
  11337. else
  11338. @@ -2341,12 +3001,11 @@
  11339. # value for MKDIR_P within a source directory, because that will
  11340. # break other packages using the cache if that directory is
  11341. # removed, or if the value is a relative name.
  11342. - test -d ./--version && rmdir ./--version
  11343. MKDIR_P="$ac_install_sh -d"
  11344. fi
  11345. fi
  11346. -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  11347. -echo "${ECHO_T}$MKDIR_P" >&6; }
  11348. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  11349. +$as_echo "$MKDIR_P" >&6; }
  11350. mkdir_p="$MKDIR_P"
  11351. case $mkdir_p in
  11352. @@ -2358,10 +3017,10 @@
  11353. do
  11354. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11355. set dummy $ac_prog; ac_word=$2
  11356. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11357. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11358. -if test "${ac_cv_prog_AWK+set}" = set; then
  11359. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11361. +$as_echo_n "checking for $ac_word... " >&6; }
  11362. +if test "${ac_cv_prog_AWK+set}" = set; then :
  11363. + $as_echo_n "(cached) " >&6
  11364. else
  11365. if test -n "$AWK"; then
  11366. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11367. @@ -2371,36 +3030,37 @@
  11368. do
  11369. IFS=$as_save_IFS
  11370. test -z "$as_dir" && as_dir=.
  11371. - for ac_exec_ext in '' $ac_executable_extensions; do
  11372. + for ac_exec_ext in '' $ac_executable_extensions; do
  11373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11374. ac_cv_prog_AWK="$ac_prog"
  11375. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11376. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11377. break 2
  11378. fi
  11379. done
  11380. -done
  11381. + done
  11382. IFS=$as_save_IFS
  11383. fi
  11384. fi
  11385. AWK=$ac_cv_prog_AWK
  11386. if test -n "$AWK"; then
  11387. - { echo "$as_me:$LINENO: result: $AWK" >&5
  11388. -echo "${ECHO_T}$AWK" >&6; }
  11389. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11390. +$as_echo "$AWK" >&6; }
  11391. else
  11392. - { echo "$as_me:$LINENO: result: no" >&5
  11393. -echo "${ECHO_T}no" >&6; }
  11394. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11395. +$as_echo "no" >&6; }
  11396. fi
  11397. test -n "$AWK" && break
  11398. done
  11399. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  11400. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  11401. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  11402. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  11403. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11404. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  11405. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  11406. +set x ${MAKE-make}
  11407. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  11408. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  11409. + $as_echo_n "(cached) " >&6
  11410. else
  11411. cat >conftest.make <<\_ACEOF
  11412. SHELL = /bin/sh
  11413. @@ -2417,12 +3077,12 @@
  11414. rm -f conftest.make
  11415. fi
  11416. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  11417. - { echo "$as_me:$LINENO: result: yes" >&5
  11418. -echo "${ECHO_T}yes" >&6; }
  11419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11420. +$as_echo "yes" >&6; }
  11421. SET_MAKE=
  11422. else
  11423. - { echo "$as_me:$LINENO: result: no" >&5
  11424. -echo "${ECHO_T}no" >&6; }
  11425. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11426. +$as_echo "no" >&6; }
  11427. SET_MAKE="MAKE=${MAKE-make}"
  11428. fi
  11429. @@ -2441,9 +3101,7 @@
  11430. am__isrc=' -I$(srcdir)'
  11431. # test to see if srcdir already configured
  11432. if test -f $srcdir/config.status; then
  11433. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  11434. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  11435. - { (exit 1); exit 1; }; }
  11436. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  11437. fi
  11438. fi
  11439. @@ -2487,112 +3145,6 @@
  11440. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  11441. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  11442. -
  11443. -# Installed binaries are usually stripped using `strip' when the user
  11444. -# run `make install-strip'. However `strip' might not be the right
  11445. -# tool to use in cross-compilation environments, therefore Automake
  11446. -# will honor the `STRIP' environment variable to overrule this program.
  11447. -if test "$cross_compiling" != no; then
  11448. - if test -n "$ac_tool_prefix"; then
  11449. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  11450. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  11451. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11452. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11453. -if test "${ac_cv_prog_STRIP+set}" = set; then
  11454. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11455. -else
  11456. - if test -n "$STRIP"; then
  11457. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  11458. -else
  11459. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11460. -for as_dir in $PATH
  11461. -do
  11462. - IFS=$as_save_IFS
  11463. - test -z "$as_dir" && as_dir=.
  11464. - for ac_exec_ext in '' $ac_executable_extensions; do
  11465. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11466. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  11467. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11468. - break 2
  11469. - fi
  11470. -done
  11471. -done
  11472. -IFS=$as_save_IFS
  11473. -
  11474. -fi
  11475. -fi
  11476. -STRIP=$ac_cv_prog_STRIP
  11477. -if test -n "$STRIP"; then
  11478. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  11479. -echo "${ECHO_T}$STRIP" >&6; }
  11480. -else
  11481. - { echo "$as_me:$LINENO: result: no" >&5
  11482. -echo "${ECHO_T}no" >&6; }
  11483. -fi
  11484. -
  11485. -
  11486. -fi
  11487. -if test -z "$ac_cv_prog_STRIP"; then
  11488. - ac_ct_STRIP=$STRIP
  11489. - # Extract the first word of "strip", so it can be a program name with args.
  11490. -set dummy strip; ac_word=$2
  11491. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11492. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11493. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  11494. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11495. -else
  11496. - if test -n "$ac_ct_STRIP"; then
  11497. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  11498. -else
  11499. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11500. -for as_dir in $PATH
  11501. -do
  11502. - IFS=$as_save_IFS
  11503. - test -z "$as_dir" && as_dir=.
  11504. - for ac_exec_ext in '' $ac_executable_extensions; do
  11505. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11506. - ac_cv_prog_ac_ct_STRIP="strip"
  11507. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11508. - break 2
  11509. - fi
  11510. -done
  11511. -done
  11512. -IFS=$as_save_IFS
  11513. -
  11514. -fi
  11515. -fi
  11516. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  11517. -if test -n "$ac_ct_STRIP"; then
  11518. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  11519. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  11520. -else
  11521. - { echo "$as_me:$LINENO: result: no" >&5
  11522. -echo "${ECHO_T}no" >&6; }
  11523. -fi
  11524. -
  11525. - if test "x$ac_ct_STRIP" = x; then
  11526. - STRIP=":"
  11527. - else
  11528. - case $cross_compiling:$ac_tool_warned in
  11529. -yes:)
  11530. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  11531. -whose name does not start with the host triplet. If you think this
  11532. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  11533. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  11534. -whose name does not start with the host triplet. If you think this
  11535. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  11536. -ac_tool_warned=yes ;;
  11537. -esac
  11538. - STRIP=$ac_ct_STRIP
  11539. - fi
  11540. -else
  11541. - STRIP="$ac_cv_prog_STRIP"
  11542. -fi
  11543. -
  11544. -fi
  11545. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11546. -
  11547. # We need awk for the "check" target. The system "awk" is bad on
  11548. # some platforms.
  11549. # Always define AMTAR for backward compatibility.
  11550. @@ -2605,17 +3157,18 @@
  11551. -{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11552. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  11553. +
  11554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11555. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  11556. # Check whether --enable-maintainer-mode was given.
  11557. -if test "${enable_maintainer_mode+set}" = set; then
  11558. +if test "${enable_maintainer_mode+set}" = set; then :
  11559. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  11560. else
  11561. USE_MAINTAINER_MODE=no
  11562. fi
  11563. - { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  11564. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  11565. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  11566. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  11567. if test $USE_MAINTAINER_MODE = yes; then
  11568. MAINTAINER_MODE_TRUE=
  11569. MAINTAINER_MODE_FALSE='#'
  11570. @@ -2651,10 +3204,10 @@
  11571. if test -n "$ac_tool_prefix"; then
  11572. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11573. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11574. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11575. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11576. -if test "${ac_cv_prog_CC+set}" = set; then
  11577. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11579. +$as_echo_n "checking for $ac_word... " >&6; }
  11580. +if test "${ac_cv_prog_CC+set}" = set; then :
  11581. + $as_echo_n "(cached) " >&6
  11582. else
  11583. if test -n "$CC"; then
  11584. ac_cv_prog_CC="$CC" # Let the user override the test.
  11585. @@ -2664,25 +3217,25 @@
  11586. do
  11587. IFS=$as_save_IFS
  11588. test -z "$as_dir" && as_dir=.
  11589. - for ac_exec_ext in '' $ac_executable_extensions; do
  11590. + for ac_exec_ext in '' $ac_executable_extensions; do
  11591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11592. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11593. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11594. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11595. break 2
  11596. fi
  11597. done
  11598. -done
  11599. + done
  11600. IFS=$as_save_IFS
  11601. fi
  11602. fi
  11603. CC=$ac_cv_prog_CC
  11604. if test -n "$CC"; then
  11605. - { echo "$as_me:$LINENO: result: $CC" >&5
  11606. -echo "${ECHO_T}$CC" >&6; }
  11607. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11608. +$as_echo "$CC" >&6; }
  11609. else
  11610. - { echo "$as_me:$LINENO: result: no" >&5
  11611. -echo "${ECHO_T}no" >&6; }
  11612. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11613. +$as_echo "no" >&6; }
  11614. fi
  11615. @@ -2691,10 +3244,10 @@
  11616. ac_ct_CC=$CC
  11617. # Extract the first word of "gcc", so it can be a program name with args.
  11618. set dummy gcc; ac_word=$2
  11619. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11620. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11621. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11622. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11623. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11624. +$as_echo_n "checking for $ac_word... " >&6; }
  11625. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  11626. + $as_echo_n "(cached) " >&6
  11627. else
  11628. if test -n "$ac_ct_CC"; then
  11629. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11630. @@ -2704,25 +3257,25 @@
  11631. do
  11632. IFS=$as_save_IFS
  11633. test -z "$as_dir" && as_dir=.
  11634. - for ac_exec_ext in '' $ac_executable_extensions; do
  11635. + for ac_exec_ext in '' $ac_executable_extensions; do
  11636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11637. ac_cv_prog_ac_ct_CC="gcc"
  11638. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11639. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11640. break 2
  11641. fi
  11642. done
  11643. -done
  11644. + done
  11645. IFS=$as_save_IFS
  11646. fi
  11647. fi
  11648. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11649. if test -n "$ac_ct_CC"; then
  11650. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11651. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  11652. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11653. +$as_echo "$ac_ct_CC" >&6; }
  11654. else
  11655. - { echo "$as_me:$LINENO: result: no" >&5
  11656. -echo "${ECHO_T}no" >&6; }
  11657. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11658. +$as_echo "no" >&6; }
  11659. fi
  11660. if test "x$ac_ct_CC" = x; then
  11661. @@ -2730,12 +3283,8 @@
  11662. else
  11663. case $cross_compiling:$ac_tool_warned in
  11664. yes:)
  11665. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  11666. -whose name does not start with the host triplet. If you think this
  11667. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  11668. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  11669. -whose name does not start with the host triplet. If you think this
  11670. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  11671. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11672. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11673. ac_tool_warned=yes ;;
  11674. esac
  11675. CC=$ac_ct_CC
  11676. @@ -2748,10 +3297,10 @@
  11677. if test -n "$ac_tool_prefix"; then
  11678. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11679. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11680. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11681. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11682. -if test "${ac_cv_prog_CC+set}" = set; then
  11683. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11684. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11685. +$as_echo_n "checking for $ac_word... " >&6; }
  11686. +if test "${ac_cv_prog_CC+set}" = set; then :
  11687. + $as_echo_n "(cached) " >&6
  11688. else
  11689. if test -n "$CC"; then
  11690. ac_cv_prog_CC="$CC" # Let the user override the test.
  11691. @@ -2761,25 +3310,25 @@
  11692. do
  11693. IFS=$as_save_IFS
  11694. test -z "$as_dir" && as_dir=.
  11695. - for ac_exec_ext in '' $ac_executable_extensions; do
  11696. + for ac_exec_ext in '' $ac_executable_extensions; do
  11697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11698. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11699. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11700. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11701. break 2
  11702. fi
  11703. done
  11704. -done
  11705. + done
  11706. IFS=$as_save_IFS
  11707. fi
  11708. fi
  11709. CC=$ac_cv_prog_CC
  11710. if test -n "$CC"; then
  11711. - { echo "$as_me:$LINENO: result: $CC" >&5
  11712. -echo "${ECHO_T}$CC" >&6; }
  11713. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11714. +$as_echo "$CC" >&6; }
  11715. else
  11716. - { echo "$as_me:$LINENO: result: no" >&5
  11717. -echo "${ECHO_T}no" >&6; }
  11718. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11719. +$as_echo "no" >&6; }
  11720. fi
  11721. @@ -2788,10 +3337,10 @@
  11722. if test -z "$CC"; then
  11723. # Extract the first word of "cc", so it can be a program name with args.
  11724. set dummy cc; ac_word=$2
  11725. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11726. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11727. -if test "${ac_cv_prog_CC+set}" = set; then
  11728. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11730. +$as_echo_n "checking for $ac_word... " >&6; }
  11731. +if test "${ac_cv_prog_CC+set}" = set; then :
  11732. + $as_echo_n "(cached) " >&6
  11733. else
  11734. if test -n "$CC"; then
  11735. ac_cv_prog_CC="$CC" # Let the user override the test.
  11736. @@ -2802,18 +3351,18 @@
  11737. do
  11738. IFS=$as_save_IFS
  11739. test -z "$as_dir" && as_dir=.
  11740. - for ac_exec_ext in '' $ac_executable_extensions; do
  11741. + for ac_exec_ext in '' $ac_executable_extensions; do
  11742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11743. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11744. ac_prog_rejected=yes
  11745. continue
  11746. fi
  11747. ac_cv_prog_CC="cc"
  11748. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11749. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11750. break 2
  11751. fi
  11752. done
  11753. -done
  11754. + done
  11755. IFS=$as_save_IFS
  11756. if test $ac_prog_rejected = yes; then
  11757. @@ -2832,11 +3381,11 @@
  11758. fi
  11759. CC=$ac_cv_prog_CC
  11760. if test -n "$CC"; then
  11761. - { echo "$as_me:$LINENO: result: $CC" >&5
  11762. -echo "${ECHO_T}$CC" >&6; }
  11763. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11764. +$as_echo "$CC" >&6; }
  11765. else
  11766. - { echo "$as_me:$LINENO: result: no" >&5
  11767. -echo "${ECHO_T}no" >&6; }
  11768. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11769. +$as_echo "no" >&6; }
  11770. fi
  11771. @@ -2847,10 +3396,10 @@
  11772. do
  11773. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11774. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11775. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11776. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11777. -if test "${ac_cv_prog_CC+set}" = set; then
  11778. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11779. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11780. +$as_echo_n "checking for $ac_word... " >&6; }
  11781. +if test "${ac_cv_prog_CC+set}" = set; then :
  11782. + $as_echo_n "(cached) " >&6
  11783. else
  11784. if test -n "$CC"; then
  11785. ac_cv_prog_CC="$CC" # Let the user override the test.
  11786. @@ -2860,25 +3409,25 @@
  11787. do
  11788. IFS=$as_save_IFS
  11789. test -z "$as_dir" && as_dir=.
  11790. - for ac_exec_ext in '' $ac_executable_extensions; do
  11791. + for ac_exec_ext in '' $ac_executable_extensions; do
  11792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11793. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11794. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11795. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11796. break 2
  11797. fi
  11798. done
  11799. -done
  11800. + done
  11801. IFS=$as_save_IFS
  11802. fi
  11803. fi
  11804. CC=$ac_cv_prog_CC
  11805. if test -n "$CC"; then
  11806. - { echo "$as_me:$LINENO: result: $CC" >&5
  11807. -echo "${ECHO_T}$CC" >&6; }
  11808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11809. +$as_echo "$CC" >&6; }
  11810. else
  11811. - { echo "$as_me:$LINENO: result: no" >&5
  11812. -echo "${ECHO_T}no" >&6; }
  11813. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11814. +$as_echo "no" >&6; }
  11815. fi
  11816. @@ -2891,10 +3440,10 @@
  11817. do
  11818. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11819. set dummy $ac_prog; ac_word=$2
  11820. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11821. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11822. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11823. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11825. +$as_echo_n "checking for $ac_word... " >&6; }
  11826. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  11827. + $as_echo_n "(cached) " >&6
  11828. else
  11829. if test -n "$ac_ct_CC"; then
  11830. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11831. @@ -2904,25 +3453,25 @@
  11832. do
  11833. IFS=$as_save_IFS
  11834. test -z "$as_dir" && as_dir=.
  11835. - for ac_exec_ext in '' $ac_executable_extensions; do
  11836. + for ac_exec_ext in '' $ac_executable_extensions; do
  11837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11838. ac_cv_prog_ac_ct_CC="$ac_prog"
  11839. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11840. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11841. break 2
  11842. fi
  11843. done
  11844. -done
  11845. + done
  11846. IFS=$as_save_IFS
  11847. fi
  11848. fi
  11849. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11850. if test -n "$ac_ct_CC"; then
  11851. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11852. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  11853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11854. +$as_echo "$ac_ct_CC" >&6; }
  11855. else
  11856. - { echo "$as_me:$LINENO: result: no" >&5
  11857. -echo "${ECHO_T}no" >&6; }
  11858. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11859. +$as_echo "no" >&6; }
  11860. fi
  11861. @@ -2934,12 +3483,8 @@
  11862. else
  11863. case $cross_compiling:$ac_tool_warned in
  11864. yes:)
  11865. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  11866. -whose name does not start with the host triplet. If you think this
  11867. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  11868. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  11869. -whose name does not start with the host triplet. If you think this
  11870. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  11871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11872. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11873. ac_tool_warned=yes ;;
  11874. esac
  11875. CC=$ac_ct_CC
  11876. @@ -2949,51 +3494,37 @@
  11877. fi
  11878. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  11879. -See \`config.log' for more details." >&5
  11880. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  11881. -See \`config.log' for more details." >&2;}
  11882. - { (exit 1); exit 1; }; }
  11883. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11884. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11885. +as_fn_error "no acceptable C compiler found in \$PATH
  11886. +See \`config.log' for more details." "$LINENO" 5; }
  11887. # Provide some information about the compiler.
  11888. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  11889. -ac_compiler=`set X $ac_compile; echo $2`
  11890. -{ (ac_try="$ac_compiler --version >&5"
  11891. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11892. +set X $ac_compile
  11893. +ac_compiler=$2
  11894. +for ac_option in --version -v -V -qversion; do
  11895. + { { ac_try="$ac_compiler $ac_option >&5"
  11896. case "(($ac_try" in
  11897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11898. *) ac_try_echo=$ac_try;;
  11899. esac
  11900. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11901. - (eval "$ac_compiler --version >&5") 2>&5
  11902. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11903. +$as_echo "$ac_try_echo"; } >&5
  11904. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11905. ac_status=$?
  11906. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11907. - (exit $ac_status); }
  11908. -{ (ac_try="$ac_compiler -v >&5"
  11909. -case "(($ac_try" in
  11910. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11911. - *) ac_try_echo=$ac_try;;
  11912. -esac
  11913. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11914. - (eval "$ac_compiler -v >&5") 2>&5
  11915. - ac_status=$?
  11916. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11917. - (exit $ac_status); }
  11918. -{ (ac_try="$ac_compiler -V >&5"
  11919. -case "(($ac_try" in
  11920. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11921. - *) ac_try_echo=$ac_try;;
  11922. -esac
  11923. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11924. - (eval "$ac_compiler -V >&5") 2>&5
  11925. - ac_status=$?
  11926. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11927. - (exit $ac_status); }
  11928. + if test -s conftest.err; then
  11929. + sed '10a\
  11930. +... rest of stderr output deleted ...
  11931. + 10q' conftest.err >conftest.er1
  11932. + cat conftest.er1 >&5
  11933. + fi
  11934. + rm -f conftest.er1 conftest.err
  11935. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11936. + test $ac_status = 0; }
  11937. +done
  11938. -cat >conftest.$ac_ext <<_ACEOF
  11939. -/* confdefs.h. */
  11940. -_ACEOF
  11941. -cat confdefs.h >>conftest.$ac_ext
  11942. -cat >>conftest.$ac_ext <<_ACEOF
  11943. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11944. /* end confdefs.h. */
  11945. int
  11946. @@ -3005,42 +3536,38 @@
  11947. }
  11948. _ACEOF
  11949. ac_clean_files_save=$ac_clean_files
  11950. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  11951. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  11952. # Try to create an executable without -o first, disregard a.out.
  11953. # It will help us diagnose broken compilers, and finding out an intuition
  11954. # of exeext.
  11955. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  11956. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  11957. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  11958. -#
  11959. -# List of possible output files, starting from the most likely.
  11960. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  11961. -# only as a last resort. b.out is created by i960 compilers.
  11962. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  11963. -#
  11964. -# The IRIX 6 linker writes into existing files which may not be
  11965. -# executable, retaining their permissions. Remove them first so a
  11966. -# subsequent execution test works.
  11967. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  11968. +$as_echo_n "checking whether the C compiler works... " >&6; }
  11969. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  11970. +
  11971. +# The possible output files:
  11972. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  11973. +
  11974. ac_rmfiles=
  11975. for ac_file in $ac_files
  11976. do
  11977. case $ac_file in
  11978. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  11979. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  11980. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  11981. esac
  11982. done
  11983. rm -f $ac_rmfiles
  11984. -if { (ac_try="$ac_link_default"
  11985. +if { { ac_try="$ac_link_default"
  11986. case "(($ac_try" in
  11987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11988. *) ac_try_echo=$ac_try;;
  11989. esac
  11990. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11991. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11992. +$as_echo "$ac_try_echo"; } >&5
  11993. (eval "$ac_link_default") 2>&5
  11994. ac_status=$?
  11995. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11996. - (exit $ac_status); }; then
  11997. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11998. + test $ac_status = 0; }; then :
  11999. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  12000. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  12001. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  12002. @@ -3050,14 +3577,14 @@
  12003. do
  12004. test -f "$ac_file" || continue
  12005. case $ac_file in
  12006. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  12007. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  12008. ;;
  12009. [ab].out )
  12010. # We found the default executable, but exeext='' is most
  12011. # certainly right.
  12012. break;;
  12013. *.* )
  12014. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  12015. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  12016. then :; else
  12017. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  12018. fi
  12019. @@ -3076,78 +3603,42 @@
  12020. else
  12021. ac_file=''
  12022. fi
  12023. -
  12024. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  12025. -echo "${ECHO_T}$ac_file" >&6; }
  12026. -if test -z "$ac_file"; then
  12027. - echo "$as_me: failed program was:" >&5
  12028. -sed 's/^/| /' conftest.$ac_ext >&5
  12029. -
  12030. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  12031. -See \`config.log' for more details." >&5
  12032. -echo "$as_me: error: C compiler cannot create executables
  12033. -See \`config.log' for more details." >&2;}
  12034. - { (exit 77); exit 77; }; }
  12035. -fi
  12036. -
  12037. +if test -z "$ac_file"; then :
  12038. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12039. +$as_echo "no" >&6; }
  12040. +$as_echo "$as_me: failed program was:" >&5
  12041. +sed 's/^/| /' conftest.$ac_ext >&5
  12042. +
  12043. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12044. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12045. +{ as_fn_set_status 77
  12046. +as_fn_error "C compiler cannot create executables
  12047. +See \`config.log' for more details." "$LINENO" 5; }; }
  12048. +else
  12049. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12050. +$as_echo "yes" >&6; }
  12051. +fi
  12052. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  12053. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  12054. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  12055. +$as_echo "$ac_file" >&6; }
  12056. ac_exeext=$ac_cv_exeext
  12057. -# Check that the compiler produces executables we can run. If not, either
  12058. -# the compiler is broken, or we cross compile.
  12059. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  12060. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  12061. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  12062. -# If not cross compiling, check that we can run a simple program.
  12063. -if test "$cross_compiling" != yes; then
  12064. - if { ac_try='./$ac_file'
  12065. - { (case "(($ac_try" in
  12066. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12067. - *) ac_try_echo=$ac_try;;
  12068. -esac
  12069. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12070. - (eval "$ac_try") 2>&5
  12071. - ac_status=$?
  12072. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12073. - (exit $ac_status); }; }; then
  12074. - cross_compiling=no
  12075. - else
  12076. - if test "$cross_compiling" = maybe; then
  12077. - cross_compiling=yes
  12078. - else
  12079. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  12080. -If you meant to cross compile, use \`--host'.
  12081. -See \`config.log' for more details." >&5
  12082. -echo "$as_me: error: cannot run C compiled programs.
  12083. -If you meant to cross compile, use \`--host'.
  12084. -See \`config.log' for more details." >&2;}
  12085. - { (exit 1); exit 1; }; }
  12086. - fi
  12087. - fi
  12088. -fi
  12089. -{ echo "$as_me:$LINENO: result: yes" >&5
  12090. -echo "${ECHO_T}yes" >&6; }
  12091. -
  12092. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  12093. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  12094. ac_clean_files=$ac_clean_files_save
  12095. -# Check that the compiler produces executables we can run. If not, either
  12096. -# the compiler is broken, or we cross compile.
  12097. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  12098. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  12099. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  12100. -echo "${ECHO_T}$cross_compiling" >&6; }
  12101. -
  12102. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  12103. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  12104. -if { (ac_try="$ac_link"
  12105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  12106. +$as_echo_n "checking for suffix of executables... " >&6; }
  12107. +if { { ac_try="$ac_link"
  12108. case "(($ac_try" in
  12109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12110. *) ac_try_echo=$ac_try;;
  12111. esac
  12112. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12113. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12114. +$as_echo "$ac_try_echo"; } >&5
  12115. (eval "$ac_link") 2>&5
  12116. ac_status=$?
  12117. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. - (exit $ac_status); }; then
  12119. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12120. + test $ac_status = 0; }; then :
  12121. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  12122. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  12123. # work properly (i.e., refer to `conftest.exe'), while it won't with
  12124. @@ -3155,154 +3646,182 @@
  12125. for ac_file in conftest.exe conftest conftest.*; do
  12126. test -f "$ac_file" || continue
  12127. case $ac_file in
  12128. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  12129. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  12130. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  12131. break;;
  12132. * ) break;;
  12133. esac
  12134. done
  12135. else
  12136. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  12137. -See \`config.log' for more details." >&5
  12138. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  12139. -See \`config.log' for more details." >&2;}
  12140. - { (exit 1); exit 1; }; }
  12141. -fi
  12142. -
  12143. -rm -f conftest$ac_cv_exeext
  12144. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  12145. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  12146. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12147. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12148. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  12149. +See \`config.log' for more details." "$LINENO" 5; }
  12150. +fi
  12151. +rm -f conftest conftest$ac_cv_exeext
  12152. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  12153. +$as_echo "$ac_cv_exeext" >&6; }
  12154. rm -f conftest.$ac_ext
  12155. EXEEXT=$ac_cv_exeext
  12156. ac_exeext=$EXEEXT
  12157. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  12158. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  12159. -if test "${ac_cv_objext+set}" = set; then
  12160. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12161. -else
  12162. - cat >conftest.$ac_ext <<_ACEOF
  12163. -/* confdefs.h. */
  12164. -_ACEOF
  12165. -cat confdefs.h >>conftest.$ac_ext
  12166. -cat >>conftest.$ac_ext <<_ACEOF
  12167. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12168. /* end confdefs.h. */
  12169. -
  12170. +#include <stdio.h>
  12171. int
  12172. main ()
  12173. {
  12174. +FILE *f = fopen ("conftest.out", "w");
  12175. + return ferror (f) || fclose (f) != 0;
  12176. ;
  12177. return 0;
  12178. }
  12179. _ACEOF
  12180. -rm -f conftest.o conftest.obj
  12181. -if { (ac_try="$ac_compile"
  12182. +ac_clean_files="$ac_clean_files conftest.out"
  12183. +# Check that the compiler produces executables we can run. If not, either
  12184. +# the compiler is broken, or we cross compile.
  12185. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  12186. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  12187. +if test "$cross_compiling" != yes; then
  12188. + { { ac_try="$ac_link"
  12189. case "(($ac_try" in
  12190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12191. *) ac_try_echo=$ac_try;;
  12192. esac
  12193. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12194. - (eval "$ac_compile") 2>&5
  12195. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12196. +$as_echo "$ac_try_echo"; } >&5
  12197. + (eval "$ac_link") 2>&5
  12198. ac_status=$?
  12199. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12200. - (exit $ac_status); }; then
  12201. - for ac_file in conftest.o conftest.obj conftest.*; do
  12202. - test -f "$ac_file" || continue;
  12203. - case $ac_file in
  12204. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  12205. - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  12206. - break;;
  12207. - esac
  12208. -done
  12209. -else
  12210. - echo "$as_me: failed program was:" >&5
  12211. -sed 's/^/| /' conftest.$ac_ext >&5
  12212. -
  12213. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  12214. -See \`config.log' for more details." >&5
  12215. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  12216. -See \`config.log' for more details." >&2;}
  12217. - { (exit 1); exit 1; }; }
  12218. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12219. + test $ac_status = 0; }
  12220. + if { ac_try='./conftest$ac_cv_exeext'
  12221. + { { case "(($ac_try" in
  12222. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12223. + *) ac_try_echo=$ac_try;;
  12224. +esac
  12225. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12226. +$as_echo "$ac_try_echo"; } >&5
  12227. + (eval "$ac_try") 2>&5
  12228. + ac_status=$?
  12229. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12230. + test $ac_status = 0; }; }; then
  12231. + cross_compiling=no
  12232. + else
  12233. + if test "$cross_compiling" = maybe; then
  12234. + cross_compiling=yes
  12235. + else
  12236. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12237. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12238. +as_fn_error "cannot run C compiled programs.
  12239. +If you meant to cross compile, use \`--host'.
  12240. +See \`config.log' for more details." "$LINENO" 5; }
  12241. + fi
  12242. + fi
  12243. fi
  12244. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  12245. +$as_echo "$cross_compiling" >&6; }
  12246. -rm -f conftest.$ac_cv_objext conftest.$ac_ext
  12247. -fi
  12248. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  12249. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  12250. -OBJEXT=$ac_cv_objext
  12251. -ac_objext=$OBJEXT
  12252. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  12253. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  12254. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  12255. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12256. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  12257. +ac_clean_files=$ac_clean_files_save
  12258. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  12259. +$as_echo_n "checking for suffix of object files... " >&6; }
  12260. +if test "${ac_cv_objext+set}" = set; then :
  12261. + $as_echo_n "(cached) " >&6
  12262. else
  12263. - cat >conftest.$ac_ext <<_ACEOF
  12264. -/* confdefs.h. */
  12265. -_ACEOF
  12266. -cat confdefs.h >>conftest.$ac_ext
  12267. -cat >>conftest.$ac_ext <<_ACEOF
  12268. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12269. /* end confdefs.h. */
  12270. int
  12271. main ()
  12272. {
  12273. -#ifndef __GNUC__
  12274. - choke me
  12275. -#endif
  12276. ;
  12277. return 0;
  12278. }
  12279. _ACEOF
  12280. -rm -f conftest.$ac_objext
  12281. -if { (ac_try="$ac_compile"
  12282. +rm -f conftest.o conftest.obj
  12283. +if { { ac_try="$ac_compile"
  12284. case "(($ac_try" in
  12285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12286. *) ac_try_echo=$ac_try;;
  12287. esac
  12288. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12289. - (eval "$ac_compile") 2>conftest.er1
  12290. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12291. +$as_echo "$ac_try_echo"; } >&5
  12292. + (eval "$ac_compile") 2>&5
  12293. ac_status=$?
  12294. - grep -v '^ *+' conftest.er1 >conftest.err
  12295. - rm -f conftest.er1
  12296. - cat conftest.err >&5
  12297. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12298. - (exit $ac_status); } && {
  12299. - test -z "$ac_c_werror_flag" ||
  12300. - test ! -s conftest.err
  12301. - } && test -s conftest.$ac_objext; then
  12302. - ac_compiler_gnu=yes
  12303. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12304. + test $ac_status = 0; }; then :
  12305. + for ac_file in conftest.o conftest.obj conftest.*; do
  12306. + test -f "$ac_file" || continue;
  12307. + case $ac_file in
  12308. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  12309. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  12310. + break;;
  12311. + esac
  12312. +done
  12313. else
  12314. - echo "$as_me: failed program was:" >&5
  12315. + $as_echo "$as_me: failed program was:" >&5
  12316. sed 's/^/| /' conftest.$ac_ext >&5
  12317. - ac_compiler_gnu=no
  12318. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12319. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12320. +as_fn_error "cannot compute suffix of object files: cannot compile
  12321. +See \`config.log' for more details." "$LINENO" 5; }
  12322. fi
  12323. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  12324. +fi
  12325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  12326. +$as_echo "$ac_cv_objext" >&6; }
  12327. +OBJEXT=$ac_cv_objext
  12328. +ac_objext=$OBJEXT
  12329. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  12330. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  12331. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  12332. + $as_echo_n "(cached) " >&6
  12333. +else
  12334. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12335. +/* end confdefs.h. */
  12336. +
  12337. +int
  12338. +main ()
  12339. +{
  12340. +#ifndef __GNUC__
  12341. + choke me
  12342. +#endif
  12343. + ;
  12344. + return 0;
  12345. +}
  12346. +_ACEOF
  12347. +if ac_fn_c_try_compile "$LINENO"; then :
  12348. + ac_compiler_gnu=yes
  12349. +else
  12350. + ac_compiler_gnu=no
  12351. +fi
  12352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12353. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  12354. fi
  12355. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  12356. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  12357. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  12358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  12359. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  12360. +if test $ac_compiler_gnu = yes; then
  12361. + GCC=yes
  12362. +else
  12363. + GCC=
  12364. +fi
  12365. ac_test_CFLAGS=${CFLAGS+set}
  12366. ac_save_CFLAGS=$CFLAGS
  12367. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  12368. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  12369. -if test "${ac_cv_prog_cc_g+set}" = set; then
  12370. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12371. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  12372. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  12373. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  12374. + $as_echo_n "(cached) " >&6
  12375. else
  12376. ac_save_c_werror_flag=$ac_c_werror_flag
  12377. ac_c_werror_flag=yes
  12378. ac_cv_prog_cc_g=no
  12379. CFLAGS="-g"
  12380. - cat >conftest.$ac_ext <<_ACEOF
  12381. -/* confdefs.h. */
  12382. -_ACEOF
  12383. -cat confdefs.h >>conftest.$ac_ext
  12384. -cat >>conftest.$ac_ext <<_ACEOF
  12385. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12386. /* end confdefs.h. */
  12387. int
  12388. @@ -3313,34 +3832,11 @@
  12389. return 0;
  12390. }
  12391. _ACEOF
  12392. -rm -f conftest.$ac_objext
  12393. -if { (ac_try="$ac_compile"
  12394. -case "(($ac_try" in
  12395. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12396. - *) ac_try_echo=$ac_try;;
  12397. -esac
  12398. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12399. - (eval "$ac_compile") 2>conftest.er1
  12400. - ac_status=$?
  12401. - grep -v '^ *+' conftest.er1 >conftest.err
  12402. - rm -f conftest.er1
  12403. - cat conftest.err >&5
  12404. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405. - (exit $ac_status); } && {
  12406. - test -z "$ac_c_werror_flag" ||
  12407. - test ! -s conftest.err
  12408. - } && test -s conftest.$ac_objext; then
  12409. +if ac_fn_c_try_compile "$LINENO"; then :
  12410. ac_cv_prog_cc_g=yes
  12411. else
  12412. - echo "$as_me: failed program was:" >&5
  12413. -sed 's/^/| /' conftest.$ac_ext >&5
  12414. -
  12415. - CFLAGS=""
  12416. - cat >conftest.$ac_ext <<_ACEOF
  12417. -/* confdefs.h. */
  12418. -_ACEOF
  12419. -cat confdefs.h >>conftest.$ac_ext
  12420. -cat >>conftest.$ac_ext <<_ACEOF
  12421. + CFLAGS=""
  12422. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12423. /* end confdefs.h. */
  12424. int
  12425. @@ -3351,35 +3847,12 @@
  12426. return 0;
  12427. }
  12428. _ACEOF
  12429. -rm -f conftest.$ac_objext
  12430. -if { (ac_try="$ac_compile"
  12431. -case "(($ac_try" in
  12432. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12433. - *) ac_try_echo=$ac_try;;
  12434. -esac
  12435. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12436. - (eval "$ac_compile") 2>conftest.er1
  12437. - ac_status=$?
  12438. - grep -v '^ *+' conftest.er1 >conftest.err
  12439. - rm -f conftest.er1
  12440. - cat conftest.err >&5
  12441. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12442. - (exit $ac_status); } && {
  12443. - test -z "$ac_c_werror_flag" ||
  12444. - test ! -s conftest.err
  12445. - } && test -s conftest.$ac_objext; then
  12446. - :
  12447. -else
  12448. - echo "$as_me: failed program was:" >&5
  12449. -sed 's/^/| /' conftest.$ac_ext >&5
  12450. +if ac_fn_c_try_compile "$LINENO"; then :
  12451. - ac_c_werror_flag=$ac_save_c_werror_flag
  12452. +else
  12453. + ac_c_werror_flag=$ac_save_c_werror_flag
  12454. CFLAGS="-g"
  12455. - cat >conftest.$ac_ext <<_ACEOF
  12456. -/* confdefs.h. */
  12457. -_ACEOF
  12458. -cat confdefs.h >>conftest.$ac_ext
  12459. -cat >>conftest.$ac_ext <<_ACEOF
  12460. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12461. /* end confdefs.h. */
  12462. int
  12463. @@ -3390,42 +3863,18 @@
  12464. return 0;
  12465. }
  12466. _ACEOF
  12467. -rm -f conftest.$ac_objext
  12468. -if { (ac_try="$ac_compile"
  12469. -case "(($ac_try" in
  12470. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12471. - *) ac_try_echo=$ac_try;;
  12472. -esac
  12473. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12474. - (eval "$ac_compile") 2>conftest.er1
  12475. - ac_status=$?
  12476. - grep -v '^ *+' conftest.er1 >conftest.err
  12477. - rm -f conftest.er1
  12478. - cat conftest.err >&5
  12479. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12480. - (exit $ac_status); } && {
  12481. - test -z "$ac_c_werror_flag" ||
  12482. - test ! -s conftest.err
  12483. - } && test -s conftest.$ac_objext; then
  12484. +if ac_fn_c_try_compile "$LINENO"; then :
  12485. ac_cv_prog_cc_g=yes
  12486. -else
  12487. - echo "$as_me: failed program was:" >&5
  12488. -sed 's/^/| /' conftest.$ac_ext >&5
  12489. -
  12490. -
  12491. fi
  12492. -
  12493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12494. fi
  12495. -
  12496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12497. fi
  12498. -
  12499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12500. ac_c_werror_flag=$ac_save_c_werror_flag
  12501. fi
  12502. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  12503. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  12504. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  12505. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  12506. if test "$ac_test_CFLAGS" = set; then
  12507. CFLAGS=$ac_save_CFLAGS
  12508. elif test $ac_cv_prog_cc_g = yes; then
  12509. @@ -3441,18 +3890,14 @@
  12510. CFLAGS=
  12511. fi
  12512. fi
  12513. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  12514. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  12515. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  12516. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12517. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12518. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12519. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  12520. + $as_echo_n "(cached) " >&6
  12521. else
  12522. ac_cv_prog_cc_c89=no
  12523. ac_save_CC=$CC
  12524. -cat >conftest.$ac_ext <<_ACEOF
  12525. -/* confdefs.h. */
  12526. -_ACEOF
  12527. -cat confdefs.h >>conftest.$ac_ext
  12528. -cat >>conftest.$ac_ext <<_ACEOF
  12529. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12530. /* end confdefs.h. */
  12531. #include <stdarg.h>
  12532. #include <stdio.h>
  12533. @@ -3509,31 +3954,9 @@
  12534. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12535. do
  12536. CC="$ac_save_CC $ac_arg"
  12537. - rm -f conftest.$ac_objext
  12538. -if { (ac_try="$ac_compile"
  12539. -case "(($ac_try" in
  12540. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12541. - *) ac_try_echo=$ac_try;;
  12542. -esac
  12543. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12544. - (eval "$ac_compile") 2>conftest.er1
  12545. - ac_status=$?
  12546. - grep -v '^ *+' conftest.er1 >conftest.err
  12547. - rm -f conftest.er1
  12548. - cat conftest.err >&5
  12549. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12550. - (exit $ac_status); } && {
  12551. - test -z "$ac_c_werror_flag" ||
  12552. - test ! -s conftest.err
  12553. - } && test -s conftest.$ac_objext; then
  12554. + if ac_fn_c_try_compile "$LINENO"; then :
  12555. ac_cv_prog_cc_c89=$ac_arg
  12556. -else
  12557. - echo "$as_me: failed program was:" >&5
  12558. -sed 's/^/| /' conftest.$ac_ext >&5
  12559. -
  12560. -
  12561. fi
  12562. -
  12563. rm -f core conftest.err conftest.$ac_objext
  12564. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12565. done
  12566. @@ -3544,17 +3967,19 @@
  12567. # AC_CACHE_VAL
  12568. case "x$ac_cv_prog_cc_c89" in
  12569. x)
  12570. - { echo "$as_me:$LINENO: result: none needed" >&5
  12571. -echo "${ECHO_T}none needed" >&6; } ;;
  12572. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12573. +$as_echo "none needed" >&6; } ;;
  12574. xno)
  12575. - { echo "$as_me:$LINENO: result: unsupported" >&5
  12576. -echo "${ECHO_T}unsupported" >&6; } ;;
  12577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12578. +$as_echo "unsupported" >&6; } ;;
  12579. *)
  12580. CC="$CC $ac_cv_prog_cc_c89"
  12581. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  12582. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  12583. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12584. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12585. esac
  12586. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  12587. +fi
  12588. ac_ext=c
  12589. ac_cpp='$CPP $CPPFLAGS'
  12590. @@ -3569,44 +3994,44 @@
  12591. am_make=${MAKE-make}
  12592. cat > confinc << 'END'
  12593. am__doit:
  12594. - @echo done
  12595. + @echo this is the am__doit target
  12596. .PHONY: am__doit
  12597. END
  12598. # If we don't find an include directive, just comment out the code.
  12599. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  12600. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  12601. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12602. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  12603. am__include="#"
  12604. am__quote=
  12605. _am_result=none
  12606. # First try GNU make style include.
  12607. echo "include confinc" > confmf
  12608. -# We grep out `Entering directory' and `Leaving directory'
  12609. -# messages which can occur if `w' ends up in MAKEFLAGS.
  12610. -# In particular we don't look at `^make:' because GNU make might
  12611. -# be invoked under some other name (usually "gmake"), in which
  12612. -# case it prints its new name instead of `make'.
  12613. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  12614. - am__include=include
  12615. - am__quote=
  12616. - _am_result=GNU
  12617. -fi
  12618. +# Ignore all kinds of additional output from `make'.
  12619. +case `$am_make -s -f confmf 2> /dev/null` in #(
  12620. +*the\ am__doit\ target*)
  12621. + am__include=include
  12622. + am__quote=
  12623. + _am_result=GNU
  12624. + ;;
  12625. +esac
  12626. # Now try BSD make style include.
  12627. if test "$am__include" = "#"; then
  12628. echo '.include "confinc"' > confmf
  12629. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  12630. - am__include=.include
  12631. - am__quote="\""
  12632. - _am_result=BSD
  12633. - fi
  12634. + case `$am_make -s -f confmf 2> /dev/null` in #(
  12635. + *the\ am__doit\ target*)
  12636. + am__include=.include
  12637. + am__quote="\""
  12638. + _am_result=BSD
  12639. + ;;
  12640. + esac
  12641. fi
  12642. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  12643. -echo "${ECHO_T}$_am_result" >&6; }
  12644. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12645. +$as_echo "$_am_result" >&6; }
  12646. rm -f confinc confmf
  12647. # Check whether --enable-dependency-tracking was given.
  12648. -if test "${enable_dependency_tracking+set}" = set; then
  12649. +if test "${enable_dependency_tracking+set}" = set; then :
  12650. enableval=$enable_dependency_tracking;
  12651. fi
  12652. @@ -3626,10 +4051,10 @@
  12653. depcc="$CC" am_compiler_list=
  12654. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  12655. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  12656. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  12657. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12658. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12659. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  12660. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  12661. + $as_echo_n "(cached) " >&6
  12662. else
  12663. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12664. # We make a subdir and do the tests there. Otherwise we can end up
  12665. @@ -3654,6 +4079,11 @@
  12666. if test "$am_compiler_list" = ""; then
  12667. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12668. fi
  12669. + am__universal=false
  12670. + case " $depcc " in #(
  12671. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12672. + esac
  12673. +
  12674. for depmode in $am_compiler_list; do
  12675. # Setup a source with many dependencies, because some compilers
  12676. # like to wrap large dependency lists on column 80 (with \), and
  12677. @@ -3671,7 +4101,17 @@
  12678. done
  12679. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12680. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12681. + # mode. It turns out that the SunPro C++ compiler does not properly
  12682. + # handle `-M -o', and we need to detect this. Also, some Intel
  12683. + # versions had trouble with output in subdirs
  12684. + am__obj=sub/conftest.${OBJEXT-o}
  12685. + am__minus_obj="-o $am__obj"
  12686. case $depmode in
  12687. + gcc)
  12688. + # This depmode causes a compiler race in universal mode.
  12689. + test "$am__universal" = false || continue
  12690. + ;;
  12691. nosideeffect)
  12692. # after this tag, mechanisms are not by side-effect, so they'll
  12693. # only be used when explicitly requested
  12694. @@ -3681,19 +4121,23 @@
  12695. break
  12696. fi
  12697. ;;
  12698. + msvisualcpp | msvcmsys)
  12699. + # This compiler won't grok `-c -o', but also, the minuso test has
  12700. + # not run yet. These depmodes are late enough in the game, and
  12701. + # so weak that their functioning should not be impacted.
  12702. + am__obj=conftest.${OBJEXT-o}
  12703. + am__minus_obj=
  12704. + ;;
  12705. none) break ;;
  12706. esac
  12707. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12708. - # mode. It turns out that the SunPro C++ compiler does not properly
  12709. - # handle `-M -o', and we need to detect this.
  12710. if depmode=$depmode \
  12711. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  12712. + source=sub/conftest.c object=$am__obj \
  12713. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12714. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  12715. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12716. >/dev/null 2>conftest.err &&
  12717. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12718. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12719. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  12720. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12721. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12722. # icc doesn't choke on unknown options, it will just issue warnings
  12723. # or remarks (even with -Werror). So we grep stderr for any message
  12724. @@ -3717,8 +4161,8 @@
  12725. fi
  12726. fi
  12727. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  12728. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  12729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12730. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12731. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12732. if
  12733. @@ -3746,10 +4190,10 @@
  12734. do
  12735. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12736. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12737. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12738. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12739. -if test "${ac_cv_prog_CXX+set}" = set; then
  12740. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12742. +$as_echo_n "checking for $ac_word... " >&6; }
  12743. +if test "${ac_cv_prog_CXX+set}" = set; then :
  12744. + $as_echo_n "(cached) " >&6
  12745. else
  12746. if test -n "$CXX"; then
  12747. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12748. @@ -3759,25 +4203,25 @@
  12749. do
  12750. IFS=$as_save_IFS
  12751. test -z "$as_dir" && as_dir=.
  12752. - for ac_exec_ext in '' $ac_executable_extensions; do
  12753. + for ac_exec_ext in '' $ac_executable_extensions; do
  12754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12755. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12756. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12757. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12758. break 2
  12759. fi
  12760. done
  12761. -done
  12762. + done
  12763. IFS=$as_save_IFS
  12764. fi
  12765. fi
  12766. CXX=$ac_cv_prog_CXX
  12767. if test -n "$CXX"; then
  12768. - { echo "$as_me:$LINENO: result: $CXX" >&5
  12769. -echo "${ECHO_T}$CXX" >&6; }
  12770. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12771. +$as_echo "$CXX" >&6; }
  12772. else
  12773. - { echo "$as_me:$LINENO: result: no" >&5
  12774. -echo "${ECHO_T}no" >&6; }
  12775. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12776. +$as_echo "no" >&6; }
  12777. fi
  12778. @@ -3790,10 +4234,10 @@
  12779. do
  12780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12781. set dummy $ac_prog; ac_word=$2
  12782. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12783. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12784. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  12785. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12786. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12787. +$as_echo_n "checking for $ac_word... " >&6; }
  12788. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  12789. + $as_echo_n "(cached) " >&6
  12790. else
  12791. if test -n "$ac_ct_CXX"; then
  12792. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12793. @@ -3803,25 +4247,25 @@
  12794. do
  12795. IFS=$as_save_IFS
  12796. test -z "$as_dir" && as_dir=.
  12797. - for ac_exec_ext in '' $ac_executable_extensions; do
  12798. + for ac_exec_ext in '' $ac_executable_extensions; do
  12799. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12800. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12801. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12802. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12803. break 2
  12804. fi
  12805. done
  12806. -done
  12807. + done
  12808. IFS=$as_save_IFS
  12809. fi
  12810. fi
  12811. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12812. if test -n "$ac_ct_CXX"; then
  12813. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  12814. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  12815. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12816. +$as_echo "$ac_ct_CXX" >&6; }
  12817. else
  12818. - { echo "$as_me:$LINENO: result: no" >&5
  12819. -echo "${ECHO_T}no" >&6; }
  12820. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12821. +$as_echo "no" >&6; }
  12822. fi
  12823. @@ -3833,12 +4277,8 @@
  12824. else
  12825. case $cross_compiling:$ac_tool_warned in
  12826. yes:)
  12827. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12828. -whose name does not start with the host triplet. If you think this
  12829. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  12830. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12831. -whose name does not start with the host triplet. If you think this
  12832. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12833. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12834. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12835. ac_tool_warned=yes ;;
  12836. esac
  12837. CXX=$ac_ct_CXX
  12838. @@ -3848,49 +4288,36 @@
  12839. fi
  12840. fi
  12841. # Provide some information about the compiler.
  12842. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  12843. -ac_compiler=`set X $ac_compile; echo $2`
  12844. -{ (ac_try="$ac_compiler --version >&5"
  12845. -case "(($ac_try" in
  12846. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12847. - *) ac_try_echo=$ac_try;;
  12848. -esac
  12849. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12850. - (eval "$ac_compiler --version >&5") 2>&5
  12851. - ac_status=$?
  12852. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12853. - (exit $ac_status); }
  12854. -{ (ac_try="$ac_compiler -v >&5"
  12855. -case "(($ac_try" in
  12856. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12857. - *) ac_try_echo=$ac_try;;
  12858. -esac
  12859. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12860. - (eval "$ac_compiler -v >&5") 2>&5
  12861. - ac_status=$?
  12862. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12863. - (exit $ac_status); }
  12864. -{ (ac_try="$ac_compiler -V >&5"
  12865. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12866. +set X $ac_compile
  12867. +ac_compiler=$2
  12868. +for ac_option in --version -v -V -qversion; do
  12869. + { { ac_try="$ac_compiler $ac_option >&5"
  12870. case "(($ac_try" in
  12871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12872. *) ac_try_echo=$ac_try;;
  12873. esac
  12874. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12875. - (eval "$ac_compiler -V >&5") 2>&5
  12876. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12877. +$as_echo "$ac_try_echo"; } >&5
  12878. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12879. ac_status=$?
  12880. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12881. - (exit $ac_status); }
  12882. + if test -s conftest.err; then
  12883. + sed '10a\
  12884. +... rest of stderr output deleted ...
  12885. + 10q' conftest.err >conftest.er1
  12886. + cat conftest.er1 >&5
  12887. + fi
  12888. + rm -f conftest.er1 conftest.err
  12889. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12890. + test $ac_status = 0; }
  12891. +done
  12892. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  12893. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  12894. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  12895. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12896. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12897. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12898. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  12899. + $as_echo_n "(cached) " >&6
  12900. else
  12901. - cat >conftest.$ac_ext <<_ACEOF
  12902. -/* confdefs.h. */
  12903. -_ACEOF
  12904. -cat confdefs.h >>conftest.$ac_ext
  12905. -cat >>conftest.$ac_ext <<_ACEOF
  12906. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12907. /* end confdefs.h. */
  12908. int
  12909. @@ -3904,54 +4331,34 @@
  12910. return 0;
  12911. }
  12912. _ACEOF
  12913. -rm -f conftest.$ac_objext
  12914. -if { (ac_try="$ac_compile"
  12915. -case "(($ac_try" in
  12916. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12917. - *) ac_try_echo=$ac_try;;
  12918. -esac
  12919. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12920. - (eval "$ac_compile") 2>conftest.er1
  12921. - ac_status=$?
  12922. - grep -v '^ *+' conftest.er1 >conftest.err
  12923. - rm -f conftest.er1
  12924. - cat conftest.err >&5
  12925. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12926. - (exit $ac_status); } && {
  12927. - test -z "$ac_cxx_werror_flag" ||
  12928. - test ! -s conftest.err
  12929. - } && test -s conftest.$ac_objext; then
  12930. +if ac_fn_cxx_try_compile "$LINENO"; then :
  12931. ac_compiler_gnu=yes
  12932. else
  12933. - echo "$as_me: failed program was:" >&5
  12934. -sed 's/^/| /' conftest.$ac_ext >&5
  12935. -
  12936. - ac_compiler_gnu=no
  12937. + ac_compiler_gnu=no
  12938. fi
  12939. -
  12940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12941. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12942. fi
  12943. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  12944. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  12945. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  12946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12947. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12948. +if test $ac_compiler_gnu = yes; then
  12949. + GXX=yes
  12950. +else
  12951. + GXX=
  12952. +fi
  12953. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12954. ac_save_CXXFLAGS=$CXXFLAGS
  12955. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  12956. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  12957. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  12958. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12959. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12960. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12961. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  12962. + $as_echo_n "(cached) " >&6
  12963. else
  12964. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12965. ac_cxx_werror_flag=yes
  12966. ac_cv_prog_cxx_g=no
  12967. CXXFLAGS="-g"
  12968. - cat >conftest.$ac_ext <<_ACEOF
  12969. -/* confdefs.h. */
  12970. -_ACEOF
  12971. -cat confdefs.h >>conftest.$ac_ext
  12972. -cat >>conftest.$ac_ext <<_ACEOF
  12973. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12974. /* end confdefs.h. */
  12975. int
  12976. @@ -3962,34 +4369,11 @@
  12977. return 0;
  12978. }
  12979. _ACEOF
  12980. -rm -f conftest.$ac_objext
  12981. -if { (ac_try="$ac_compile"
  12982. -case "(($ac_try" in
  12983. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12984. - *) ac_try_echo=$ac_try;;
  12985. -esac
  12986. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12987. - (eval "$ac_compile") 2>conftest.er1
  12988. - ac_status=$?
  12989. - grep -v '^ *+' conftest.er1 >conftest.err
  12990. - rm -f conftest.er1
  12991. - cat conftest.err >&5
  12992. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12993. - (exit $ac_status); } && {
  12994. - test -z "$ac_cxx_werror_flag" ||
  12995. - test ! -s conftest.err
  12996. - } && test -s conftest.$ac_objext; then
  12997. +if ac_fn_cxx_try_compile "$LINENO"; then :
  12998. ac_cv_prog_cxx_g=yes
  12999. else
  13000. - echo "$as_me: failed program was:" >&5
  13001. -sed 's/^/| /' conftest.$ac_ext >&5
  13002. -
  13003. - CXXFLAGS=""
  13004. - cat >conftest.$ac_ext <<_ACEOF
  13005. -/* confdefs.h. */
  13006. -_ACEOF
  13007. -cat confdefs.h >>conftest.$ac_ext
  13008. -cat >>conftest.$ac_ext <<_ACEOF
  13009. + CXXFLAGS=""
  13010. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13011. /* end confdefs.h. */
  13012. int
  13013. @@ -4000,35 +4384,12 @@
  13014. return 0;
  13015. }
  13016. _ACEOF
  13017. -rm -f conftest.$ac_objext
  13018. -if { (ac_try="$ac_compile"
  13019. -case "(($ac_try" in
  13020. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13021. - *) ac_try_echo=$ac_try;;
  13022. -esac
  13023. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13024. - (eval "$ac_compile") 2>conftest.er1
  13025. - ac_status=$?
  13026. - grep -v '^ *+' conftest.er1 >conftest.err
  13027. - rm -f conftest.er1
  13028. - cat conftest.err >&5
  13029. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13030. - (exit $ac_status); } && {
  13031. - test -z "$ac_cxx_werror_flag" ||
  13032. - test ! -s conftest.err
  13033. - } && test -s conftest.$ac_objext; then
  13034. - :
  13035. -else
  13036. - echo "$as_me: failed program was:" >&5
  13037. -sed 's/^/| /' conftest.$ac_ext >&5
  13038. +if ac_fn_cxx_try_compile "$LINENO"; then :
  13039. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13040. +else
  13041. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13042. CXXFLAGS="-g"
  13043. - cat >conftest.$ac_ext <<_ACEOF
  13044. -/* confdefs.h. */
  13045. -_ACEOF
  13046. -cat confdefs.h >>conftest.$ac_ext
  13047. -cat >>conftest.$ac_ext <<_ACEOF
  13048. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13049. /* end confdefs.h. */
  13050. int
  13051. @@ -4039,42 +4400,18 @@
  13052. return 0;
  13053. }
  13054. _ACEOF
  13055. -rm -f conftest.$ac_objext
  13056. -if { (ac_try="$ac_compile"
  13057. -case "(($ac_try" in
  13058. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13059. - *) ac_try_echo=$ac_try;;
  13060. -esac
  13061. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13062. - (eval "$ac_compile") 2>conftest.er1
  13063. - ac_status=$?
  13064. - grep -v '^ *+' conftest.er1 >conftest.err
  13065. - rm -f conftest.er1
  13066. - cat conftest.err >&5
  13067. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13068. - (exit $ac_status); } && {
  13069. - test -z "$ac_cxx_werror_flag" ||
  13070. - test ! -s conftest.err
  13071. - } && test -s conftest.$ac_objext; then
  13072. +if ac_fn_cxx_try_compile "$LINENO"; then :
  13073. ac_cv_prog_cxx_g=yes
  13074. -else
  13075. - echo "$as_me: failed program was:" >&5
  13076. -sed 's/^/| /' conftest.$ac_ext >&5
  13077. -
  13078. -
  13079. fi
  13080. -
  13081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13082. fi
  13083. -
  13084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13085. fi
  13086. -
  13087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13088. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13089. fi
  13090. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  13091. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  13092. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  13093. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  13094. if test "$ac_test_CXXFLAGS" = set; then
  13095. CXXFLAGS=$ac_save_CXXFLAGS
  13096. elif test $ac_cv_prog_cxx_g = yes; then
  13097. @@ -4098,10 +4435,10 @@
  13098. depcc="$CXX" am_compiler_list=
  13099. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  13100. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  13101. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  13102. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13103. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13104. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  13105. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  13106. + $as_echo_n "(cached) " >&6
  13107. else
  13108. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13109. # We make a subdir and do the tests there. Otherwise we can end up
  13110. @@ -4126,6 +4463,11 @@
  13111. if test "$am_compiler_list" = ""; then
  13112. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13113. fi
  13114. + am__universal=false
  13115. + case " $depcc " in #(
  13116. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13117. + esac
  13118. +
  13119. for depmode in $am_compiler_list; do
  13120. # Setup a source with many dependencies, because some compilers
  13121. # like to wrap large dependency lists on column 80 (with \), and
  13122. @@ -4143,7 +4485,17 @@
  13123. done
  13124. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13125. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13126. + # mode. It turns out that the SunPro C++ compiler does not properly
  13127. + # handle `-M -o', and we need to detect this. Also, some Intel
  13128. + # versions had trouble with output in subdirs
  13129. + am__obj=sub/conftest.${OBJEXT-o}
  13130. + am__minus_obj="-o $am__obj"
  13131. case $depmode in
  13132. + gcc)
  13133. + # This depmode causes a compiler race in universal mode.
  13134. + test "$am__universal" = false || continue
  13135. + ;;
  13136. nosideeffect)
  13137. # after this tag, mechanisms are not by side-effect, so they'll
  13138. # only be used when explicitly requested
  13139. @@ -4153,19 +4505,23 @@
  13140. break
  13141. fi
  13142. ;;
  13143. + msvisualcpp | msvcmsys)
  13144. + # This compiler won't grok `-c -o', but also, the minuso test has
  13145. + # not run yet. These depmodes are late enough in the game, and
  13146. + # so weak that their functioning should not be impacted.
  13147. + am__obj=conftest.${OBJEXT-o}
  13148. + am__minus_obj=
  13149. + ;;
  13150. none) break ;;
  13151. esac
  13152. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13153. - # mode. It turns out that the SunPro C++ compiler does not properly
  13154. - # handle `-M -o', and we need to detect this.
  13155. if depmode=$depmode \
  13156. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13157. + source=sub/conftest.c object=$am__obj \
  13158. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13159. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13160. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13161. >/dev/null 2>conftest.err &&
  13162. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13163. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13164. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13165. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13166. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13167. # icc doesn't choke on unknown options, it will just issue warnings
  13168. # or remarks (even with -Werror). So we grep stderr for any message
  13169. @@ -4189,8 +4545,8 @@
  13170. fi
  13171. fi
  13172. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13173. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  13174. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13175. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13176. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13177. if
  13178. @@ -4209,15 +4565,15 @@
  13179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13182. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  13183. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  13184. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  13185. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  13186. # On Suns, sometimes $CPP names a directory.
  13187. if test -n "$CPP" && test -d "$CPP"; then
  13188. CPP=
  13189. fi
  13190. if test -z "$CPP"; then
  13191. - if test "${ac_cv_prog_CPP+set}" = set; then
  13192. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13193. + if test "${ac_cv_prog_CPP+set}" = set; then :
  13194. + $as_echo_n "(cached) " >&6
  13195. else
  13196. # Double quotes because CPP needs to be expanded
  13197. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  13198. @@ -4231,11 +4587,7 @@
  13199. # <limits.h> exists even on freestanding compilers.
  13200. # On the NeXT, cc -E runs the code through the compiler's parser,
  13201. # not just through cpp. "Syntax error" is here to catch this case.
  13202. - cat >conftest.$ac_ext <<_ACEOF
  13203. -/* confdefs.h. */
  13204. -_ACEOF
  13205. -cat confdefs.h >>conftest.$ac_ext
  13206. -cat >>conftest.$ac_ext <<_ACEOF
  13207. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13208. /* end confdefs.h. */
  13209. #ifdef __STDC__
  13210. # include <limits.h>
  13211. @@ -4244,76 +4596,34 @@
  13212. #endif
  13213. Syntax error
  13214. _ACEOF
  13215. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13216. -case "(($ac_try" in
  13217. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13218. - *) ac_try_echo=$ac_try;;
  13219. -esac
  13220. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13221. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13222. - ac_status=$?
  13223. - grep -v '^ *+' conftest.er1 >conftest.err
  13224. - rm -f conftest.er1
  13225. - cat conftest.err >&5
  13226. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13227. - (exit $ac_status); } >/dev/null && {
  13228. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13229. - test ! -s conftest.err
  13230. - }; then
  13231. - :
  13232. -else
  13233. - echo "$as_me: failed program was:" >&5
  13234. -sed 's/^/| /' conftest.$ac_ext >&5
  13235. +if ac_fn_c_try_cpp "$LINENO"; then :
  13236. +else
  13237. # Broken: fails on valid input.
  13238. continue
  13239. fi
  13240. -
  13241. rm -f conftest.err conftest.$ac_ext
  13242. # OK, works on sane cases. Now check whether nonexistent headers
  13243. # can be detected and how.
  13244. - cat >conftest.$ac_ext <<_ACEOF
  13245. -/* confdefs.h. */
  13246. -_ACEOF
  13247. -cat confdefs.h >>conftest.$ac_ext
  13248. -cat >>conftest.$ac_ext <<_ACEOF
  13249. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13250. /* end confdefs.h. */
  13251. #include <ac_nonexistent.h>
  13252. _ACEOF
  13253. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13254. -case "(($ac_try" in
  13255. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13256. - *) ac_try_echo=$ac_try;;
  13257. -esac
  13258. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13259. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13260. - ac_status=$?
  13261. - grep -v '^ *+' conftest.er1 >conftest.err
  13262. - rm -f conftest.er1
  13263. - cat conftest.err >&5
  13264. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13265. - (exit $ac_status); } >/dev/null && {
  13266. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13267. - test ! -s conftest.err
  13268. - }; then
  13269. +if ac_fn_c_try_cpp "$LINENO"; then :
  13270. # Broken: success on invalid input.
  13271. continue
  13272. else
  13273. - echo "$as_me: failed program was:" >&5
  13274. -sed 's/^/| /' conftest.$ac_ext >&5
  13275. -
  13276. # Passes both tests.
  13277. ac_preproc_ok=:
  13278. break
  13279. fi
  13280. -
  13281. rm -f conftest.err conftest.$ac_ext
  13282. done
  13283. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13284. rm -f conftest.err conftest.$ac_ext
  13285. -if $ac_preproc_ok; then
  13286. +if $ac_preproc_ok; then :
  13287. break
  13288. fi
  13289. @@ -4325,8 +4635,8 @@
  13290. else
  13291. ac_cv_prog_CPP=$CPP
  13292. fi
  13293. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  13294. -echo "${ECHO_T}$CPP" >&6; }
  13295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  13296. +$as_echo "$CPP" >&6; }
  13297. ac_preproc_ok=false
  13298. for ac_c_preproc_warn_flag in '' yes
  13299. do
  13300. @@ -4336,11 +4646,7 @@
  13301. # <limits.h> exists even on freestanding compilers.
  13302. # On the NeXT, cc -E runs the code through the compiler's parser,
  13303. # not just through cpp. "Syntax error" is here to catch this case.
  13304. - cat >conftest.$ac_ext <<_ACEOF
  13305. -/* confdefs.h. */
  13306. -_ACEOF
  13307. -cat confdefs.h >>conftest.$ac_ext
  13308. -cat >>conftest.$ac_ext <<_ACEOF
  13309. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13310. /* end confdefs.h. */
  13311. #ifdef __STDC__
  13312. # include <limits.h>
  13313. @@ -4349,83 +4655,40 @@
  13314. #endif
  13315. Syntax error
  13316. _ACEOF
  13317. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13318. -case "(($ac_try" in
  13319. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13320. - *) ac_try_echo=$ac_try;;
  13321. -esac
  13322. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13323. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13324. - ac_status=$?
  13325. - grep -v '^ *+' conftest.er1 >conftest.err
  13326. - rm -f conftest.er1
  13327. - cat conftest.err >&5
  13328. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13329. - (exit $ac_status); } >/dev/null && {
  13330. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13331. - test ! -s conftest.err
  13332. - }; then
  13333. - :
  13334. -else
  13335. - echo "$as_me: failed program was:" >&5
  13336. -sed 's/^/| /' conftest.$ac_ext >&5
  13337. +if ac_fn_c_try_cpp "$LINENO"; then :
  13338. +else
  13339. # Broken: fails on valid input.
  13340. continue
  13341. fi
  13342. -
  13343. rm -f conftest.err conftest.$ac_ext
  13344. # OK, works on sane cases. Now check whether nonexistent headers
  13345. # can be detected and how.
  13346. - cat >conftest.$ac_ext <<_ACEOF
  13347. -/* confdefs.h. */
  13348. -_ACEOF
  13349. -cat confdefs.h >>conftest.$ac_ext
  13350. -cat >>conftest.$ac_ext <<_ACEOF
  13351. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13352. /* end confdefs.h. */
  13353. #include <ac_nonexistent.h>
  13354. _ACEOF
  13355. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13356. -case "(($ac_try" in
  13357. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13358. - *) ac_try_echo=$ac_try;;
  13359. -esac
  13360. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13361. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13362. - ac_status=$?
  13363. - grep -v '^ *+' conftest.er1 >conftest.err
  13364. - rm -f conftest.er1
  13365. - cat conftest.err >&5
  13366. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13367. - (exit $ac_status); } >/dev/null && {
  13368. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13369. - test ! -s conftest.err
  13370. - }; then
  13371. +if ac_fn_c_try_cpp "$LINENO"; then :
  13372. # Broken: success on invalid input.
  13373. continue
  13374. else
  13375. - echo "$as_me: failed program was:" >&5
  13376. -sed 's/^/| /' conftest.$ac_ext >&5
  13377. -
  13378. # Passes both tests.
  13379. ac_preproc_ok=:
  13380. break
  13381. fi
  13382. -
  13383. rm -f conftest.err conftest.$ac_ext
  13384. done
  13385. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13386. rm -f conftest.err conftest.$ac_ext
  13387. -if $ac_preproc_ok; then
  13388. - :
  13389. +if $ac_preproc_ok; then :
  13390. +
  13391. else
  13392. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  13393. -See \`config.log' for more details." >&5
  13394. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  13395. -See \`config.log' for more details." >&2;}
  13396. - { (exit 1); exit 1; }; }
  13397. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13398. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13399. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  13400. +See \`config.log' for more details." "$LINENO" 5; }
  13401. fi
  13402. ac_ext=c
  13403. @@ -4434,2099 +4697,950 @@
  13404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13406. +enable_win32_dll=yes
  13407. -
  13408. -# Check whether --enable-shared was given.
  13409. -if test "${enable_shared+set}" = set; then
  13410. - enableval=$enable_shared; p=${PACKAGE-default}
  13411. - case $enableval in
  13412. - yes) enable_shared=yes ;;
  13413. - no) enable_shared=no ;;
  13414. - *)
  13415. - enable_shared=no
  13416. - # Look at the argument we got. We use all the common list separators.
  13417. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13418. - for pkg in $enableval; do
  13419. - IFS="$lt_save_ifs"
  13420. - if test "X$pkg" = "X$p"; then
  13421. - enable_shared=yes
  13422. - fi
  13423. - done
  13424. - IFS="$lt_save_ifs"
  13425. - ;;
  13426. - esac
  13427. +case $host in
  13428. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  13429. + if test -n "$ac_tool_prefix"; then
  13430. + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  13431. +set dummy ${ac_tool_prefix}as; ac_word=$2
  13432. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13433. +$as_echo_n "checking for $ac_word... " >&6; }
  13434. +if test "${ac_cv_prog_AS+set}" = set; then :
  13435. + $as_echo_n "(cached) " >&6
  13436. else
  13437. - enable_shared=yes
  13438. -fi
  13439. -
  13440. -
  13441. -# Check whether --enable-static was given.
  13442. -if test "${enable_static+set}" = set; then
  13443. - enableval=$enable_static; p=${PACKAGE-default}
  13444. - case $enableval in
  13445. - yes) enable_static=yes ;;
  13446. - no) enable_static=no ;;
  13447. - *)
  13448. - enable_static=no
  13449. - # Look at the argument we got. We use all the common list separators.
  13450. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13451. - for pkg in $enableval; do
  13452. - IFS="$lt_save_ifs"
  13453. - if test "X$pkg" = "X$p"; then
  13454. - enable_static=yes
  13455. - fi
  13456. - done
  13457. - IFS="$lt_save_ifs"
  13458. - ;;
  13459. - esac
  13460. + if test -n "$AS"; then
  13461. + ac_cv_prog_AS="$AS" # Let the user override the test.
  13462. else
  13463. - enable_static=yes
  13464. -fi
  13465. -
  13466. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13467. +for as_dir in $PATH
  13468. +do
  13469. + IFS=$as_save_IFS
  13470. + test -z "$as_dir" && as_dir=.
  13471. + for ac_exec_ext in '' $ac_executable_extensions; do
  13472. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13473. + ac_cv_prog_AS="${ac_tool_prefix}as"
  13474. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13475. + break 2
  13476. + fi
  13477. +done
  13478. + done
  13479. +IFS=$as_save_IFS
  13480. -# Check whether --enable-fast-install was given.
  13481. -if test "${enable_fast_install+set}" = set; then
  13482. - enableval=$enable_fast_install; p=${PACKAGE-default}
  13483. - case $enableval in
  13484. - yes) enable_fast_install=yes ;;
  13485. - no) enable_fast_install=no ;;
  13486. - *)
  13487. - enable_fast_install=no
  13488. - # Look at the argument we got. We use all the common list separators.
  13489. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13490. - for pkg in $enableval; do
  13491. - IFS="$lt_save_ifs"
  13492. - if test "X$pkg" = "X$p"; then
  13493. - enable_fast_install=yes
  13494. - fi
  13495. - done
  13496. - IFS="$lt_save_ifs"
  13497. - ;;
  13498. - esac
  13499. +fi
  13500. +fi
  13501. +AS=$ac_cv_prog_AS
  13502. +if test -n "$AS"; then
  13503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  13504. +$as_echo "$AS" >&6; }
  13505. else
  13506. - enable_fast_install=yes
  13507. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13508. +$as_echo "no" >&6; }
  13509. fi
  13510. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  13511. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  13512. -if test "${lt_cv_path_SED+set}" = set; then
  13513. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13514. +fi
  13515. +if test -z "$ac_cv_prog_AS"; then
  13516. + ac_ct_AS=$AS
  13517. + # Extract the first word of "as", so it can be a program name with args.
  13518. +set dummy as; ac_word=$2
  13519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13520. +$as_echo_n "checking for $ac_word... " >&6; }
  13521. +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  13522. + $as_echo_n "(cached) " >&6
  13523. +else
  13524. + if test -n "$ac_ct_AS"; then
  13525. + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  13526. else
  13527. - # Loop through the user's path and test for sed and gsed.
  13528. -# Then use that list of sed's as ones to test for truncation.
  13529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13530. for as_dir in $PATH
  13531. do
  13532. IFS=$as_save_IFS
  13533. test -z "$as_dir" && as_dir=.
  13534. - for lt_ac_prog in sed gsed; do
  13535. for ac_exec_ext in '' $ac_executable_extensions; do
  13536. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  13537. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  13538. - fi
  13539. - done
  13540. - done
  13541. -done
  13542. -IFS=$as_save_IFS
  13543. -lt_ac_max=0
  13544. -lt_ac_count=0
  13545. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  13546. -# along with /bin/sed that truncates output.
  13547. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  13548. - test ! -f $lt_ac_sed && continue
  13549. - cat /dev/null > conftest.in
  13550. - lt_ac_count=0
  13551. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  13552. - # Check for GNU sed and select it if it is found.
  13553. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  13554. - lt_cv_path_SED=$lt_ac_sed
  13555. - break
  13556. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13557. + ac_cv_prog_ac_ct_AS="as"
  13558. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13559. + break 2
  13560. fi
  13561. - while true; do
  13562. - cat conftest.in conftest.in >conftest.tmp
  13563. - mv conftest.tmp conftest.in
  13564. - cp conftest.in conftest.nl
  13565. - echo >>conftest.nl
  13566. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  13567. - cmp -s conftest.out conftest.nl || break
  13568. - # 10000 chars as input seems more than enough
  13569. - test $lt_ac_count -gt 10 && break
  13570. - lt_ac_count=`expr $lt_ac_count + 1`
  13571. - if test $lt_ac_count -gt $lt_ac_max; then
  13572. - lt_ac_max=$lt_ac_count
  13573. - lt_cv_path_SED=$lt_ac_sed
  13574. - fi
  13575. - done
  13576. done
  13577. + done
  13578. +IFS=$as_save_IFS
  13579. fi
  13580. +fi
  13581. +ac_ct_AS=$ac_cv_prog_ac_ct_AS
  13582. +if test -n "$ac_ct_AS"; then
  13583. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  13584. +$as_echo "$ac_ct_AS" >&6; }
  13585. +else
  13586. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13587. +$as_echo "no" >&6; }
  13588. +fi
  13589. -SED=$lt_cv_path_SED
  13590. -
  13591. -{ echo "$as_me:$LINENO: result: $SED" >&5
  13592. -echo "${ECHO_T}$SED" >&6; }
  13593. + if test "x$ac_ct_AS" = x; then
  13594. + AS="false"
  13595. + else
  13596. + case $cross_compiling:$ac_tool_warned in
  13597. +yes:)
  13598. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13599. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13600. +ac_tool_warned=yes ;;
  13601. +esac
  13602. + AS=$ac_ct_AS
  13603. + fi
  13604. +else
  13605. + AS="$ac_cv_prog_AS"
  13606. +fi
  13607. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  13608. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  13609. -if test "${ac_cv_path_GREP+set}" = set; then
  13610. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13611. -else
  13612. - # Extract the first word of "grep ggrep" to use in msg output
  13613. -if test -z "$GREP"; then
  13614. -set dummy grep ggrep; ac_prog_name=$2
  13615. -if test "${ac_cv_path_GREP+set}" = set; then
  13616. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13617. + if test -n "$ac_tool_prefix"; then
  13618. + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  13619. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  13620. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13621. +$as_echo_n "checking for $ac_word... " >&6; }
  13622. +if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  13623. + $as_echo_n "(cached) " >&6
  13624. +else
  13625. + if test -n "$DLLTOOL"; then
  13626. + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  13627. else
  13628. - ac_path_GREP_found=false
  13629. -# Loop through the user's path and test for each of PROGNAME-LIST
  13630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13631. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  13632. +for as_dir in $PATH
  13633. do
  13634. IFS=$as_save_IFS
  13635. test -z "$as_dir" && as_dir=.
  13636. - for ac_prog in grep ggrep; do
  13637. - for ac_exec_ext in '' $ac_executable_extensions; do
  13638. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  13639. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  13640. - # Check for GNU ac_path_GREP and select it if it is found.
  13641. - # Check for GNU $ac_path_GREP
  13642. -case `"$ac_path_GREP" --version 2>&1` in
  13643. -*GNU*)
  13644. - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  13645. -*)
  13646. - ac_count=0
  13647. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  13648. - while :
  13649. - do
  13650. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  13651. - mv "conftest.tmp" "conftest.in"
  13652. - cp "conftest.in" "conftest.nl"
  13653. - echo 'GREP' >> "conftest.nl"
  13654. - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  13655. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  13656. - ac_count=`expr $ac_count + 1`
  13657. - if test $ac_count -gt ${ac_path_GREP_max-0}; then
  13658. - # Best one so far, save it but keep looking for a better one
  13659. - ac_cv_path_GREP="$ac_path_GREP"
  13660. - ac_path_GREP_max=$ac_count
  13661. - fi
  13662. - # 10*(2^10) chars as input seems more than enough
  13663. - test $ac_count -gt 10 && break
  13664. - done
  13665. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  13666. -esac
  13667. -
  13668. -
  13669. - $ac_path_GREP_found && break 3
  13670. - done
  13671. -done
  13672. -
  13673. + for ac_exec_ext in '' $ac_executable_extensions; do
  13674. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13675. + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  13676. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13677. + break 2
  13678. + fi
  13679. done
  13680. + done
  13681. IFS=$as_save_IFS
  13682. -
  13683. fi
  13684. -
  13685. -GREP="$ac_cv_path_GREP"
  13686. -if test -z "$GREP"; then
  13687. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  13688. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  13689. - { (exit 1); exit 1; }; }
  13690. fi
  13691. -
  13692. +DLLTOOL=$ac_cv_prog_DLLTOOL
  13693. +if test -n "$DLLTOOL"; then
  13694. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  13695. +$as_echo "$DLLTOOL" >&6; }
  13696. else
  13697. - ac_cv_path_GREP=$GREP
  13698. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13699. +$as_echo "no" >&6; }
  13700. fi
  13701. fi
  13702. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  13703. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  13704. - GREP="$ac_cv_path_GREP"
  13705. -
  13706. -
  13707. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  13708. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  13709. -if test "${ac_cv_path_EGREP+set}" = set; then
  13710. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13711. +if test -z "$ac_cv_prog_DLLTOOL"; then
  13712. + ac_ct_DLLTOOL=$DLLTOOL
  13713. + # Extract the first word of "dlltool", so it can be a program name with args.
  13714. +set dummy dlltool; ac_word=$2
  13715. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13716. +$as_echo_n "checking for $ac_word... " >&6; }
  13717. +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  13718. + $as_echo_n "(cached) " >&6
  13719. else
  13720. - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  13721. - then ac_cv_path_EGREP="$GREP -E"
  13722. - else
  13723. - # Extract the first word of "egrep" to use in msg output
  13724. -if test -z "$EGREP"; then
  13725. -set dummy egrep; ac_prog_name=$2
  13726. -if test "${ac_cv_path_EGREP+set}" = set; then
  13727. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13728. + if test -n "$ac_ct_DLLTOOL"; then
  13729. + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  13730. else
  13731. - ac_path_EGREP_found=false
  13732. -# Loop through the user's path and test for each of PROGNAME-LIST
  13733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13734. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  13735. +for as_dir in $PATH
  13736. do
  13737. IFS=$as_save_IFS
  13738. test -z "$as_dir" && as_dir=.
  13739. - for ac_prog in egrep; do
  13740. - for ac_exec_ext in '' $ac_executable_extensions; do
  13741. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  13742. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  13743. - # Check for GNU ac_path_EGREP and select it if it is found.
  13744. - # Check for GNU $ac_path_EGREP
  13745. -case `"$ac_path_EGREP" --version 2>&1` in
  13746. -*GNU*)
  13747. - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  13748. -*)
  13749. - ac_count=0
  13750. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  13751. - while :
  13752. - do
  13753. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  13754. - mv "conftest.tmp" "conftest.in"
  13755. - cp "conftest.in" "conftest.nl"
  13756. - echo 'EGREP' >> "conftest.nl"
  13757. - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  13758. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  13759. - ac_count=`expr $ac_count + 1`
  13760. - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  13761. - # Best one so far, save it but keep looking for a better one
  13762. - ac_cv_path_EGREP="$ac_path_EGREP"
  13763. - ac_path_EGREP_max=$ac_count
  13764. - fi
  13765. - # 10*(2^10) chars as input seems more than enough
  13766. - test $ac_count -gt 10 && break
  13767. - done
  13768. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  13769. -esac
  13770. -
  13771. -
  13772. - $ac_path_EGREP_found && break 3
  13773. - done
  13774. -done
  13775. -
  13776. + for ac_exec_ext in '' $ac_executable_extensions; do
  13777. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13778. + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  13779. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13780. + break 2
  13781. + fi
  13782. done
  13783. + done
  13784. IFS=$as_save_IFS
  13785. -
  13786. fi
  13787. -
  13788. -EGREP="$ac_cv_path_EGREP"
  13789. -if test -z "$EGREP"; then
  13790. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  13791. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  13792. - { (exit 1); exit 1; }; }
  13793. fi
  13794. -
  13795. +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  13796. +if test -n "$ac_ct_DLLTOOL"; then
  13797. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  13798. +$as_echo "$ac_ct_DLLTOOL" >&6; }
  13799. else
  13800. - ac_cv_path_EGREP=$EGREP
  13801. -fi
  13802. -
  13803. -
  13804. - fi
  13805. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13806. +$as_echo "no" >&6; }
  13807. fi
  13808. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  13809. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  13810. - EGREP="$ac_cv_path_EGREP"
  13811. -
  13812. -
  13813. -# Check whether --with-gnu-ld was given.
  13814. -if test "${with_gnu_ld+set}" = set; then
  13815. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13816. + if test "x$ac_ct_DLLTOOL" = x; then
  13817. + DLLTOOL="false"
  13818. + else
  13819. + case $cross_compiling:$ac_tool_warned in
  13820. +yes:)
  13821. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13822. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13823. +ac_tool_warned=yes ;;
  13824. +esac
  13825. + DLLTOOL=$ac_ct_DLLTOOL
  13826. + fi
  13827. else
  13828. - with_gnu_ld=no
  13829. + DLLTOOL="$ac_cv_prog_DLLTOOL"
  13830. fi
  13831. -ac_prog=ld
  13832. -if test "$GCC" = yes; then
  13833. - # Check if gcc -print-prog-name=ld gives a path.
  13834. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  13835. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  13836. - case $host in
  13837. - *-*-mingw*)
  13838. - # gcc leaves a trailing carriage return which upsets mingw
  13839. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13840. - *)
  13841. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13842. - esac
  13843. - case $ac_prog in
  13844. - # Accept absolute paths.
  13845. - [\\/]* | ?:[\\/]*)
  13846. - re_direlt='/[^/][^/]*/\.\./'
  13847. - # Canonicalize the pathname of ld
  13848. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  13849. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  13850. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  13851. - done
  13852. - test -z "$LD" && LD="$ac_prog"
  13853. - ;;
  13854. - "")
  13855. - # If it fails, then pretend we aren't using GCC.
  13856. - ac_prog=ld
  13857. - ;;
  13858. - *)
  13859. - # If it is relative, then search for the first ld in PATH.
  13860. - with_gnu_ld=unknown
  13861. - ;;
  13862. - esac
  13863. -elif test "$with_gnu_ld" = yes; then
  13864. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  13865. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  13866. + if test -n "$ac_tool_prefix"; then
  13867. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  13868. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  13869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13870. +$as_echo_n "checking for $ac_word... " >&6; }
  13871. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  13872. + $as_echo_n "(cached) " >&6
  13873. else
  13874. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  13875. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  13876. -fi
  13877. -if test "${lt_cv_path_LD+set}" = set; then
  13878. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13879. + if test -n "$OBJDUMP"; then
  13880. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  13881. else
  13882. - if test -z "$LD"; then
  13883. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13884. - for ac_dir in $PATH; do
  13885. - IFS="$lt_save_ifs"
  13886. - test -z "$ac_dir" && ac_dir=.
  13887. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13888. - lt_cv_path_LD="$ac_dir/$ac_prog"
  13889. - # Check to see if the program is GNU ld. I'd rather use --version,
  13890. - # but apparently some variants of GNU ld only accept -v.
  13891. - # Break only if it was the GNU/non-GNU ld that we prefer.
  13892. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13893. - *GNU* | *'with BFD'*)
  13894. - test "$with_gnu_ld" != no && break
  13895. - ;;
  13896. - *)
  13897. - test "$with_gnu_ld" != yes && break
  13898. - ;;
  13899. - esac
  13900. - fi
  13901. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13902. +for as_dir in $PATH
  13903. +do
  13904. + IFS=$as_save_IFS
  13905. + test -z "$as_dir" && as_dir=.
  13906. + for ac_exec_ext in '' $ac_executable_extensions; do
  13907. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13908. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  13909. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13910. + break 2
  13911. + fi
  13912. +done
  13913. done
  13914. - IFS="$lt_save_ifs"
  13915. -else
  13916. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  13917. -fi
  13918. -fi
  13919. +IFS=$as_save_IFS
  13920. -LD="$lt_cv_path_LD"
  13921. -if test -n "$LD"; then
  13922. - { echo "$as_me:$LINENO: result: $LD" >&5
  13923. -echo "${ECHO_T}$LD" >&6; }
  13924. -else
  13925. - { echo "$as_me:$LINENO: result: no" >&5
  13926. -echo "${ECHO_T}no" >&6; }
  13927. fi
  13928. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  13929. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  13930. - { (exit 1); exit 1; }; }
  13931. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  13932. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  13933. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  13934. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13935. +fi
  13936. +OBJDUMP=$ac_cv_prog_OBJDUMP
  13937. +if test -n "$OBJDUMP"; then
  13938. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  13939. +$as_echo "$OBJDUMP" >&6; }
  13940. else
  13941. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13942. -case `$LD -v 2>&1 </dev/null` in
  13943. -*GNU* | *'with BFD'*)
  13944. - lt_cv_prog_gnu_ld=yes
  13945. - ;;
  13946. -*)
  13947. - lt_cv_prog_gnu_ld=no
  13948. - ;;
  13949. -esac
  13950. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13951. +$as_echo "no" >&6; }
  13952. fi
  13953. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  13954. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  13955. -with_gnu_ld=$lt_cv_prog_gnu_ld
  13956. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  13957. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  13958. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  13959. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13960. -else
  13961. - lt_cv_ld_reload_flag='-r'
  13962. fi
  13963. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  13964. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  13965. -reload_flag=$lt_cv_ld_reload_flag
  13966. -case $reload_flag in
  13967. -"" | " "*) ;;
  13968. -*) reload_flag=" $reload_flag" ;;
  13969. -esac
  13970. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  13971. -case $host_os in
  13972. - darwin*)
  13973. - if test "$GCC" = yes; then
  13974. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  13975. - else
  13976. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  13977. - fi
  13978. - ;;
  13979. -esac
  13980. -
  13981. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  13982. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  13983. -if test "${lt_cv_path_NM+set}" = set; then
  13984. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13985. +if test -z "$ac_cv_prog_OBJDUMP"; then
  13986. + ac_ct_OBJDUMP=$OBJDUMP
  13987. + # Extract the first word of "objdump", so it can be a program name with args.
  13988. +set dummy objdump; ac_word=$2
  13989. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13990. +$as_echo_n "checking for $ac_word... " >&6; }
  13991. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  13992. + $as_echo_n "(cached) " >&6
  13993. else
  13994. - if test -n "$NM"; then
  13995. - # Let the user override the test.
  13996. - lt_cv_path_NM="$NM"
  13997. + if test -n "$ac_ct_OBJDUMP"; then
  13998. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  13999. else
  14000. - lt_nm_to_check="${ac_tool_prefix}nm"
  14001. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  14002. - lt_nm_to_check="$lt_nm_to_check nm"
  14003. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14004. +for as_dir in $PATH
  14005. +do
  14006. + IFS=$as_save_IFS
  14007. + test -z "$as_dir" && as_dir=.
  14008. + for ac_exec_ext in '' $ac_executable_extensions; do
  14009. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14010. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  14011. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14012. + break 2
  14013. fi
  14014. - for lt_tmp_nm in $lt_nm_to_check; do
  14015. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14016. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  14017. - IFS="$lt_save_ifs"
  14018. - test -z "$ac_dir" && ac_dir=.
  14019. - tmp_nm="$ac_dir/$lt_tmp_nm"
  14020. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  14021. - # Check to see if the nm accepts a BSD-compat flag.
  14022. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  14023. - # nm: unknown option "B" ignored
  14024. - # Tru64's nm complains that /dev/null is an invalid object file
  14025. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  14026. - */dev/null* | *'Invalid file or object type'*)
  14027. - lt_cv_path_NM="$tmp_nm -B"
  14028. - break
  14029. - ;;
  14030. - *)
  14031. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  14032. - */dev/null*)
  14033. - lt_cv_path_NM="$tmp_nm -p"
  14034. - break
  14035. - ;;
  14036. - *)
  14037. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  14038. - continue # so that we can try to find one that supports BSD flags
  14039. - ;;
  14040. - esac
  14041. - ;;
  14042. - esac
  14043. - fi
  14044. - done
  14045. - IFS="$lt_save_ifs"
  14046. +done
  14047. done
  14048. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  14049. +IFS=$as_save_IFS
  14050. +
  14051. fi
  14052. fi
  14053. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  14054. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  14055. -NM="$lt_cv_path_NM"
  14056. -
  14057. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  14058. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  14059. -LN_S=$as_ln_s
  14060. -if test "$LN_S" = "ln -s"; then
  14061. - { echo "$as_me:$LINENO: result: yes" >&5
  14062. -echo "${ECHO_T}yes" >&6; }
  14063. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  14064. +if test -n "$ac_ct_OBJDUMP"; then
  14065. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  14066. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  14067. else
  14068. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  14069. -echo "${ECHO_T}no, using $LN_S" >&6; }
  14070. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14071. +$as_echo "no" >&6; }
  14072. fi
  14073. -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  14074. -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  14075. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  14076. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14077. + if test "x$ac_ct_OBJDUMP" = x; then
  14078. + OBJDUMP="false"
  14079. + else
  14080. + case $cross_compiling:$ac_tool_warned in
  14081. +yes:)
  14082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14083. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14084. +ac_tool_warned=yes ;;
  14085. +esac
  14086. + OBJDUMP=$ac_ct_OBJDUMP
  14087. + fi
  14088. else
  14089. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  14090. -lt_cv_file_magic_test_file=
  14091. -lt_cv_deplibs_check_method='unknown'
  14092. -# Need to set the preceding variable on all platforms that support
  14093. -# interlibrary dependencies.
  14094. -# 'none' -- dependencies not supported.
  14095. -# `unknown' -- same as none, but documents that we really don't know.
  14096. -# 'pass_all' -- all dependencies passed with no checks.
  14097. -# 'test_compile' -- check by making test program.
  14098. -# 'file_magic [[regex]]' -- check by looking for files in library path
  14099. -# which responds to the $file_magic_cmd with a given extended regex.
  14100. -# If you have `file' or equivalent on your system and you're not sure
  14101. -# whether `pass_all' will *always* work, you probably want this one.
  14102. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  14103. +fi
  14104. -case $host_os in
  14105. -aix[4-9]*)
  14106. - lt_cv_deplibs_check_method=pass_all
  14107. ;;
  14108. +esac
  14109. -beos*)
  14110. - lt_cv_deplibs_check_method=pass_all
  14111. - ;;
  14112. +test -z "$AS" && AS=as
  14113. -bsdi[45]*)
  14114. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  14115. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  14116. - lt_cv_file_magic_test_file=/shlib/libc.so
  14117. - ;;
  14118. -cygwin*)
  14119. - # func_win32_libid is a shell function defined in ltmain.sh
  14120. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14121. - lt_cv_file_magic_cmd='func_win32_libid'
  14122. - ;;
  14123. -mingw* | pw32*)
  14124. - # Base MSYS/MinGW do not provide the 'file' command needed by
  14125. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  14126. - # unless we find 'file', for example because we are cross-compiling.
  14127. - if ( file / ) >/dev/null 2>&1; then
  14128. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14129. - lt_cv_file_magic_cmd='func_win32_libid'
  14130. - else
  14131. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  14132. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  14133. - fi
  14134. - ;;
  14135. -darwin* | rhapsody*)
  14136. - lt_cv_deplibs_check_method=pass_all
  14137. - ;;
  14138. -freebsd* | dragonfly*)
  14139. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  14140. - case $host_cpu in
  14141. - i*86 )
  14142. - # Not sure whether the presence of OpenBSD here was a mistake.
  14143. - # Let's accept both of them until this is cleared up.
  14144. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  14145. - lt_cv_file_magic_cmd=/usr/bin/file
  14146. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  14147. - ;;
  14148. - esac
  14149. - else
  14150. - lt_cv_deplibs_check_method=pass_all
  14151. - fi
  14152. - ;;
  14153. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  14154. -gnu*)
  14155. - lt_cv_deplibs_check_method=pass_all
  14156. - ;;
  14157. -hpux10.20* | hpux11*)
  14158. - lt_cv_file_magic_cmd=/usr/bin/file
  14159. - case $host_cpu in
  14160. - ia64*)
  14161. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  14162. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  14163. - ;;
  14164. - hppa*64*)
  14165. - 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]'
  14166. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  14167. - ;;
  14168. - *)
  14169. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  14170. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  14171. - ;;
  14172. - esac
  14173. - ;;
  14174. -interix[3-9]*)
  14175. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  14176. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  14177. - ;;
  14178. -
  14179. -irix5* | irix6* | nonstopux*)
  14180. - case $LD in
  14181. - *-32|*"-32 ") libmagic=32-bit;;
  14182. - *-n32|*"-n32 ") libmagic=N32;;
  14183. - *-64|*"-64 ") libmagic=64-bit;;
  14184. - *) libmagic=never-match;;
  14185. - esac
  14186. - lt_cv_deplibs_check_method=pass_all
  14187. - ;;
  14188. -
  14189. -# This must be Linux ELF.
  14190. -linux* | k*bsd*-gnu)
  14191. - lt_cv_deplibs_check_method=pass_all
  14192. - ;;
  14193. -netbsd*)
  14194. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  14195. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14196. - else
  14197. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  14198. - fi
  14199. - ;;
  14200. -newos6*)
  14201. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  14202. - lt_cv_file_magic_cmd=/usr/bin/file
  14203. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  14204. - ;;
  14205. +test -z "$OBJDUMP" && OBJDUMP=objdump
  14206. -nto-qnx*)
  14207. - lt_cv_deplibs_check_method=unknown
  14208. - ;;
  14209. -openbsd*)
  14210. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14211. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  14212. - else
  14213. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14214. - fi
  14215. - ;;
  14216. -osf3* | osf4* | osf5*)
  14217. - lt_cv_deplibs_check_method=pass_all
  14218. - ;;
  14219. -rdos*)
  14220. - lt_cv_deplibs_check_method=pass_all
  14221. - ;;
  14222. -solaris*)
  14223. - lt_cv_deplibs_check_method=pass_all
  14224. - ;;
  14225. -sysv4 | sysv4.3*)
  14226. - case $host_vendor in
  14227. - motorola)
  14228. - 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]'
  14229. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  14230. - ;;
  14231. - ncr)
  14232. - lt_cv_deplibs_check_method=pass_all
  14233. - ;;
  14234. - sequent)
  14235. - lt_cv_file_magic_cmd='/bin/file'
  14236. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  14237. - ;;
  14238. - sni)
  14239. - lt_cv_file_magic_cmd='/bin/file'
  14240. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  14241. - lt_cv_file_magic_test_file=/lib/libc.so
  14242. - ;;
  14243. - siemens)
  14244. - lt_cv_deplibs_check_method=pass_all
  14245. - ;;
  14246. - pc)
  14247. - lt_cv_deplibs_check_method=pass_all
  14248. - ;;
  14249. - esac
  14250. - ;;
  14251. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14252. - lt_cv_deplibs_check_method=pass_all
  14253. - ;;
  14254. +case `pwd` in
  14255. + *\ * | *\ *)
  14256. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  14257. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  14258. esac
  14259. -fi
  14260. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  14261. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  14262. -file_magic_cmd=$lt_cv_file_magic_cmd
  14263. -deplibs_check_method=$lt_cv_deplibs_check_method
  14264. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  14265. +macro_version='2.2.6b'
  14266. +macro_revision='1.3017'
  14267. -# If no C compiler was specified, use CC.
  14268. -LTCC=${LTCC-"$CC"}
  14269. -# If no C compiler flags were specified, use CFLAGS.
  14270. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14271. -# Allow CC to be a program name with arguments.
  14272. -compiler=$CC
  14273. -# Check whether --enable-libtool-lock was given.
  14274. -if test "${enable_libtool_lock+set}" = set; then
  14275. - enableval=$enable_libtool_lock;
  14276. -fi
  14277. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  14278. -# Some flags need to be propagated to the compiler or linker for good
  14279. -# libtool support.
  14280. -case $host in
  14281. -ia64-*-hpux*)
  14282. - # Find out which ABI we are using.
  14283. - echo 'int i;' > conftest.$ac_ext
  14284. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14285. - (eval $ac_compile) 2>&5
  14286. - ac_status=$?
  14287. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14288. - (exit $ac_status); }; then
  14289. - case `/usr/bin/file conftest.$ac_objext` in
  14290. - *ELF-32*)
  14291. - HPUX_IA64_MODE="32"
  14292. - ;;
  14293. - *ELF-64*)
  14294. - HPUX_IA64_MODE="64"
  14295. - ;;
  14296. - esac
  14297. - fi
  14298. - rm -rf conftest*
  14299. - ;;
  14300. -*-*-irix6*)
  14301. - # Find out which ABI we are using.
  14302. - echo '#line 5164 "configure"' > conftest.$ac_ext
  14303. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14304. - (eval $ac_compile) 2>&5
  14305. - ac_status=$?
  14306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14307. - (exit $ac_status); }; then
  14308. - if test "$lt_cv_prog_gnu_ld" = yes; then
  14309. - case `/usr/bin/file conftest.$ac_objext` in
  14310. - *32-bit*)
  14311. - LD="${LD-ld} -melf32bsmip"
  14312. - ;;
  14313. - *N32*)
  14314. - LD="${LD-ld} -melf32bmipn32"
  14315. - ;;
  14316. - *64-bit*)
  14317. - LD="${LD-ld} -melf64bmip"
  14318. - ;;
  14319. - esac
  14320. - else
  14321. - case `/usr/bin/file conftest.$ac_objext` in
  14322. - *32-bit*)
  14323. - LD="${LD-ld} -32"
  14324. - ;;
  14325. - *N32*)
  14326. - LD="${LD-ld} -n32"
  14327. - ;;
  14328. - *64-bit*)
  14329. - LD="${LD-ld} -64"
  14330. - ;;
  14331. - esac
  14332. - fi
  14333. - fi
  14334. - rm -rf conftest*
  14335. - ;;
  14336. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  14337. -s390*-*linux*|sparc*-*linux*)
  14338. - # Find out which ABI we are using.
  14339. - echo 'int i;' > conftest.$ac_ext
  14340. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14341. - (eval $ac_compile) 2>&5
  14342. - ac_status=$?
  14343. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14344. - (exit $ac_status); }; then
  14345. - case `/usr/bin/file conftest.o` in
  14346. - *32-bit*)
  14347. - case $host in
  14348. - x86_64-*kfreebsd*-gnu)
  14349. - LD="${LD-ld} -m elf_i386_fbsd"
  14350. - ;;
  14351. - x86_64-*linux*)
  14352. - LD="${LD-ld} -m elf_i386"
  14353. - ;;
  14354. - ppc64-*linux*|powerpc64-*linux*)
  14355. - LD="${LD-ld} -m elf32ppclinux"
  14356. - ;;
  14357. - s390x-*linux*)
  14358. - LD="${LD-ld} -m elf_s390"
  14359. - ;;
  14360. - sparc64-*linux*)
  14361. - LD="${LD-ld} -m elf32_sparc"
  14362. - ;;
  14363. - esac
  14364. - ;;
  14365. - *64-bit*)
  14366. - case $host in
  14367. - x86_64-*kfreebsd*-gnu)
  14368. - LD="${LD-ld} -m elf_x86_64_fbsd"
  14369. - ;;
  14370. - x86_64-*linux*)
  14371. - LD="${LD-ld} -m elf_x86_64"
  14372. - ;;
  14373. - ppc*-*linux*|powerpc*-*linux*)
  14374. - LD="${LD-ld} -m elf64ppc"
  14375. - ;;
  14376. - s390*-*linux*)
  14377. - LD="${LD-ld} -m elf64_s390"
  14378. - ;;
  14379. - sparc*-*linux*)
  14380. - LD="${LD-ld} -m elf64_sparc"
  14381. - ;;
  14382. - esac
  14383. - ;;
  14384. - esac
  14385. - fi
  14386. - rm -rf conftest*
  14387. - ;;
  14388. -*-*-sco3.2v5*)
  14389. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  14390. - SAVE_CFLAGS="$CFLAGS"
  14391. - CFLAGS="$CFLAGS -belf"
  14392. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  14393. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  14394. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  14395. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14396. -else
  14397. - ac_ext=c
  14398. -ac_cpp='$CPP $CPPFLAGS'
  14399. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14400. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14401. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14402. - cat >conftest.$ac_ext <<_ACEOF
  14403. -/* confdefs.h. */
  14404. -_ACEOF
  14405. -cat confdefs.h >>conftest.$ac_ext
  14406. -cat >>conftest.$ac_ext <<_ACEOF
  14407. -/* end confdefs.h. */
  14408. -int
  14409. -main ()
  14410. -{
  14411. - ;
  14412. - return 0;
  14413. -}
  14414. -_ACEOF
  14415. -rm -f conftest.$ac_objext conftest$ac_exeext
  14416. -if { (ac_try="$ac_link"
  14417. -case "(($ac_try" in
  14418. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14419. - *) ac_try_echo=$ac_try;;
  14420. +ltmain="$ac_aux_dir/ltmain.sh"
  14421. +
  14422. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  14423. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  14424. +if test "${ac_cv_path_SED+set}" = set; then :
  14425. + $as_echo_n "(cached) " >&6
  14426. +else
  14427. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  14428. + for ac_i in 1 2 3 4 5 6 7; do
  14429. + ac_script="$ac_script$as_nl$ac_script"
  14430. + done
  14431. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  14432. + { ac_script=; unset ac_script;}
  14433. + if test -z "$SED"; then
  14434. + ac_path_SED_found=false
  14435. + # Loop through the user's path and test for each of PROGNAME-LIST
  14436. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14437. +for as_dir in $PATH
  14438. +do
  14439. + IFS=$as_save_IFS
  14440. + test -z "$as_dir" && as_dir=.
  14441. + for ac_prog in sed gsed; do
  14442. + for ac_exec_ext in '' $ac_executable_extensions; do
  14443. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  14444. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  14445. +# Check for GNU ac_path_SED and select it if it is found.
  14446. + # Check for GNU $ac_path_SED
  14447. +case `"$ac_path_SED" --version 2>&1` in
  14448. +*GNU*)
  14449. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  14450. +*)
  14451. + ac_count=0
  14452. + $as_echo_n 0123456789 >"conftest.in"
  14453. + while :
  14454. + do
  14455. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  14456. + mv "conftest.tmp" "conftest.in"
  14457. + cp "conftest.in" "conftest.nl"
  14458. + $as_echo '' >> "conftest.nl"
  14459. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14460. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14461. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  14462. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  14463. + # Best one so far, save it but keep looking for a better one
  14464. + ac_cv_path_SED="$ac_path_SED"
  14465. + ac_path_SED_max=$ac_count
  14466. + fi
  14467. + # 10*(2^10) chars as input seems more than enough
  14468. + test $ac_count -gt 10 && break
  14469. + done
  14470. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14471. esac
  14472. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14473. - (eval "$ac_link") 2>conftest.er1
  14474. - ac_status=$?
  14475. - grep -v '^ *+' conftest.er1 >conftest.err
  14476. - rm -f conftest.er1
  14477. - cat conftest.err >&5
  14478. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14479. - (exit $ac_status); } && {
  14480. - test -z "$ac_c_werror_flag" ||
  14481. - test ! -s conftest.err
  14482. - } && test -s conftest$ac_exeext &&
  14483. - $as_test_x conftest$ac_exeext; then
  14484. - lt_cv_cc_needs_belf=yes
  14485. +
  14486. + $ac_path_SED_found && break 3
  14487. + done
  14488. + done
  14489. + done
  14490. +IFS=$as_save_IFS
  14491. + if test -z "$ac_cv_path_SED"; then
  14492. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  14493. + fi
  14494. else
  14495. - echo "$as_me: failed program was:" >&5
  14496. -sed 's/^/| /' conftest.$ac_ext >&5
  14497. + ac_cv_path_SED=$SED
  14498. +fi
  14499. - lt_cv_cc_needs_belf=no
  14500. fi
  14501. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  14502. +$as_echo "$ac_cv_path_SED" >&6; }
  14503. + SED="$ac_cv_path_SED"
  14504. + rm -f conftest.sed
  14505. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14506. - conftest$ac_exeext conftest.$ac_ext
  14507. - ac_ext=c
  14508. -ac_cpp='$CPP $CPPFLAGS'
  14509. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14510. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14511. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14512. +test -z "$SED" && SED=sed
  14513. +Xsed="$SED -e 1s/^X//"
  14514. -fi
  14515. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  14516. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  14517. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  14518. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  14519. - CFLAGS="$SAVE_CFLAGS"
  14520. - fi
  14521. - ;;
  14522. -sparc*-*solaris*)
  14523. - # Find out which ABI we are using.
  14524. - echo 'int i;' > conftest.$ac_ext
  14525. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14526. - (eval $ac_compile) 2>&5
  14527. - ac_status=$?
  14528. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14529. - (exit $ac_status); }; then
  14530. - case `/usr/bin/file conftest.o` in
  14531. - *64-bit*)
  14532. - case $lt_cv_prog_gnu_ld in
  14533. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  14534. - *)
  14535. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  14536. - LD="${LD-ld} -64"
  14537. - fi
  14538. - ;;
  14539. - esac
  14540. - ;;
  14541. - esac
  14542. - fi
  14543. - rm -rf conftest*
  14544. - ;;
  14545. -*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  14546. - if test -n "$ac_tool_prefix"; then
  14547. - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  14548. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  14549. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14550. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14551. -if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  14552. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14553. -else
  14554. - if test -n "$DLLTOOL"; then
  14555. - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  14556. +
  14557. +
  14558. +
  14559. +
  14560. +
  14561. +
  14562. +
  14563. +
  14564. +
  14565. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  14566. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  14567. +if test "${ac_cv_path_GREP+set}" = set; then :
  14568. + $as_echo_n "(cached) " >&6
  14569. else
  14570. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14571. -for as_dir in $PATH
  14572. + if test -z "$GREP"; then
  14573. + ac_path_GREP_found=false
  14574. + # Loop through the user's path and test for each of PROGNAME-LIST
  14575. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14576. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  14577. do
  14578. IFS=$as_save_IFS
  14579. test -z "$as_dir" && as_dir=.
  14580. - for ac_exec_ext in '' $ac_executable_extensions; do
  14581. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14582. - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  14583. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14584. - break 2
  14585. - fi
  14586. -done
  14587. -done
  14588. -IFS=$as_save_IFS
  14589. -
  14590. -fi
  14591. -fi
  14592. -DLLTOOL=$ac_cv_prog_DLLTOOL
  14593. -if test -n "$DLLTOOL"; then
  14594. - { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  14595. -echo "${ECHO_T}$DLLTOOL" >&6; }
  14596. -else
  14597. - { echo "$as_me:$LINENO: result: no" >&5
  14598. -echo "${ECHO_T}no" >&6; }
  14599. -fi
  14600. -
  14601. + for ac_prog in grep ggrep; do
  14602. + for ac_exec_ext in '' $ac_executable_extensions; do
  14603. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  14604. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  14605. +# Check for GNU ac_path_GREP and select it if it is found.
  14606. + # Check for GNU $ac_path_GREP
  14607. +case `"$ac_path_GREP" --version 2>&1` in
  14608. +*GNU*)
  14609. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  14610. +*)
  14611. + ac_count=0
  14612. + $as_echo_n 0123456789 >"conftest.in"
  14613. + while :
  14614. + do
  14615. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  14616. + mv "conftest.tmp" "conftest.in"
  14617. + cp "conftest.in" "conftest.nl"
  14618. + $as_echo 'GREP' >> "conftest.nl"
  14619. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14620. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14621. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  14622. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  14623. + # Best one so far, save it but keep looking for a better one
  14624. + ac_cv_path_GREP="$ac_path_GREP"
  14625. + ac_path_GREP_max=$ac_count
  14626. + fi
  14627. + # 10*(2^10) chars as input seems more than enough
  14628. + test $ac_count -gt 10 && break
  14629. + done
  14630. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14631. +esac
  14632. -fi
  14633. -if test -z "$ac_cv_prog_DLLTOOL"; then
  14634. - ac_ct_DLLTOOL=$DLLTOOL
  14635. - # Extract the first word of "dlltool", so it can be a program name with args.
  14636. -set dummy dlltool; ac_word=$2
  14637. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14638. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14639. -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  14640. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14641. -else
  14642. - if test -n "$ac_ct_DLLTOOL"; then
  14643. - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  14644. -else
  14645. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14646. -for as_dir in $PATH
  14647. -do
  14648. - IFS=$as_save_IFS
  14649. - test -z "$as_dir" && as_dir=.
  14650. - for ac_exec_ext in '' $ac_executable_extensions; do
  14651. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14652. - ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  14653. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14654. - break 2
  14655. - fi
  14656. -done
  14657. -done
  14658. + $ac_path_GREP_found && break 3
  14659. + done
  14660. + done
  14661. + done
  14662. IFS=$as_save_IFS
  14663. -
  14664. -fi
  14665. -fi
  14666. -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  14667. -if test -n "$ac_ct_DLLTOOL"; then
  14668. - { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  14669. -echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  14670. -else
  14671. - { echo "$as_me:$LINENO: result: no" >&5
  14672. -echo "${ECHO_T}no" >&6; }
  14673. -fi
  14674. -
  14675. - if test "x$ac_ct_DLLTOOL" = x; then
  14676. - DLLTOOL="false"
  14677. - else
  14678. - case $cross_compiling:$ac_tool_warned in
  14679. -yes:)
  14680. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14681. -whose name does not start with the host triplet. If you think this
  14682. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  14683. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14684. -whose name does not start with the host triplet. If you think this
  14685. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14686. -ac_tool_warned=yes ;;
  14687. -esac
  14688. - DLLTOOL=$ac_ct_DLLTOOL
  14689. + if test -z "$ac_cv_path_GREP"; then
  14690. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  14691. fi
  14692. else
  14693. - DLLTOOL="$ac_cv_prog_DLLTOOL"
  14694. + ac_cv_path_GREP=$GREP
  14695. fi
  14696. - if test -n "$ac_tool_prefix"; then
  14697. - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  14698. -set dummy ${ac_tool_prefix}as; ac_word=$2
  14699. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14700. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14701. -if test "${ac_cv_prog_AS+set}" = set; then
  14702. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14703. -else
  14704. - if test -n "$AS"; then
  14705. - ac_cv_prog_AS="$AS" # Let the user override the test.
  14706. -else
  14707. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14708. -for as_dir in $PATH
  14709. -do
  14710. - IFS=$as_save_IFS
  14711. - test -z "$as_dir" && as_dir=.
  14712. - for ac_exec_ext in '' $ac_executable_extensions; do
  14713. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14714. - ac_cv_prog_AS="${ac_tool_prefix}as"
  14715. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14716. - break 2
  14717. - fi
  14718. -done
  14719. -done
  14720. -IFS=$as_save_IFS
  14721. -
  14722. -fi
  14723. -fi
  14724. -AS=$ac_cv_prog_AS
  14725. -if test -n "$AS"; then
  14726. - { echo "$as_me:$LINENO: result: $AS" >&5
  14727. -echo "${ECHO_T}$AS" >&6; }
  14728. -else
  14729. - { echo "$as_me:$LINENO: result: no" >&5
  14730. -echo "${ECHO_T}no" >&6; }
  14731. fi
  14732. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  14733. +$as_echo "$ac_cv_path_GREP" >&6; }
  14734. + GREP="$ac_cv_path_GREP"
  14735. -fi
  14736. -if test -z "$ac_cv_prog_AS"; then
  14737. - ac_ct_AS=$AS
  14738. - # Extract the first word of "as", so it can be a program name with args.
  14739. -set dummy as; ac_word=$2
  14740. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14741. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14742. -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  14743. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14744. -else
  14745. - if test -n "$ac_ct_AS"; then
  14746. - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  14747. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  14748. +$as_echo_n "checking for egrep... " >&6; }
  14749. +if test "${ac_cv_path_EGREP+set}" = set; then :
  14750. + $as_echo_n "(cached) " >&6
  14751. else
  14752. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14753. -for as_dir in $PATH
  14754. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  14755. + then ac_cv_path_EGREP="$GREP -E"
  14756. + else
  14757. + if test -z "$EGREP"; then
  14758. + ac_path_EGREP_found=false
  14759. + # Loop through the user's path and test for each of PROGNAME-LIST
  14760. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14761. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  14762. do
  14763. IFS=$as_save_IFS
  14764. test -z "$as_dir" && as_dir=.
  14765. - for ac_exec_ext in '' $ac_executable_extensions; do
  14766. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14767. - ac_cv_prog_ac_ct_AS="as"
  14768. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14769. - break 2
  14770. - fi
  14771. -done
  14772. -done
  14773. -IFS=$as_save_IFS
  14774. -
  14775. -fi
  14776. -fi
  14777. -ac_ct_AS=$ac_cv_prog_ac_ct_AS
  14778. -if test -n "$ac_ct_AS"; then
  14779. - { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  14780. -echo "${ECHO_T}$ac_ct_AS" >&6; }
  14781. -else
  14782. - { echo "$as_me:$LINENO: result: no" >&5
  14783. -echo "${ECHO_T}no" >&6; }
  14784. -fi
  14785. -
  14786. - if test "x$ac_ct_AS" = x; then
  14787. - AS="false"
  14788. - else
  14789. - case $cross_compiling:$ac_tool_warned in
  14790. -yes:)
  14791. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14792. -whose name does not start with the host triplet. If you think this
  14793. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  14794. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14795. -whose name does not start with the host triplet. If you think this
  14796. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14797. -ac_tool_warned=yes ;;
  14798. + for ac_prog in egrep; do
  14799. + for ac_exec_ext in '' $ac_executable_extensions; do
  14800. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  14801. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  14802. +# Check for GNU ac_path_EGREP and select it if it is found.
  14803. + # Check for GNU $ac_path_EGREP
  14804. +case `"$ac_path_EGREP" --version 2>&1` in
  14805. +*GNU*)
  14806. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  14807. +*)
  14808. + ac_count=0
  14809. + $as_echo_n 0123456789 >"conftest.in"
  14810. + while :
  14811. + do
  14812. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  14813. + mv "conftest.tmp" "conftest.in"
  14814. + cp "conftest.in" "conftest.nl"
  14815. + $as_echo 'EGREP' >> "conftest.nl"
  14816. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14817. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14818. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  14819. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  14820. + # Best one so far, save it but keep looking for a better one
  14821. + ac_cv_path_EGREP="$ac_path_EGREP"
  14822. + ac_path_EGREP_max=$ac_count
  14823. + fi
  14824. + # 10*(2^10) chars as input seems more than enough
  14825. + test $ac_count -gt 10 && break
  14826. + done
  14827. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14828. esac
  14829. - AS=$ac_ct_AS
  14830. +
  14831. + $ac_path_EGREP_found && break 3
  14832. + done
  14833. + done
  14834. + done
  14835. +IFS=$as_save_IFS
  14836. + if test -z "$ac_cv_path_EGREP"; then
  14837. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  14838. fi
  14839. else
  14840. - AS="$ac_cv_prog_AS"
  14841. + ac_cv_path_EGREP=$EGREP
  14842. fi
  14843. - if test -n "$ac_tool_prefix"; then
  14844. - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  14845. -set dummy ${ac_tool_prefix}objdump; ac_word=$2
  14846. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14847. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14848. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  14849. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14850. -else
  14851. - if test -n "$OBJDUMP"; then
  14852. - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  14853. -else
  14854. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14855. -for as_dir in $PATH
  14856. -do
  14857. - IFS=$as_save_IFS
  14858. - test -z "$as_dir" && as_dir=.
  14859. - for ac_exec_ext in '' $ac_executable_extensions; do
  14860. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14861. - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  14862. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14863. - break 2
  14864. - fi
  14865. -done
  14866. -done
  14867. -IFS=$as_save_IFS
  14868. -
  14869. -fi
  14870. -fi
  14871. -OBJDUMP=$ac_cv_prog_OBJDUMP
  14872. -if test -n "$OBJDUMP"; then
  14873. - { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  14874. -echo "${ECHO_T}$OBJDUMP" >&6; }
  14875. -else
  14876. - { echo "$as_me:$LINENO: result: no" >&5
  14877. -echo "${ECHO_T}no" >&6; }
  14878. + fi
  14879. fi
  14880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  14881. +$as_echo "$ac_cv_path_EGREP" >&6; }
  14882. + EGREP="$ac_cv_path_EGREP"
  14883. -fi
  14884. -if test -z "$ac_cv_prog_OBJDUMP"; then
  14885. - ac_ct_OBJDUMP=$OBJDUMP
  14886. - # Extract the first word of "objdump", so it can be a program name with args.
  14887. -set dummy objdump; ac_word=$2
  14888. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14889. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14890. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  14891. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  14893. +$as_echo_n "checking for fgrep... " >&6; }
  14894. +if test "${ac_cv_path_FGREP+set}" = set; then :
  14895. + $as_echo_n "(cached) " >&6
  14896. else
  14897. - if test -n "$ac_ct_OBJDUMP"; then
  14898. - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  14899. -else
  14900. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14901. -for as_dir in $PATH
  14902. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  14903. + then ac_cv_path_FGREP="$GREP -F"
  14904. + else
  14905. + if test -z "$FGREP"; then
  14906. + ac_path_FGREP_found=false
  14907. + # Loop through the user's path and test for each of PROGNAME-LIST
  14908. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14909. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  14910. do
  14911. IFS=$as_save_IFS
  14912. test -z "$as_dir" && as_dir=.
  14913. - for ac_exec_ext in '' $ac_executable_extensions; do
  14914. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14915. - ac_cv_prog_ac_ct_OBJDUMP="objdump"
  14916. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14917. - break 2
  14918. - fi
  14919. -done
  14920. -done
  14921. -IFS=$as_save_IFS
  14922. + for ac_prog in fgrep; do
  14923. + for ac_exec_ext in '' $ac_executable_extensions; do
  14924. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  14925. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  14926. +# Check for GNU ac_path_FGREP and select it if it is found.
  14927. + # Check for GNU $ac_path_FGREP
  14928. +case `"$ac_path_FGREP" --version 2>&1` in
  14929. +*GNU*)
  14930. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  14931. +*)
  14932. + ac_count=0
  14933. + $as_echo_n 0123456789 >"conftest.in"
  14934. + while :
  14935. + do
  14936. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  14937. + mv "conftest.tmp" "conftest.in"
  14938. + cp "conftest.in" "conftest.nl"
  14939. + $as_echo 'FGREP' >> "conftest.nl"
  14940. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14941. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14942. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  14943. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  14944. + # Best one so far, save it but keep looking for a better one
  14945. + ac_cv_path_FGREP="$ac_path_FGREP"
  14946. + ac_path_FGREP_max=$ac_count
  14947. + fi
  14948. + # 10*(2^10) chars as input seems more than enough
  14949. + test $ac_count -gt 10 && break
  14950. + done
  14951. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14952. +esac
  14953. -fi
  14954. -fi
  14955. -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  14956. -if test -n "$ac_ct_OBJDUMP"; then
  14957. - { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  14958. -echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  14959. + $ac_path_FGREP_found && break 3
  14960. + done
  14961. + done
  14962. + done
  14963. +IFS=$as_save_IFS
  14964. + if test -z "$ac_cv_path_FGREP"; then
  14965. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  14966. + fi
  14967. else
  14968. - { echo "$as_me:$LINENO: result: no" >&5
  14969. -echo "${ECHO_T}no" >&6; }
  14970. + ac_cv_path_FGREP=$FGREP
  14971. fi
  14972. - if test "x$ac_ct_OBJDUMP" = x; then
  14973. - OBJDUMP="false"
  14974. - else
  14975. - case $cross_compiling:$ac_tool_warned in
  14976. -yes:)
  14977. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14978. -whose name does not start with the host triplet. If you think this
  14979. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  14980. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14981. -whose name does not start with the host triplet. If you think this
  14982. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14983. -ac_tool_warned=yes ;;
  14984. -esac
  14985. - OBJDUMP=$ac_ct_OBJDUMP
  14986. - fi
  14987. -else
  14988. - OBJDUMP="$ac_cv_prog_OBJDUMP"
  14989. + fi
  14990. fi
  14991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  14992. +$as_echo "$ac_cv_path_FGREP" >&6; }
  14993. + FGREP="$ac_cv_path_FGREP"
  14994. - ;;
  14995. -esac
  14996. +test -z "$GREP" && GREP=grep
  14997. -need_locks="$enable_libtool_lock"
  14998. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  14999. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  15000. -if test "${ac_cv_header_stdc+set}" = set; then
  15001. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15002. -else
  15003. - cat >conftest.$ac_ext <<_ACEOF
  15004. -/* confdefs.h. */
  15005. -_ACEOF
  15006. -cat confdefs.h >>conftest.$ac_ext
  15007. -cat >>conftest.$ac_ext <<_ACEOF
  15008. -/* end confdefs.h. */
  15009. -#include <stdlib.h>
  15010. -#include <stdarg.h>
  15011. -#include <string.h>
  15012. -#include <float.h>
  15013. -int
  15014. -main ()
  15015. -{
  15016. - ;
  15017. - return 0;
  15018. -}
  15019. -_ACEOF
  15020. -rm -f conftest.$ac_objext
  15021. -if { (ac_try="$ac_compile"
  15022. -case "(($ac_try" in
  15023. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15024. - *) ac_try_echo=$ac_try;;
  15025. -esac
  15026. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15027. - (eval "$ac_compile") 2>conftest.er1
  15028. - ac_status=$?
  15029. - grep -v '^ *+' conftest.er1 >conftest.err
  15030. - rm -f conftest.er1
  15031. - cat conftest.err >&5
  15032. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15033. - (exit $ac_status); } && {
  15034. - test -z "$ac_c_werror_flag" ||
  15035. - test ! -s conftest.err
  15036. - } && test -s conftest.$ac_objext; then
  15037. - ac_cv_header_stdc=yes
  15038. -else
  15039. - echo "$as_me: failed program was:" >&5
  15040. -sed 's/^/| /' conftest.$ac_ext >&5
  15041. - ac_cv_header_stdc=no
  15042. -fi
  15043. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15044. -if test $ac_cv_header_stdc = yes; then
  15045. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15046. - cat >conftest.$ac_ext <<_ACEOF
  15047. -/* confdefs.h. */
  15048. -_ACEOF
  15049. -cat confdefs.h >>conftest.$ac_ext
  15050. -cat >>conftest.$ac_ext <<_ACEOF
  15051. -/* end confdefs.h. */
  15052. -#include <string.h>
  15053. -_ACEOF
  15054. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15055. - $EGREP "memchr" >/dev/null 2>&1; then
  15056. - :
  15057. -else
  15058. - ac_cv_header_stdc=no
  15059. -fi
  15060. -rm -f conftest*
  15061. -fi
  15062. -if test $ac_cv_header_stdc = yes; then
  15063. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15064. - cat >conftest.$ac_ext <<_ACEOF
  15065. -/* confdefs.h. */
  15066. -_ACEOF
  15067. -cat confdefs.h >>conftest.$ac_ext
  15068. -cat >>conftest.$ac_ext <<_ACEOF
  15069. -/* end confdefs.h. */
  15070. -#include <stdlib.h>
  15071. -_ACEOF
  15072. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15073. - $EGREP "free" >/dev/null 2>&1; then
  15074. - :
  15075. -else
  15076. - ac_cv_header_stdc=no
  15077. -fi
  15078. -rm -f conftest*
  15079. -fi
  15080. -if test $ac_cv_header_stdc = yes; then
  15081. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15082. - if test "$cross_compiling" = yes; then
  15083. - :
  15084. -else
  15085. - cat >conftest.$ac_ext <<_ACEOF
  15086. -/* confdefs.h. */
  15087. -_ACEOF
  15088. -cat confdefs.h >>conftest.$ac_ext
  15089. -cat >>conftest.$ac_ext <<_ACEOF
  15090. -/* end confdefs.h. */
  15091. -#include <ctype.h>
  15092. -#include <stdlib.h>
  15093. -#if ((' ' & 0x0FF) == 0x020)
  15094. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15095. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15096. -#else
  15097. -# define ISLOWER(c) \
  15098. - (('a' <= (c) && (c) <= 'i') \
  15099. - || ('j' <= (c) && (c) <= 'r') \
  15100. - || ('s' <= (c) && (c) <= 'z'))
  15101. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15102. -#endif
  15103. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15104. -int
  15105. -main ()
  15106. -{
  15107. - int i;
  15108. - for (i = 0; i < 256; i++)
  15109. - if (XOR (islower (i), ISLOWER (i))
  15110. - || toupper (i) != TOUPPER (i))
  15111. - return 2;
  15112. - return 0;
  15113. -}
  15114. -_ACEOF
  15115. -rm -f conftest$ac_exeext
  15116. -if { (ac_try="$ac_link"
  15117. -case "(($ac_try" in
  15118. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15119. - *) ac_try_echo=$ac_try;;
  15120. -esac
  15121. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15122. - (eval "$ac_link") 2>&5
  15123. - ac_status=$?
  15124. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15125. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15126. - { (case "(($ac_try" in
  15127. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15128. - *) ac_try_echo=$ac_try;;
  15129. -esac
  15130. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15131. - (eval "$ac_try") 2>&5
  15132. - ac_status=$?
  15133. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15134. - (exit $ac_status); }; }; then
  15135. - :
  15136. -else
  15137. - echo "$as_me: program exited with status $ac_status" >&5
  15138. -echo "$as_me: failed program was:" >&5
  15139. -sed 's/^/| /' conftest.$ac_ext >&5
  15140. -( exit $ac_status )
  15141. -ac_cv_header_stdc=no
  15142. -fi
  15143. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15144. -fi
  15145. +# Check whether --with-gnu-ld was given.
  15146. +if test "${with_gnu_ld+set}" = set; then :
  15147. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  15148. +else
  15149. + with_gnu_ld=no
  15150. fi
  15151. -fi
  15152. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15153. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  15154. -if test $ac_cv_header_stdc = yes; then
  15155. -
  15156. -cat >>confdefs.h <<\_ACEOF
  15157. -#define STDC_HEADERS 1
  15158. -_ACEOF
  15159. +ac_prog=ld
  15160. +if test "$GCC" = yes; then
  15161. + # Check if gcc -print-prog-name=ld gives a path.
  15162. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  15163. +$as_echo_n "checking for ld used by $CC... " >&6; }
  15164. + case $host in
  15165. + *-*-mingw*)
  15166. + # gcc leaves a trailing carriage return which upsets mingw
  15167. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  15168. + *)
  15169. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  15170. + esac
  15171. + case $ac_prog in
  15172. + # Accept absolute paths.
  15173. + [\\/]* | ?:[\\/]*)
  15174. + re_direlt='/[^/][^/]*/\.\./'
  15175. + # Canonicalize the pathname of ld
  15176. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  15177. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  15178. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  15179. + done
  15180. + test -z "$LD" && LD="$ac_prog"
  15181. + ;;
  15182. + "")
  15183. + # If it fails, then pretend we aren't using GCC.
  15184. + ac_prog=ld
  15185. + ;;
  15186. + *)
  15187. + # If it is relative, then search for the first ld in PATH.
  15188. + with_gnu_ld=unknown
  15189. + ;;
  15190. + esac
  15191. +elif test "$with_gnu_ld" = yes; then
  15192. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  15193. +$as_echo_n "checking for GNU ld... " >&6; }
  15194. +else
  15195. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  15196. +$as_echo_n "checking for non-GNU ld... " >&6; }
  15197. fi
  15198. -
  15199. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  15200. -
  15201. -
  15202. -
  15203. -
  15204. -
  15205. -
  15206. -
  15207. -
  15208. -
  15209. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  15210. - inttypes.h stdint.h unistd.h
  15211. -do
  15212. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15213. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  15214. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15215. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15216. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15217. +if test "${lt_cv_path_LD+set}" = set; then :
  15218. + $as_echo_n "(cached) " >&6
  15219. else
  15220. - cat >conftest.$ac_ext <<_ACEOF
  15221. -/* confdefs.h. */
  15222. -_ACEOF
  15223. -cat confdefs.h >>conftest.$ac_ext
  15224. -cat >>conftest.$ac_ext <<_ACEOF
  15225. -/* end confdefs.h. */
  15226. -$ac_includes_default
  15227. -
  15228. -#include <$ac_header>
  15229. -_ACEOF
  15230. -rm -f conftest.$ac_objext
  15231. -if { (ac_try="$ac_compile"
  15232. -case "(($ac_try" in
  15233. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15234. - *) ac_try_echo=$ac_try;;
  15235. -esac
  15236. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15237. - (eval "$ac_compile") 2>conftest.er1
  15238. - ac_status=$?
  15239. - grep -v '^ *+' conftest.er1 >conftest.err
  15240. - rm -f conftest.er1
  15241. - cat conftest.err >&5
  15242. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15243. - (exit $ac_status); } && {
  15244. - test -z "$ac_c_werror_flag" ||
  15245. - test ! -s conftest.err
  15246. - } && test -s conftest.$ac_objext; then
  15247. - eval "$as_ac_Header=yes"
  15248. + if test -z "$LD"; then
  15249. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15250. + for ac_dir in $PATH; do
  15251. + IFS="$lt_save_ifs"
  15252. + test -z "$ac_dir" && ac_dir=.
  15253. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  15254. + lt_cv_path_LD="$ac_dir/$ac_prog"
  15255. + # Check to see if the program is GNU ld. I'd rather use --version,
  15256. + # but apparently some variants of GNU ld only accept -v.
  15257. + # Break only if it was the GNU/non-GNU ld that we prefer.
  15258. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  15259. + *GNU* | *'with BFD'*)
  15260. + test "$with_gnu_ld" != no && break
  15261. + ;;
  15262. + *)
  15263. + test "$with_gnu_ld" != yes && break
  15264. + ;;
  15265. + esac
  15266. + fi
  15267. + done
  15268. + IFS="$lt_save_ifs"
  15269. else
  15270. - echo "$as_me: failed program was:" >&5
  15271. -sed 's/^/| /' conftest.$ac_ext >&5
  15272. -
  15273. - eval "$as_ac_Header=no"
  15274. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  15275. fi
  15276. -
  15277. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15278. fi
  15279. -ac_res=`eval echo '${'$as_ac_Header'}'`
  15280. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  15281. -echo "${ECHO_T}$ac_res" >&6; }
  15282. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15283. - cat >>confdefs.h <<_ACEOF
  15284. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15285. -_ACEOF
  15286. +LD="$lt_cv_path_LD"
  15287. +if test -n "$LD"; then
  15288. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  15289. +$as_echo "$LD" >&6; }
  15290. +else
  15291. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15292. +$as_echo "no" >&6; }
  15293. fi
  15294. -
  15295. -done
  15296. -
  15297. -
  15298. -
  15299. -for ac_header in dlfcn.h
  15300. -do
  15301. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15302. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15303. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15304. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15305. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15306. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15307. -fi
  15308. -ac_res=`eval echo '${'$as_ac_Header'}'`
  15309. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  15310. -echo "${ECHO_T}$ac_res" >&6; }
  15311. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  15312. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  15313. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  15314. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  15315. + $as_echo_n "(cached) " >&6
  15316. else
  15317. - # Is the header compilable?
  15318. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15319. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15320. -cat >conftest.$ac_ext <<_ACEOF
  15321. -/* confdefs.h. */
  15322. -_ACEOF
  15323. -cat confdefs.h >>conftest.$ac_ext
  15324. -cat >>conftest.$ac_ext <<_ACEOF
  15325. -/* end confdefs.h. */
  15326. -$ac_includes_default
  15327. -#include <$ac_header>
  15328. -_ACEOF
  15329. -rm -f conftest.$ac_objext
  15330. -if { (ac_try="$ac_compile"
  15331. -case "(($ac_try" in
  15332. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15333. - *) ac_try_echo=$ac_try;;
  15334. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  15335. +case `$LD -v 2>&1 </dev/null` in
  15336. +*GNU* | *'with BFD'*)
  15337. + lt_cv_prog_gnu_ld=yes
  15338. + ;;
  15339. +*)
  15340. + lt_cv_prog_gnu_ld=no
  15341. + ;;
  15342. esac
  15343. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15344. - (eval "$ac_compile") 2>conftest.er1
  15345. - ac_status=$?
  15346. - grep -v '^ *+' conftest.er1 >conftest.err
  15347. - rm -f conftest.er1
  15348. - cat conftest.err >&5
  15349. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15350. - (exit $ac_status); } && {
  15351. - test -z "$ac_c_werror_flag" ||
  15352. - test ! -s conftest.err
  15353. - } && test -s conftest.$ac_objext; then
  15354. - ac_header_compiler=yes
  15355. -else
  15356. - echo "$as_me: failed program was:" >&5
  15357. -sed 's/^/| /' conftest.$ac_ext >&5
  15358. -
  15359. - ac_header_compiler=no
  15360. fi
  15361. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  15362. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  15363. +with_gnu_ld=$lt_cv_prog_gnu_ld
  15364. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15365. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15366. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  15367. -# Is the header present?
  15368. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15369. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15370. -cat >conftest.$ac_ext <<_ACEOF
  15371. -/* confdefs.h. */
  15372. -_ACEOF
  15373. -cat confdefs.h >>conftest.$ac_ext
  15374. -cat >>conftest.$ac_ext <<_ACEOF
  15375. -/* end confdefs.h. */
  15376. -#include <$ac_header>
  15377. -_ACEOF
  15378. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15379. -case "(($ac_try" in
  15380. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15381. - *) ac_try_echo=$ac_try;;
  15382. -esac
  15383. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15384. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15385. - ac_status=$?
  15386. - grep -v '^ *+' conftest.er1 >conftest.err
  15387. - rm -f conftest.er1
  15388. - cat conftest.err >&5
  15389. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15390. - (exit $ac_status); } >/dev/null && {
  15391. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15392. - test ! -s conftest.err
  15393. - }; then
  15394. - ac_header_preproc=yes
  15395. -else
  15396. - echo "$as_me: failed program was:" >&5
  15397. -sed 's/^/| /' conftest.$ac_ext >&5
  15398. - ac_header_preproc=no
  15399. -fi
  15400. -rm -f conftest.err conftest.$ac_ext
  15401. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15402. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  15403. -# So? What about this header?
  15404. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15405. - yes:no: )
  15406. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15407. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15408. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15409. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15410. - ac_header_preproc=yes
  15411. - ;;
  15412. - no:yes:* )
  15413. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15414. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15415. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15416. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15417. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15418. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15419. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15420. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15421. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15422. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15423. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15424. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15425. - ;;
  15426. -esac
  15427. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  15428. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15429. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15430. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15431. -else
  15432. - eval "$as_ac_Header=\$ac_header_preproc"
  15433. -fi
  15434. -ac_res=`eval echo '${'$as_ac_Header'}'`
  15435. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  15436. -echo "${ECHO_T}$ac_res" >&6; }
  15437. -fi
  15438. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15439. - cat >>confdefs.h <<_ACEOF
  15440. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15441. -_ACEOF
  15442. -fi
  15443. -done
  15444. -
  15445. -
  15446. -
  15447. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  15448. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  15449. - (test "X$CXX" != "Xg++"))) ; then
  15450. - ac_ext=cpp
  15451. -ac_cpp='$CXXCPP $CPPFLAGS'
  15452. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15453. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15454. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15455. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  15456. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  15457. -if test -z "$CXXCPP"; then
  15458. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  15459. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15460. -else
  15461. - # Double quotes because CXXCPP needs to be expanded
  15462. - for CXXCPP in "$CXX -E" "/lib/cpp"
  15463. - do
  15464. - ac_preproc_ok=false
  15465. -for ac_cxx_preproc_warn_flag in '' yes
  15466. -do
  15467. - # Use a header file that comes with gcc, so configuring glibc
  15468. - # with a fresh cross-compiler works.
  15469. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15470. - # <limits.h> exists even on freestanding compilers.
  15471. - # On the NeXT, cc -E runs the code through the compiler's parser,
  15472. - # not just through cpp. "Syntax error" is here to catch this case.
  15473. - cat >conftest.$ac_ext <<_ACEOF
  15474. -/* confdefs.h. */
  15475. -_ACEOF
  15476. -cat confdefs.h >>conftest.$ac_ext
  15477. -cat >>conftest.$ac_ext <<_ACEOF
  15478. -/* end confdefs.h. */
  15479. -#ifdef __STDC__
  15480. -# include <limits.h>
  15481. -#else
  15482. -# include <assert.h>
  15483. -#endif
  15484. - Syntax error
  15485. -_ACEOF
  15486. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15487. -case "(($ac_try" in
  15488. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15489. - *) ac_try_echo=$ac_try;;
  15490. -esac
  15491. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15492. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15493. - ac_status=$?
  15494. - grep -v '^ *+' conftest.er1 >conftest.err
  15495. - rm -f conftest.er1
  15496. - cat conftest.err >&5
  15497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15498. - (exit $ac_status); } >/dev/null && {
  15499. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15500. - test ! -s conftest.err
  15501. - }; then
  15502. - :
  15503. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  15504. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  15505. +if test "${lt_cv_path_NM+set}" = set; then :
  15506. + $as_echo_n "(cached) " >&6
  15507. else
  15508. - echo "$as_me: failed program was:" >&5
  15509. -sed 's/^/| /' conftest.$ac_ext >&5
  15510. -
  15511. - # Broken: fails on valid input.
  15512. -continue
  15513. -fi
  15514. -
  15515. -rm -f conftest.err conftest.$ac_ext
  15516. -
  15517. - # OK, works on sane cases. Now check whether nonexistent headers
  15518. - # can be detected and how.
  15519. - cat >conftest.$ac_ext <<_ACEOF
  15520. -/* confdefs.h. */
  15521. -_ACEOF
  15522. -cat confdefs.h >>conftest.$ac_ext
  15523. -cat >>conftest.$ac_ext <<_ACEOF
  15524. -/* end confdefs.h. */
  15525. -#include <ac_nonexistent.h>
  15526. -_ACEOF
  15527. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15528. -case "(($ac_try" in
  15529. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15530. - *) ac_try_echo=$ac_try;;
  15531. -esac
  15532. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15533. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15534. - ac_status=$?
  15535. - grep -v '^ *+' conftest.er1 >conftest.err
  15536. - rm -f conftest.er1
  15537. - cat conftest.err >&5
  15538. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15539. - (exit $ac_status); } >/dev/null && {
  15540. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15541. - test ! -s conftest.err
  15542. - }; then
  15543. - # Broken: success on invalid input.
  15544. -continue
  15545. + if test -n "$NM"; then
  15546. + # Let the user override the test.
  15547. + lt_cv_path_NM="$NM"
  15548. else
  15549. - echo "$as_me: failed program was:" >&5
  15550. -sed 's/^/| /' conftest.$ac_ext >&5
  15551. -
  15552. - # Passes both tests.
  15553. -ac_preproc_ok=:
  15554. -break
  15555. -fi
  15556. -
  15557. -rm -f conftest.err conftest.$ac_ext
  15558. -
  15559. -done
  15560. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15561. -rm -f conftest.err conftest.$ac_ext
  15562. -if $ac_preproc_ok; then
  15563. - break
  15564. -fi
  15565. -
  15566. + lt_nm_to_check="${ac_tool_prefix}nm"
  15567. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  15568. + lt_nm_to_check="$lt_nm_to_check nm"
  15569. + fi
  15570. + for lt_tmp_nm in $lt_nm_to_check; do
  15571. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15572. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  15573. + IFS="$lt_save_ifs"
  15574. + test -z "$ac_dir" && ac_dir=.
  15575. + tmp_nm="$ac_dir/$lt_tmp_nm"
  15576. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  15577. + # Check to see if the nm accepts a BSD-compat flag.
  15578. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  15579. + # nm: unknown option "B" ignored
  15580. + # Tru64's nm complains that /dev/null is an invalid object file
  15581. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  15582. + */dev/null* | *'Invalid file or object type'*)
  15583. + lt_cv_path_NM="$tmp_nm -B"
  15584. + break
  15585. + ;;
  15586. + *)
  15587. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  15588. + */dev/null*)
  15589. + lt_cv_path_NM="$tmp_nm -p"
  15590. + break
  15591. + ;;
  15592. + *)
  15593. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  15594. + continue # so that we can try to find one that supports BSD flags
  15595. + ;;
  15596. + esac
  15597. + ;;
  15598. + esac
  15599. + fi
  15600. done
  15601. - ac_cv_prog_CXXCPP=$CXXCPP
  15602. -
  15603. -fi
  15604. - CXXCPP=$ac_cv_prog_CXXCPP
  15605. -else
  15606. - ac_cv_prog_CXXCPP=$CXXCPP
  15607. -fi
  15608. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  15609. -echo "${ECHO_T}$CXXCPP" >&6; }
  15610. -ac_preproc_ok=false
  15611. -for ac_cxx_preproc_warn_flag in '' yes
  15612. -do
  15613. - # Use a header file that comes with gcc, so configuring glibc
  15614. - # with a fresh cross-compiler works.
  15615. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15616. - # <limits.h> exists even on freestanding compilers.
  15617. - # On the NeXT, cc -E runs the code through the compiler's parser,
  15618. - # not just through cpp. "Syntax error" is here to catch this case.
  15619. - cat >conftest.$ac_ext <<_ACEOF
  15620. -/* confdefs.h. */
  15621. -_ACEOF
  15622. -cat confdefs.h >>conftest.$ac_ext
  15623. -cat >>conftest.$ac_ext <<_ACEOF
  15624. -/* end confdefs.h. */
  15625. -#ifdef __STDC__
  15626. -# include <limits.h>
  15627. -#else
  15628. -# include <assert.h>
  15629. -#endif
  15630. - Syntax error
  15631. -_ACEOF
  15632. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15633. -case "(($ac_try" in
  15634. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15635. - *) ac_try_echo=$ac_try;;
  15636. -esac
  15637. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15638. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15639. - ac_status=$?
  15640. - grep -v '^ *+' conftest.er1 >conftest.err
  15641. - rm -f conftest.er1
  15642. - cat conftest.err >&5
  15643. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15644. - (exit $ac_status); } >/dev/null && {
  15645. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15646. - test ! -s conftest.err
  15647. - }; then
  15648. - :
  15649. -else
  15650. - echo "$as_me: failed program was:" >&5
  15651. -sed 's/^/| /' conftest.$ac_ext >&5
  15652. -
  15653. - # Broken: fails on valid input.
  15654. -continue
  15655. + IFS="$lt_save_ifs"
  15656. + done
  15657. + : ${lt_cv_path_NM=no}
  15658. fi
  15659. -
  15660. -rm -f conftest.err conftest.$ac_ext
  15661. -
  15662. - # OK, works on sane cases. Now check whether nonexistent headers
  15663. - # can be detected and how.
  15664. - cat >conftest.$ac_ext <<_ACEOF
  15665. -/* confdefs.h. */
  15666. -_ACEOF
  15667. -cat confdefs.h >>conftest.$ac_ext
  15668. -cat >>conftest.$ac_ext <<_ACEOF
  15669. -/* end confdefs.h. */
  15670. -#include <ac_nonexistent.h>
  15671. -_ACEOF
  15672. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15673. -case "(($ac_try" in
  15674. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15675. - *) ac_try_echo=$ac_try;;
  15676. -esac
  15677. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15678. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15679. - ac_status=$?
  15680. - grep -v '^ *+' conftest.er1 >conftest.err
  15681. - rm -f conftest.er1
  15682. - cat conftest.err >&5
  15683. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15684. - (exit $ac_status); } >/dev/null && {
  15685. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15686. - test ! -s conftest.err
  15687. - }; then
  15688. - # Broken: success on invalid input.
  15689. -continue
  15690. -else
  15691. - echo "$as_me: failed program was:" >&5
  15692. -sed 's/^/| /' conftest.$ac_ext >&5
  15693. -
  15694. - # Passes both tests.
  15695. -ac_preproc_ok=:
  15696. -break
  15697. fi
  15698. -
  15699. -rm -f conftest.err conftest.$ac_ext
  15700. -
  15701. -done
  15702. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15703. -rm -f conftest.err conftest.$ac_ext
  15704. -if $ac_preproc_ok; then
  15705. - :
  15706. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  15707. +$as_echo "$lt_cv_path_NM" >&6; }
  15708. +if test "$lt_cv_path_NM" != "no"; then
  15709. + NM="$lt_cv_path_NM"
  15710. else
  15711. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  15712. -See \`config.log' for more details." >&5
  15713. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  15714. -See \`config.log' for more details." >&2;}
  15715. - { (exit 1); exit 1; }; }
  15716. -fi
  15717. -
  15718. -ac_ext=cpp
  15719. -ac_cpp='$CXXCPP $CPPFLAGS'
  15720. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15721. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15722. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15723. -
  15724. -fi
  15725. -
  15726. -
  15727. -ac_ext=f
  15728. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  15729. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15730. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  15731. -if test -n "$ac_tool_prefix"; then
  15732. - 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
  15733. + # Didn't find any BSD compatible name lister, look for dumpbin.
  15734. + if test -n "$ac_tool_prefix"; then
  15735. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  15736. do
  15737. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15738. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15739. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15740. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15741. -if test "${ac_cv_prog_F77+set}" = set; then
  15742. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15743. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15744. +$as_echo_n "checking for $ac_word... " >&6; }
  15745. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  15746. + $as_echo_n "(cached) " >&6
  15747. else
  15748. - if test -n "$F77"; then
  15749. - ac_cv_prog_F77="$F77" # Let the user override the test.
  15750. + if test -n "$DUMPBIN"; then
  15751. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  15752. else
  15753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15754. for as_dir in $PATH
  15755. do
  15756. IFS=$as_save_IFS
  15757. test -z "$as_dir" && as_dir=.
  15758. - for ac_exec_ext in '' $ac_executable_extensions; do
  15759. + for ac_exec_ext in '' $ac_executable_extensions; do
  15760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15761. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  15762. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15763. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  15764. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15765. break 2
  15766. fi
  15767. done
  15768. -done
  15769. + done
  15770. IFS=$as_save_IFS
  15771. fi
  15772. fi
  15773. -F77=$ac_cv_prog_F77
  15774. -if test -n "$F77"; then
  15775. - { echo "$as_me:$LINENO: result: $F77" >&5
  15776. -echo "${ECHO_T}$F77" >&6; }
  15777. +DUMPBIN=$ac_cv_prog_DUMPBIN
  15778. +if test -n "$DUMPBIN"; then
  15779. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  15780. +$as_echo "$DUMPBIN" >&6; }
  15781. else
  15782. - { echo "$as_me:$LINENO: result: no" >&5
  15783. -echo "${ECHO_T}no" >&6; }
  15784. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15785. +$as_echo "no" >&6; }
  15786. fi
  15787. - test -n "$F77" && break
  15788. + test -n "$DUMPBIN" && break
  15789. done
  15790. fi
  15791. -if test -z "$F77"; then
  15792. - ac_ct_F77=$F77
  15793. - 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
  15794. +if test -z "$DUMPBIN"; then
  15795. + ac_ct_DUMPBIN=$DUMPBIN
  15796. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  15797. do
  15798. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15799. set dummy $ac_prog; ac_word=$2
  15800. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15801. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15802. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  15803. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15805. +$as_echo_n "checking for $ac_word... " >&6; }
  15806. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  15807. + $as_echo_n "(cached) " >&6
  15808. else
  15809. - if test -n "$ac_ct_F77"; then
  15810. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  15811. + if test -n "$ac_ct_DUMPBIN"; then
  15812. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  15813. else
  15814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15815. for as_dir in $PATH
  15816. do
  15817. IFS=$as_save_IFS
  15818. test -z "$as_dir" && as_dir=.
  15819. - for ac_exec_ext in '' $ac_executable_extensions; do
  15820. + for ac_exec_ext in '' $ac_executable_extensions; do
  15821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15822. - ac_cv_prog_ac_ct_F77="$ac_prog"
  15823. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15824. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  15825. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15826. break 2
  15827. fi
  15828. done
  15829. -done
  15830. + done
  15831. IFS=$as_save_IFS
  15832. fi
  15833. fi
  15834. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  15835. -if test -n "$ac_ct_F77"; then
  15836. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  15837. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  15838. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  15839. +if test -n "$ac_ct_DUMPBIN"; then
  15840. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  15841. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  15842. else
  15843. - { echo "$as_me:$LINENO: result: no" >&5
  15844. -echo "${ECHO_T}no" >&6; }
  15845. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15846. +$as_echo "no" >&6; }
  15847. fi
  15848. - test -n "$ac_ct_F77" && break
  15849. + test -n "$ac_ct_DUMPBIN" && break
  15850. done
  15851. - if test "x$ac_ct_F77" = x; then
  15852. - F77=""
  15853. + if test "x$ac_ct_DUMPBIN" = x; then
  15854. + DUMPBIN=":"
  15855. else
  15856. case $cross_compiling:$ac_tool_warned in
  15857. yes:)
  15858. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15859. -whose name does not start with the host triplet. If you think this
  15860. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15861. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15862. -whose name does not start with the host triplet. If you think this
  15863. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15865. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15866. ac_tool_warned=yes ;;
  15867. esac
  15868. - F77=$ac_ct_F77
  15869. + DUMPBIN=$ac_ct_DUMPBIN
  15870. fi
  15871. fi
  15872. -# Provide some information about the compiler.
  15873. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  15874. -ac_compiler=`set X $ac_compile; echo $2`
  15875. -{ (ac_try="$ac_compiler --version >&5"
  15876. -case "(($ac_try" in
  15877. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15878. - *) ac_try_echo=$ac_try;;
  15879. -esac
  15880. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15881. - (eval "$ac_compiler --version >&5") 2>&5
  15882. - ac_status=$?
  15883. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15884. - (exit $ac_status); }
  15885. -{ (ac_try="$ac_compiler -v >&5"
  15886. -case "(($ac_try" in
  15887. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15888. - *) ac_try_echo=$ac_try;;
  15889. -esac
  15890. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15891. - (eval "$ac_compiler -v >&5") 2>&5
  15892. - ac_status=$?
  15893. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15894. - (exit $ac_status); }
  15895. -{ (ac_try="$ac_compiler -V >&5"
  15896. -case "(($ac_try" in
  15897. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15898. - *) ac_try_echo=$ac_try;;
  15899. -esac
  15900. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15901. - (eval "$ac_compiler -V >&5") 2>&5
  15902. - ac_status=$?
  15903. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15904. - (exit $ac_status); }
  15905. -rm -f a.out
  15906. -
  15907. -# If we don't use `.F' as extension, the preprocessor is not run on the
  15908. -# input file. (Note that this only needs to work for GNU compilers.)
  15909. -ac_save_ext=$ac_ext
  15910. -ac_ext=F
  15911. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  15912. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  15913. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  15914. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15915. -else
  15916. - cat >conftest.$ac_ext <<_ACEOF
  15917. - program main
  15918. -#ifndef __GNUC__
  15919. - choke me
  15920. -#endif
  15921. + if test "$DUMPBIN" != ":"; then
  15922. + NM="$DUMPBIN"
  15923. + fi
  15924. +fi
  15925. +test -z "$NM" && NM=nm
  15926. +
  15927. - end
  15928. -_ACEOF
  15929. -rm -f conftest.$ac_objext
  15930. -if { (ac_try="$ac_compile"
  15931. -case "(($ac_try" in
  15932. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15933. - *) ac_try_echo=$ac_try;;
  15934. -esac
  15935. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15936. - (eval "$ac_compile") 2>conftest.er1
  15937. - ac_status=$?
  15938. - grep -v '^ *+' conftest.er1 >conftest.err
  15939. - rm -f conftest.er1
  15940. - cat conftest.err >&5
  15941. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15942. - (exit $ac_status); } && {
  15943. - test -z "$ac_f77_werror_flag" ||
  15944. - test ! -s conftest.err
  15945. - } && test -s conftest.$ac_objext; then
  15946. - ac_compiler_gnu=yes
  15947. -else
  15948. - echo "$as_me: failed program was:" >&5
  15949. -sed 's/^/| /' conftest.$ac_ext >&5
  15950. - ac_compiler_gnu=no
  15951. -fi
  15952. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15953. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  15954. +
  15955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  15956. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  15957. +if test "${lt_cv_nm_interface+set}" = set; then :
  15958. + $as_echo_n "(cached) " >&6
  15959. +else
  15960. + lt_cv_nm_interface="BSD nm"
  15961. + echo "int some_variable = 0;" > conftest.$ac_ext
  15962. + (eval echo "\"\$as_me:5612: $ac_compile\"" >&5)
  15963. + (eval "$ac_compile" 2>conftest.err)
  15964. + cat conftest.err >&5
  15965. + (eval echo "\"\$as_me:5615: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  15966. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  15967. + cat conftest.err >&5
  15968. + (eval echo "\"\$as_me:5618: output\"" >&5)
  15969. + cat conftest.out >&5
  15970. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  15971. + lt_cv_nm_interface="MS dumpbin"
  15972. + fi
  15973. + rm -f conftest*
  15974. fi
  15975. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  15976. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  15977. -ac_ext=$ac_save_ext
  15978. -ac_test_FFLAGS=${FFLAGS+set}
  15979. -ac_save_FFLAGS=$FFLAGS
  15980. -FFLAGS=
  15981. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  15982. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  15983. -if test "${ac_cv_prog_f77_g+set}" = set; then
  15984. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15985. -else
  15986. - FFLAGS=-g
  15987. -cat >conftest.$ac_ext <<_ACEOF
  15988. - program main
  15989. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  15990. +$as_echo "$lt_cv_nm_interface" >&6; }
  15991. - end
  15992. -_ACEOF
  15993. -rm -f conftest.$ac_objext
  15994. -if { (ac_try="$ac_compile"
  15995. -case "(($ac_try" in
  15996. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15997. - *) ac_try_echo=$ac_try;;
  15998. -esac
  15999. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16000. - (eval "$ac_compile") 2>conftest.er1
  16001. - ac_status=$?
  16002. - grep -v '^ *+' conftest.er1 >conftest.err
  16003. - rm -f conftest.er1
  16004. - cat conftest.err >&5
  16005. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16006. - (exit $ac_status); } && {
  16007. - test -z "$ac_f77_werror_flag" ||
  16008. - test ! -s conftest.err
  16009. - } && test -s conftest.$ac_objext; then
  16010. - ac_cv_prog_f77_g=yes
  16011. -else
  16012. - echo "$as_me: failed program was:" >&5
  16013. -sed 's/^/| /' conftest.$ac_ext >&5
  16014. -
  16015. - ac_cv_prog_f77_g=no
  16016. -fi
  16017. -
  16018. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16019. -
  16020. -fi
  16021. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  16022. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  16023. -if test "$ac_test_FFLAGS" = set; then
  16024. - FFLAGS=$ac_save_FFLAGS
  16025. -elif test $ac_cv_prog_f77_g = yes; then
  16026. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  16027. - FFLAGS="-g -O2"
  16028. - else
  16029. - FFLAGS="-g"
  16030. - fi
  16031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  16032. +$as_echo_n "checking whether ln -s works... " >&6; }
  16033. +LN_S=$as_ln_s
  16034. +if test "$LN_S" = "ln -s"; then
  16035. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16036. +$as_echo "yes" >&6; }
  16037. else
  16038. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  16039. - FFLAGS="-O2"
  16040. - else
  16041. - FFLAGS=
  16042. - fi
  16043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  16044. +$as_echo "no, using $LN_S" >&6; }
  16045. fi
  16046. -G77=`test $ac_compiler_gnu = yes && echo yes`
  16047. -ac_ext=c
  16048. -ac_cpp='$CPP $CPPFLAGS'
  16049. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16050. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16051. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16052. -
  16053. -
  16054. -
  16055. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  16056. # find the maximum length of command line arguments
  16057. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  16058. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  16059. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  16060. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  16062. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  16063. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  16064. + $as_echo_n "(cached) " >&6
  16065. else
  16066. i=0
  16067. teststring="ABCD"
  16068. @@ -6547,7 +5661,7 @@
  16069. lt_cv_sys_max_cmd_len=-1;
  16070. ;;
  16071. - cygwin* | mingw*)
  16072. + cygwin* | mingw* | cegcc*)
  16073. # On Win9x/ME, this test blows up -- it succeeds, but takes
  16074. # about 5 minutes as the teststring grows exponentially.
  16075. # Worse, since 9x/ME are not pre-emptively multitasking,
  16076. @@ -6602,7 +5716,7 @@
  16077. sysv5* | sco5v6* | sysv4.2uw2*)
  16078. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  16079. if test -n "$kargmax"; then
  16080. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  16081. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  16082. else
  16083. lt_cv_sys_max_cmd_len=32768
  16084. fi
  16085. @@ -6613,20 +5727,28 @@
  16086. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  16087. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  16088. else
  16089. + # Make teststring a little bigger before we do anything with it.
  16090. + # a 1K string should be a reasonable start.
  16091. + for i in 1 2 3 4 5 6 7 8 ; do
  16092. + teststring=$teststring$teststring
  16093. + done
  16094. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  16095. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  16096. - = "XX$teststring") >/dev/null 2>&1 &&
  16097. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  16098. - lt_cv_sys_max_cmd_len=$new_result &&
  16099. + # If test is not a shell built-in, we'll probably end up computing a
  16100. + # maximum length that is only half of the actual maximum length, but
  16101. + # we can't tell.
  16102. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  16103. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  16104. test $i != 17 # 1/2 MB should be enough
  16105. do
  16106. i=`expr $i + 1`
  16107. teststring=$teststring$teststring
  16108. done
  16109. + # Only check the string length outside the loop.
  16110. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  16111. teststring=
  16112. - # Add a significant safety factor because C++ compilers can tack on massive
  16113. - # amounts of additional arguments before passing them to the linker.
  16114. - # It appears as though 1/2 is a usable value.
  16115. + # Add a significant safety factor because C++ compilers can tack on
  16116. + # massive amounts of additional arguments before passing them to the
  16117. + # linker. It appears as though 1/2 is a usable value.
  16118. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  16119. fi
  16120. ;;
  16121. @@ -6635,493 +5757,535 @@
  16122. fi
  16123. if test -n $lt_cv_sys_max_cmd_len ; then
  16124. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  16125. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  16126. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  16127. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  16128. else
  16129. - { echo "$as_me:$LINENO: result: none" >&5
  16130. -echo "${ECHO_T}none" >&6; }
  16131. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  16132. +$as_echo "none" >&6; }
  16133. fi
  16134. +max_cmd_len=$lt_cv_sys_max_cmd_len
  16135. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  16136. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  16137. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  16138. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  16139. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16140. -else
  16141. -# These are sane defaults that work on at least a few old systems.
  16142. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  16143. +: ${CP="cp -f"}
  16144. +: ${MV="mv -f"}
  16145. +: ${RM="rm -f"}
  16146. +
  16147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  16148. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  16149. +# Try some XSI features
  16150. +xsi_shell=no
  16151. +( _lt_dummy="a/b/c"
  16152. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  16153. + = c,a/b,, \
  16154. + && eval 'test $(( 1 + 1 )) -eq 2 \
  16155. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  16156. + && xsi_shell=yes
  16157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  16158. +$as_echo "$xsi_shell" >&6; }
  16159. +
  16160. +
  16161. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  16162. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  16163. +lt_shell_append=no
  16164. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  16165. + >/dev/null 2>&1 \
  16166. + && lt_shell_append=yes
  16167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  16168. +$as_echo "$lt_shell_append" >&6; }
  16169. -# Character class describing NM global symbol codes.
  16170. -symcode='[BCDEGRST]'
  16171. -# Regexp to match symbols that can be accessed directly from C.
  16172. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  16173. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  16174. + lt_unset=unset
  16175. +else
  16176. + lt_unset=false
  16177. +fi
  16178. -# Transform an extracted symbol line into a proper C declaration
  16179. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  16180. -# Transform an extracted symbol line into symbol name and symbol address
  16181. -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'"
  16182. -# Define system-specific variables.
  16183. -case $host_os in
  16184. -aix*)
  16185. - symcode='[BCDT]'
  16186. - ;;
  16187. -cygwin* | mingw* | pw32*)
  16188. - symcode='[ABCDGISTW]'
  16189. - ;;
  16190. -hpux*) # Its linker distinguishes data from code symbols
  16191. - if test "$host_cpu" = ia64; then
  16192. - symcode='[ABCDEGRST]'
  16193. - fi
  16194. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  16195. - 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'"
  16196. - ;;
  16197. -linux* | k*bsd*-gnu)
  16198. - if test "$host_cpu" = ia64; then
  16199. - symcode='[ABCDGIRSTW]'
  16200. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  16201. - 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'"
  16202. - fi
  16203. - ;;
  16204. -irix* | nonstopux*)
  16205. - symcode='[BCDEGRST]'
  16206. - ;;
  16207. -osf*)
  16208. - symcode='[BCDEGQRST]'
  16209. - ;;
  16210. -solaris*)
  16211. - symcode='[BDRT]'
  16212. - ;;
  16213. -sco3.2v5*)
  16214. - symcode='[DT]'
  16215. - ;;
  16216. -sysv4.2uw2*)
  16217. - symcode='[DT]'
  16218. - ;;
  16219. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  16220. - symcode='[ABDT]'
  16221. - ;;
  16222. -sysv4)
  16223. - symcode='[DFNSTU]'
  16224. - ;;
  16225. -esac
  16226. -# Handle CRLF in mingw tool chain
  16227. -opt_cr=
  16228. -case $build_os in
  16229. -mingw*)
  16230. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  16231. - ;;
  16232. -esac
  16233. -# If we're using GNU nm, then use its standard symbol codes.
  16234. -case `$NM -V 2>&1` in
  16235. -*GNU* | *'with BFD'*)
  16236. - symcode='[ABCDGIRSTW]' ;;
  16237. +# test EBCDIC or ASCII
  16238. +case `echo X|tr X '\101'` in
  16239. + A) # ASCII based system
  16240. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  16241. + lt_SP2NL='tr \040 \012'
  16242. + lt_NL2SP='tr \015\012 \040\040'
  16243. + ;;
  16244. + *) # EBCDIC based system
  16245. + lt_SP2NL='tr \100 \n'
  16246. + lt_NL2SP='tr \r\n \100\100'
  16247. + ;;
  16248. esac
  16249. -# Try without a prefix undercore, then with it.
  16250. -for ac_symprfx in "" "_"; do
  16251. -
  16252. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  16253. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  16254. -
  16255. - # Write the raw and C identifiers.
  16256. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  16257. -
  16258. - # Check to see that the pipe works correctly.
  16259. - pipe_works=no
  16260. -
  16261. - rm -f conftest*
  16262. - cat > conftest.$ac_ext <<EOF
  16263. -#ifdef __cplusplus
  16264. -extern "C" {
  16265. -#endif
  16266. -char nm_test_var;
  16267. -void nm_test_func(){}
  16268. -#ifdef __cplusplus
  16269. -}
  16270. -#endif
  16271. -int main(){nm_test_var='a';nm_test_func();return(0);}
  16272. -EOF
  16273. -
  16274. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16275. - (eval $ac_compile) 2>&5
  16276. - ac_status=$?
  16277. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16278. - (exit $ac_status); }; then
  16279. - # Now try to grab the symbols.
  16280. - nlist=conftest.nm
  16281. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  16282. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  16283. - ac_status=$?
  16284. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16285. - (exit $ac_status); } && test -s "$nlist"; then
  16286. - # Try sorting and uniquifying the output.
  16287. - if sort "$nlist" | uniq > "$nlist"T; then
  16288. - mv -f "$nlist"T "$nlist"
  16289. - else
  16290. - rm -f "$nlist"T
  16291. - fi
  16292. -
  16293. - # Make sure that we snagged all the symbols we need.
  16294. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  16295. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  16296. - cat <<EOF > conftest.$ac_ext
  16297. -#ifdef __cplusplus
  16298. -extern "C" {
  16299. -#endif
  16300. -EOF
  16301. - # Now generate the symbol file.
  16302. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  16303. - cat <<EOF >> conftest.$ac_ext
  16304. -#if defined (__STDC__) && __STDC__
  16305. -# define lt_ptr_t void *
  16306. -#else
  16307. -# define lt_ptr_t char *
  16308. -# define const
  16309. -#endif
  16310. -/* The mapping between symbol names and symbols. */
  16311. -const struct {
  16312. - const char *name;
  16313. - lt_ptr_t address;
  16314. -}
  16315. -lt_preloaded_symbols[] =
  16316. -{
  16317. -EOF
  16318. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  16319. - cat <<\EOF >> conftest.$ac_ext
  16320. - {0, (lt_ptr_t) 0}
  16321. -};
  16322. -#ifdef __cplusplus
  16323. -}
  16324. -#endif
  16325. -EOF
  16326. - # Now try linking the two files.
  16327. - mv conftest.$ac_objext conftstm.$ac_objext
  16328. - lt_save_LIBS="$LIBS"
  16329. - lt_save_CFLAGS="$CFLAGS"
  16330. - LIBS="conftstm.$ac_objext"
  16331. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  16332. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16333. - (eval $ac_link) 2>&5
  16334. - ac_status=$?
  16335. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16336. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  16337. - pipe_works=yes
  16338. - fi
  16339. - LIBS="$lt_save_LIBS"
  16340. - CFLAGS="$lt_save_CFLAGS"
  16341. - else
  16342. - echo "cannot find nm_test_func in $nlist" >&5
  16343. - fi
  16344. - else
  16345. - echo "cannot find nm_test_var in $nlist" >&5
  16346. - fi
  16347. - else
  16348. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  16349. - fi
  16350. - else
  16351. - echo "$progname: failed program was:" >&5
  16352. - cat conftest.$ac_ext >&5
  16353. - fi
  16354. - rm -rf conftest* conftst*
  16355. - # Do not use the global_symbol_pipe unless it works.
  16356. - if test "$pipe_works" = yes; then
  16357. - break
  16358. - else
  16359. - lt_cv_sys_global_symbol_pipe=
  16360. - fi
  16361. -done
  16362. -fi
  16363. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  16364. - lt_cv_sys_global_symbol_to_cdecl=
  16365. -fi
  16366. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  16367. - { echo "$as_me:$LINENO: result: failed" >&5
  16368. -echo "${ECHO_T}failed" >&6; }
  16369. -else
  16370. - { echo "$as_me:$LINENO: result: ok" >&5
  16371. -echo "${ECHO_T}ok" >&6; }
  16372. -fi
  16373. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  16374. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  16375. -if test "${lt_cv_objdir+set}" = set; then
  16376. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16377. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  16378. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  16379. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  16380. + $as_echo_n "(cached) " >&6
  16381. else
  16382. - rm -f .libs 2>/dev/null
  16383. -mkdir .libs 2>/dev/null
  16384. -if test -d .libs; then
  16385. - lt_cv_objdir=.libs
  16386. -else
  16387. - # MS-DOS does not allow filenames that begin with a dot.
  16388. - lt_cv_objdir=_libs
  16389. -fi
  16390. -rmdir .libs 2>/dev/null
  16391. + lt_cv_ld_reload_flag='-r'
  16392. fi
  16393. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  16394. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  16395. -objdir=$lt_cv_objdir
  16396. -
  16397. -
  16398. -
  16399. -
  16400. -
  16401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  16402. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  16403. +reload_flag=$lt_cv_ld_reload_flag
  16404. +case $reload_flag in
  16405. +"" | " "*) ;;
  16406. +*) reload_flag=" $reload_flag" ;;
  16407. +esac
  16408. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16409. case $host_os in
  16410. -aix3*)
  16411. - # AIX sometimes has problems with the GCC collect2 program. For some
  16412. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  16413. - # vanish in a puff of smoke.
  16414. - if test "X${COLLECT_NAMES+set}" != Xset; then
  16415. - COLLECT_NAMES=
  16416. - export COLLECT_NAMES
  16417. - fi
  16418. - ;;
  16419. + darwin*)
  16420. + if test "$GCC" = yes; then
  16421. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  16422. + else
  16423. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16424. + fi
  16425. + ;;
  16426. esac
  16427. -# Sed substitution that helps us do robust quoting. It backslashifies
  16428. -# metacharacters that are still active within double-quoted strings.
  16429. -Xsed='sed -e 1s/^X//'
  16430. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  16431. -# Same as above, but do not quote variable references.
  16432. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  16433. -# Sed substitution to delay expansion of an escaped shell variable in a
  16434. -# double_quote_subst'ed string.
  16435. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  16436. -# Sed substitution to avoid accidental globbing in evaled expressions
  16437. -no_glob_subst='s/\*/\\\*/g'
  16438. -# Constants:
  16439. -rm="rm -f"
  16440. -# Global variables:
  16441. -default_ofile=libtool
  16442. -can_build_shared=yes
  16443. -# All known linkers require a `.a' archive for static linking (except MSVC,
  16444. -# which needs '.lib').
  16445. -libext=a
  16446. -ltmain="$ac_aux_dir/ltmain.sh"
  16447. -ofile="$default_ofile"
  16448. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  16449. +
  16450. if test -n "$ac_tool_prefix"; then
  16451. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  16452. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  16453. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16454. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16455. -if test "${ac_cv_prog_AR+set}" = set; then
  16456. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16457. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  16458. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  16459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16460. +$as_echo_n "checking for $ac_word... " >&6; }
  16461. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  16462. + $as_echo_n "(cached) " >&6
  16463. else
  16464. - if test -n "$AR"; then
  16465. - ac_cv_prog_AR="$AR" # Let the user override the test.
  16466. + if test -n "$OBJDUMP"; then
  16467. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  16468. else
  16469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16470. for as_dir in $PATH
  16471. do
  16472. IFS=$as_save_IFS
  16473. test -z "$as_dir" && as_dir=.
  16474. - for ac_exec_ext in '' $ac_executable_extensions; do
  16475. + for ac_exec_ext in '' $ac_executable_extensions; do
  16476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16477. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  16478. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16479. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  16480. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16481. break 2
  16482. fi
  16483. done
  16484. -done
  16485. + done
  16486. IFS=$as_save_IFS
  16487. fi
  16488. fi
  16489. -AR=$ac_cv_prog_AR
  16490. -if test -n "$AR"; then
  16491. - { echo "$as_me:$LINENO: result: $AR" >&5
  16492. -echo "${ECHO_T}$AR" >&6; }
  16493. +OBJDUMP=$ac_cv_prog_OBJDUMP
  16494. +if test -n "$OBJDUMP"; then
  16495. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  16496. +$as_echo "$OBJDUMP" >&6; }
  16497. else
  16498. - { echo "$as_me:$LINENO: result: no" >&5
  16499. -echo "${ECHO_T}no" >&6; }
  16500. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16501. +$as_echo "no" >&6; }
  16502. fi
  16503. fi
  16504. -if test -z "$ac_cv_prog_AR"; then
  16505. - ac_ct_AR=$AR
  16506. - # Extract the first word of "ar", so it can be a program name with args.
  16507. -set dummy ar; ac_word=$2
  16508. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16509. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16510. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  16511. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16512. +if test -z "$ac_cv_prog_OBJDUMP"; then
  16513. + ac_ct_OBJDUMP=$OBJDUMP
  16514. + # Extract the first word of "objdump", so it can be a program name with args.
  16515. +set dummy objdump; ac_word=$2
  16516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16517. +$as_echo_n "checking for $ac_word... " >&6; }
  16518. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  16519. + $as_echo_n "(cached) " >&6
  16520. else
  16521. - if test -n "$ac_ct_AR"; then
  16522. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  16523. + if test -n "$ac_ct_OBJDUMP"; then
  16524. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  16525. else
  16526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16527. for as_dir in $PATH
  16528. do
  16529. IFS=$as_save_IFS
  16530. test -z "$as_dir" && as_dir=.
  16531. - for ac_exec_ext in '' $ac_executable_extensions; do
  16532. + for ac_exec_ext in '' $ac_executable_extensions; do
  16533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16534. - ac_cv_prog_ac_ct_AR="ar"
  16535. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16536. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  16537. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16538. break 2
  16539. fi
  16540. done
  16541. -done
  16542. + done
  16543. IFS=$as_save_IFS
  16544. fi
  16545. fi
  16546. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  16547. -if test -n "$ac_ct_AR"; then
  16548. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  16549. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  16550. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  16551. +if test -n "$ac_ct_OBJDUMP"; then
  16552. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  16553. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  16554. else
  16555. - { echo "$as_me:$LINENO: result: no" >&5
  16556. -echo "${ECHO_T}no" >&6; }
  16557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16558. +$as_echo "no" >&6; }
  16559. fi
  16560. - if test "x$ac_ct_AR" = x; then
  16561. - AR="false"
  16562. + if test "x$ac_ct_OBJDUMP" = x; then
  16563. + OBJDUMP="false"
  16564. else
  16565. case $cross_compiling:$ac_tool_warned in
  16566. yes:)
  16567. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16568. -whose name does not start with the host triplet. If you think this
  16569. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16570. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16571. -whose name does not start with the host triplet. If you think this
  16572. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16573. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16574. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16575. ac_tool_warned=yes ;;
  16576. esac
  16577. - AR=$ac_ct_AR
  16578. + OBJDUMP=$ac_ct_OBJDUMP
  16579. fi
  16580. else
  16581. - AR="$ac_cv_prog_AR"
  16582. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  16583. +fi
  16584. +
  16585. +test -z "$OBJDUMP" && OBJDUMP=objdump
  16586. +
  16587. +
  16588. +
  16589. +
  16590. +
  16591. +
  16592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  16593. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  16594. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  16595. + $as_echo_n "(cached) " >&6
  16596. +else
  16597. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  16598. +lt_cv_file_magic_test_file=
  16599. +lt_cv_deplibs_check_method='unknown'
  16600. +# Need to set the preceding variable on all platforms that support
  16601. +# interlibrary dependencies.
  16602. +# 'none' -- dependencies not supported.
  16603. +# `unknown' -- same as none, but documents that we really don't know.
  16604. +# 'pass_all' -- all dependencies passed with no checks.
  16605. +# 'test_compile' -- check by making test program.
  16606. +# 'file_magic [[regex]]' -- check by looking for files in library path
  16607. +# which responds to the $file_magic_cmd with a given extended regex.
  16608. +# If you have `file' or equivalent on your system and you're not sure
  16609. +# whether `pass_all' will *always* work, you probably want this one.
  16610. +
  16611. +case $host_os in
  16612. +aix[4-9]*)
  16613. + lt_cv_deplibs_check_method=pass_all
  16614. + ;;
  16615. +
  16616. +beos*)
  16617. + lt_cv_deplibs_check_method=pass_all
  16618. + ;;
  16619. +
  16620. +bsdi[45]*)
  16621. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  16622. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  16623. + lt_cv_file_magic_test_file=/shlib/libc.so
  16624. + ;;
  16625. +
  16626. +cygwin*)
  16627. + # func_win32_libid is a shell function defined in ltmain.sh
  16628. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  16629. + lt_cv_file_magic_cmd='func_win32_libid'
  16630. + ;;
  16631. +
  16632. +mingw* | pw32*)
  16633. + # Base MSYS/MinGW do not provide the 'file' command needed by
  16634. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  16635. + # unless we find 'file', for example because we are cross-compiling.
  16636. + if ( file / ) >/dev/null 2>&1; then
  16637. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  16638. + lt_cv_file_magic_cmd='func_win32_libid'
  16639. + else
  16640. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  16641. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  16642. + fi
  16643. + ;;
  16644. +
  16645. +cegcc)
  16646. + # use the weaker test based on 'objdump'. See mingw*.
  16647. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  16648. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  16649. + ;;
  16650. +
  16651. +darwin* | rhapsody*)
  16652. + lt_cv_deplibs_check_method=pass_all
  16653. + ;;
  16654. +
  16655. +freebsd* | dragonfly*)
  16656. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  16657. + case $host_cpu in
  16658. + i*86 )
  16659. + # Not sure whether the presence of OpenBSD here was a mistake.
  16660. + # Let's accept both of them until this is cleared up.
  16661. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  16662. + lt_cv_file_magic_cmd=/usr/bin/file
  16663. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  16664. + ;;
  16665. + esac
  16666. + else
  16667. + lt_cv_deplibs_check_method=pass_all
  16668. + fi
  16669. + ;;
  16670. +
  16671. +gnu*)
  16672. + lt_cv_deplibs_check_method=pass_all
  16673. + ;;
  16674. +
  16675. +hpux10.20* | hpux11*)
  16676. + lt_cv_file_magic_cmd=/usr/bin/file
  16677. + case $host_cpu in
  16678. + ia64*)
  16679. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  16680. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  16681. + ;;
  16682. + hppa*64*)
  16683. + 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]'
  16684. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  16685. + ;;
  16686. + *)
  16687. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  16688. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  16689. + ;;
  16690. + esac
  16691. + ;;
  16692. +
  16693. +interix[3-9]*)
  16694. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  16695. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  16696. + ;;
  16697. +
  16698. +irix5* | irix6* | nonstopux*)
  16699. + case $LD in
  16700. + *-32|*"-32 ") libmagic=32-bit;;
  16701. + *-n32|*"-n32 ") libmagic=N32;;
  16702. + *-64|*"-64 ") libmagic=64-bit;;
  16703. + *) libmagic=never-match;;
  16704. + esac
  16705. + lt_cv_deplibs_check_method=pass_all
  16706. + ;;
  16707. +
  16708. +# This must be Linux ELF.
  16709. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  16710. + lt_cv_deplibs_check_method=pass_all
  16711. + ;;
  16712. +
  16713. +netbsd* | netbsdelf*-gnu)
  16714. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  16715. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  16716. + else
  16717. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  16718. + fi
  16719. + ;;
  16720. +
  16721. +newos6*)
  16722. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  16723. + lt_cv_file_magic_cmd=/usr/bin/file
  16724. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  16725. + ;;
  16726. +
  16727. +*nto* | *qnx*)
  16728. + lt_cv_deplibs_check_method=pass_all
  16729. + ;;
  16730. +
  16731. +openbsd*)
  16732. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16733. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  16734. + else
  16735. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  16736. + fi
  16737. + ;;
  16738. +
  16739. +osf3* | osf4* | osf5*)
  16740. + lt_cv_deplibs_check_method=pass_all
  16741. + ;;
  16742. +
  16743. +rdos*)
  16744. + lt_cv_deplibs_check_method=pass_all
  16745. + ;;
  16746. +
  16747. +solaris*)
  16748. + lt_cv_deplibs_check_method=pass_all
  16749. + ;;
  16750. +
  16751. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16752. + lt_cv_deplibs_check_method=pass_all
  16753. + ;;
  16754. +
  16755. +sysv4 | sysv4.3*)
  16756. + case $host_vendor in
  16757. + motorola)
  16758. + 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]'
  16759. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  16760. + ;;
  16761. + ncr)
  16762. + lt_cv_deplibs_check_method=pass_all
  16763. + ;;
  16764. + sequent)
  16765. + lt_cv_file_magic_cmd='/bin/file'
  16766. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  16767. + ;;
  16768. + sni)
  16769. + lt_cv_file_magic_cmd='/bin/file'
  16770. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  16771. + lt_cv_file_magic_test_file=/lib/libc.so
  16772. + ;;
  16773. + siemens)
  16774. + lt_cv_deplibs_check_method=pass_all
  16775. + ;;
  16776. + pc)
  16777. + lt_cv_deplibs_check_method=pass_all
  16778. + ;;
  16779. + esac
  16780. + ;;
  16781. +
  16782. +tpf*)
  16783. + lt_cv_deplibs_check_method=pass_all
  16784. + ;;
  16785. +esac
  16786. +
  16787. fi
  16788. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  16789. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  16790. +file_magic_cmd=$lt_cv_file_magic_cmd
  16791. +deplibs_check_method=$lt_cv_deplibs_check_method
  16792. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  16793. +
  16794. +
  16795. +
  16796. +
  16797. +
  16798. +
  16799. +
  16800. +
  16801. +
  16802. +
  16803. +
  16804. if test -n "$ac_tool_prefix"; then
  16805. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  16806. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  16807. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16808. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16809. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  16810. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16811. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  16812. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  16813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16814. +$as_echo_n "checking for $ac_word... " >&6; }
  16815. +if test "${ac_cv_prog_AR+set}" = set; then :
  16816. + $as_echo_n "(cached) " >&6
  16817. else
  16818. - if test -n "$RANLIB"; then
  16819. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  16820. + if test -n "$AR"; then
  16821. + ac_cv_prog_AR="$AR" # Let the user override the test.
  16822. else
  16823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16824. for as_dir in $PATH
  16825. do
  16826. IFS=$as_save_IFS
  16827. test -z "$as_dir" && as_dir=.
  16828. - for ac_exec_ext in '' $ac_executable_extensions; do
  16829. + for ac_exec_ext in '' $ac_executable_extensions; do
  16830. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16831. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  16832. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16833. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  16834. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16835. break 2
  16836. fi
  16837. done
  16838. -done
  16839. + done
  16840. IFS=$as_save_IFS
  16841. fi
  16842. fi
  16843. -RANLIB=$ac_cv_prog_RANLIB
  16844. -if test -n "$RANLIB"; then
  16845. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  16846. -echo "${ECHO_T}$RANLIB" >&6; }
  16847. +AR=$ac_cv_prog_AR
  16848. +if test -n "$AR"; then
  16849. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  16850. +$as_echo "$AR" >&6; }
  16851. else
  16852. - { echo "$as_me:$LINENO: result: no" >&5
  16853. -echo "${ECHO_T}no" >&6; }
  16854. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16855. +$as_echo "no" >&6; }
  16856. fi
  16857. fi
  16858. -if test -z "$ac_cv_prog_RANLIB"; then
  16859. - ac_ct_RANLIB=$RANLIB
  16860. - # Extract the first word of "ranlib", so it can be a program name with args.
  16861. -set dummy ranlib; ac_word=$2
  16862. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16863. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16864. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  16865. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16866. +if test -z "$ac_cv_prog_AR"; then
  16867. + ac_ct_AR=$AR
  16868. + # Extract the first word of "ar", so it can be a program name with args.
  16869. +set dummy ar; ac_word=$2
  16870. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16871. +$as_echo_n "checking for $ac_word... " >&6; }
  16872. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  16873. + $as_echo_n "(cached) " >&6
  16874. else
  16875. - if test -n "$ac_ct_RANLIB"; then
  16876. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  16877. + if test -n "$ac_ct_AR"; then
  16878. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  16879. else
  16880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16881. for as_dir in $PATH
  16882. do
  16883. IFS=$as_save_IFS
  16884. test -z "$as_dir" && as_dir=.
  16885. - for ac_exec_ext in '' $ac_executable_extensions; do
  16886. + for ac_exec_ext in '' $ac_executable_extensions; do
  16887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16888. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  16889. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16890. + ac_cv_prog_ac_ct_AR="ar"
  16891. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16892. break 2
  16893. fi
  16894. done
  16895. -done
  16896. + done
  16897. IFS=$as_save_IFS
  16898. fi
  16899. fi
  16900. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  16901. -if test -n "$ac_ct_RANLIB"; then
  16902. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  16903. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  16904. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  16905. +if test -n "$ac_ct_AR"; then
  16906. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  16907. +$as_echo "$ac_ct_AR" >&6; }
  16908. else
  16909. - { echo "$as_me:$LINENO: result: no" >&5
  16910. -echo "${ECHO_T}no" >&6; }
  16911. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16912. +$as_echo "no" >&6; }
  16913. fi
  16914. - if test "x$ac_ct_RANLIB" = x; then
  16915. - RANLIB=":"
  16916. + if test "x$ac_ct_AR" = x; then
  16917. + AR="false"
  16918. else
  16919. case $cross_compiling:$ac_tool_warned in
  16920. yes:)
  16921. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16922. -whose name does not start with the host triplet. If you think this
  16923. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16924. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16925. -whose name does not start with the host triplet. If you think this
  16926. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16927. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16928. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16929. ac_tool_warned=yes ;;
  16930. esac
  16931. - RANLIB=$ac_ct_RANLIB
  16932. + AR=$ac_ct_AR
  16933. fi
  16934. else
  16935. - RANLIB="$ac_cv_prog_RANLIB"
  16936. + AR="$ac_cv_prog_AR"
  16937. fi
  16938. +test -z "$AR" && AR=ar
  16939. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  16940. +
  16941. +
  16942. +
  16943. +
  16944. +
  16945. +
  16946. +
  16947. +
  16948. +
  16949. +
  16950. +
  16951. if test -n "$ac_tool_prefix"; then
  16952. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16953. set dummy ${ac_tool_prefix}strip; ac_word=$2
  16954. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16955. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16956. -if test "${ac_cv_prog_STRIP+set}" = set; then
  16957. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16959. +$as_echo_n "checking for $ac_word... " >&6; }
  16960. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  16961. + $as_echo_n "(cached) " >&6
  16962. else
  16963. if test -n "$STRIP"; then
  16964. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16965. @@ -7131,25 +6295,25 @@
  16966. do
  16967. IFS=$as_save_IFS
  16968. test -z "$as_dir" && as_dir=.
  16969. - for ac_exec_ext in '' $ac_executable_extensions; do
  16970. + for ac_exec_ext in '' $ac_executable_extensions; do
  16971. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16972. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16973. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16974. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16975. break 2
  16976. fi
  16977. done
  16978. -done
  16979. + done
  16980. IFS=$as_save_IFS
  16981. fi
  16982. fi
  16983. STRIP=$ac_cv_prog_STRIP
  16984. if test -n "$STRIP"; then
  16985. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  16986. -echo "${ECHO_T}$STRIP" >&6; }
  16987. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  16988. +$as_echo "$STRIP" >&6; }
  16989. else
  16990. - { echo "$as_me:$LINENO: result: no" >&5
  16991. -echo "${ECHO_T}no" >&6; }
  16992. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16993. +$as_echo "no" >&6; }
  16994. fi
  16995. @@ -7158,10 +6322,10 @@
  16996. ac_ct_STRIP=$STRIP
  16997. # Extract the first word of "strip", so it can be a program name with args.
  16998. set dummy strip; ac_word=$2
  16999. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17000. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17001. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17002. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17004. +$as_echo_n "checking for $ac_word... " >&6; }
  17005. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  17006. + $as_echo_n "(cached) " >&6
  17007. else
  17008. if test -n "$ac_ct_STRIP"; then
  17009. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17010. @@ -7171,25 +6335,25 @@
  17011. do
  17012. IFS=$as_save_IFS
  17013. test -z "$as_dir" && as_dir=.
  17014. - for ac_exec_ext in '' $ac_executable_extensions; do
  17015. + for ac_exec_ext in '' $ac_executable_extensions; do
  17016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17017. ac_cv_prog_ac_ct_STRIP="strip"
  17018. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17019. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17020. break 2
  17021. fi
  17022. done
  17023. -done
  17024. + done
  17025. IFS=$as_save_IFS
  17026. fi
  17027. fi
  17028. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17029. if test -n "$ac_ct_STRIP"; then
  17030. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17031. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  17032. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  17033. +$as_echo "$ac_ct_STRIP" >&6; }
  17034. else
  17035. - { echo "$as_me:$LINENO: result: no" >&5
  17036. -echo "${ECHO_T}no" >&6; }
  17037. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17038. +$as_echo "no" >&6; }
  17039. fi
  17040. if test "x$ac_ct_STRIP" = x; then
  17041. @@ -7197,12 +6361,8 @@
  17042. else
  17043. case $cross_compiling:$ac_tool_warned in
  17044. yes:)
  17045. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17046. -whose name does not start with the host triplet. If you think this
  17047. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17048. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17049. -whose name does not start with the host triplet. If you think this
  17050. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17051. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17052. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17053. ac_tool_warned=yes ;;
  17054. esac
  17055. STRIP=$ac_ct_STRIP
  17056. @@ -7211,4202 +6371,2314 @@
  17057. STRIP="$ac_cv_prog_STRIP"
  17058. fi
  17059. -
  17060. -old_CC="$CC"
  17061. -old_CFLAGS="$CFLAGS"
  17062. -
  17063. -# Set sane defaults for various variables
  17064. -test -z "$AR" && AR=ar
  17065. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  17066. -test -z "$AS" && AS=as
  17067. -test -z "$CC" && CC=cc
  17068. -test -z "$LTCC" && LTCC=$CC
  17069. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  17070. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  17071. -test -z "$LD" && LD=ld
  17072. -test -z "$LN_S" && LN_S="ln -s"
  17073. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  17074. -test -z "$NM" && NM=nm
  17075. -test -z "$SED" && SED=sed
  17076. -test -z "$OBJDUMP" && OBJDUMP=objdump
  17077. -test -z "$RANLIB" && RANLIB=:
  17078. test -z "$STRIP" && STRIP=:
  17079. -test -z "$ac_objext" && ac_objext=o
  17080. -
  17081. -# Determine commands to create old-style static archives.
  17082. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  17083. -old_postinstall_cmds='chmod 644 $oldlib'
  17084. -old_postuninstall_cmds=
  17085. -
  17086. -if test -n "$RANLIB"; then
  17087. - case $host_os in
  17088. - openbsd*)
  17089. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  17090. - ;;
  17091. - *)
  17092. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  17093. - ;;
  17094. - esac
  17095. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  17096. -fi
  17097. -
  17098. -for cc_temp in $compiler""; do
  17099. - case $cc_temp in
  17100. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17101. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17102. - \-*) ;;
  17103. - *) break;;
  17104. - esac
  17105. -done
  17106. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17107. -
  17108. -
  17109. -# Only perform the check for file, if the check method requires it
  17110. -case $deplibs_check_method in
  17111. -file_magic*)
  17112. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  17113. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  17114. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  17115. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  17116. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17117. -else
  17118. - case $MAGIC_CMD in
  17119. -[\\/*] | ?:[\\/]*)
  17120. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  17121. - ;;
  17122. -*)
  17123. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  17124. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17125. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  17126. - for ac_dir in $ac_dummy; do
  17127. - IFS="$lt_save_ifs"
  17128. - test -z "$ac_dir" && ac_dir=.
  17129. - if test -f $ac_dir/${ac_tool_prefix}file; then
  17130. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  17131. - if test -n "$file_magic_test_file"; then
  17132. - case $deplibs_check_method in
  17133. - "file_magic "*)
  17134. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  17135. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  17136. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  17137. - $EGREP "$file_magic_regex" > /dev/null; then
  17138. - :
  17139. - else
  17140. - cat <<EOF 1>&2
  17141. -
  17142. -*** Warning: the command libtool uses to detect shared libraries,
  17143. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  17144. -*** The result is that libtool may fail to recognize shared libraries
  17145. -*** as such. This will affect the creation of libtool libraries that
  17146. -*** depend on shared libraries, but programs linked with such libtool
  17147. -*** libraries will work regardless of this problem. Nevertheless, you
  17148. -*** may want to report the problem to your system manager and/or to
  17149. -*** bug-libtool@gnu.org
  17150. -
  17151. -EOF
  17152. - fi ;;
  17153. - esac
  17154. - fi
  17155. - break
  17156. - fi
  17157. - done
  17158. - IFS="$lt_save_ifs"
  17159. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  17160. - ;;
  17161. -esac
  17162. -fi
  17163. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  17164. -if test -n "$MAGIC_CMD"; then
  17165. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  17166. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  17167. -else
  17168. - { echo "$as_me:$LINENO: result: no" >&5
  17169. -echo "${ECHO_T}no" >&6; }
  17170. -fi
  17171. -
  17172. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  17173. - if test -n "$ac_tool_prefix"; then
  17174. - { echo "$as_me:$LINENO: checking for file" >&5
  17175. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  17176. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  17177. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17178. -else
  17179. - case $MAGIC_CMD in
  17180. -[\\/*] | ?:[\\/]*)
  17181. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  17182. - ;;
  17183. -*)
  17184. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  17185. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17186. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  17187. - for ac_dir in $ac_dummy; do
  17188. - IFS="$lt_save_ifs"
  17189. - test -z "$ac_dir" && ac_dir=.
  17190. - if test -f $ac_dir/file; then
  17191. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  17192. - if test -n "$file_magic_test_file"; then
  17193. - case $deplibs_check_method in
  17194. - "file_magic "*)
  17195. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  17196. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  17197. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  17198. - $EGREP "$file_magic_regex" > /dev/null; then
  17199. - :
  17200. - else
  17201. - cat <<EOF 1>&2
  17202. -
  17203. -*** Warning: the command libtool uses to detect shared libraries,
  17204. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  17205. -*** The result is that libtool may fail to recognize shared libraries
  17206. -*** as such. This will affect the creation of libtool libraries that
  17207. -*** depend on shared libraries, but programs linked with such libtool
  17208. -*** libraries will work regardless of this problem. Nevertheless, you
  17209. -*** may want to report the problem to your system manager and/or to
  17210. -*** bug-libtool@gnu.org
  17211. -
  17212. -EOF
  17213. - fi ;;
  17214. - esac
  17215. - fi
  17216. - break
  17217. - fi
  17218. - done
  17219. - IFS="$lt_save_ifs"
  17220. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  17221. - ;;
  17222. -esac
  17223. -fi
  17224. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  17225. -if test -n "$MAGIC_CMD"; then
  17226. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  17227. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  17228. -else
  17229. - { echo "$as_me:$LINENO: result: no" >&5
  17230. -echo "${ECHO_T}no" >&6; }
  17231. -fi
  17232. - else
  17233. - MAGIC_CMD=:
  17234. - fi
  17235. -fi
  17236. - fi
  17237. - ;;
  17238. -esac
  17239. - case $host_os in
  17240. - rhapsody* | darwin*)
  17241. - if test -n "$ac_tool_prefix"; then
  17242. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  17243. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  17244. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17245. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17246. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  17247. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17248. +if test -n "$ac_tool_prefix"; then
  17249. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  17250. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  17251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17252. +$as_echo_n "checking for $ac_word... " >&6; }
  17253. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  17254. + $as_echo_n "(cached) " >&6
  17255. else
  17256. - if test -n "$DSYMUTIL"; then
  17257. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  17258. + if test -n "$RANLIB"; then
  17259. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  17260. else
  17261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17262. for as_dir in $PATH
  17263. do
  17264. IFS=$as_save_IFS
  17265. test -z "$as_dir" && as_dir=.
  17266. - for ac_exec_ext in '' $ac_executable_extensions; do
  17267. + for ac_exec_ext in '' $ac_executable_extensions; do
  17268. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17269. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  17270. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17271. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  17272. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17273. break 2
  17274. fi
  17275. done
  17276. -done
  17277. + done
  17278. IFS=$as_save_IFS
  17279. fi
  17280. fi
  17281. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  17282. -if test -n "$DSYMUTIL"; then
  17283. - { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  17284. -echo "${ECHO_T}$DSYMUTIL" >&6; }
  17285. +RANLIB=$ac_cv_prog_RANLIB
  17286. +if test -n "$RANLIB"; then
  17287. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  17288. +$as_echo "$RANLIB" >&6; }
  17289. else
  17290. - { echo "$as_me:$LINENO: result: no" >&5
  17291. -echo "${ECHO_T}no" >&6; }
  17292. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17293. +$as_echo "no" >&6; }
  17294. fi
  17295. fi
  17296. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  17297. - ac_ct_DSYMUTIL=$DSYMUTIL
  17298. - # Extract the first word of "dsymutil", so it can be a program name with args.
  17299. -set dummy dsymutil; ac_word=$2
  17300. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17301. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17302. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  17303. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17304. +if test -z "$ac_cv_prog_RANLIB"; then
  17305. + ac_ct_RANLIB=$RANLIB
  17306. + # Extract the first word of "ranlib", so it can be a program name with args.
  17307. +set dummy ranlib; ac_word=$2
  17308. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17309. +$as_echo_n "checking for $ac_word... " >&6; }
  17310. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  17311. + $as_echo_n "(cached) " >&6
  17312. else
  17313. - if test -n "$ac_ct_DSYMUTIL"; then
  17314. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  17315. + if test -n "$ac_ct_RANLIB"; then
  17316. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  17317. else
  17318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17319. for as_dir in $PATH
  17320. do
  17321. IFS=$as_save_IFS
  17322. test -z "$as_dir" && as_dir=.
  17323. - for ac_exec_ext in '' $ac_executable_extensions; do
  17324. + for ac_exec_ext in '' $ac_executable_extensions; do
  17325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17326. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  17327. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17328. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  17329. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17330. break 2
  17331. fi
  17332. done
  17333. -done
  17334. + done
  17335. IFS=$as_save_IFS
  17336. fi
  17337. fi
  17338. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  17339. -if test -n "$ac_ct_DSYMUTIL"; then
  17340. - { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  17341. -echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  17342. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  17343. +if test -n "$ac_ct_RANLIB"; then
  17344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  17345. +$as_echo "$ac_ct_RANLIB" >&6; }
  17346. else
  17347. - { echo "$as_me:$LINENO: result: no" >&5
  17348. -echo "${ECHO_T}no" >&6; }
  17349. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17350. +$as_echo "no" >&6; }
  17351. fi
  17352. - if test "x$ac_ct_DSYMUTIL" = x; then
  17353. - DSYMUTIL=":"
  17354. + if test "x$ac_ct_RANLIB" = x; then
  17355. + RANLIB=":"
  17356. else
  17357. case $cross_compiling:$ac_tool_warned in
  17358. yes:)
  17359. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17360. -whose name does not start with the host triplet. If you think this
  17361. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17362. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17363. -whose name does not start with the host triplet. If you think this
  17364. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17366. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17367. ac_tool_warned=yes ;;
  17368. esac
  17369. - DSYMUTIL=$ac_ct_DSYMUTIL
  17370. + RANLIB=$ac_ct_RANLIB
  17371. fi
  17372. else
  17373. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  17374. + RANLIB="$ac_cv_prog_RANLIB"
  17375. fi
  17376. - if test -n "$ac_tool_prefix"; then
  17377. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  17378. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  17379. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17380. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17381. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  17382. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17383. -else
  17384. - if test -n "$NMEDIT"; then
  17385. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  17386. -else
  17387. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17388. -for as_dir in $PATH
  17389. -do
  17390. - IFS=$as_save_IFS
  17391. - test -z "$as_dir" && as_dir=.
  17392. - for ac_exec_ext in '' $ac_executable_extensions; do
  17393. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17394. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  17395. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17396. - break 2
  17397. - fi
  17398. -done
  17399. -done
  17400. -IFS=$as_save_IFS
  17401. -
  17402. -fi
  17403. -fi
  17404. -NMEDIT=$ac_cv_prog_NMEDIT
  17405. -if test -n "$NMEDIT"; then
  17406. - { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  17407. -echo "${ECHO_T}$NMEDIT" >&6; }
  17408. -else
  17409. - { echo "$as_me:$LINENO: result: no" >&5
  17410. -echo "${ECHO_T}no" >&6; }
  17411. -fi
  17412. -
  17413. -
  17414. -fi
  17415. -if test -z "$ac_cv_prog_NMEDIT"; then
  17416. - ac_ct_NMEDIT=$NMEDIT
  17417. - # Extract the first word of "nmedit", so it can be a program name with args.
  17418. -set dummy nmedit; ac_word=$2
  17419. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17420. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17421. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  17422. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17423. -else
  17424. - if test -n "$ac_ct_NMEDIT"; then
  17425. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  17426. -else
  17427. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17428. -for as_dir in $PATH
  17429. -do
  17430. - IFS=$as_save_IFS
  17431. - test -z "$as_dir" && as_dir=.
  17432. - for ac_exec_ext in '' $ac_executable_extensions; do
  17433. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17434. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  17435. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17436. - break 2
  17437. - fi
  17438. -done
  17439. -done
  17440. -IFS=$as_save_IFS
  17441. -
  17442. -fi
  17443. -fi
  17444. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  17445. -if test -n "$ac_ct_NMEDIT"; then
  17446. - { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  17447. -echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  17448. -else
  17449. - { echo "$as_me:$LINENO: result: no" >&5
  17450. -echo "${ECHO_T}no" >&6; }
  17451. -fi
  17452. -
  17453. - if test "x$ac_ct_NMEDIT" = x; then
  17454. - NMEDIT=":"
  17455. - else
  17456. - case $cross_compiling:$ac_tool_warned in
  17457. -yes:)
  17458. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17459. -whose name does not start with the host triplet. If you think this
  17460. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17461. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17462. -whose name does not start with the host triplet. If you think this
  17463. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17464. -ac_tool_warned=yes ;;
  17465. -esac
  17466. - NMEDIT=$ac_ct_NMEDIT
  17467. - fi
  17468. -else
  17469. - NMEDIT="$ac_cv_prog_NMEDIT"
  17470. -fi
  17471. +test -z "$RANLIB" && RANLIB=:
  17472. - { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  17473. -echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  17474. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  17475. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17476. -else
  17477. - lt_cv_apple_cc_single_mod=no
  17478. - if test -z "${LT_MULTI_MODULE}"; then
  17479. - # By default we will add the -single_module flag. You can override
  17480. - # by either setting the environment variable LT_MULTI_MODULE
  17481. - # non-empty at configure time, or by adding -multi_module to the
  17482. - # link flags.
  17483. - echo "int foo(void){return 1;}" > conftest.c
  17484. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  17485. - -dynamiclib ${wl}-single_module conftest.c
  17486. - if test -f libconftest.dylib; then
  17487. - lt_cv_apple_cc_single_mod=yes
  17488. - rm -rf libconftest.dylib*
  17489. - fi
  17490. - rm conftest.c
  17491. - fi
  17492. -fi
  17493. -{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  17494. -echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  17495. - { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  17496. -echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  17497. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  17498. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17499. -else
  17500. - lt_cv_ld_exported_symbols_list=no
  17501. - save_LDFLAGS=$LDFLAGS
  17502. - echo "_main" > conftest.sym
  17503. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  17504. - cat >conftest.$ac_ext <<_ACEOF
  17505. -/* confdefs.h. */
  17506. -_ACEOF
  17507. -cat confdefs.h >>conftest.$ac_ext
  17508. -cat >>conftest.$ac_ext <<_ACEOF
  17509. -/* end confdefs.h. */
  17510. -int
  17511. -main ()
  17512. -{
  17513. - ;
  17514. - return 0;
  17515. -}
  17516. -_ACEOF
  17517. -rm -f conftest.$ac_objext conftest$ac_exeext
  17518. -if { (ac_try="$ac_link"
  17519. -case "(($ac_try" in
  17520. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17521. - *) ac_try_echo=$ac_try;;
  17522. -esac
  17523. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17524. - (eval "$ac_link") 2>conftest.er1
  17525. - ac_status=$?
  17526. - grep -v '^ *+' conftest.er1 >conftest.err
  17527. - rm -f conftest.er1
  17528. - cat conftest.err >&5
  17529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17530. - (exit $ac_status); } && {
  17531. - test -z "$ac_c_werror_flag" ||
  17532. - test ! -s conftest.err
  17533. - } && test -s conftest$ac_exeext &&
  17534. - $as_test_x conftest$ac_exeext; then
  17535. - lt_cv_ld_exported_symbols_list=yes
  17536. -else
  17537. - echo "$as_me: failed program was:" >&5
  17538. -sed 's/^/| /' conftest.$ac_ext >&5
  17539. - lt_cv_ld_exported_symbols_list=no
  17540. -fi
  17541. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17542. - conftest$ac_exeext conftest.$ac_ext
  17543. - LDFLAGS="$save_LDFLAGS"
  17544. +# Determine commands to create old-style static archives.
  17545. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  17546. +old_postinstall_cmds='chmod 644 $oldlib'
  17547. +old_postuninstall_cmds=
  17548. -fi
  17549. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  17550. -echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  17551. - case $host_os in
  17552. - rhapsody* | darwin1.[0123])
  17553. - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  17554. - darwin1.*)
  17555. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  17556. - darwin*)
  17557. - # if running on 10.5 or later, the deployment target defaults
  17558. - # to the OS version, if on x86, and 10.4, the deployment
  17559. - # target defaults to 10.4. Don't you love it?
  17560. - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  17561. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  17562. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  17563. - 10.[012]*)
  17564. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  17565. - 10.*)
  17566. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  17567. - esac
  17568. +if test -n "$RANLIB"; then
  17569. + case $host_os in
  17570. + openbsd*)
  17571. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  17572. ;;
  17573. - esac
  17574. - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  17575. - _lt_dar_single_mod='$single_module'
  17576. - fi
  17577. - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  17578. - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  17579. - else
  17580. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  17581. - fi
  17582. - if test "$DSYMUTIL" != ":"; then
  17583. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  17584. - else
  17585. - _lt_dsymutil=
  17586. - fi
  17587. + *)
  17588. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  17589. ;;
  17590. esac
  17591. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  17592. +fi
  17593. -enable_dlopen=no
  17594. -enable_win32_dll=yes
  17595. -# Check whether --enable-libtool-lock was given.
  17596. -if test "${enable_libtool_lock+set}" = set; then
  17597. - enableval=$enable_libtool_lock;
  17598. -fi
  17599. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  17600. -# Check whether --with-pic was given.
  17601. -if test "${with_pic+set}" = set; then
  17602. - withval=$with_pic; pic_mode="$withval"
  17603. -else
  17604. - pic_mode=default
  17605. -fi
  17606. -test -z "$pic_mode" && pic_mode=default
  17607. -# Use C for the default configuration in the libtool script
  17608. -tagname=
  17609. -lt_save_CC="$CC"
  17610. -ac_ext=c
  17611. -ac_cpp='$CPP $CPPFLAGS'
  17612. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17613. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17614. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17615. -# Source file extension for C test sources.
  17616. -ac_ext=c
  17617. -# Object file extension for compiled C test sources.
  17618. -objext=o
  17619. -objext=$objext
  17620. -# Code to be used in simple compile tests
  17621. -lt_simple_compile_test_code="int some_variable = 0;"
  17622. -# Code to be used in simple link tests
  17623. -lt_simple_link_test_code='int main(){return(0);}'
  17624. -# If no C compiler was specified, use CC.
  17625. -LTCC=${LTCC-"$CC"}
  17626. -# If no C compiler flags were specified, use CFLAGS.
  17627. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17628. -# Allow CC to be a program name with arguments.
  17629. -compiler=$CC
  17630. -# save warnings/boilerplate of simple test code
  17631. -ac_outfile=conftest.$ac_objext
  17632. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17633. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17634. -_lt_compiler_boilerplate=`cat conftest.err`
  17635. -$rm conftest*
  17636. -ac_outfile=conftest.$ac_objext
  17637. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17638. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17639. -_lt_linker_boilerplate=`cat conftest.err`
  17640. -$rm -r conftest*
  17641. -lt_prog_compiler_no_builtin_flag=
  17642. -if test "$GCC" = yes; then
  17643. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  17644. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  17645. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  17646. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  17647. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17648. -else
  17649. - lt_cv_prog_compiler_rtti_exceptions=no
  17650. - ac_outfile=conftest.$ac_objext
  17651. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17652. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  17653. - # Insert the option either (1) after the last *FLAGS variable, or
  17654. - # (2) before a word containing "conftest.", or (3) at the end.
  17655. - # Note that $ac_compile itself does not contain backslashes and begins
  17656. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  17657. - # The option is referenced via a variable to avoid confusing sed.
  17658. - lt_compile=`echo "$ac_compile" | $SED \
  17659. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17660. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17661. - -e 's:$: $lt_compiler_flag:'`
  17662. - (eval echo "\"\$as_me:7804: $lt_compile\"" >&5)
  17663. - (eval "$lt_compile" 2>conftest.err)
  17664. - ac_status=$?
  17665. - cat conftest.err >&5
  17666. - echo "$as_me:7808: \$? = $ac_status" >&5
  17667. - if (exit $ac_status) && test -s "$ac_outfile"; then
  17668. - # The compiler can only warn and ignore the option if not recognized
  17669. - # So say no if there are warnings other than the usual output.
  17670. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  17671. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17672. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17673. - lt_cv_prog_compiler_rtti_exceptions=yes
  17674. - fi
  17675. - fi
  17676. - $rm conftest*
  17677. -fi
  17678. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  17679. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  17680. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  17681. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  17682. -else
  17683. - :
  17684. -fi
  17685. -fi
  17686. -lt_prog_compiler_wl=
  17687. -lt_prog_compiler_pic=
  17688. -lt_prog_compiler_static=
  17689. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  17690. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  17691. - if test "$GCC" = yes; then
  17692. - lt_prog_compiler_wl='-Wl,'
  17693. - lt_prog_compiler_static='-static'
  17694. - case $host_os in
  17695. - aix*)
  17696. - # All AIX code is PIC.
  17697. - if test "$host_cpu" = ia64; then
  17698. - # AIX 5 now supports IA64 processor
  17699. - lt_prog_compiler_static='-Bstatic'
  17700. - fi
  17701. - ;;
  17702. - amigaos*)
  17703. - # FIXME: we need at least 68020 code to build shared libraries, but
  17704. - # adding the `-m68020' flag to GCC prevents building anything better,
  17705. - # like `-m68040'.
  17706. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  17707. - ;;
  17708. +# If no C compiler was specified, use CC.
  17709. +LTCC=${LTCC-"$CC"}
  17710. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  17711. - # PIC is the default for these OSes.
  17712. - ;;
  17713. +# If no C compiler flags were specified, use CFLAGS.
  17714. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17715. - mingw* | cygwin* | pw32* | os2*)
  17716. - # This hack is so that the source file can tell whether it is being
  17717. - # built for inclusion in a dll (and should export symbols for example).
  17718. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  17719. - # (--disable-auto-import) libraries
  17720. - lt_prog_compiler_pic='-DDLL_EXPORT'
  17721. - ;;
  17722. +# Allow CC to be a program name with arguments.
  17723. +compiler=$CC
  17724. - darwin* | rhapsody*)
  17725. - # PIC is the default on this platform
  17726. - # Common symbols not allowed in MH_DYLIB files
  17727. - lt_prog_compiler_pic='-fno-common'
  17728. - ;;
  17729. - interix[3-9]*)
  17730. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  17731. - # Instead, we relocate shared libraries at runtime.
  17732. - ;;
  17733. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  17734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  17735. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  17736. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  17737. + $as_echo_n "(cached) " >&6
  17738. +else
  17739. - msdosdjgpp*)
  17740. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  17741. - # on systems that don't support them.
  17742. - lt_prog_compiler_can_build_shared=no
  17743. - enable_shared=no
  17744. - ;;
  17745. +# These are sane defaults that work on at least a few old systems.
  17746. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  17747. - sysv4*MP*)
  17748. - if test -d /usr/nec; then
  17749. - lt_prog_compiler_pic=-Kconform_pic
  17750. - fi
  17751. - ;;
  17752. +# Character class describing NM global symbol codes.
  17753. +symcode='[BCDEGRST]'
  17754. - hpux*)
  17755. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  17756. - # not for PA HP-UX.
  17757. - case $host_cpu in
  17758. - hppa*64*|ia64*)
  17759. - # +Z the default
  17760. - ;;
  17761. - *)
  17762. - lt_prog_compiler_pic='-fPIC'
  17763. - ;;
  17764. - esac
  17765. - ;;
  17766. -
  17767. - *)
  17768. - lt_prog_compiler_pic='-fPIC'
  17769. - ;;
  17770. - esac
  17771. - else
  17772. - # PORTME Check for flag to pass linker flags through the system compiler.
  17773. - case $host_os in
  17774. - aix*)
  17775. - lt_prog_compiler_wl='-Wl,'
  17776. - if test "$host_cpu" = ia64; then
  17777. - # AIX 5 now supports IA64 processor
  17778. - lt_prog_compiler_static='-Bstatic'
  17779. - else
  17780. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  17781. - fi
  17782. - ;;
  17783. - darwin*)
  17784. - # PIC is the default on this platform
  17785. - # Common symbols not allowed in MH_DYLIB files
  17786. - case $cc_basename in
  17787. - xlc*)
  17788. - lt_prog_compiler_pic='-qnocommon'
  17789. - lt_prog_compiler_wl='-Wl,'
  17790. - ;;
  17791. - esac
  17792. - ;;
  17793. +# Regexp to match symbols that can be accessed directly from C.
  17794. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  17795. - mingw* | cygwin* | pw32* | os2*)
  17796. - # This hack is so that the source file can tell whether it is being
  17797. - # built for inclusion in a dll (and should export symbols for example).
  17798. - lt_prog_compiler_pic='-DDLL_EXPORT'
  17799. - ;;
  17800. +# Define system-specific variables.
  17801. +case $host_os in
  17802. +aix*)
  17803. + symcode='[BCDT]'
  17804. + ;;
  17805. +cygwin* | mingw* | pw32* | cegcc*)
  17806. + symcode='[ABCDGISTW]'
  17807. + ;;
  17808. +hpux*)
  17809. + if test "$host_cpu" = ia64; then
  17810. + symcode='[ABCDEGRST]'
  17811. + fi
  17812. + ;;
  17813. +irix* | nonstopux*)
  17814. + symcode='[BCDEGRST]'
  17815. + ;;
  17816. +osf*)
  17817. + symcode='[BCDEGQRST]'
  17818. + ;;
  17819. +solaris*)
  17820. + symcode='[BDRT]'
  17821. + ;;
  17822. +sco3.2v5*)
  17823. + symcode='[DT]'
  17824. + ;;
  17825. +sysv4.2uw2*)
  17826. + symcode='[DT]'
  17827. + ;;
  17828. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  17829. + symcode='[ABDT]'
  17830. + ;;
  17831. +sysv4)
  17832. + symcode='[DFNSTU]'
  17833. + ;;
  17834. +esac
  17835. - hpux9* | hpux10* | hpux11*)
  17836. - lt_prog_compiler_wl='-Wl,'
  17837. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  17838. - # not for PA HP-UX.
  17839. - case $host_cpu in
  17840. - hppa*64*|ia64*)
  17841. - # +Z the default
  17842. - ;;
  17843. - *)
  17844. - lt_prog_compiler_pic='+Z'
  17845. - ;;
  17846. - esac
  17847. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  17848. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  17849. - ;;
  17850. +# If we're using GNU nm, then use its standard symbol codes.
  17851. +case `$NM -V 2>&1` in
  17852. +*GNU* | *'with BFD'*)
  17853. + symcode='[ABCDGIRSTW]' ;;
  17854. +esac
  17855. - irix5* | irix6* | nonstopux*)
  17856. - lt_prog_compiler_wl='-Wl,'
  17857. - # PIC (with -KPIC) is the default.
  17858. - lt_prog_compiler_static='-non_shared'
  17859. - ;;
  17860. +# Transform an extracted symbol line into a proper C declaration.
  17861. +# Some systems (esp. on ia64) link data and code symbols differently,
  17862. +# so use this general approach.
  17863. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  17864. - newsos6)
  17865. - lt_prog_compiler_pic='-KPIC'
  17866. - lt_prog_compiler_static='-Bstatic'
  17867. - ;;
  17868. +# Transform an extracted symbol line into symbol name and symbol address
  17869. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  17870. +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'"
  17871. - linux* | k*bsd*-gnu)
  17872. - case $cc_basename in
  17873. - icc* | ecc*)
  17874. - lt_prog_compiler_wl='-Wl,'
  17875. - lt_prog_compiler_pic='-KPIC'
  17876. - lt_prog_compiler_static='-static'
  17877. - ;;
  17878. - pgcc* | pgf77* | pgf90* | pgf95*)
  17879. - # Portland Group compilers (*not* the Pentium gcc compiler,
  17880. - # which looks to be a dead project)
  17881. - lt_prog_compiler_wl='-Wl,'
  17882. - lt_prog_compiler_pic='-fpic'
  17883. - lt_prog_compiler_static='-Bstatic'
  17884. - ;;
  17885. - ccc*)
  17886. - lt_prog_compiler_wl='-Wl,'
  17887. - # All Alpha code is PIC.
  17888. - lt_prog_compiler_static='-non_shared'
  17889. - ;;
  17890. - *)
  17891. - case `$CC -V 2>&1 | sed 5q` in
  17892. - *Sun\ C*)
  17893. - # Sun C 5.9
  17894. - lt_prog_compiler_pic='-KPIC'
  17895. - lt_prog_compiler_static='-Bstatic'
  17896. - lt_prog_compiler_wl='-Wl,'
  17897. - ;;
  17898. - *Sun\ F*)
  17899. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  17900. - lt_prog_compiler_pic='-KPIC'
  17901. - lt_prog_compiler_static='-Bstatic'
  17902. - lt_prog_compiler_wl=''
  17903. - ;;
  17904. - esac
  17905. - ;;
  17906. - esac
  17907. - ;;
  17908. +# Handle CRLF in mingw tool chain
  17909. +opt_cr=
  17910. +case $build_os in
  17911. +mingw*)
  17912. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  17913. + ;;
  17914. +esac
  17915. - osf3* | osf4* | osf5*)
  17916. - lt_prog_compiler_wl='-Wl,'
  17917. - # All OSF/1 code is PIC.
  17918. - lt_prog_compiler_static='-non_shared'
  17919. - ;;
  17920. +# Try without a prefix underscore, then with it.
  17921. +for ac_symprfx in "" "_"; do
  17922. - rdos*)
  17923. - lt_prog_compiler_static='-non_shared'
  17924. - ;;
  17925. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  17926. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  17927. - solaris*)
  17928. - lt_prog_compiler_pic='-KPIC'
  17929. - lt_prog_compiler_static='-Bstatic'
  17930. - case $cc_basename in
  17931. - f77* | f90* | f95*)
  17932. - lt_prog_compiler_wl='-Qoption ld ';;
  17933. - *)
  17934. - lt_prog_compiler_wl='-Wl,';;
  17935. - esac
  17936. - ;;
  17937. + # Write the raw and C identifiers.
  17938. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  17939. + # Fake it for dumpbin and say T for any non-static function
  17940. + # and D for any global variable.
  17941. + # Also find C++ and __fastcall symbols from MSVC++,
  17942. + # which start with @ or ?.
  17943. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  17944. +" {last_section=section; section=\$ 3};"\
  17945. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  17946. +" \$ 0!~/External *\|/{next};"\
  17947. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  17948. +" {if(hide[section]) next};"\
  17949. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  17950. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  17951. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  17952. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  17953. +" ' prfx=^$ac_symprfx"
  17954. + else
  17955. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  17956. + fi
  17957. - sunos4*)
  17958. - lt_prog_compiler_wl='-Qoption ld '
  17959. - lt_prog_compiler_pic='-PIC'
  17960. - lt_prog_compiler_static='-Bstatic'
  17961. - ;;
  17962. + # Check to see that the pipe works correctly.
  17963. + pipe_works=no
  17964. - sysv4 | sysv4.2uw2* | sysv4.3*)
  17965. - lt_prog_compiler_wl='-Wl,'
  17966. - lt_prog_compiler_pic='-KPIC'
  17967. - lt_prog_compiler_static='-Bstatic'
  17968. - ;;
  17969. + rm -f conftest*
  17970. + cat > conftest.$ac_ext <<_LT_EOF
  17971. +#ifdef __cplusplus
  17972. +extern "C" {
  17973. +#endif
  17974. +char nm_test_var;
  17975. +void nm_test_func(void);
  17976. +void nm_test_func(void){}
  17977. +#ifdef __cplusplus
  17978. +}
  17979. +#endif
  17980. +int main(){nm_test_var='a';nm_test_func();return(0);}
  17981. +_LT_EOF
  17982. - sysv4*MP*)
  17983. - if test -d /usr/nec ;then
  17984. - lt_prog_compiler_pic='-Kconform_pic'
  17985. - lt_prog_compiler_static='-Bstatic'
  17986. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17987. + (eval $ac_compile) 2>&5
  17988. + ac_status=$?
  17989. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17990. + test $ac_status = 0; }; then
  17991. + # Now try to grab the symbols.
  17992. + nlist=conftest.nm
  17993. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  17994. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  17995. + ac_status=$?
  17996. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17997. + test $ac_status = 0; } && test -s "$nlist"; then
  17998. + # Try sorting and uniquifying the output.
  17999. + if sort "$nlist" | uniq > "$nlist"T; then
  18000. + mv -f "$nlist"T "$nlist"
  18001. + else
  18002. + rm -f "$nlist"T
  18003. fi
  18004. - ;;
  18005. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  18006. - lt_prog_compiler_wl='-Wl,'
  18007. - lt_prog_compiler_pic='-KPIC'
  18008. - lt_prog_compiler_static='-Bstatic'
  18009. - ;;
  18010. -
  18011. - unicos*)
  18012. - lt_prog_compiler_wl='-Wl,'
  18013. - lt_prog_compiler_can_build_shared=no
  18014. - ;;
  18015. + # Make sure that we snagged all the symbols we need.
  18016. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  18017. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  18018. + cat <<_LT_EOF > conftest.$ac_ext
  18019. +#ifdef __cplusplus
  18020. +extern "C" {
  18021. +#endif
  18022. - uts4*)
  18023. - lt_prog_compiler_pic='-pic'
  18024. - lt_prog_compiler_static='-Bstatic'
  18025. - ;;
  18026. +_LT_EOF
  18027. + # Now generate the symbol file.
  18028. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  18029. - *)
  18030. - lt_prog_compiler_can_build_shared=no
  18031. - ;;
  18032. - esac
  18033. - fi
  18034. + cat <<_LT_EOF >> conftest.$ac_ext
  18035. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  18036. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  18037. +/* The mapping between symbol names and symbols. */
  18038. +const struct {
  18039. + const char *name;
  18040. + void *address;
  18041. +}
  18042. +lt__PROGRAM__LTX_preloaded_symbols[] =
  18043. +{
  18044. + { "@PROGRAM@", (void *) 0 },
  18045. +_LT_EOF
  18046. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  18047. + cat <<\_LT_EOF >> conftest.$ac_ext
  18048. + {0, (void *) 0}
  18049. +};
  18050. -#
  18051. -# Check to make sure the PIC flag actually works.
  18052. -#
  18053. -if test -n "$lt_prog_compiler_pic"; then
  18054. +/* This works around a problem in FreeBSD linker */
  18055. +#ifdef FREEBSD_WORKAROUND
  18056. +static const void *lt_preloaded_setup() {
  18057. + return lt__PROGRAM__LTX_preloaded_symbols;
  18058. +}
  18059. +#endif
  18060. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  18061. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  18062. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  18063. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18064. -else
  18065. - lt_cv_prog_compiler_pic_works=no
  18066. - ac_outfile=conftest.$ac_objext
  18067. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  18068. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  18069. - # Insert the option either (1) after the last *FLAGS variable, or
  18070. - # (2) before a word containing "conftest.", or (3) at the end.
  18071. - # Note that $ac_compile itself does not contain backslashes and begins
  18072. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  18073. - # The option is referenced via a variable to avoid confusing sed.
  18074. - lt_compile=`echo "$ac_compile" | $SED \
  18075. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18076. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18077. - -e 's:$: $lt_compiler_flag:'`
  18078. - (eval echo "\"\$as_me:8094: $lt_compile\"" >&5)
  18079. - (eval "$lt_compile" 2>conftest.err)
  18080. - ac_status=$?
  18081. - cat conftest.err >&5
  18082. - echo "$as_me:8098: \$? = $ac_status" >&5
  18083. - if (exit $ac_status) && test -s "$ac_outfile"; then
  18084. - # The compiler can only warn and ignore the option if not recognized
  18085. - # So say no if there are warnings other than the usual output.
  18086. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18087. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18088. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  18089. - lt_cv_prog_compiler_pic_works=yes
  18090. - fi
  18091. - fi
  18092. - $rm conftest*
  18093. +#ifdef __cplusplus
  18094. +}
  18095. +#endif
  18096. +_LT_EOF
  18097. + # Now try linking the two files.
  18098. + mv conftest.$ac_objext conftstm.$ac_objext
  18099. + lt_save_LIBS="$LIBS"
  18100. + lt_save_CFLAGS="$CFLAGS"
  18101. + LIBS="conftstm.$ac_objext"
  18102. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  18103. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  18104. + (eval $ac_link) 2>&5
  18105. + ac_status=$?
  18106. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18107. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  18108. + pipe_works=yes
  18109. + fi
  18110. + LIBS="$lt_save_LIBS"
  18111. + CFLAGS="$lt_save_CFLAGS"
  18112. + else
  18113. + echo "cannot find nm_test_func in $nlist" >&5
  18114. + fi
  18115. + else
  18116. + echo "cannot find nm_test_var in $nlist" >&5
  18117. + fi
  18118. + else
  18119. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  18120. + fi
  18121. + else
  18122. + echo "$progname: failed program was:" >&5
  18123. + cat conftest.$ac_ext >&5
  18124. + fi
  18125. + rm -rf conftest* conftst*
  18126. +
  18127. + # Do not use the global_symbol_pipe unless it works.
  18128. + if test "$pipe_works" = yes; then
  18129. + break
  18130. + else
  18131. + lt_cv_sys_global_symbol_pipe=
  18132. + fi
  18133. +done
  18134. fi
  18135. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  18136. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  18137. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  18138. - case $lt_prog_compiler_pic in
  18139. - "" | " "*) ;;
  18140. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  18141. - esac
  18142. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  18143. + lt_cv_sys_global_symbol_to_cdecl=
  18144. +fi
  18145. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  18146. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  18147. +$as_echo "failed" >&6; }
  18148. else
  18149. - lt_prog_compiler_pic=
  18150. - lt_prog_compiler_can_build_shared=no
  18151. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  18152. +$as_echo "ok" >&6; }
  18153. fi
  18154. -fi
  18155. -case $host_os in
  18156. - # For platforms which do not support PIC, -DPIC is meaningless:
  18157. - *djgpp*)
  18158. - lt_prog_compiler_pic=
  18159. - ;;
  18160. - *)
  18161. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  18162. - ;;
  18163. -esac
  18164. -#
  18165. -# Check to make sure the static flag actually works.
  18166. -#
  18167. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  18168. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  18169. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  18170. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  18171. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18172. -else
  18173. - lt_cv_prog_compiler_static_works=no
  18174. - save_LDFLAGS="$LDFLAGS"
  18175. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  18176. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  18177. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  18178. - # The linker can only warn and ignore the option if not recognized
  18179. - # So say no if there are warnings
  18180. - if test -s conftest.err; then
  18181. - # Append any errors to the config.log.
  18182. - cat conftest.err 1>&5
  18183. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  18184. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18185. - if diff conftest.exp conftest.er2 >/dev/null; then
  18186. - lt_cv_prog_compiler_static_works=yes
  18187. - fi
  18188. - else
  18189. - lt_cv_prog_compiler_static_works=yes
  18190. - fi
  18191. - fi
  18192. - $rm -r conftest*
  18193. - LDFLAGS="$save_LDFLAGS"
  18194. -fi
  18195. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  18196. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  18197. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  18198. - :
  18199. -else
  18200. - lt_prog_compiler_static=
  18201. -fi
  18202. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  18203. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  18204. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  18205. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18206. -else
  18207. - lt_cv_prog_compiler_c_o=no
  18208. - $rm -r conftest 2>/dev/null
  18209. - mkdir conftest
  18210. - cd conftest
  18211. - mkdir out
  18212. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  18213. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  18214. - # Insert the option either (1) after the last *FLAGS variable, or
  18215. - # (2) before a word containing "conftest.", or (3) at the end.
  18216. - # Note that $ac_compile itself does not contain backslashes and begins
  18217. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  18218. - lt_compile=`echo "$ac_compile" | $SED \
  18219. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18220. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18221. - -e 's:$: $lt_compiler_flag:'`
  18222. - (eval echo "\"\$as_me:8198: $lt_compile\"" >&5)
  18223. - (eval "$lt_compile" 2>out/conftest.err)
  18224. - ac_status=$?
  18225. - cat out/conftest.err >&5
  18226. - echo "$as_me:8202: \$? = $ac_status" >&5
  18227. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  18228. - then
  18229. - # The compiler can only warn and ignore the option if not recognized
  18230. - # So say no if there are warnings
  18231. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  18232. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  18233. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  18234. - lt_cv_prog_compiler_c_o=yes
  18235. - fi
  18236. - fi
  18237. - chmod u+w . 2>&5
  18238. - $rm conftest*
  18239. - # SGI C++ compiler will create directory out/ii_files/ for
  18240. - # template instantiation
  18241. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  18242. - $rm out/* && rmdir out
  18243. - cd ..
  18244. - rmdir conftest
  18245. - $rm conftest*
  18246. -fi
  18247. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  18248. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  18249. -hard_links="nottested"
  18250. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  18251. - # do not overwrite the value of need_locks provided by the user
  18252. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  18253. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  18254. - hard_links=yes
  18255. - $rm conftest*
  18256. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  18257. - touch conftest.a
  18258. - ln conftest.a conftest.b 2>&5 || hard_links=no
  18259. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  18260. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  18261. -echo "${ECHO_T}$hard_links" >&6; }
  18262. - if test "$hard_links" = no; then
  18263. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  18264. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  18265. - need_locks=warn
  18266. - fi
  18267. -else
  18268. - need_locks=no
  18269. -fi
  18270. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  18271. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  18272. - runpath_var=
  18273. - allow_undefined_flag=
  18274. - enable_shared_with_static_runtimes=no
  18275. - archive_cmds=
  18276. - archive_expsym_cmds=
  18277. - old_archive_From_new_cmds=
  18278. - old_archive_from_expsyms_cmds=
  18279. - export_dynamic_flag_spec=
  18280. - whole_archive_flag_spec=
  18281. - thread_safe_flag_spec=
  18282. - hardcode_libdir_flag_spec=
  18283. - hardcode_libdir_flag_spec_ld=
  18284. - hardcode_libdir_separator=
  18285. - hardcode_direct=no
  18286. - hardcode_minus_L=no
  18287. - hardcode_shlibpath_var=unsupported
  18288. - link_all_deplibs=unknown
  18289. - hardcode_automatic=no
  18290. - module_cmds=
  18291. - module_expsym_cmds=
  18292. - always_export_symbols=no
  18293. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  18294. - # include_expsyms should be a list of space-separated symbols to be *always*
  18295. - # included in the symbol list
  18296. - include_expsyms=
  18297. - # exclude_expsyms can be an extended regexp of symbols to exclude
  18298. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  18299. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  18300. - # as well as any symbol that contains `d'.
  18301. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  18302. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  18303. - # platforms (ab)use it in PIC code, but their linkers get confused if
  18304. - # the symbol is explicitly referenced. Since portable code cannot
  18305. - # rely on this symbol name, it's probably fine to never include it in
  18306. - # preloaded symbol tables.
  18307. - # Exclude shared library initialization/finalization symbols.
  18308. - extract_expsyms_cmds=
  18309. - # Just being paranoid about ensuring that cc_basename is set.
  18310. - for cc_temp in $compiler""; do
  18311. - case $cc_temp in
  18312. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18313. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18314. - \-*) ;;
  18315. - *) break;;
  18316. - esac
  18317. -done
  18318. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  18319. - case $host_os in
  18320. - cygwin* | mingw* | pw32*)
  18321. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  18322. - # When not using gcc, we currently assume that we are using
  18323. - # Microsoft Visual C++.
  18324. - if test "$GCC" != yes; then
  18325. - with_gnu_ld=no
  18326. - fi
  18327. - ;;
  18328. - interix*)
  18329. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  18330. - with_gnu_ld=yes
  18331. - ;;
  18332. - openbsd*)
  18333. - with_gnu_ld=no
  18334. - ;;
  18335. - esac
  18336. - ld_shlibs=yes
  18337. - if test "$with_gnu_ld" = yes; then
  18338. - # If archive_cmds runs LD, not CC, wlarc should be empty
  18339. - wlarc='${wl}'
  18340. - # Set some defaults for GNU ld with shared library support. These
  18341. - # are reset later if shared libraries are not supported. Putting them
  18342. - # here allows them to be overridden if necessary.
  18343. - runpath_var=LD_RUN_PATH
  18344. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  18345. - export_dynamic_flag_spec='${wl}--export-dynamic'
  18346. - # ancient GNU ld didn't support --whole-archive et. al.
  18347. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  18348. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  18349. - else
  18350. - whole_archive_flag_spec=
  18351. - fi
  18352. - supports_anon_versioning=no
  18353. - case `$LD -v 2>/dev/null` in
  18354. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  18355. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  18356. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  18357. - *\ 2.11.*) ;; # other 2.11 versions
  18358. - *) supports_anon_versioning=yes ;;
  18359. - esac
  18360. - # See if GNU ld supports shared libraries.
  18361. - case $host_os in
  18362. - aix[3-9]*)
  18363. - # On AIX/PPC, the GNU linker is very broken
  18364. - if test "$host_cpu" != ia64; then
  18365. - ld_shlibs=no
  18366. - cat <<EOF 1>&2
  18367. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  18368. -*** to be unable to reliably create shared libraries on AIX.
  18369. -*** Therefore, libtool is disabling shared libraries support. If you
  18370. -*** really care for shared libraries, you may want to modify your PATH
  18371. -*** so that a non-GNU linker is found, and then restart.
  18372. -EOF
  18373. - fi
  18374. - ;;
  18375. - amigaos*)
  18376. - 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)'
  18377. - hardcode_libdir_flag_spec='-L$libdir'
  18378. - hardcode_minus_L=yes
  18379. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  18380. - # that the semantics of dynamic libraries on AmigaOS, at least up
  18381. - # to version 4, is to share data among multiple programs linked
  18382. - # with the same dynamic library. Since this doesn't match the
  18383. - # behavior of shared libraries on other platforms, we can't use
  18384. - # them.
  18385. - ld_shlibs=no
  18386. - ;;
  18387. - beos*)
  18388. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18389. - allow_undefined_flag=unsupported
  18390. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  18391. - # support --undefined. This deserves some investigation. FIXME
  18392. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18393. - else
  18394. - ld_shlibs=no
  18395. - fi
  18396. - ;;
  18397. - cygwin* | mingw* | pw32*)
  18398. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  18399. - # as there is no search path for DLLs.
  18400. - hardcode_libdir_flag_spec='-L$libdir'
  18401. - allow_undefined_flag=unsupported
  18402. - always_export_symbols=no
  18403. - enable_shared_with_static_runtimes=yes
  18404. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  18405. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  18406. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  18407. - # If the export-symbols file already is a .def file (1st line
  18408. - # is EXPORTS), use it as is; otherwise, prepend...
  18409. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  18410. - cp $export_symbols $output_objdir/$soname.def;
  18411. - else
  18412. - echo EXPORTS > $output_objdir/$soname.def;
  18413. - cat $export_symbols >> $output_objdir/$soname.def;
  18414. - fi~
  18415. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  18416. - else
  18417. - ld_shlibs=no
  18418. - fi
  18419. - ;;
  18420. +# Check whether --enable-libtool-lock was given.
  18421. +if test "${enable_libtool_lock+set}" = set; then :
  18422. + enableval=$enable_libtool_lock;
  18423. +fi
  18424. - interix[3-9]*)
  18425. - hardcode_direct=no
  18426. - hardcode_shlibpath_var=no
  18427. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  18428. - export_dynamic_flag_spec='${wl}-E'
  18429. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  18430. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  18431. - # default) and relocated if they conflict, which is a slow very memory
  18432. - # consuming and fragmenting process. To avoid this, we pick a random,
  18433. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  18434. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  18435. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  18436. - 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'
  18437. - ;;
  18438. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  18439. - gnu* | linux* | k*bsd*-gnu)
  18440. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18441. - tmp_addflag=
  18442. - case $cc_basename,$host_cpu in
  18443. - pgcc*) # Portland Group C compiler
  18444. - 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'
  18445. - tmp_addflag=' $pic_flag'
  18446. +# Some flags need to be propagated to the compiler or linker for good
  18447. +# libtool support.
  18448. +case $host in
  18449. +ia64-*-hpux*)
  18450. + # Find out which ABI we are using.
  18451. + echo 'int i;' > conftest.$ac_ext
  18452. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18453. + (eval $ac_compile) 2>&5
  18454. + ac_status=$?
  18455. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18456. + test $ac_status = 0; }; then
  18457. + case `/usr/bin/file conftest.$ac_objext` in
  18458. + *ELF-32*)
  18459. + HPUX_IA64_MODE="32"
  18460. + ;;
  18461. + *ELF-64*)
  18462. + HPUX_IA64_MODE="64"
  18463. + ;;
  18464. + esac
  18465. + fi
  18466. + rm -rf conftest*
  18467. + ;;
  18468. +*-*-irix6*)
  18469. + # Find out which ABI we are using.
  18470. + echo '#line 6821 "configure"' > conftest.$ac_ext
  18471. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18472. + (eval $ac_compile) 2>&5
  18473. + ac_status=$?
  18474. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18475. + test $ac_status = 0; }; then
  18476. + if test "$lt_cv_prog_gnu_ld" = yes; then
  18477. + case `/usr/bin/file conftest.$ac_objext` in
  18478. + *32-bit*)
  18479. + LD="${LD-ld} -melf32bsmip"
  18480. ;;
  18481. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  18482. - 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'
  18483. - tmp_addflag=' $pic_flag -Mnomain' ;;
  18484. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  18485. - tmp_addflag=' -i_dynamic' ;;
  18486. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  18487. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  18488. - ifc* | ifort*) # Intel Fortran compiler
  18489. - tmp_addflag=' -nofor_main' ;;
  18490. + *N32*)
  18491. + LD="${LD-ld} -melf32bmipn32"
  18492. + ;;
  18493. + *64-bit*)
  18494. + LD="${LD-ld} -melf64bmip"
  18495. + ;;
  18496. + esac
  18497. + else
  18498. + case `/usr/bin/file conftest.$ac_objext` in
  18499. + *32-bit*)
  18500. + LD="${LD-ld} -32"
  18501. + ;;
  18502. + *N32*)
  18503. + LD="${LD-ld} -n32"
  18504. + ;;
  18505. + *64-bit*)
  18506. + LD="${LD-ld} -64"
  18507. + ;;
  18508. + esac
  18509. + fi
  18510. + fi
  18511. + rm -rf conftest*
  18512. + ;;
  18513. +
  18514. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  18515. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  18516. + # Find out which ABI we are using.
  18517. + echo 'int i;' > conftest.$ac_ext
  18518. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18519. + (eval $ac_compile) 2>&5
  18520. + ac_status=$?
  18521. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18522. + test $ac_status = 0; }; then
  18523. + case `/usr/bin/file conftest.o` in
  18524. + *32-bit*)
  18525. + case $host in
  18526. + x86_64-*kfreebsd*-gnu)
  18527. + LD="${LD-ld} -m elf_i386_fbsd"
  18528. + ;;
  18529. + x86_64-*linux*)
  18530. + LD="${LD-ld} -m elf_i386"
  18531. + ;;
  18532. + ppc64-*linux*|powerpc64-*linux*)
  18533. + LD="${LD-ld} -m elf32ppclinux"
  18534. + ;;
  18535. + s390x-*linux*)
  18536. + LD="${LD-ld} -m elf_s390"
  18537. + ;;
  18538. + sparc64-*linux*)
  18539. + LD="${LD-ld} -m elf32_sparc"
  18540. + ;;
  18541. esac
  18542. - case `$CC -V 2>&1 | sed 5q` in
  18543. - *Sun\ C*) # Sun C 5.9
  18544. - 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'
  18545. - tmp_sharedflag='-G' ;;
  18546. - *Sun\ F*) # Sun Fortran 8.3
  18547. - tmp_sharedflag='-G' ;;
  18548. - *)
  18549. - tmp_sharedflag='-shared' ;;
  18550. + ;;
  18551. + *64-bit*)
  18552. + case $host in
  18553. + x86_64-*kfreebsd*-gnu)
  18554. + LD="${LD-ld} -m elf_x86_64_fbsd"
  18555. + ;;
  18556. + x86_64-*linux*)
  18557. + LD="${LD-ld} -m elf_x86_64"
  18558. + ;;
  18559. + ppc*-*linux*|powerpc*-*linux*)
  18560. + LD="${LD-ld} -m elf64ppc"
  18561. + ;;
  18562. + s390*-*linux*|s390*-*tpf*)
  18563. + LD="${LD-ld} -m elf64_s390"
  18564. + ;;
  18565. + sparc*-*linux*)
  18566. + LD="${LD-ld} -m elf64_sparc"
  18567. + ;;
  18568. esac
  18569. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18570. -
  18571. - if test $supports_anon_versioning = yes; then
  18572. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  18573. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  18574. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  18575. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  18576. - fi
  18577. - else
  18578. - ld_shlibs=no
  18579. - fi
  18580. - ;;
  18581. -
  18582. - netbsd*)
  18583. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18584. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  18585. - wlarc=
  18586. - else
  18587. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18588. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18589. - fi
  18590. - ;;
  18591. -
  18592. - solaris*)
  18593. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  18594. - ld_shlibs=no
  18595. - cat <<EOF 1>&2
  18596. + ;;
  18597. + esac
  18598. + fi
  18599. + rm -rf conftest*
  18600. + ;;
  18601. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  18602. -*** create shared libraries on Solaris systems. Therefore, libtool
  18603. -*** is disabling shared libraries support. We urge you to upgrade GNU
  18604. -*** binutils to release 2.9.1 or newer. Another option is to modify
  18605. -*** your PATH or compiler configuration so that the native linker is
  18606. -*** used, and then restart.
  18607. +*-*-sco3.2v5*)
  18608. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  18609. + SAVE_CFLAGS="$CFLAGS"
  18610. + CFLAGS="$CFLAGS -belf"
  18611. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  18612. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  18613. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  18614. + $as_echo_n "(cached) " >&6
  18615. +else
  18616. + ac_ext=c
  18617. +ac_cpp='$CPP $CPPFLAGS'
  18618. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18619. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18620. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18621. -EOF
  18622. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18623. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18624. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18625. - else
  18626. - ld_shlibs=no
  18627. - fi
  18628. - ;;
  18629. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18630. +/* end confdefs.h. */
  18631. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  18632. - case `$LD -v 2>&1` in
  18633. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  18634. - ld_shlibs=no
  18635. - cat <<_LT_EOF 1>&2
  18636. +int
  18637. +main ()
  18638. +{
  18639. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  18640. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  18641. -*** is disabling shared libraries support. We urge you to upgrade GNU
  18642. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  18643. -*** your PATH or compiler configuration so that the native linker is
  18644. -*** used, and then restart.
  18645. + ;
  18646. + return 0;
  18647. +}
  18648. +_ACEOF
  18649. +if ac_fn_c_try_link "$LINENO"; then :
  18650. + lt_cv_cc_needs_belf=yes
  18651. +else
  18652. + lt_cv_cc_needs_belf=no
  18653. +fi
  18654. +rm -f core conftest.err conftest.$ac_objext \
  18655. + conftest$ac_exeext conftest.$ac_ext
  18656. + ac_ext=c
  18657. +ac_cpp='$CPP $CPPFLAGS'
  18658. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18659. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18660. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18661. -_LT_EOF
  18662. - ;;
  18663. - *)
  18664. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18665. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  18666. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  18667. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  18668. - else
  18669. - ld_shlibs=no
  18670. - fi
  18671. +fi
  18672. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  18673. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  18674. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  18675. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  18676. + CFLAGS="$SAVE_CFLAGS"
  18677. + fi
  18678. + ;;
  18679. +sparc*-*solaris*)
  18680. + # Find out which ABI we are using.
  18681. + echo 'int i;' > conftest.$ac_ext
  18682. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18683. + (eval $ac_compile) 2>&5
  18684. + ac_status=$?
  18685. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18686. + test $ac_status = 0; }; then
  18687. + case `/usr/bin/file conftest.o` in
  18688. + *64-bit*)
  18689. + case $lt_cv_prog_gnu_ld in
  18690. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  18691. + *)
  18692. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  18693. + LD="${LD-ld} -64"
  18694. + fi
  18695. ;;
  18696. esac
  18697. ;;
  18698. -
  18699. - sunos4*)
  18700. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  18701. - wlarc=
  18702. - hardcode_direct=yes
  18703. - hardcode_shlibpath_var=no
  18704. - ;;
  18705. -
  18706. - *)
  18707. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18708. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18709. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18710. - else
  18711. - ld_shlibs=no
  18712. - fi
  18713. - ;;
  18714. esac
  18715. + fi
  18716. + rm -rf conftest*
  18717. + ;;
  18718. +esac
  18719. - if test "$ld_shlibs" = no; then
  18720. - runpath_var=
  18721. - hardcode_libdir_flag_spec=
  18722. - export_dynamic_flag_spec=
  18723. - whole_archive_flag_spec=
  18724. - fi
  18725. - else
  18726. - # PORTME fill in a description of your system's linker (not GNU ld)
  18727. - case $host_os in
  18728. - aix3*)
  18729. - allow_undefined_flag=unsupported
  18730. - always_export_symbols=yes
  18731. - 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'
  18732. - # Note: this linker hardcodes the directories in LIBPATH if there
  18733. - # are no directories specified by -L.
  18734. - hardcode_minus_L=yes
  18735. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  18736. - # Neither direct hardcoding nor static linking is supported with a
  18737. - # broken collect2.
  18738. - hardcode_direct=unsupported
  18739. - fi
  18740. - ;;
  18741. -
  18742. - aix[4-9]*)
  18743. - if test "$host_cpu" = ia64; then
  18744. - # On IA64, the linker does run time linking by default, so we don't
  18745. - # have to do anything special.
  18746. - aix_use_runtimelinking=no
  18747. - exp_sym_flag='-Bexport'
  18748. - no_entry_flag=""
  18749. - else
  18750. - # If we're using GNU nm, then we don't want the "-C" option.
  18751. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  18752. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  18753. - 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'
  18754. - else
  18755. - 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'
  18756. - fi
  18757. - aix_use_runtimelinking=no
  18758. +need_locks="$enable_libtool_lock"
  18759. - # Test if we are trying to use run time linking or normal
  18760. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  18761. - # need to do runtime linking.
  18762. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  18763. - for ld_flag in $LDFLAGS; do
  18764. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  18765. - aix_use_runtimelinking=yes
  18766. - break
  18767. - fi
  18768. - done
  18769. - ;;
  18770. - esac
  18771. - exp_sym_flag='-bexport'
  18772. - no_entry_flag='-bnoentry'
  18773. - fi
  18774. -
  18775. - # When large executables or shared objects are built, AIX ld can
  18776. - # have problems creating the table of contents. If linking a library
  18777. - # or program results in "error TOC overflow" add -mminimal-toc to
  18778. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  18779. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  18780. + case $host_os in
  18781. + rhapsody* | darwin*)
  18782. + if test -n "$ac_tool_prefix"; then
  18783. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  18784. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  18785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18786. +$as_echo_n "checking for $ac_word... " >&6; }
  18787. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  18788. + $as_echo_n "(cached) " >&6
  18789. +else
  18790. + if test -n "$DSYMUTIL"; then
  18791. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  18792. +else
  18793. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18794. +for as_dir in $PATH
  18795. +do
  18796. + IFS=$as_save_IFS
  18797. + test -z "$as_dir" && as_dir=.
  18798. + for ac_exec_ext in '' $ac_executable_extensions; do
  18799. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18800. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  18801. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18802. + break 2
  18803. + fi
  18804. +done
  18805. + done
  18806. +IFS=$as_save_IFS
  18807. - archive_cmds=''
  18808. - hardcode_direct=yes
  18809. - hardcode_libdir_separator=':'
  18810. - link_all_deplibs=yes
  18811. +fi
  18812. +fi
  18813. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  18814. +if test -n "$DSYMUTIL"; then
  18815. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  18816. +$as_echo "$DSYMUTIL" >&6; }
  18817. +else
  18818. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18819. +$as_echo "no" >&6; }
  18820. +fi
  18821. - if test "$GCC" = yes; then
  18822. - case $host_os in aix4.[012]|aix4.[012].*)
  18823. - # We only want to do this on AIX 4.2 and lower, the check
  18824. - # below for broken collect2 doesn't work under 4.3+
  18825. - collect2name=`${CC} -print-prog-name=collect2`
  18826. - if test -f "$collect2name" && \
  18827. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  18828. - then
  18829. - # We have reworked collect2
  18830. - :
  18831. - else
  18832. - # We have old collect2
  18833. - hardcode_direct=unsupported
  18834. - # It fails to find uninstalled libraries when the uninstalled
  18835. - # path is not listed in the libpath. Setting hardcode_minus_L
  18836. - # to unsupported forces relinking
  18837. - hardcode_minus_L=yes
  18838. - hardcode_libdir_flag_spec='-L$libdir'
  18839. - hardcode_libdir_separator=
  18840. - fi
  18841. - ;;
  18842. - esac
  18843. - shared_flag='-shared'
  18844. - if test "$aix_use_runtimelinking" = yes; then
  18845. - shared_flag="$shared_flag "'${wl}-G'
  18846. - fi
  18847. - else
  18848. - # not using gcc
  18849. - if test "$host_cpu" = ia64; then
  18850. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  18851. - # chokes on -Wl,-G. The following line is correct:
  18852. - shared_flag='-G'
  18853. - else
  18854. - if test "$aix_use_runtimelinking" = yes; then
  18855. - shared_flag='${wl}-G'
  18856. - else
  18857. - shared_flag='${wl}-bM:SRE'
  18858. - fi
  18859. - fi
  18860. - fi
  18861. - # It seems that -bexpall does not export symbols beginning with
  18862. - # underscore (_), so it is better to generate a list of symbols to export.
  18863. - always_export_symbols=yes
  18864. - if test "$aix_use_runtimelinking" = yes; then
  18865. - # Warning - without using the other runtime loading flags (-brtl),
  18866. - # -berok will link without error, but may produce a broken library.
  18867. - allow_undefined_flag='-berok'
  18868. - # Determine the default libpath from the value encoded in an empty executable.
  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. +fi
  18876. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  18877. + ac_ct_DSYMUTIL=$DSYMUTIL
  18878. + # Extract the first word of "dsymutil", so it can be a program name with args.
  18879. +set dummy dsymutil; ac_word=$2
  18880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18881. +$as_echo_n "checking for $ac_word... " >&6; }
  18882. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  18883. + $as_echo_n "(cached) " >&6
  18884. +else
  18885. + if test -n "$ac_ct_DSYMUTIL"; then
  18886. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  18887. +else
  18888. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18889. +for as_dir in $PATH
  18890. +do
  18891. + IFS=$as_save_IFS
  18892. + test -z "$as_dir" && as_dir=.
  18893. + for ac_exec_ext in '' $ac_executable_extensions; do
  18894. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18895. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  18896. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18897. + break 2
  18898. + fi
  18899. +done
  18900. + done
  18901. +IFS=$as_save_IFS
  18902. -int
  18903. -main ()
  18904. -{
  18905. +fi
  18906. +fi
  18907. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  18908. +if test -n "$ac_ct_DSYMUTIL"; then
  18909. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  18910. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  18911. +else
  18912. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18913. +$as_echo "no" >&6; }
  18914. +fi
  18915. - ;
  18916. - return 0;
  18917. -}
  18918. -_ACEOF
  18919. -rm -f conftest.$ac_objext conftest$ac_exeext
  18920. -if { (ac_try="$ac_link"
  18921. -case "(($ac_try" in
  18922. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18923. - *) ac_try_echo=$ac_try;;
  18924. + if test "x$ac_ct_DSYMUTIL" = x; then
  18925. + DSYMUTIL=":"
  18926. + else
  18927. + case $cross_compiling:$ac_tool_warned in
  18928. +yes:)
  18929. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18930. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18931. +ac_tool_warned=yes ;;
  18932. esac
  18933. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18934. - (eval "$ac_link") 2>conftest.er1
  18935. - ac_status=$?
  18936. - grep -v '^ *+' conftest.er1 >conftest.err
  18937. - rm -f conftest.er1
  18938. - cat conftest.err >&5
  18939. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18940. - (exit $ac_status); } && {
  18941. - test -z "$ac_c_werror_flag" ||
  18942. - test ! -s conftest.err
  18943. - } && test -s conftest$ac_exeext &&
  18944. - $as_test_x conftest$ac_exeext; then
  18945. -
  18946. -lt_aix_libpath_sed='
  18947. - /Import File Strings/,/^$/ {
  18948. - /^0/ {
  18949. - s/^0 *\(.*\)$/\1/
  18950. - p
  18951. - }
  18952. - }'
  18953. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18954. -# Check for a 64-bit object if we didn't find anything.
  18955. -if test -z "$aix_libpath"; then
  18956. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18957. -fi
  18958. + DSYMUTIL=$ac_ct_DSYMUTIL
  18959. + fi
  18960. else
  18961. - echo "$as_me: failed program was:" >&5
  18962. -sed 's/^/| /' conftest.$ac_ext >&5
  18963. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  18964. +fi
  18965. + if test -n "$ac_tool_prefix"; then
  18966. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  18967. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  18968. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18969. +$as_echo_n "checking for $ac_word... " >&6; }
  18970. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  18971. + $as_echo_n "(cached) " >&6
  18972. +else
  18973. + if test -n "$NMEDIT"; then
  18974. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  18975. +else
  18976. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18977. +for as_dir in $PATH
  18978. +do
  18979. + IFS=$as_save_IFS
  18980. + test -z "$as_dir" && as_dir=.
  18981. + for ac_exec_ext in '' $ac_executable_extensions; do
  18982. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18983. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  18984. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18985. + break 2
  18986. + fi
  18987. +done
  18988. + done
  18989. +IFS=$as_save_IFS
  18990. fi
  18991. +fi
  18992. +NMEDIT=$ac_cv_prog_NMEDIT
  18993. +if test -n "$NMEDIT"; then
  18994. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  18995. +$as_echo "$NMEDIT" >&6; }
  18996. +else
  18997. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18998. +$as_echo "no" >&6; }
  18999. +fi
  19000. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19001. - conftest$ac_exeext conftest.$ac_ext
  19002. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  19003. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  19004. - 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"
  19005. - else
  19006. - if test "$host_cpu" = ia64; then
  19007. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  19008. - allow_undefined_flag="-z nodefs"
  19009. - 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"
  19010. - else
  19011. - # Determine the default libpath from the value encoded in an empty executable.
  19012. - cat >conftest.$ac_ext <<_ACEOF
  19013. -/* confdefs.h. */
  19014. -_ACEOF
  19015. -cat confdefs.h >>conftest.$ac_ext
  19016. -cat >>conftest.$ac_ext <<_ACEOF
  19017. -/* end confdefs.h. */
  19018. +fi
  19019. +if test -z "$ac_cv_prog_NMEDIT"; then
  19020. + ac_ct_NMEDIT=$NMEDIT
  19021. + # Extract the first word of "nmedit", so it can be a program name with args.
  19022. +set dummy nmedit; ac_word=$2
  19023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19024. +$as_echo_n "checking for $ac_word... " >&6; }
  19025. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  19026. + $as_echo_n "(cached) " >&6
  19027. +else
  19028. + if test -n "$ac_ct_NMEDIT"; then
  19029. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  19030. +else
  19031. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19032. +for as_dir in $PATH
  19033. +do
  19034. + IFS=$as_save_IFS
  19035. + test -z "$as_dir" && as_dir=.
  19036. + for ac_exec_ext in '' $ac_executable_extensions; do
  19037. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19038. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  19039. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19040. + break 2
  19041. + fi
  19042. +done
  19043. + done
  19044. +IFS=$as_save_IFS
  19045. -int
  19046. -main ()
  19047. -{
  19048. +fi
  19049. +fi
  19050. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  19051. +if test -n "$ac_ct_NMEDIT"; then
  19052. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  19053. +$as_echo "$ac_ct_NMEDIT" >&6; }
  19054. +else
  19055. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19056. +$as_echo "no" >&6; }
  19057. +fi
  19058. - ;
  19059. - return 0;
  19060. -}
  19061. -_ACEOF
  19062. -rm -f conftest.$ac_objext conftest$ac_exeext
  19063. -if { (ac_try="$ac_link"
  19064. -case "(($ac_try" in
  19065. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19066. - *) ac_try_echo=$ac_try;;
  19067. + if test "x$ac_ct_NMEDIT" = x; then
  19068. + NMEDIT=":"
  19069. + else
  19070. + case $cross_compiling:$ac_tool_warned in
  19071. +yes:)
  19072. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19073. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19074. +ac_tool_warned=yes ;;
  19075. esac
  19076. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19077. - (eval "$ac_link") 2>conftest.er1
  19078. - ac_status=$?
  19079. - grep -v '^ *+' conftest.er1 >conftest.err
  19080. - rm -f conftest.er1
  19081. - cat conftest.err >&5
  19082. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19083. - (exit $ac_status); } && {
  19084. - test -z "$ac_c_werror_flag" ||
  19085. - test ! -s conftest.err
  19086. - } && test -s conftest$ac_exeext &&
  19087. - $as_test_x conftest$ac_exeext; then
  19088. -
  19089. -lt_aix_libpath_sed='
  19090. - /Import File Strings/,/^$/ {
  19091. - /^0/ {
  19092. - s/^0 *\(.*\)$/\1/
  19093. - p
  19094. - }
  19095. - }'
  19096. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  19097. -# Check for a 64-bit object if we didn't find anything.
  19098. -if test -z "$aix_libpath"; then
  19099. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  19100. -fi
  19101. + NMEDIT=$ac_ct_NMEDIT
  19102. + fi
  19103. else
  19104. - echo "$as_me: failed program was:" >&5
  19105. -sed 's/^/| /' conftest.$ac_ext >&5
  19106. + NMEDIT="$ac_cv_prog_NMEDIT"
  19107. +fi
  19108. + if test -n "$ac_tool_prefix"; then
  19109. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  19110. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  19111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19112. +$as_echo_n "checking for $ac_word... " >&6; }
  19113. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  19114. + $as_echo_n "(cached) " >&6
  19115. +else
  19116. + if test -n "$LIPO"; then
  19117. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  19118. +else
  19119. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19120. +for as_dir in $PATH
  19121. +do
  19122. + IFS=$as_save_IFS
  19123. + test -z "$as_dir" && as_dir=.
  19124. + for ac_exec_ext in '' $ac_executable_extensions; do
  19125. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19126. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  19127. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19128. + break 2
  19129. + fi
  19130. +done
  19131. + done
  19132. +IFS=$as_save_IFS
  19133. fi
  19134. +fi
  19135. +LIPO=$ac_cv_prog_LIPO
  19136. +if test -n "$LIPO"; then
  19137. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  19138. +$as_echo "$LIPO" >&6; }
  19139. +else
  19140. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19141. +$as_echo "no" >&6; }
  19142. +fi
  19143. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19144. - conftest$ac_exeext conftest.$ac_ext
  19145. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  19146. -
  19147. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  19148. - # Warning - without using the other run time loading flags,
  19149. - # -berok will link without error, but may produce a broken library.
  19150. - no_undefined_flag=' ${wl}-bernotok'
  19151. - allow_undefined_flag=' ${wl}-berok'
  19152. - # Exported symbols can be pulled into shared objects from archives
  19153. - whole_archive_flag_spec='$convenience'
  19154. - archive_cmds_need_lc=yes
  19155. - # This is similar to how AIX traditionally builds its shared libraries.
  19156. - 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'
  19157. - fi
  19158. - fi
  19159. - ;;
  19160. -
  19161. - amigaos*)
  19162. - 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)'
  19163. - hardcode_libdir_flag_spec='-L$libdir'
  19164. - hardcode_minus_L=yes
  19165. - # see comment about different semantics on the GNU ld section
  19166. - ld_shlibs=no
  19167. - ;;
  19168. - bsdi[45]*)
  19169. - export_dynamic_flag_spec=-rdynamic
  19170. - ;;
  19171. +fi
  19172. +if test -z "$ac_cv_prog_LIPO"; then
  19173. + ac_ct_LIPO=$LIPO
  19174. + # Extract the first word of "lipo", so it can be a program name with args.
  19175. +set dummy lipo; ac_word=$2
  19176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19177. +$as_echo_n "checking for $ac_word... " >&6; }
  19178. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  19179. + $as_echo_n "(cached) " >&6
  19180. +else
  19181. + if test -n "$ac_ct_LIPO"; then
  19182. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  19183. +else
  19184. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19185. +for as_dir in $PATH
  19186. +do
  19187. + IFS=$as_save_IFS
  19188. + test -z "$as_dir" && as_dir=.
  19189. + for ac_exec_ext in '' $ac_executable_extensions; do
  19190. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19191. + ac_cv_prog_ac_ct_LIPO="lipo"
  19192. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19193. + break 2
  19194. + fi
  19195. +done
  19196. + done
  19197. +IFS=$as_save_IFS
  19198. - cygwin* | mingw* | pw32*)
  19199. - # When not using gcc, we currently assume that we are using
  19200. - # Microsoft Visual C++.
  19201. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  19202. - # no search path for DLLs.
  19203. - hardcode_libdir_flag_spec=' '
  19204. - allow_undefined_flag=unsupported
  19205. - # Tell ltmain to make .lib files, not .a files.
  19206. - libext=lib
  19207. - # Tell ltmain to make .dll files, not .so files.
  19208. - shrext_cmds=".dll"
  19209. - # FIXME: Setting linknames here is a bad hack.
  19210. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  19211. - # The linker will automatically build a .lib file if we build a DLL.
  19212. - old_archive_From_new_cmds='true'
  19213. - # FIXME: Should let the user specify the lib program.
  19214. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  19215. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  19216. - enable_shared_with_static_runtimes=yes
  19217. - ;;
  19218. +fi
  19219. +fi
  19220. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  19221. +if test -n "$ac_ct_LIPO"; then
  19222. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  19223. +$as_echo "$ac_ct_LIPO" >&6; }
  19224. +else
  19225. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19226. +$as_echo "no" >&6; }
  19227. +fi
  19228. - darwin* | rhapsody*)
  19229. - case $host_os in
  19230. - rhapsody* | darwin1.[012])
  19231. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  19232. - ;;
  19233. - *) # Darwin 1.3 on
  19234. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  19235. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19236. - else
  19237. - case ${MACOSX_DEPLOYMENT_TARGET} in
  19238. - 10.[012])
  19239. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19240. - ;;
  19241. - 10.*)
  19242. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  19243. - ;;
  19244. - esac
  19245. - fi
  19246. - ;;
  19247. - esac
  19248. - archive_cmds_need_lc=no
  19249. - hardcode_direct=no
  19250. - hardcode_automatic=yes
  19251. - hardcode_shlibpath_var=unsupported
  19252. - whole_archive_flag_spec=''
  19253. - link_all_deplibs=yes
  19254. - if test "$GCC" = yes ; then
  19255. - output_verbose_link_cmd='echo'
  19256. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  19257. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  19258. - 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}"
  19259. - 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}"
  19260. - else
  19261. - case $cc_basename in
  19262. - xlc*)
  19263. - output_verbose_link_cmd='echo'
  19264. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  19265. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19266. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  19267. - 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}'
  19268. - 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}'
  19269. - ;;
  19270. - *)
  19271. - ld_shlibs=no
  19272. - ;;
  19273. - esac
  19274. - fi
  19275. - ;;
  19276. + if test "x$ac_ct_LIPO" = x; then
  19277. + LIPO=":"
  19278. + else
  19279. + case $cross_compiling:$ac_tool_warned in
  19280. +yes:)
  19281. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19282. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19283. +ac_tool_warned=yes ;;
  19284. +esac
  19285. + LIPO=$ac_ct_LIPO
  19286. + fi
  19287. +else
  19288. + LIPO="$ac_cv_prog_LIPO"
  19289. +fi
  19290. - dgux*)
  19291. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19292. - hardcode_libdir_flag_spec='-L$libdir'
  19293. - hardcode_shlibpath_var=no
  19294. - ;;
  19295. + if test -n "$ac_tool_prefix"; then
  19296. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  19297. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  19298. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19299. +$as_echo_n "checking for $ac_word... " >&6; }
  19300. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  19301. + $as_echo_n "(cached) " >&6
  19302. +else
  19303. + if test -n "$OTOOL"; then
  19304. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  19305. +else
  19306. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19307. +for as_dir in $PATH
  19308. +do
  19309. + IFS=$as_save_IFS
  19310. + test -z "$as_dir" && as_dir=.
  19311. + for ac_exec_ext in '' $ac_executable_extensions; do
  19312. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19313. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  19314. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19315. + break 2
  19316. + fi
  19317. +done
  19318. + done
  19319. +IFS=$as_save_IFS
  19320. - freebsd1*)
  19321. - ld_shlibs=no
  19322. - ;;
  19323. +fi
  19324. +fi
  19325. +OTOOL=$ac_cv_prog_OTOOL
  19326. +if test -n "$OTOOL"; then
  19327. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  19328. +$as_echo "$OTOOL" >&6; }
  19329. +else
  19330. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19331. +$as_echo "no" >&6; }
  19332. +fi
  19333. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  19334. - # support. Future versions do this automatically, but an explicit c++rt0.o
  19335. - # does not break anything, and helps significantly (at the cost of a little
  19336. - # extra space).
  19337. - freebsd2.2*)
  19338. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  19339. - hardcode_libdir_flag_spec='-R$libdir'
  19340. - hardcode_direct=yes
  19341. - hardcode_shlibpath_var=no
  19342. - ;;
  19343. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  19344. - freebsd2*)
  19345. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  19346. - hardcode_direct=yes
  19347. - hardcode_minus_L=yes
  19348. - hardcode_shlibpath_var=no
  19349. - ;;
  19350. +fi
  19351. +if test -z "$ac_cv_prog_OTOOL"; then
  19352. + ac_ct_OTOOL=$OTOOL
  19353. + # Extract the first word of "otool", so it can be a program name with args.
  19354. +set dummy otool; ac_word=$2
  19355. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19356. +$as_echo_n "checking for $ac_word... " >&6; }
  19357. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  19358. + $as_echo_n "(cached) " >&6
  19359. +else
  19360. + if test -n "$ac_ct_OTOOL"; then
  19361. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  19362. +else
  19363. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19364. +for as_dir in $PATH
  19365. +do
  19366. + IFS=$as_save_IFS
  19367. + test -z "$as_dir" && as_dir=.
  19368. + for ac_exec_ext in '' $ac_executable_extensions; do
  19369. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19370. + ac_cv_prog_ac_ct_OTOOL="otool"
  19371. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19372. + break 2
  19373. + fi
  19374. +done
  19375. + done
  19376. +IFS=$as_save_IFS
  19377. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  19378. - freebsd* | dragonfly*)
  19379. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  19380. - hardcode_libdir_flag_spec='-R$libdir'
  19381. - hardcode_direct=yes
  19382. - hardcode_shlibpath_var=no
  19383. - ;;
  19384. +fi
  19385. +fi
  19386. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  19387. +if test -n "$ac_ct_OTOOL"; then
  19388. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  19389. +$as_echo "$ac_ct_OTOOL" >&6; }
  19390. +else
  19391. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19392. +$as_echo "no" >&6; }
  19393. +fi
  19394. - hpux9*)
  19395. - if test "$GCC" = yes; then
  19396. - 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'
  19397. - else
  19398. - 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'
  19399. - fi
  19400. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  19401. - hardcode_libdir_separator=:
  19402. - hardcode_direct=yes
  19403. + if test "x$ac_ct_OTOOL" = x; then
  19404. + OTOOL=":"
  19405. + else
  19406. + case $cross_compiling:$ac_tool_warned in
  19407. +yes:)
  19408. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19409. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19410. +ac_tool_warned=yes ;;
  19411. +esac
  19412. + OTOOL=$ac_ct_OTOOL
  19413. + fi
  19414. +else
  19415. + OTOOL="$ac_cv_prog_OTOOL"
  19416. +fi
  19417. - # hardcode_minus_L: Not really in the search PATH,
  19418. - # but as the default location of the library.
  19419. - hardcode_minus_L=yes
  19420. - export_dynamic_flag_spec='${wl}-E'
  19421. - ;;
  19422. + if test -n "$ac_tool_prefix"; then
  19423. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  19424. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  19425. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19426. +$as_echo_n "checking for $ac_word... " >&6; }
  19427. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  19428. + $as_echo_n "(cached) " >&6
  19429. +else
  19430. + if test -n "$OTOOL64"; then
  19431. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  19432. +else
  19433. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19434. +for as_dir in $PATH
  19435. +do
  19436. + IFS=$as_save_IFS
  19437. + test -z "$as_dir" && as_dir=.
  19438. + for ac_exec_ext in '' $ac_executable_extensions; do
  19439. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19440. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  19441. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19442. + break 2
  19443. + fi
  19444. +done
  19445. + done
  19446. +IFS=$as_save_IFS
  19447. - hpux10*)
  19448. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  19449. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  19450. - else
  19451. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  19452. - fi
  19453. - if test "$with_gnu_ld" = no; then
  19454. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  19455. - hardcode_libdir_separator=:
  19456. +fi
  19457. +fi
  19458. +OTOOL64=$ac_cv_prog_OTOOL64
  19459. +if test -n "$OTOOL64"; then
  19460. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  19461. +$as_echo "$OTOOL64" >&6; }
  19462. +else
  19463. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19464. +$as_echo "no" >&6; }
  19465. +fi
  19466. - hardcode_direct=yes
  19467. - export_dynamic_flag_spec='${wl}-E'
  19468. - # hardcode_minus_L: Not really in the search PATH,
  19469. - # but as the default location of the library.
  19470. - hardcode_minus_L=yes
  19471. - fi
  19472. - ;;
  19473. +fi
  19474. +if test -z "$ac_cv_prog_OTOOL64"; then
  19475. + ac_ct_OTOOL64=$OTOOL64
  19476. + # Extract the first word of "otool64", so it can be a program name with args.
  19477. +set dummy otool64; ac_word=$2
  19478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19479. +$as_echo_n "checking for $ac_word... " >&6; }
  19480. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  19481. + $as_echo_n "(cached) " >&6
  19482. +else
  19483. + if test -n "$ac_ct_OTOOL64"; then
  19484. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  19485. +else
  19486. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19487. +for as_dir in $PATH
  19488. +do
  19489. + IFS=$as_save_IFS
  19490. + test -z "$as_dir" && as_dir=.
  19491. + for ac_exec_ext in '' $ac_executable_extensions; do
  19492. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19493. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  19494. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19495. + break 2
  19496. + fi
  19497. +done
  19498. + done
  19499. +IFS=$as_save_IFS
  19500. - hpux11*)
  19501. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  19502. - case $host_cpu in
  19503. - hppa*64*)
  19504. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19505. - ;;
  19506. - ia64*)
  19507. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  19508. - ;;
  19509. - *)
  19510. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  19511. - ;;
  19512. - esac
  19513. - else
  19514. - case $host_cpu in
  19515. - hppa*64*)
  19516. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19517. - ;;
  19518. - ia64*)
  19519. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  19520. - ;;
  19521. - *)
  19522. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  19523. - ;;
  19524. - esac
  19525. - fi
  19526. - if test "$with_gnu_ld" = no; then
  19527. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  19528. - hardcode_libdir_separator=:
  19529. +fi
  19530. +fi
  19531. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  19532. +if test -n "$ac_ct_OTOOL64"; then
  19533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  19534. +$as_echo "$ac_ct_OTOOL64" >&6; }
  19535. +else
  19536. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19537. +$as_echo "no" >&6; }
  19538. +fi
  19539. - case $host_cpu in
  19540. - hppa*64*|ia64*)
  19541. - hardcode_libdir_flag_spec_ld='+b $libdir'
  19542. - hardcode_direct=no
  19543. - hardcode_shlibpath_var=no
  19544. - ;;
  19545. - *)
  19546. - hardcode_direct=yes
  19547. - export_dynamic_flag_spec='${wl}-E'
  19548. + if test "x$ac_ct_OTOOL64" = x; then
  19549. + OTOOL64=":"
  19550. + else
  19551. + case $cross_compiling:$ac_tool_warned in
  19552. +yes:)
  19553. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19554. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19555. +ac_tool_warned=yes ;;
  19556. +esac
  19557. + OTOOL64=$ac_ct_OTOOL64
  19558. + fi
  19559. +else
  19560. + OTOOL64="$ac_cv_prog_OTOOL64"
  19561. +fi
  19562. - # hardcode_minus_L: Not really in the search PATH,
  19563. - # but as the default location of the library.
  19564. - hardcode_minus_L=yes
  19565. - ;;
  19566. - esac
  19567. - fi
  19568. - ;;
  19569. - irix5* | irix6* | nonstopux*)
  19570. - if test "$GCC" = yes; then
  19571. - 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'
  19572. - else
  19573. - 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'
  19574. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  19575. - fi
  19576. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19577. - hardcode_libdir_separator=:
  19578. - link_all_deplibs=yes
  19579. - ;;
  19580. - netbsd*)
  19581. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19582. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  19583. - else
  19584. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  19585. - fi
  19586. - hardcode_libdir_flag_spec='-R$libdir'
  19587. - hardcode_direct=yes
  19588. - hardcode_shlibpath_var=no
  19589. - ;;
  19590. - newsos6)
  19591. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19592. - hardcode_direct=yes
  19593. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19594. - hardcode_libdir_separator=:
  19595. - hardcode_shlibpath_var=no
  19596. - ;;
  19597. - openbsd*)
  19598. - if test -f /usr/libexec/ld.so; then
  19599. - hardcode_direct=yes
  19600. - hardcode_shlibpath_var=no
  19601. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19602. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  19603. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  19604. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  19605. - export_dynamic_flag_spec='${wl}-E'
  19606. - else
  19607. - case $host_os in
  19608. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  19609. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  19610. - hardcode_libdir_flag_spec='-R$libdir'
  19611. - ;;
  19612. - *)
  19613. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  19614. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  19615. - ;;
  19616. - esac
  19617. - fi
  19618. - else
  19619. - ld_shlibs=no
  19620. - fi
  19621. - ;;
  19622. - os2*)
  19623. - hardcode_libdir_flag_spec='-L$libdir'
  19624. - hardcode_minus_L=yes
  19625. - allow_undefined_flag=unsupported
  19626. - 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'
  19627. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  19628. - ;;
  19629. - osf3*)
  19630. - if test "$GCC" = yes; then
  19631. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  19632. - 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'
  19633. - else
  19634. - allow_undefined_flag=' -expect_unresolved \*'
  19635. - 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'
  19636. - fi
  19637. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19638. - hardcode_libdir_separator=:
  19639. - ;;
  19640. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  19641. - if test "$GCC" = yes; then
  19642. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  19643. - 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'
  19644. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19645. - else
  19646. - allow_undefined_flag=' -expect_unresolved \*'
  19647. - 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'
  19648. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  19649. - $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'
  19650. - # Both c and cxx compiler support -rpath directly
  19651. - hardcode_libdir_flag_spec='-rpath $libdir'
  19652. - fi
  19653. - hardcode_libdir_separator=:
  19654. - ;;
  19655. - solaris*)
  19656. - no_undefined_flag=' -z text'
  19657. - if test "$GCC" = yes; then
  19658. - wlarc='${wl}'
  19659. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19660. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  19661. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  19662. - else
  19663. - wlarc=''
  19664. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19665. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  19666. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  19667. - fi
  19668. - hardcode_libdir_flag_spec='-R$libdir'
  19669. - hardcode_shlibpath_var=no
  19670. - case $host_os in
  19671. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  19672. - *)
  19673. - # The compiler driver will combine and reorder linker options,
  19674. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  19675. - # but is careful enough not to reorder.
  19676. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  19677. - if test "$GCC" = yes; then
  19678. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  19679. - else
  19680. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  19681. - fi
  19682. - ;;
  19683. - esac
  19684. - link_all_deplibs=yes
  19685. - ;;
  19686. - sunos4*)
  19687. - if test "x$host_vendor" = xsequent; then
  19688. - # Use $CC to link under sequent, because it throws in some extra .o
  19689. - # files that make .init and .fini sections work.
  19690. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  19691. - else
  19692. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  19693. - fi
  19694. - hardcode_libdir_flag_spec='-L$libdir'
  19695. - hardcode_direct=yes
  19696. - hardcode_minus_L=yes
  19697. - hardcode_shlibpath_var=no
  19698. - ;;
  19699. - sysv4)
  19700. - case $host_vendor in
  19701. - sni)
  19702. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19703. - hardcode_direct=yes # is this really true???
  19704. - ;;
  19705. - siemens)
  19706. - ## LD is ld it makes a PLAMLIB
  19707. - ## CC just makes a GrossModule.
  19708. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  19709. - reload_cmds='$CC -r -o $output$reload_objs'
  19710. - hardcode_direct=no
  19711. - ;;
  19712. - motorola)
  19713. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19714. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  19715. - ;;
  19716. - esac
  19717. - runpath_var='LD_RUN_PATH'
  19718. - hardcode_shlibpath_var=no
  19719. - ;;
  19720. - sysv4.3*)
  19721. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19722. - hardcode_shlibpath_var=no
  19723. - export_dynamic_flag_spec='-Bexport'
  19724. - ;;
  19725. - sysv4*MP*)
  19726. - if test -d /usr/nec; then
  19727. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19728. - hardcode_shlibpath_var=no
  19729. - runpath_var=LD_RUN_PATH
  19730. - hardcode_runpath_var=yes
  19731. - ld_shlibs=yes
  19732. - fi
  19733. - ;;
  19734. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  19735. - no_undefined_flag='${wl}-z,text'
  19736. - archive_cmds_need_lc=no
  19737. - hardcode_shlibpath_var=no
  19738. - runpath_var='LD_RUN_PATH'
  19739. - if test "$GCC" = yes; then
  19740. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19741. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19742. - else
  19743. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19744. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19745. - fi
  19746. - ;;
  19747. - sysv5* | sco3.2v5* | sco5v6*)
  19748. - # Note: We can NOT use -z defs as we might desire, because we do not
  19749. - # link with -lc, and that would cause any symbols used from libc to
  19750. - # always be unresolved, which means just about no library would
  19751. - # ever link correctly. If we're not using GNU ld we use -z text
  19752. - # though, which does catch some bad symbols but isn't as heavy-handed
  19753. - # as -z defs.
  19754. - no_undefined_flag='${wl}-z,text'
  19755. - allow_undefined_flag='${wl}-z,nodefs'
  19756. - archive_cmds_need_lc=no
  19757. - hardcode_shlibpath_var=no
  19758. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  19759. - hardcode_libdir_separator=':'
  19760. - link_all_deplibs=yes
  19761. - export_dynamic_flag_spec='${wl}-Bexport'
  19762. - runpath_var='LD_RUN_PATH'
  19763. - if test "$GCC" = yes; then
  19764. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19765. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19766. - else
  19767. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19768. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19769. - fi
  19770. - ;;
  19771. - uts4*)
  19772. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19773. - hardcode_libdir_flag_spec='-L$libdir'
  19774. - hardcode_shlibpath_var=no
  19775. - ;;
  19776. - *)
  19777. - ld_shlibs=no
  19778. - ;;
  19779. - esac
  19780. - fi
  19781. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  19782. -echo "${ECHO_T}$ld_shlibs" >&6; }
  19783. -test "$ld_shlibs" = no && can_build_shared=no
  19784. -#
  19785. -# Do we need to explicitly link libc?
  19786. -#
  19787. -case "x$archive_cmds_need_lc" in
  19788. -x|xyes)
  19789. - # Assume -lc should be added
  19790. - archive_cmds_need_lc=yes
  19791. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  19792. - case $archive_cmds in
  19793. - *'~'*)
  19794. - # FIXME: we may have to deal with multi-command sequences.
  19795. - ;;
  19796. - '$CC '*)
  19797. - # Test whether the compiler implicitly links with -lc since on some
  19798. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  19799. - # to ld, don't add -lc before -lgcc.
  19800. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  19801. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  19802. - $rm conftest*
  19803. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19804. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19805. - (eval $ac_compile) 2>&5
  19806. - ac_status=$?
  19807. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19808. - (exit $ac_status); } 2>conftest.err; then
  19809. - soname=conftest
  19810. - lib=conftest
  19811. - libobjs=conftest.$ac_objext
  19812. - deplibs=
  19813. - wl=$lt_prog_compiler_wl
  19814. - pic_flag=$lt_prog_compiler_pic
  19815. - compiler_flags=-v
  19816. - linker_flags=-v
  19817. - verstring=
  19818. - output_objdir=.
  19819. - libname=conftest
  19820. - lt_save_allow_undefined_flag=$allow_undefined_flag
  19821. - allow_undefined_flag=
  19822. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  19823. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  19824. - ac_status=$?
  19825. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19826. - (exit $ac_status); }
  19827. - then
  19828. - archive_cmds_need_lc=no
  19829. - else
  19830. - archive_cmds_need_lc=yes
  19831. - fi
  19832. - allow_undefined_flag=$lt_save_allow_undefined_flag
  19833. - else
  19834. - cat conftest.err 1>&5
  19835. - fi
  19836. - $rm conftest*
  19837. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  19838. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  19839. - ;;
  19840. - esac
  19841. - fi
  19842. - ;;
  19843. -esac
  19844. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  19845. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  19846. -library_names_spec=
  19847. -libname_spec='lib$name'
  19848. -soname_spec=
  19849. -shrext_cmds=".so"
  19850. -postinstall_cmds=
  19851. -postuninstall_cmds=
  19852. -finish_cmds=
  19853. -finish_eval=
  19854. -shlibpath_var=
  19855. -shlibpath_overrides_runpath=unknown
  19856. -version_type=none
  19857. -dynamic_linker="$host_os ld.so"
  19858. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  19859. -if test "$GCC" = yes; then
  19860. - case $host_os in
  19861. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  19862. - *) lt_awk_arg="/^libraries:/" ;;
  19863. - esac
  19864. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19865. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  19866. - # if the path contains ";" then we assume it to be the separator
  19867. - # otherwise default to the standard path separator (i.e. ":") - it is
  19868. - # assumed that no part of a normal pathname contains ";" but that should
  19869. - # okay in the real world where ";" in dirpaths is itself problematic.
  19870. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  19871. - else
  19872. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19873. - fi
  19874. - # Ok, now we have the path, separated by spaces, we can step through it
  19875. - # and add multilib dir if necessary.
  19876. - lt_tmp_lt_search_path_spec=
  19877. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  19878. - for lt_sys_path in $lt_search_path_spec; do
  19879. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  19880. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  19881. - else
  19882. - test -d "$lt_sys_path" && \
  19883. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  19884. - fi
  19885. - done
  19886. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  19887. -BEGIN {RS=" "; FS="/|\n";} {
  19888. - lt_foo="";
  19889. - lt_count=0;
  19890. - for (lt_i = NF; lt_i > 0; lt_i--) {
  19891. - if ($lt_i != "" && $lt_i != ".") {
  19892. - if ($lt_i == "..") {
  19893. - lt_count++;
  19894. - } else {
  19895. - if (lt_count == 0) {
  19896. - lt_foo="/" $lt_i lt_foo;
  19897. - } else {
  19898. - lt_count--;
  19899. - }
  19900. - }
  19901. - }
  19902. - }
  19903. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  19904. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  19905. -}'`
  19906. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  19907. +
  19908. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  19909. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  19910. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  19911. + $as_echo_n "(cached) " >&6
  19912. else
  19913. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  19914. + lt_cv_apple_cc_single_mod=no
  19915. + if test -z "${LT_MULTI_MODULE}"; then
  19916. + # By default we will add the -single_module flag. You can override
  19917. + # by either setting the environment variable LT_MULTI_MODULE
  19918. + # non-empty at configure time, or by adding -multi_module to the
  19919. + # link flags.
  19920. + rm -rf libconftest.dylib*
  19921. + echo "int foo(void){return 1;}" > conftest.c
  19922. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  19923. +-dynamiclib -Wl,-single_module conftest.c" >&5
  19924. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  19925. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  19926. + _lt_result=$?
  19927. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  19928. + lt_cv_apple_cc_single_mod=yes
  19929. + else
  19930. + cat conftest.err >&5
  19931. + fi
  19932. + rm -rf libconftest.dylib*
  19933. + rm -f conftest.*
  19934. + fi
  19935. fi
  19936. -need_lib_prefix=unknown
  19937. -hardcode_into_libs=no
  19938. -
  19939. -# when you set need_version to no, make sure it does not cause -set_version
  19940. -# flags to be left without arguments
  19941. -need_version=unknown
  19942. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  19943. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  19944. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  19945. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  19946. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  19947. + $as_echo_n "(cached) " >&6
  19948. +else
  19949. + lt_cv_ld_exported_symbols_list=no
  19950. + save_LDFLAGS=$LDFLAGS
  19951. + echo "_main" > conftest.sym
  19952. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  19953. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19954. +/* end confdefs.h. */
  19955. -case $host_os in
  19956. -aix3*)
  19957. - version_type=linux
  19958. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  19959. - shlibpath_var=LIBPATH
  19960. +int
  19961. +main ()
  19962. +{
  19963. - # AIX 3 has no versioning support, so we append a major version to the name.
  19964. - soname_spec='${libname}${release}${shared_ext}$major'
  19965. - ;;
  19966. + ;
  19967. + return 0;
  19968. +}
  19969. +_ACEOF
  19970. +if ac_fn_c_try_link "$LINENO"; then :
  19971. + lt_cv_ld_exported_symbols_list=yes
  19972. +else
  19973. + lt_cv_ld_exported_symbols_list=no
  19974. +fi
  19975. +rm -f core conftest.err conftest.$ac_objext \
  19976. + conftest$ac_exeext conftest.$ac_ext
  19977. + LDFLAGS="$save_LDFLAGS"
  19978. -aix[4-9]*)
  19979. - version_type=linux
  19980. - need_lib_prefix=no
  19981. - need_version=no
  19982. - hardcode_into_libs=yes
  19983. - if test "$host_cpu" = ia64; then
  19984. - # AIX 5 supports IA64
  19985. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  19986. - shlibpath_var=LD_LIBRARY_PATH
  19987. - else
  19988. - # With GCC up to 2.95.x, collect2 would create an import file
  19989. - # for dependence libraries. The import file would start with
  19990. - # the line `#! .'. This would cause the generated library to
  19991. - # depend on `.', always an invalid library. This was fixed in
  19992. - # development snapshots of GCC prior to 3.0.
  19993. +fi
  19994. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  19995. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  19996. case $host_os in
  19997. - aix4 | aix4.[01] | aix4.[01].*)
  19998. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  19999. - echo ' yes '
  20000. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  20001. - :
  20002. - else
  20003. - can_build_shared=no
  20004. - fi
  20005. - ;;
  20006. - esac
  20007. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  20008. - # soname into executable. Probably we can add versioning support to
  20009. - # collect2, so additional links can be useful in future.
  20010. - if test "$aix_use_runtimelinking" = yes; then
  20011. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  20012. - # instead of lib<name>.a to let people know that these are not
  20013. - # typical AIX shared libraries.
  20014. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20015. + rhapsody* | darwin1.[012])
  20016. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  20017. + darwin1.*)
  20018. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  20019. + darwin*) # darwin 5.x on
  20020. + # if running on 10.5 or later, the deployment target defaults
  20021. + # to the OS version, if on x86, and 10.4, the deployment
  20022. + # target defaults to 10.4. Don't you love it?
  20023. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  20024. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  20025. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  20026. + 10.[012]*)
  20027. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  20028. + 10.*)
  20029. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  20030. + esac
  20031. + ;;
  20032. + esac
  20033. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  20034. + _lt_dar_single_mod='$single_module'
  20035. + fi
  20036. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  20037. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  20038. else
  20039. - # We preserve .a as extension for shared libraries through AIX4.2
  20040. - # and later when we are not doing run time linking.
  20041. - library_names_spec='${libname}${release}.a $libname.a'
  20042. - soname_spec='${libname}${release}${shared_ext}$major'
  20043. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  20044. fi
  20045. - shlibpath_var=LIBPATH
  20046. - fi
  20047. - ;;
  20048. + if test "$DSYMUTIL" != ":"; then
  20049. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  20050. + else
  20051. + _lt_dsymutil=
  20052. + fi
  20053. + ;;
  20054. + esac
  20055. -amigaos*)
  20056. - library_names_spec='$libname.ixlibrary $libname.a'
  20057. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  20058. - 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'
  20059. - ;;
  20060. -beos*)
  20061. - library_names_spec='${libname}${shared_ext}'
  20062. - dynamic_linker="$host_os ld.so"
  20063. - shlibpath_var=LIBRARY_PATH
  20064. - ;;
  20065. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  20066. +$as_echo_n "checking for ANSI C header files... " >&6; }
  20067. +if test "${ac_cv_header_stdc+set}" = set; then :
  20068. + $as_echo_n "(cached) " >&6
  20069. +else
  20070. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20071. +/* end confdefs.h. */
  20072. +#include <stdlib.h>
  20073. +#include <stdarg.h>
  20074. +#include <string.h>
  20075. +#include <float.h>
  20076. -bsdi[45]*)
  20077. - version_type=linux
  20078. - need_version=no
  20079. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20080. - soname_spec='${libname}${release}${shared_ext}$major'
  20081. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  20082. - shlibpath_var=LD_LIBRARY_PATH
  20083. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  20084. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  20085. - # the default ld.so.conf also contains /usr/contrib/lib and
  20086. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  20087. - # libtool to hard-code these into programs
  20088. - ;;
  20089. +int
  20090. +main ()
  20091. +{
  20092. -cygwin* | mingw* | pw32*)
  20093. - version_type=windows
  20094. - shrext_cmds=".dll"
  20095. - need_version=no
  20096. - need_lib_prefix=no
  20097. + ;
  20098. + return 0;
  20099. +}
  20100. +_ACEOF
  20101. +if ac_fn_c_try_compile "$LINENO"; then :
  20102. + ac_cv_header_stdc=yes
  20103. +else
  20104. + ac_cv_header_stdc=no
  20105. +fi
  20106. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20107. - case $GCC,$host_os in
  20108. - yes,cygwin* | yes,mingw* | yes,pw32*)
  20109. - library_names_spec='$libname.dll.a'
  20110. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  20111. - postinstall_cmds='base_file=`basename \${file}`~
  20112. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  20113. - dldir=$destdir/`dirname \$dlpath`~
  20114. - test -d \$dldir || mkdir -p \$dldir~
  20115. - $install_prog $dir/$dlname \$dldir/$dlname~
  20116. - chmod a+x \$dldir/$dlname'
  20117. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  20118. - dlpath=$dir/\$dldll~
  20119. - $rm \$dlpath'
  20120. - shlibpath_overrides_runpath=yes
  20121. +if test $ac_cv_header_stdc = yes; then
  20122. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20123. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20124. +/* end confdefs.h. */
  20125. +#include <string.h>
  20126. - case $host_os in
  20127. - cygwin*)
  20128. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  20129. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20130. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  20131. - ;;
  20132. - mingw*)
  20133. - # MinGW DLLs use traditional 'lib' prefix
  20134. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20135. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20136. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  20137. - # It is most probably a Windows format PATH printed by
  20138. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  20139. - # path with ; separators, and with drive letters. We can handle the
  20140. - # drive letters (cygwin fileutils understands them), so leave them,
  20141. - # especially as we might pass files found there to a mingw objdump,
  20142. - # which wouldn't understand a cygwinified path. Ahh.
  20143. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20144. - else
  20145. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20146. - fi
  20147. - ;;
  20148. - pw32*)
  20149. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  20150. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20151. - ;;
  20152. - esac
  20153. - ;;
  20154. +_ACEOF
  20155. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20156. + $EGREP "memchr" >/dev/null 2>&1; then :
  20157. - *)
  20158. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  20159. - ;;
  20160. - esac
  20161. - dynamic_linker='Win32 ld.exe'
  20162. - # FIXME: first we should search . and the directory the executable is in
  20163. - shlibpath_var=PATH
  20164. - ;;
  20165. +else
  20166. + ac_cv_header_stdc=no
  20167. +fi
  20168. +rm -f conftest*
  20169. -darwin* | rhapsody*)
  20170. - dynamic_linker="$host_os dyld"
  20171. - version_type=darwin
  20172. - need_lib_prefix=no
  20173. - need_version=no
  20174. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  20175. - soname_spec='${libname}${release}${major}$shared_ext'
  20176. - shlibpath_overrides_runpath=yes
  20177. - shlibpath_var=DYLD_LIBRARY_PATH
  20178. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  20179. +fi
  20180. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  20181. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  20182. - ;;
  20183. +if test $ac_cv_header_stdc = yes; then
  20184. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20185. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20186. +/* end confdefs.h. */
  20187. +#include <stdlib.h>
  20188. -dgux*)
  20189. - version_type=linux
  20190. - need_lib_prefix=no
  20191. - need_version=no
  20192. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  20193. - soname_spec='${libname}${release}${shared_ext}$major'
  20194. - shlibpath_var=LD_LIBRARY_PATH
  20195. - ;;
  20196. +_ACEOF
  20197. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20198. + $EGREP "free" >/dev/null 2>&1; then :
  20199. -freebsd1*)
  20200. - dynamic_linker=no
  20201. - ;;
  20202. +else
  20203. + ac_cv_header_stdc=no
  20204. +fi
  20205. +rm -f conftest*
  20206. -freebsd* | dragonfly*)
  20207. - # DragonFly does not have aout. When/if they implement a new
  20208. - # versioning mechanism, adjust this.
  20209. - if test -x /usr/bin/objformat; then
  20210. - objformat=`/usr/bin/objformat`
  20211. - else
  20212. - case $host_os in
  20213. - freebsd[123]*) objformat=aout ;;
  20214. - *) objformat=elf ;;
  20215. - esac
  20216. - fi
  20217. - version_type=freebsd-$objformat
  20218. - case $version_type in
  20219. - freebsd-elf*)
  20220. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  20221. - need_version=no
  20222. - need_lib_prefix=no
  20223. - ;;
  20224. - freebsd-*)
  20225. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  20226. - need_version=yes
  20227. - ;;
  20228. - esac
  20229. - shlibpath_var=LD_LIBRARY_PATH
  20230. - case $host_os in
  20231. - freebsd2*)
  20232. - shlibpath_overrides_runpath=yes
  20233. - ;;
  20234. - freebsd3.[01]* | freebsdelf3.[01]*)
  20235. - shlibpath_overrides_runpath=yes
  20236. - hardcode_into_libs=yes
  20237. - ;;
  20238. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  20239. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  20240. - shlibpath_overrides_runpath=no
  20241. - hardcode_into_libs=yes
  20242. - ;;
  20243. - *) # from 4.6 on, and DragonFly
  20244. - shlibpath_overrides_runpath=yes
  20245. - hardcode_into_libs=yes
  20246. - ;;
  20247. - esac
  20248. - ;;
  20249. +fi
  20250. -gnu*)
  20251. - version_type=linux
  20252. - need_lib_prefix=no
  20253. - need_version=no
  20254. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  20255. - soname_spec='${libname}${release}${shared_ext}$major'
  20256. - shlibpath_var=LD_LIBRARY_PATH
  20257. - hardcode_into_libs=yes
  20258. - ;;
  20259. +if test $ac_cv_header_stdc = yes; then
  20260. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20261. + if test "$cross_compiling" = yes; then :
  20262. + :
  20263. +else
  20264. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20265. +/* end confdefs.h. */
  20266. +#include <ctype.h>
  20267. +#include <stdlib.h>
  20268. +#if ((' ' & 0x0FF) == 0x020)
  20269. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20270. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20271. +#else
  20272. +# define ISLOWER(c) \
  20273. + (('a' <= (c) && (c) <= 'i') \
  20274. + || ('j' <= (c) && (c) <= 'r') \
  20275. + || ('s' <= (c) && (c) <= 'z'))
  20276. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20277. +#endif
  20278. -hpux9* | hpux10* | hpux11*)
  20279. - # Give a soname corresponding to the major version so that dld.sl refuses to
  20280. - # link against other versions.
  20281. - version_type=sunos
  20282. - need_lib_prefix=no
  20283. - need_version=no
  20284. - case $host_cpu in
  20285. - ia64*)
  20286. - shrext_cmds='.so'
  20287. - hardcode_into_libs=yes
  20288. - dynamic_linker="$host_os dld.so"
  20289. - shlibpath_var=LD_LIBRARY_PATH
  20290. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20291. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20292. - soname_spec='${libname}${release}${shared_ext}$major'
  20293. - if test "X$HPUX_IA64_MODE" = X32; then
  20294. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  20295. - else
  20296. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  20297. - fi
  20298. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20299. - ;;
  20300. - hppa*64*)
  20301. - shrext_cmds='.sl'
  20302. - hardcode_into_libs=yes
  20303. - dynamic_linker="$host_os dld.sl"
  20304. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  20305. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20306. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20307. - soname_spec='${libname}${release}${shared_ext}$major'
  20308. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  20309. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20310. - ;;
  20311. - *)
  20312. - shrext_cmds='.sl'
  20313. - dynamic_linker="$host_os dld.sl"
  20314. - shlibpath_var=SHLIB_PATH
  20315. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  20316. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20317. - soname_spec='${libname}${release}${shared_ext}$major'
  20318. - ;;
  20319. - esac
  20320. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  20321. - postinstall_cmds='chmod 555 $lib'
  20322. - ;;
  20323. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20324. +int
  20325. +main ()
  20326. +{
  20327. + int i;
  20328. + for (i = 0; i < 256; i++)
  20329. + if (XOR (islower (i), ISLOWER (i))
  20330. + || toupper (i) != TOUPPER (i))
  20331. + return 2;
  20332. + return 0;
  20333. +}
  20334. +_ACEOF
  20335. +if ac_fn_c_try_run "$LINENO"; then :
  20336. -interix[3-9]*)
  20337. - version_type=linux
  20338. - need_lib_prefix=no
  20339. - need_version=no
  20340. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20341. - soname_spec='${libname}${release}${shared_ext}$major'
  20342. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  20343. - shlibpath_var=LD_LIBRARY_PATH
  20344. - shlibpath_overrides_runpath=no
  20345. - hardcode_into_libs=yes
  20346. - ;;
  20347. +else
  20348. + ac_cv_header_stdc=no
  20349. +fi
  20350. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20351. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20352. +fi
  20353. -irix5* | irix6* | nonstopux*)
  20354. - case $host_os in
  20355. - nonstopux*) version_type=nonstopux ;;
  20356. - *)
  20357. - if test "$lt_cv_prog_gnu_ld" = yes; then
  20358. - version_type=linux
  20359. - else
  20360. - version_type=irix
  20361. - fi ;;
  20362. - esac
  20363. - need_lib_prefix=no
  20364. - need_version=no
  20365. - soname_spec='${libname}${release}${shared_ext}$major'
  20366. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  20367. - case $host_os in
  20368. - irix5* | nonstopux*)
  20369. - libsuff= shlibsuff=
  20370. - ;;
  20371. - *)
  20372. - case $LD in # libtool.m4 will add one of these switches to LD
  20373. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  20374. - libsuff= shlibsuff= libmagic=32-bit;;
  20375. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  20376. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  20377. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  20378. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  20379. - *) libsuff= shlibsuff= libmagic=never-match;;
  20380. - esac
  20381. - ;;
  20382. - esac
  20383. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  20384. - shlibpath_overrides_runpath=no
  20385. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  20386. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  20387. - hardcode_into_libs=yes
  20388. - ;;
  20389. +fi
  20390. +fi
  20391. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  20392. +$as_echo "$ac_cv_header_stdc" >&6; }
  20393. +if test $ac_cv_header_stdc = yes; then
  20394. -# No shared lib support for Linux oldld, aout, or coff.
  20395. -linux*oldld* | linux*aout* | linux*coff*)
  20396. - dynamic_linker=no
  20397. - ;;
  20398. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  20399. -# This must be Linux ELF.
  20400. -linux* | k*bsd*-gnu)
  20401. - version_type=linux
  20402. - need_lib_prefix=no
  20403. - need_version=no
  20404. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20405. - soname_spec='${libname}${release}${shared_ext}$major'
  20406. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  20407. - shlibpath_var=LD_LIBRARY_PATH
  20408. - shlibpath_overrides_runpath=no
  20409. - # This implies no fast_install, which is unacceptable.
  20410. - # Some rework will be needed to allow for fast_install
  20411. - # before this can be enabled.
  20412. - hardcode_into_libs=yes
  20413. +fi
  20414. - # Append ld.so.conf contents to the search path
  20415. - if test -f /etc/ld.so.conf; then
  20416. - 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' ' '`
  20417. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  20418. - fi
  20419. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  20420. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  20421. + inttypes.h stdint.h unistd.h
  20422. +do :
  20423. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20424. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  20425. +"
  20426. +eval as_val=\$$as_ac_Header
  20427. + if test "x$as_val" = x""yes; then :
  20428. + cat >>confdefs.h <<_ACEOF
  20429. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20430. +_ACEOF
  20431. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  20432. - # powerpc, because MkLinux only supported shared libraries with the
  20433. - # GNU dynamic linker. Since this was broken with cross compilers,
  20434. - # most powerpc-linux boxes support dynamic linking these days and
  20435. - # people can always --disable-shared, the test was removed, and we
  20436. - # assume the GNU/Linux dynamic linker is in use.
  20437. - dynamic_linker='GNU/Linux ld.so'
  20438. - ;;
  20439. +fi
  20440. -netbsd*)
  20441. - version_type=sunos
  20442. - need_lib_prefix=no
  20443. - need_version=no
  20444. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20445. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20446. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  20447. - dynamic_linker='NetBSD (a.out) ld.so'
  20448. - else
  20449. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20450. - soname_spec='${libname}${release}${shared_ext}$major'
  20451. - dynamic_linker='NetBSD ld.elf_so'
  20452. - fi
  20453. - shlibpath_var=LD_LIBRARY_PATH
  20454. - shlibpath_overrides_runpath=yes
  20455. - hardcode_into_libs=yes
  20456. - ;;
  20457. +done
  20458. -newsos6)
  20459. - version_type=linux
  20460. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20461. - shlibpath_var=LD_LIBRARY_PATH
  20462. - shlibpath_overrides_runpath=yes
  20463. - ;;
  20464. -nto-qnx*)
  20465. - version_type=linux
  20466. - need_lib_prefix=no
  20467. - need_version=no
  20468. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20469. - soname_spec='${libname}${release}${shared_ext}$major'
  20470. - shlibpath_var=LD_LIBRARY_PATH
  20471. - shlibpath_overrides_runpath=yes
  20472. - ;;
  20473. -
  20474. -openbsd*)
  20475. - version_type=sunos
  20476. - sys_lib_dlsearch_path_spec="/usr/lib"
  20477. - need_lib_prefix=no
  20478. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  20479. - case $host_os in
  20480. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  20481. - *) need_version=no ;;
  20482. - esac
  20483. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20484. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  20485. - shlibpath_var=LD_LIBRARY_PATH
  20486. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20487. - case $host_os in
  20488. - openbsd2.[89] | openbsd2.[89].*)
  20489. - shlibpath_overrides_runpath=no
  20490. - ;;
  20491. - *)
  20492. - shlibpath_overrides_runpath=yes
  20493. - ;;
  20494. - esac
  20495. - else
  20496. - shlibpath_overrides_runpath=yes
  20497. - fi
  20498. - ;;
  20499. -
  20500. -os2*)
  20501. - libname_spec='$name'
  20502. - shrext_cmds=".dll"
  20503. - need_lib_prefix=no
  20504. - library_names_spec='$libname${shared_ext} $libname.a'
  20505. - dynamic_linker='OS/2 ld.exe'
  20506. - shlibpath_var=LIBPATH
  20507. - ;;
  20508. -
  20509. -osf3* | osf4* | osf5*)
  20510. - version_type=osf
  20511. - need_lib_prefix=no
  20512. - need_version=no
  20513. - soname_spec='${libname}${release}${shared_ext}$major'
  20514. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20515. - shlibpath_var=LD_LIBRARY_PATH
  20516. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  20517. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  20518. - ;;
  20519. -
  20520. -rdos*)
  20521. - dynamic_linker=no
  20522. - ;;
  20523. +for ac_header in dlfcn.h
  20524. +do :
  20525. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  20526. +"
  20527. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  20528. + cat >>confdefs.h <<_ACEOF
  20529. +#define HAVE_DLFCN_H 1
  20530. +_ACEOF
  20531. -solaris*)
  20532. - version_type=linux
  20533. - need_lib_prefix=no
  20534. - need_version=no
  20535. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20536. - soname_spec='${libname}${release}${shared_ext}$major'
  20537. - shlibpath_var=LD_LIBRARY_PATH
  20538. - shlibpath_overrides_runpath=yes
  20539. - hardcode_into_libs=yes
  20540. - # ldd complains unless libraries are executable
  20541. - postinstall_cmds='chmod +x $lib'
  20542. - ;;
  20543. +fi
  20544. -sunos4*)
  20545. - version_type=sunos
  20546. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20547. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  20548. - shlibpath_var=LD_LIBRARY_PATH
  20549. - shlibpath_overrides_runpath=yes
  20550. - if test "$with_gnu_ld" = yes; then
  20551. - need_lib_prefix=no
  20552. - fi
  20553. - need_version=yes
  20554. - ;;
  20555. +done
  20556. -sysv4 | sysv4.3*)
  20557. - version_type=linux
  20558. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20559. - soname_spec='${libname}${release}${shared_ext}$major'
  20560. - shlibpath_var=LD_LIBRARY_PATH
  20561. - case $host_vendor in
  20562. - sni)
  20563. - shlibpath_overrides_runpath=no
  20564. - need_lib_prefix=no
  20565. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  20566. - runpath_var=LD_RUN_PATH
  20567. - ;;
  20568. - siemens)
  20569. - need_lib_prefix=no
  20570. - ;;
  20571. - motorola)
  20572. - need_lib_prefix=no
  20573. - need_version=no
  20574. - shlibpath_overrides_runpath=no
  20575. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  20576. - ;;
  20577. - esac
  20578. - ;;
  20579. -sysv4*MP*)
  20580. - if test -d /usr/nec ;then
  20581. - version_type=linux
  20582. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  20583. - soname_spec='$libname${shared_ext}.$major'
  20584. - shlibpath_var=LD_LIBRARY_PATH
  20585. - fi
  20586. - ;;
  20587. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20588. - version_type=freebsd-elf
  20589. - need_lib_prefix=no
  20590. - need_version=no
  20591. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  20592. - soname_spec='${libname}${release}${shared_ext}$major'
  20593. - shlibpath_var=LD_LIBRARY_PATH
  20594. - hardcode_into_libs=yes
  20595. - if test "$with_gnu_ld" = yes; then
  20596. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  20597. - shlibpath_overrides_runpath=no
  20598. +ac_ext=cpp
  20599. +ac_cpp='$CXXCPP $CPPFLAGS'
  20600. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20601. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20602. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20603. +if test -z "$CXX"; then
  20604. + if test -n "$CCC"; then
  20605. + CXX=$CCC
  20606. else
  20607. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  20608. - shlibpath_overrides_runpath=yes
  20609. - case $host_os in
  20610. - sco3.2v5*)
  20611. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  20612. - ;;
  20613. - esac
  20614. + if test -n "$ac_tool_prefix"; then
  20615. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  20616. + do
  20617. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20618. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20619. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20620. +$as_echo_n "checking for $ac_word... " >&6; }
  20621. +if test "${ac_cv_prog_CXX+set}" = set; then :
  20622. + $as_echo_n "(cached) " >&6
  20623. +else
  20624. + if test -n "$CXX"; then
  20625. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  20626. +else
  20627. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20628. +for as_dir in $PATH
  20629. +do
  20630. + IFS=$as_save_IFS
  20631. + test -z "$as_dir" && as_dir=.
  20632. + for ac_exec_ext in '' $ac_executable_extensions; do
  20633. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20634. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  20635. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20636. + break 2
  20637. fi
  20638. - sys_lib_dlsearch_path_spec='/usr/lib'
  20639. - ;;
  20640. +done
  20641. + done
  20642. +IFS=$as_save_IFS
  20643. -uts4*)
  20644. - version_type=linux
  20645. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20646. - soname_spec='${libname}${release}${shared_ext}$major'
  20647. - shlibpath_var=LD_LIBRARY_PATH
  20648. - ;;
  20649. +fi
  20650. +fi
  20651. +CXX=$ac_cv_prog_CXX
  20652. +if test -n "$CXX"; then
  20653. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  20654. +$as_echo "$CXX" >&6; }
  20655. +else
  20656. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20657. +$as_echo "no" >&6; }
  20658. +fi
  20659. -*)
  20660. - dynamic_linker=no
  20661. - ;;
  20662. -esac
  20663. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  20664. -echo "${ECHO_T}$dynamic_linker" >&6; }
  20665. -test "$dynamic_linker" = no && can_build_shared=no
  20666. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  20667. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20668. -else
  20669. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  20670. + test -n "$CXX" && break
  20671. + done
  20672. fi
  20673. +if test -z "$CXX"; then
  20674. + ac_ct_CXX=$CXX
  20675. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  20676. +do
  20677. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  20678. +set dummy $ac_prog; ac_word=$2
  20679. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20680. +$as_echo_n "checking for $ac_word... " >&6; }
  20681. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  20682. + $as_echo_n "(cached) " >&6
  20683. +else
  20684. + if test -n "$ac_ct_CXX"; then
  20685. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  20686. +else
  20687. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20688. +for as_dir in $PATH
  20689. +do
  20690. + IFS=$as_save_IFS
  20691. + test -z "$as_dir" && as_dir=.
  20692. + for ac_exec_ext in '' $ac_executable_extensions; do
  20693. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20694. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  20695. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20696. + break 2
  20697. + fi
  20698. +done
  20699. + done
  20700. +IFS=$as_save_IFS
  20701. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  20702. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  20703. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20704. +fi
  20705. +fi
  20706. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  20707. +if test -n "$ac_ct_CXX"; then
  20708. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  20709. +$as_echo "$ac_ct_CXX" >&6; }
  20710. else
  20711. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  20712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20713. +$as_echo "no" >&6; }
  20714. fi
  20715. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  20716. -
  20717. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  20718. -if test "$GCC" = yes; then
  20719. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  20720. -fi
  20721. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  20722. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  20723. -hardcode_action=
  20724. -if test -n "$hardcode_libdir_flag_spec" || \
  20725. - test -n "$runpath_var" || \
  20726. - test "X$hardcode_automatic" = "Xyes" ; then
  20727. + test -n "$ac_ct_CXX" && break
  20728. +done
  20729. - # We can hardcode non-existant directories.
  20730. - if test "$hardcode_direct" != no &&
  20731. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  20732. - # have to relink, otherwise we might link with an installed library
  20733. - # when we should be linking with a yet-to-be-installed one
  20734. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  20735. - test "$hardcode_minus_L" != no; then
  20736. - # Linking always hardcodes the temporary library directory.
  20737. - hardcode_action=relink
  20738. + if test "x$ac_ct_CXX" = x; then
  20739. + CXX="g++"
  20740. else
  20741. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  20742. - hardcode_action=immediate
  20743. + case $cross_compiling:$ac_tool_warned in
  20744. +yes:)
  20745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20746. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20747. +ac_tool_warned=yes ;;
  20748. +esac
  20749. + CXX=$ac_ct_CXX
  20750. fi
  20751. -else
  20752. - # We cannot hardcode anything, or else we can only hardcode existing
  20753. - # directories.
  20754. - hardcode_action=unsupported
  20755. fi
  20756. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  20757. -echo "${ECHO_T}$hardcode_action" >&6; }
  20758. -if test "$hardcode_action" = relink; then
  20759. - # Fast installation is not supported
  20760. - enable_fast_install=no
  20761. -elif test "$shlibpath_overrides_runpath" = yes ||
  20762. - test "$enable_shared" = no; then
  20763. - # Fast installation is not necessary
  20764. - enable_fast_install=needless
  20765. + fi
  20766. fi
  20767. +# Provide some information about the compiler.
  20768. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  20769. +set X $ac_compile
  20770. +ac_compiler=$2
  20771. +for ac_option in --version -v -V -qversion; do
  20772. + { { ac_try="$ac_compiler $ac_option >&5"
  20773. +case "(($ac_try" in
  20774. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20775. + *) ac_try_echo=$ac_try;;
  20776. +esac
  20777. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20778. +$as_echo "$ac_try_echo"; } >&5
  20779. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  20780. + ac_status=$?
  20781. + if test -s conftest.err; then
  20782. + sed '10a\
  20783. +... rest of stderr output deleted ...
  20784. + 10q' conftest.err >conftest.er1
  20785. + cat conftest.er1 >&5
  20786. + fi
  20787. + rm -f conftest.er1 conftest.err
  20788. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20789. + test $ac_status = 0; }
  20790. +done
  20791. -striplib=
  20792. -old_striplib=
  20793. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  20794. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  20795. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  20796. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  20797. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  20798. - { echo "$as_me:$LINENO: result: yes" >&5
  20799. -echo "${ECHO_T}yes" >&6; }
  20800. -else
  20801. -# FIXME - insert some real tests, host_os isn't really good enough
  20802. - case $host_os in
  20803. - darwin*)
  20804. - if test -n "$STRIP" ; then
  20805. - striplib="$STRIP -x"
  20806. - old_striplib="$STRIP -S"
  20807. - { echo "$as_me:$LINENO: result: yes" >&5
  20808. -echo "${ECHO_T}yes" >&6; }
  20809. - else
  20810. - { echo "$as_me:$LINENO: result: no" >&5
  20811. -echo "${ECHO_T}no" >&6; }
  20812. -fi
  20813. - ;;
  20814. - *)
  20815. - { echo "$as_me:$LINENO: result: no" >&5
  20816. -echo "${ECHO_T}no" >&6; }
  20817. - ;;
  20818. - esac
  20819. -fi
  20820. -
  20821. -if test "x$enable_dlopen" != xyes; then
  20822. - enable_dlopen=unknown
  20823. - enable_dlopen_self=unknown
  20824. - enable_dlopen_self_static=unknown
  20825. -else
  20826. - lt_cv_dlopen=no
  20827. - lt_cv_dlopen_libs=
  20828. -
  20829. - case $host_os in
  20830. - beos*)
  20831. - lt_cv_dlopen="load_add_on"
  20832. - lt_cv_dlopen_libs=
  20833. - lt_cv_dlopen_self=yes
  20834. - ;;
  20835. -
  20836. - mingw* | pw32*)
  20837. - lt_cv_dlopen="LoadLibrary"
  20838. - lt_cv_dlopen_libs=
  20839. - ;;
  20840. -
  20841. - cygwin*)
  20842. - lt_cv_dlopen="dlopen"
  20843. - lt_cv_dlopen_libs=
  20844. - ;;
  20845. -
  20846. - darwin*)
  20847. - # if libdl is installed we need to link against it
  20848. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  20849. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  20850. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  20851. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  20853. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  20854. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  20855. + $as_echo_n "(cached) " >&6
  20856. else
  20857. - ac_check_lib_save_LIBS=$LIBS
  20858. -LIBS="-ldl $LIBS"
  20859. -cat >conftest.$ac_ext <<_ACEOF
  20860. -/* confdefs.h. */
  20861. -_ACEOF
  20862. -cat confdefs.h >>conftest.$ac_ext
  20863. -cat >>conftest.$ac_ext <<_ACEOF
  20864. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20865. /* end confdefs.h. */
  20866. -/* Override any GCC internal prototype to avoid an error.
  20867. - Use char because int might match the return type of a GCC
  20868. - builtin and then its argument prototype would still apply. */
  20869. -#ifdef __cplusplus
  20870. -extern "C"
  20871. -#endif
  20872. -char dlopen ();
  20873. int
  20874. main ()
  20875. {
  20876. -return dlopen ();
  20877. +#ifndef __GNUC__
  20878. + choke me
  20879. +#endif
  20880. +
  20881. ;
  20882. return 0;
  20883. }
  20884. _ACEOF
  20885. -rm -f conftest.$ac_objext conftest$ac_exeext
  20886. -if { (ac_try="$ac_link"
  20887. -case "(($ac_try" in
  20888. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20889. - *) ac_try_echo=$ac_try;;
  20890. -esac
  20891. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20892. - (eval "$ac_link") 2>conftest.er1
  20893. - ac_status=$?
  20894. - grep -v '^ *+' conftest.er1 >conftest.err
  20895. - rm -f conftest.er1
  20896. - cat conftest.err >&5
  20897. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20898. - (exit $ac_status); } && {
  20899. - test -z "$ac_c_werror_flag" ||
  20900. - test ! -s conftest.err
  20901. - } && test -s conftest$ac_exeext &&
  20902. - $as_test_x conftest$ac_exeext; then
  20903. - ac_cv_lib_dl_dlopen=yes
  20904. +if ac_fn_cxx_try_compile "$LINENO"; then :
  20905. + ac_compiler_gnu=yes
  20906. else
  20907. - echo "$as_me: failed program was:" >&5
  20908. -sed 's/^/| /' conftest.$ac_ext >&5
  20909. -
  20910. - ac_cv_lib_dl_dlopen=no
  20911. + ac_compiler_gnu=no
  20912. fi
  20913. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20914. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  20915. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20916. - conftest$ac_exeext conftest.$ac_ext
  20917. -LIBS=$ac_check_lib_save_LIBS
  20918. fi
  20919. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  20920. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  20921. -if test $ac_cv_lib_dl_dlopen = yes; then
  20922. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  20923. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  20924. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  20925. +if test $ac_compiler_gnu = yes; then
  20926. + GXX=yes
  20927. else
  20928. -
  20929. - lt_cv_dlopen="dyld"
  20930. - lt_cv_dlopen_libs=
  20931. - lt_cv_dlopen_self=yes
  20932. -
  20933. + GXX=
  20934. fi
  20935. -
  20936. - ;;
  20937. -
  20938. - *)
  20939. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  20940. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  20941. -if test "${ac_cv_func_shl_load+set}" = set; then
  20942. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20943. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  20944. +ac_save_CXXFLAGS=$CXXFLAGS
  20945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  20946. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  20947. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  20948. + $as_echo_n "(cached) " >&6
  20949. else
  20950. - cat >conftest.$ac_ext <<_ACEOF
  20951. -/* confdefs.h. */
  20952. -_ACEOF
  20953. -cat confdefs.h >>conftest.$ac_ext
  20954. -cat >>conftest.$ac_ext <<_ACEOF
  20955. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  20956. + ac_cxx_werror_flag=yes
  20957. + ac_cv_prog_cxx_g=no
  20958. + CXXFLAGS="-g"
  20959. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20960. /* end confdefs.h. */
  20961. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  20962. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20963. -#define shl_load innocuous_shl_load
  20964. -
  20965. -/* System header to define __stub macros and hopefully few prototypes,
  20966. - which can conflict with char shl_load (); below.
  20967. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20968. - <limits.h> exists even on freestanding compilers. */
  20969. -
  20970. -#ifdef __STDC__
  20971. -# include <limits.h>
  20972. -#else
  20973. -# include <assert.h>
  20974. -#endif
  20975. -
  20976. -#undef shl_load
  20977. -
  20978. -/* Override any GCC internal prototype to avoid an error.
  20979. - Use char because int might match the return type of a GCC
  20980. - builtin and then its argument prototype would still apply. */
  20981. -#ifdef __cplusplus
  20982. -extern "C"
  20983. -#endif
  20984. -char shl_load ();
  20985. -/* The GNU C library defines this for functions which it implements
  20986. - to always fail with ENOSYS. Some functions are actually named
  20987. - something starting with __ and the normal name is an alias. */
  20988. -#if defined __stub_shl_load || defined __stub___shl_load
  20989. -choke me
  20990. -#endif
  20991. int
  20992. main ()
  20993. {
  20994. -return shl_load ();
  20995. +
  20996. ;
  20997. return 0;
  20998. }
  20999. _ACEOF
  21000. -rm -f conftest.$ac_objext conftest$ac_exeext
  21001. -if { (ac_try="$ac_link"
  21002. -case "(($ac_try" in
  21003. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21004. - *) ac_try_echo=$ac_try;;
  21005. -esac
  21006. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21007. - (eval "$ac_link") 2>conftest.er1
  21008. - ac_status=$?
  21009. - grep -v '^ *+' conftest.er1 >conftest.err
  21010. - rm -f conftest.er1
  21011. - cat conftest.err >&5
  21012. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21013. - (exit $ac_status); } && {
  21014. - test -z "$ac_c_werror_flag" ||
  21015. - test ! -s conftest.err
  21016. - } && test -s conftest$ac_exeext &&
  21017. - $as_test_x conftest$ac_exeext; then
  21018. - ac_cv_func_shl_load=yes
  21019. -else
  21020. - echo "$as_me: failed program was:" >&5
  21021. -sed 's/^/| /' conftest.$ac_ext >&5
  21022. -
  21023. - ac_cv_func_shl_load=no
  21024. -fi
  21025. -
  21026. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21027. - conftest$ac_exeext conftest.$ac_ext
  21028. -fi
  21029. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  21030. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  21031. -if test $ac_cv_func_shl_load = yes; then
  21032. - lt_cv_dlopen="shl_load"
  21033. -else
  21034. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  21035. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  21036. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  21037. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21038. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21039. + ac_cv_prog_cxx_g=yes
  21040. else
  21041. - ac_check_lib_save_LIBS=$LIBS
  21042. -LIBS="-ldld $LIBS"
  21043. -cat >conftest.$ac_ext <<_ACEOF
  21044. -/* confdefs.h. */
  21045. -_ACEOF
  21046. -cat confdefs.h >>conftest.$ac_ext
  21047. -cat >>conftest.$ac_ext <<_ACEOF
  21048. + CXXFLAGS=""
  21049. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21050. /* end confdefs.h. */
  21051. -/* Override any GCC internal prototype to avoid an error.
  21052. - Use char because int might match the return type of a GCC
  21053. - builtin and then its argument prototype would still apply. */
  21054. -#ifdef __cplusplus
  21055. -extern "C"
  21056. -#endif
  21057. -char shl_load ();
  21058. int
  21059. main ()
  21060. {
  21061. -return shl_load ();
  21062. +
  21063. ;
  21064. return 0;
  21065. }
  21066. _ACEOF
  21067. -rm -f conftest.$ac_objext conftest$ac_exeext
  21068. -if { (ac_try="$ac_link"
  21069. -case "(($ac_try" in
  21070. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21071. - *) ac_try_echo=$ac_try;;
  21072. -esac
  21073. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21074. - (eval "$ac_link") 2>conftest.er1
  21075. - ac_status=$?
  21076. - grep -v '^ *+' conftest.er1 >conftest.err
  21077. - rm -f conftest.er1
  21078. - cat conftest.err >&5
  21079. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21080. - (exit $ac_status); } && {
  21081. - test -z "$ac_c_werror_flag" ||
  21082. - test ! -s conftest.err
  21083. - } && test -s conftest$ac_exeext &&
  21084. - $as_test_x conftest$ac_exeext; then
  21085. - ac_cv_lib_dld_shl_load=yes
  21086. -else
  21087. - echo "$as_me: failed program was:" >&5
  21088. -sed 's/^/| /' conftest.$ac_ext >&5
  21089. -
  21090. - ac_cv_lib_dld_shl_load=no
  21091. -fi
  21092. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21093. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21094. - conftest$ac_exeext conftest.$ac_ext
  21095. -LIBS=$ac_check_lib_save_LIBS
  21096. -fi
  21097. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  21098. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  21099. -if test $ac_cv_lib_dld_shl_load = yes; then
  21100. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  21101. else
  21102. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  21103. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  21104. -if test "${ac_cv_func_dlopen+set}" = set; then
  21105. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21106. -else
  21107. - cat >conftest.$ac_ext <<_ACEOF
  21108. -/* confdefs.h. */
  21109. -_ACEOF
  21110. -cat confdefs.h >>conftest.$ac_ext
  21111. -cat >>conftest.$ac_ext <<_ACEOF
  21112. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21113. + CXXFLAGS="-g"
  21114. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21115. /* end confdefs.h. */
  21116. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  21117. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21118. -#define dlopen innocuous_dlopen
  21119. -
  21120. -/* System header to define __stub macros and hopefully few prototypes,
  21121. - which can conflict with char dlopen (); below.
  21122. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21123. - <limits.h> exists even on freestanding compilers. */
  21124. -
  21125. -#ifdef __STDC__
  21126. -# include <limits.h>
  21127. -#else
  21128. -# include <assert.h>
  21129. -#endif
  21130. -
  21131. -#undef dlopen
  21132. -
  21133. -/* Override any GCC internal prototype to avoid an error.
  21134. - Use char because int might match the return type of a GCC
  21135. - builtin and then its argument prototype would still apply. */
  21136. -#ifdef __cplusplus
  21137. -extern "C"
  21138. -#endif
  21139. -char dlopen ();
  21140. -/* The GNU C library defines this for functions which it implements
  21141. - to always fail with ENOSYS. Some functions are actually named
  21142. - something starting with __ and the normal name is an alias. */
  21143. -#if defined __stub_dlopen || defined __stub___dlopen
  21144. -choke me
  21145. -#endif
  21146. int
  21147. main ()
  21148. {
  21149. -return dlopen ();
  21150. +
  21151. ;
  21152. return 0;
  21153. }
  21154. _ACEOF
  21155. -rm -f conftest.$ac_objext conftest$ac_exeext
  21156. -if { (ac_try="$ac_link"
  21157. -case "(($ac_try" in
  21158. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21159. - *) ac_try_echo=$ac_try;;
  21160. -esac
  21161. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21162. - (eval "$ac_link") 2>conftest.er1
  21163. - ac_status=$?
  21164. - grep -v '^ *+' conftest.er1 >conftest.err
  21165. - rm -f conftest.er1
  21166. - cat conftest.err >&5
  21167. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21168. - (exit $ac_status); } && {
  21169. - test -z "$ac_c_werror_flag" ||
  21170. - test ! -s conftest.err
  21171. - } && test -s conftest$ac_exeext &&
  21172. - $as_test_x conftest$ac_exeext; then
  21173. - ac_cv_func_dlopen=yes
  21174. -else
  21175. - echo "$as_me: failed program was:" >&5
  21176. -sed 's/^/| /' conftest.$ac_ext >&5
  21177. -
  21178. - ac_cv_func_dlopen=no
  21179. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21180. + ac_cv_prog_cxx_g=yes
  21181. fi
  21182. -
  21183. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21184. - conftest$ac_exeext conftest.$ac_ext
  21185. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21186. fi
  21187. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  21188. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  21189. -if test $ac_cv_func_dlopen = yes; then
  21190. - lt_cv_dlopen="dlopen"
  21191. -else
  21192. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  21193. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  21194. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  21195. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21196. -else
  21197. - ac_check_lib_save_LIBS=$LIBS
  21198. -LIBS="-ldl $LIBS"
  21199. -cat >conftest.$ac_ext <<_ACEOF
  21200. -/* confdefs.h. */
  21201. -_ACEOF
  21202. -cat confdefs.h >>conftest.$ac_ext
  21203. -cat >>conftest.$ac_ext <<_ACEOF
  21204. -/* end confdefs.h. */
  21205. -
  21206. -/* Override any GCC internal prototype to avoid an error.
  21207. - Use char because int might match the return type of a GCC
  21208. - builtin and then its argument prototype would still apply. */
  21209. -#ifdef __cplusplus
  21210. -extern "C"
  21211. -#endif
  21212. -char dlopen ();
  21213. -int
  21214. -main ()
  21215. -{
  21216. -return dlopen ();
  21217. - ;
  21218. - return 0;
  21219. -}
  21220. -_ACEOF
  21221. -rm -f conftest.$ac_objext conftest$ac_exeext
  21222. -if { (ac_try="$ac_link"
  21223. -case "(($ac_try" in
  21224. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21225. - *) ac_try_echo=$ac_try;;
  21226. -esac
  21227. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21228. - (eval "$ac_link") 2>conftest.er1
  21229. - ac_status=$?
  21230. - grep -v '^ *+' conftest.er1 >conftest.err
  21231. - rm -f conftest.er1
  21232. - cat conftest.err >&5
  21233. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21234. - (exit $ac_status); } && {
  21235. - test -z "$ac_c_werror_flag" ||
  21236. - test ! -s conftest.err
  21237. - } && test -s conftest$ac_exeext &&
  21238. - $as_test_x conftest$ac_exeext; then
  21239. - ac_cv_lib_dl_dlopen=yes
  21240. -else
  21241. - echo "$as_me: failed program was:" >&5
  21242. -sed 's/^/| /' conftest.$ac_ext >&5
  21243. -
  21244. - ac_cv_lib_dl_dlopen=no
  21245. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21246. fi
  21247. -
  21248. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21249. - conftest$ac_exeext conftest.$ac_ext
  21250. -LIBS=$ac_check_lib_save_LIBS
  21251. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21252. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21253. fi
  21254. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  21255. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  21256. -if test $ac_cv_lib_dl_dlopen = yes; then
  21257. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  21258. -else
  21259. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  21260. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  21261. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  21262. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  21264. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  21265. +if test "$ac_test_CXXFLAGS" = set; then
  21266. + CXXFLAGS=$ac_save_CXXFLAGS
  21267. +elif test $ac_cv_prog_cxx_g = yes; then
  21268. + if test "$GXX" = yes; then
  21269. + CXXFLAGS="-g -O2"
  21270. + else
  21271. + CXXFLAGS="-g"
  21272. + fi
  21273. else
  21274. - ac_check_lib_save_LIBS=$LIBS
  21275. -LIBS="-lsvld $LIBS"
  21276. -cat >conftest.$ac_ext <<_ACEOF
  21277. -/* confdefs.h. */
  21278. -_ACEOF
  21279. -cat confdefs.h >>conftest.$ac_ext
  21280. -cat >>conftest.$ac_ext <<_ACEOF
  21281. -/* end confdefs.h. */
  21282. -
  21283. -/* Override any GCC internal prototype to avoid an error.
  21284. - Use char because int might match the return type of a GCC
  21285. - builtin and then its argument prototype would still apply. */
  21286. -#ifdef __cplusplus
  21287. -extern "C"
  21288. -#endif
  21289. -char dlopen ();
  21290. -int
  21291. -main ()
  21292. -{
  21293. -return dlopen ();
  21294. - ;
  21295. - return 0;
  21296. -}
  21297. -_ACEOF
  21298. -rm -f conftest.$ac_objext conftest$ac_exeext
  21299. -if { (ac_try="$ac_link"
  21300. -case "(($ac_try" in
  21301. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21302. - *) ac_try_echo=$ac_try;;
  21303. -esac
  21304. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21305. - (eval "$ac_link") 2>conftest.er1
  21306. - ac_status=$?
  21307. - grep -v '^ *+' conftest.er1 >conftest.err
  21308. - rm -f conftest.er1
  21309. - cat conftest.err >&5
  21310. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21311. - (exit $ac_status); } && {
  21312. - test -z "$ac_c_werror_flag" ||
  21313. - test ! -s conftest.err
  21314. - } && test -s conftest$ac_exeext &&
  21315. - $as_test_x conftest$ac_exeext; then
  21316. - ac_cv_lib_svld_dlopen=yes
  21317. + if test "$GXX" = yes; then
  21318. + CXXFLAGS="-O2"
  21319. + else
  21320. + CXXFLAGS=
  21321. + fi
  21322. +fi
  21323. +ac_ext=c
  21324. +ac_cpp='$CPP $CPPFLAGS'
  21325. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21326. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21327. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21328. +
  21329. +depcc="$CXX" am_compiler_list=
  21330. +
  21331. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  21332. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  21333. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  21334. + $as_echo_n "(cached) " >&6
  21335. else
  21336. - echo "$as_me: failed program was:" >&5
  21337. -sed 's/^/| /' conftest.$ac_ext >&5
  21338. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21339. + # We make a subdir and do the tests there. Otherwise we can end up
  21340. + # making bogus files that we don't know about and never remove. For
  21341. + # instance it was reported that on HP-UX the gcc test will end up
  21342. + # making a dummy file named `D' -- because `-MD' means `put the output
  21343. + # in D'.
  21344. + mkdir conftest.dir
  21345. + # Copy depcomp to subdir because otherwise we won't find it if we're
  21346. + # using a relative directory.
  21347. + cp "$am_depcomp" conftest.dir
  21348. + cd conftest.dir
  21349. + # We will build objects and dependencies in a subdirectory because
  21350. + # it helps to detect inapplicable dependency modes. For instance
  21351. + # both Tru64's cc and ICC support -MD to output dependencies as a
  21352. + # side effect of compilation, but ICC will put the dependencies in
  21353. + # the current directory while Tru64 will put them in the object
  21354. + # directory.
  21355. + mkdir sub
  21356. +
  21357. + am_cv_CXX_dependencies_compiler_type=none
  21358. + if test "$am_compiler_list" = ""; then
  21359. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21360. + fi
  21361. + am__universal=false
  21362. + case " $depcc " in #(
  21363. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  21364. + esac
  21365. +
  21366. + for depmode in $am_compiler_list; do
  21367. + # Setup a source with many dependencies, because some compilers
  21368. + # like to wrap large dependency lists on column 80 (with \), and
  21369. + # we should not choose a depcomp mode which is confused by this.
  21370. + #
  21371. + # We need to recreate these files for each test, as the compiler may
  21372. + # overwrite some of them when testing with obscure command lines.
  21373. + # This happens at least with the AIX C compiler.
  21374. + : > sub/conftest.c
  21375. + for i in 1 2 3 4 5 6; do
  21376. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21377. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21378. + # Solaris 8's {/usr,}/bin/sh.
  21379. + touch sub/conftst$i.h
  21380. + done
  21381. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21382. +
  21383. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21384. + # mode. It turns out that the SunPro C++ compiler does not properly
  21385. + # handle `-M -o', and we need to detect this. Also, some Intel
  21386. + # versions had trouble with output in subdirs
  21387. + am__obj=sub/conftest.${OBJEXT-o}
  21388. + am__minus_obj="-o $am__obj"
  21389. + case $depmode in
  21390. + gcc)
  21391. + # This depmode causes a compiler race in universal mode.
  21392. + test "$am__universal" = false || continue
  21393. + ;;
  21394. + nosideeffect)
  21395. + # after this tag, mechanisms are not by side-effect, so they'll
  21396. + # only be used when explicitly requested
  21397. + if test "x$enable_dependency_tracking" = xyes; then
  21398. + continue
  21399. + else
  21400. + break
  21401. + fi
  21402. + ;;
  21403. + msvisualcpp | msvcmsys)
  21404. + # This compiler won't grok `-c -o', but also, the minuso test has
  21405. + # not run yet. These depmodes are late enough in the game, and
  21406. + # so weak that their functioning should not be impacted.
  21407. + am__obj=conftest.${OBJEXT-o}
  21408. + am__minus_obj=
  21409. + ;;
  21410. + none) break ;;
  21411. + esac
  21412. + if depmode=$depmode \
  21413. + source=sub/conftest.c object=$am__obj \
  21414. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21415. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  21416. + >/dev/null 2>conftest.err &&
  21417. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  21418. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21419. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  21420. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21421. + # icc doesn't choke on unknown options, it will just issue warnings
  21422. + # or remarks (even with -Werror). So we grep stderr for any message
  21423. + # that says an option was ignored or not supported.
  21424. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  21425. + # icc: Command line warning: ignoring option '-M'; no argument required
  21426. + # The diagnosis changed in icc 8.0:
  21427. + # icc: Command line remark: option '-MP' not supported
  21428. + if (grep 'ignoring option' conftest.err ||
  21429. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21430. + am_cv_CXX_dependencies_compiler_type=$depmode
  21431. + break
  21432. + fi
  21433. + fi
  21434. + done
  21435. - ac_cv_lib_svld_dlopen=no
  21436. + cd ..
  21437. + rm -rf conftest.dir
  21438. +else
  21439. + am_cv_CXX_dependencies_compiler_type=none
  21440. fi
  21441. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21442. - conftest$ac_exeext conftest.$ac_ext
  21443. -LIBS=$ac_check_lib_save_LIBS
  21444. fi
  21445. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  21446. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  21447. -if test $ac_cv_lib_svld_dlopen = yes; then
  21448. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  21449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  21450. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  21451. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  21452. +
  21453. + if
  21454. + test "x$enable_dependency_tracking" != xno \
  21455. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  21456. + am__fastdepCXX_TRUE=
  21457. + am__fastdepCXX_FALSE='#'
  21458. else
  21459. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  21460. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  21461. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  21462. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21463. + am__fastdepCXX_TRUE='#'
  21464. + am__fastdepCXX_FALSE=
  21465. +fi
  21466. +
  21467. +
  21468. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  21469. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  21470. + (test "X$CXX" != "Xg++"))) ; then
  21471. + ac_ext=cpp
  21472. +ac_cpp='$CXXCPP $CPPFLAGS'
  21473. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21474. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21475. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21476. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  21477. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  21478. +if test -z "$CXXCPP"; then
  21479. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  21480. + $as_echo_n "(cached) " >&6
  21481. else
  21482. - ac_check_lib_save_LIBS=$LIBS
  21483. -LIBS="-ldld $LIBS"
  21484. -cat >conftest.$ac_ext <<_ACEOF
  21485. -/* confdefs.h. */
  21486. -_ACEOF
  21487. -cat confdefs.h >>conftest.$ac_ext
  21488. -cat >>conftest.$ac_ext <<_ACEOF
  21489. + # Double quotes because CXXCPP needs to be expanded
  21490. + for CXXCPP in "$CXX -E" "/lib/cpp"
  21491. + do
  21492. + ac_preproc_ok=false
  21493. +for ac_cxx_preproc_warn_flag in '' yes
  21494. +do
  21495. + # Use a header file that comes with gcc, so configuring glibc
  21496. + # with a fresh cross-compiler works.
  21497. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21498. + # <limits.h> exists even on freestanding compilers.
  21499. + # On the NeXT, cc -E runs the code through the compiler's parser,
  21500. + # not just through cpp. "Syntax error" is here to catch this case.
  21501. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21502. /* end confdefs.h. */
  21503. -
  21504. -/* Override any GCC internal prototype to avoid an error.
  21505. - Use char because int might match the return type of a GCC
  21506. - builtin and then its argument prototype would still apply. */
  21507. -#ifdef __cplusplus
  21508. -extern "C"
  21509. +#ifdef __STDC__
  21510. +# include <limits.h>
  21511. +#else
  21512. +# include <assert.h>
  21513. #endif
  21514. -char dld_link ();
  21515. -int
  21516. -main ()
  21517. -{
  21518. -return dld_link ();
  21519. - ;
  21520. - return 0;
  21521. -}
  21522. + Syntax error
  21523. _ACEOF
  21524. -rm -f conftest.$ac_objext conftest$ac_exeext
  21525. -if { (ac_try="$ac_link"
  21526. -case "(($ac_try" in
  21527. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21528. - *) ac_try_echo=$ac_try;;
  21529. -esac
  21530. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21531. - (eval "$ac_link") 2>conftest.er1
  21532. - ac_status=$?
  21533. - grep -v '^ *+' conftest.er1 >conftest.err
  21534. - rm -f conftest.er1
  21535. - cat conftest.err >&5
  21536. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21537. - (exit $ac_status); } && {
  21538. - test -z "$ac_c_werror_flag" ||
  21539. - test ! -s conftest.err
  21540. - } && test -s conftest$ac_exeext &&
  21541. - $as_test_x conftest$ac_exeext; then
  21542. - ac_cv_lib_dld_dld_link=yes
  21543. -else
  21544. - echo "$as_me: failed program was:" >&5
  21545. -sed 's/^/| /' conftest.$ac_ext >&5
  21546. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  21547. - ac_cv_lib_dld_dld_link=no
  21548. +else
  21549. + # Broken: fails on valid input.
  21550. +continue
  21551. fi
  21552. +rm -f conftest.err conftest.$ac_ext
  21553. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21554. - conftest$ac_exeext conftest.$ac_ext
  21555. -LIBS=$ac_check_lib_save_LIBS
  21556. -fi
  21557. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  21558. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  21559. -if test $ac_cv_lib_dld_dld_link = yes; then
  21560. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  21561. + # OK, works on sane cases. Now check whether nonexistent headers
  21562. + # can be detected and how.
  21563. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21564. +/* end confdefs.h. */
  21565. +#include <ac_nonexistent.h>
  21566. +_ACEOF
  21567. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  21568. + # Broken: success on invalid input.
  21569. +continue
  21570. +else
  21571. + # Passes both tests.
  21572. +ac_preproc_ok=:
  21573. +break
  21574. fi
  21575. +rm -f conftest.err conftest.$ac_ext
  21576. -
  21577. +done
  21578. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21579. +rm -f conftest.err conftest.$ac_ext
  21580. +if $ac_preproc_ok; then :
  21581. + break
  21582. fi
  21583. + done
  21584. + ac_cv_prog_CXXCPP=$CXXCPP
  21585. fi
  21586. -
  21587. -
  21588. + CXXCPP=$ac_cv_prog_CXXCPP
  21589. +else
  21590. + ac_cv_prog_CXXCPP=$CXXCPP
  21591. fi
  21592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  21593. +$as_echo "$CXXCPP" >&6; }
  21594. +ac_preproc_ok=false
  21595. +for ac_cxx_preproc_warn_flag in '' yes
  21596. +do
  21597. + # Use a header file that comes with gcc, so configuring glibc
  21598. + # with a fresh cross-compiler works.
  21599. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21600. + # <limits.h> exists even on freestanding compilers.
  21601. + # On the NeXT, cc -E runs the code through the compiler's parser,
  21602. + # not just through cpp. "Syntax error" is here to catch this case.
  21603. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21604. +/* end confdefs.h. */
  21605. +#ifdef __STDC__
  21606. +# include <limits.h>
  21607. +#else
  21608. +# include <assert.h>
  21609. +#endif
  21610. + Syntax error
  21611. +_ACEOF
  21612. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  21613. +else
  21614. + # Broken: fails on valid input.
  21615. +continue
  21616. +fi
  21617. +rm -f conftest.err conftest.$ac_ext
  21618. + # OK, works on sane cases. Now check whether nonexistent headers
  21619. + # can be detected and how.
  21620. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21621. +/* end confdefs.h. */
  21622. +#include <ac_nonexistent.h>
  21623. +_ACEOF
  21624. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  21625. + # Broken: success on invalid input.
  21626. +continue
  21627. +else
  21628. + # Passes both tests.
  21629. +ac_preproc_ok=:
  21630. +break
  21631. fi
  21632. +rm -f conftest.err conftest.$ac_ext
  21633. +done
  21634. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21635. +rm -f conftest.err conftest.$ac_ext
  21636. +if $ac_preproc_ok; then :
  21637. +else
  21638. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21639. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21640. +_lt_caught_CXX_error=yes; }
  21641. fi
  21642. - ;;
  21643. - esac
  21644. -
  21645. - if test "x$lt_cv_dlopen" != xno; then
  21646. - enable_dlopen=yes
  21647. - else
  21648. - enable_dlopen=no
  21649. - fi
  21650. +ac_ext=c
  21651. +ac_cpp='$CPP $CPPFLAGS'
  21652. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21653. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21654. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21655. - case $lt_cv_dlopen in
  21656. - dlopen)
  21657. - save_CPPFLAGS="$CPPFLAGS"
  21658. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  21659. +else
  21660. + _lt_caught_CXX_error=yes
  21661. +fi
  21662. - save_LDFLAGS="$LDFLAGS"
  21663. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  21664. - save_LIBS="$LIBS"
  21665. - LIBS="$lt_cv_dlopen_libs $LIBS"
  21666. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  21667. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  21668. -if test "${lt_cv_dlopen_self+set}" = set; then
  21669. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21670. -else
  21671. - if test "$cross_compiling" = yes; then :
  21672. - lt_cv_dlopen_self=cross
  21673. -else
  21674. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  21675. - lt_status=$lt_dlunknown
  21676. - cat > conftest.$ac_ext <<EOF
  21677. -#line 10562 "configure"
  21678. -#include "confdefs.h"
  21679. -#if HAVE_DLFCN_H
  21680. -#include <dlfcn.h>
  21681. -#endif
  21682. -#include <stdio.h>
  21683. +# Set options
  21684. -#ifdef RTLD_GLOBAL
  21685. -# define LT_DLGLOBAL RTLD_GLOBAL
  21686. -#else
  21687. -# ifdef DL_GLOBAL
  21688. -# define LT_DLGLOBAL DL_GLOBAL
  21689. -# else
  21690. -# define LT_DLGLOBAL 0
  21691. -# endif
  21692. -#endif
  21693. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  21694. - find out it does not work in some platform. */
  21695. -#ifndef LT_DLLAZY_OR_NOW
  21696. -# ifdef RTLD_LAZY
  21697. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  21698. -# else
  21699. -# ifdef DL_LAZY
  21700. -# define LT_DLLAZY_OR_NOW DL_LAZY
  21701. -# else
  21702. -# ifdef RTLD_NOW
  21703. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  21704. -# else
  21705. -# ifdef DL_NOW
  21706. -# define LT_DLLAZY_OR_NOW DL_NOW
  21707. -# else
  21708. -# define LT_DLLAZY_OR_NOW 0
  21709. -# endif
  21710. -# endif
  21711. -# endif
  21712. -# endif
  21713. -#endif
  21714. -#ifdef __cplusplus
  21715. -extern "C" void exit (int);
  21716. -#endif
  21717. + enable_dlopen=no
  21718. -void fnord() { int i=42;}
  21719. -int main ()
  21720. -{
  21721. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  21722. - int status = $lt_dlunknown;
  21723. - if (self)
  21724. - {
  21725. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  21726. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  21727. - /* dlclose (self); */
  21728. - }
  21729. - else
  21730. - puts (dlerror ());
  21731. - exit (status);
  21732. -}
  21733. -EOF
  21734. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21735. - (eval $ac_link) 2>&5
  21736. - ac_status=$?
  21737. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21738. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  21739. - (./conftest; exit; ) >&5 2>/dev/null
  21740. - lt_status=$?
  21741. - case x$lt_status in
  21742. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  21743. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  21744. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  21745. + # Check whether --enable-shared was given.
  21746. +if test "${enable_shared+set}" = set; then :
  21747. + enableval=$enable_shared; p=${PACKAGE-default}
  21748. + case $enableval in
  21749. + yes) enable_shared=yes ;;
  21750. + no) enable_shared=no ;;
  21751. + *)
  21752. + enable_shared=no
  21753. + # Look at the argument we got. We use all the common list separators.
  21754. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21755. + for pkg in $enableval; do
  21756. + IFS="$lt_save_ifs"
  21757. + if test "X$pkg" = "X$p"; then
  21758. + enable_shared=yes
  21759. + fi
  21760. + done
  21761. + IFS="$lt_save_ifs"
  21762. + ;;
  21763. esac
  21764. - else :
  21765. - # compilation failed
  21766. - lt_cv_dlopen_self=no
  21767. - fi
  21768. -fi
  21769. -rm -fr conftest*
  21770. -
  21771. -
  21772. +else
  21773. + enable_shared=yes
  21774. fi
  21775. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  21776. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  21777. - if test "x$lt_cv_dlopen_self" = xyes; then
  21778. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  21779. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  21780. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  21781. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  21782. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21783. -else
  21784. - if test "$cross_compiling" = yes; then :
  21785. - lt_cv_dlopen_self_static=cross
  21786. -else
  21787. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  21788. - lt_status=$lt_dlunknown
  21789. - cat > conftest.$ac_ext <<EOF
  21790. -#line 10662 "configure"
  21791. -#include "confdefs.h"
  21792. -#if HAVE_DLFCN_H
  21793. -#include <dlfcn.h>
  21794. -#endif
  21795. -#include <stdio.h>
  21796. -#ifdef RTLD_GLOBAL
  21797. -# define LT_DLGLOBAL RTLD_GLOBAL
  21798. -#else
  21799. -# ifdef DL_GLOBAL
  21800. -# define LT_DLGLOBAL DL_GLOBAL
  21801. -# else
  21802. -# define LT_DLGLOBAL 0
  21803. -# endif
  21804. -#endif
  21805. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  21806. - find out it does not work in some platform. */
  21807. -#ifndef LT_DLLAZY_OR_NOW
  21808. -# ifdef RTLD_LAZY
  21809. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  21810. -# else
  21811. -# ifdef DL_LAZY
  21812. -# define LT_DLLAZY_OR_NOW DL_LAZY
  21813. -# else
  21814. -# ifdef RTLD_NOW
  21815. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  21816. -# else
  21817. -# ifdef DL_NOW
  21818. -# define LT_DLLAZY_OR_NOW DL_NOW
  21819. -# else
  21820. -# define LT_DLLAZY_OR_NOW 0
  21821. -# endif
  21822. -# endif
  21823. -# endif
  21824. -# endif
  21825. -#endif
  21826. -#ifdef __cplusplus
  21827. -extern "C" void exit (int);
  21828. -#endif
  21829. -void fnord() { int i=42;}
  21830. -int main ()
  21831. -{
  21832. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  21833. - int status = $lt_dlunknown;
  21834. - if (self)
  21835. - {
  21836. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  21837. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  21838. - /* dlclose (self); */
  21839. - }
  21840. - else
  21841. - puts (dlerror ());
  21842. - exit (status);
  21843. -}
  21844. -EOF
  21845. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21846. - (eval $ac_link) 2>&5
  21847. - ac_status=$?
  21848. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21849. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  21850. - (./conftest; exit; ) >&5 2>/dev/null
  21851. - lt_status=$?
  21852. - case x$lt_status in
  21853. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  21854. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  21855. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  21856. + # Check whether --enable-static was given.
  21857. +if test "${enable_static+set}" = set; then :
  21858. + enableval=$enable_static; p=${PACKAGE-default}
  21859. + case $enableval in
  21860. + yes) enable_static=yes ;;
  21861. + no) enable_static=no ;;
  21862. + *)
  21863. + enable_static=no
  21864. + # Look at the argument we got. We use all the common list separators.
  21865. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21866. + for pkg in $enableval; do
  21867. + IFS="$lt_save_ifs"
  21868. + if test "X$pkg" = "X$p"; then
  21869. + enable_static=yes
  21870. + fi
  21871. + done
  21872. + IFS="$lt_save_ifs"
  21873. + ;;
  21874. esac
  21875. - else :
  21876. - # compilation failed
  21877. - lt_cv_dlopen_self_static=no
  21878. - fi
  21879. +else
  21880. + enable_static=yes
  21881. fi
  21882. -rm -fr conftest*
  21883. -fi
  21884. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  21885. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  21886. - fi
  21887. - CPPFLAGS="$save_CPPFLAGS"
  21888. - LDFLAGS="$save_LDFLAGS"
  21889. - LIBS="$save_LIBS"
  21890. - ;;
  21891. - esac
  21892. - case $lt_cv_dlopen_self in
  21893. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  21894. - *) enable_dlopen_self=unknown ;;
  21895. - esac
  21896. - case $lt_cv_dlopen_self_static in
  21897. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  21898. - *) enable_dlopen_self_static=unknown ;;
  21899. - esac
  21900. -fi
  21901. -# Report which library types will actually be built
  21902. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  21903. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  21904. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  21905. -echo "${ECHO_T}$can_build_shared" >&6; }
  21906. -
  21907. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  21908. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  21909. -test "$can_build_shared" = "no" && enable_shared=no
  21910. -# On AIX, shared libraries and static libraries use the same namespace, and
  21911. -# are all built from PIC.
  21912. -case $host_os in
  21913. -aix3*)
  21914. - test "$enable_shared" = yes && enable_static=no
  21915. - if test -n "$RANLIB"; then
  21916. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  21917. - postinstall_cmds='$RANLIB $lib'
  21918. - fi
  21919. - ;;
  21920. -aix[4-9]*)
  21921. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  21922. - test "$enable_shared" = yes && enable_static=no
  21923. - fi
  21924. - ;;
  21925. -esac
  21926. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  21927. -echo "${ECHO_T}$enable_shared" >&6; }
  21928. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  21929. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  21930. -# Make sure either enable_shared or enable_static is yes.
  21931. -test "$enable_shared" = yes || enable_static=yes
  21932. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  21933. -echo "${ECHO_T}$enable_static" >&6; }
  21934. -
  21935. -# The else clause should only fire when bootstrapping the
  21936. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  21937. -# with your package, and you will get complaints that there are
  21938. -# no rules to generate ltmain.sh.
  21939. -if test -f "$ltmain"; then
  21940. - # See if we are running on zsh, and set the options which allow our commands through
  21941. - # without removal of \ escapes.
  21942. - if test -n "${ZSH_VERSION+set}" ; then
  21943. - setopt NO_GLOB_SUBST
  21944. - fi
  21945. - # Now quote all the things that may contain metacharacters while being
  21946. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  21947. - # variables and quote the copies for generation of the libtool script.
  21948. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  21949. - SED SHELL STRIP \
  21950. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  21951. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  21952. - deplibs_check_method reload_flag reload_cmds need_locks \
  21953. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  21954. - lt_cv_sys_global_symbol_to_c_name_address \
  21955. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  21956. - old_postinstall_cmds old_postuninstall_cmds \
  21957. - compiler \
  21958. - CC \
  21959. - LD \
  21960. - lt_prog_compiler_wl \
  21961. - lt_prog_compiler_pic \
  21962. - lt_prog_compiler_static \
  21963. - lt_prog_compiler_no_builtin_flag \
  21964. - export_dynamic_flag_spec \
  21965. - thread_safe_flag_spec \
  21966. - whole_archive_flag_spec \
  21967. - enable_shared_with_static_runtimes \
  21968. - old_archive_cmds \
  21969. - old_archive_from_new_cmds \
  21970. - predep_objects \
  21971. - postdep_objects \
  21972. - predeps \
  21973. - postdeps \
  21974. - compiler_lib_search_path \
  21975. - compiler_lib_search_dirs \
  21976. - archive_cmds \
  21977. - archive_expsym_cmds \
  21978. - postinstall_cmds \
  21979. - postuninstall_cmds \
  21980. - old_archive_from_expsyms_cmds \
  21981. - allow_undefined_flag \
  21982. - no_undefined_flag \
  21983. - export_symbols_cmds \
  21984. - hardcode_libdir_flag_spec \
  21985. - hardcode_libdir_flag_spec_ld \
  21986. - hardcode_libdir_separator \
  21987. - hardcode_automatic \
  21988. - module_cmds \
  21989. - module_expsym_cmds \
  21990. - lt_cv_prog_compiler_c_o \
  21991. - fix_srcfile_path \
  21992. - exclude_expsyms \
  21993. - include_expsyms; do
  21994. -
  21995. - case $var in
  21996. - old_archive_cmds | \
  21997. - old_archive_from_new_cmds | \
  21998. - archive_cmds | \
  21999. - archive_expsym_cmds | \
  22000. - module_cmds | \
  22001. - module_expsym_cmds | \
  22002. - old_archive_from_expsyms_cmds | \
  22003. - export_symbols_cmds | \
  22004. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  22005. - postinstall_cmds | postuninstall_cmds | \
  22006. - old_postinstall_cmds | old_postuninstall_cmds | \
  22007. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  22008. - # Double-quote double-evaled strings.
  22009. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  22010. - ;;
  22011. - *)
  22012. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  22013. - ;;
  22014. - esac
  22015. - done
  22016. +# Check whether --with-pic was given.
  22017. +if test "${with_pic+set}" = set; then :
  22018. + withval=$with_pic; pic_mode="$withval"
  22019. +else
  22020. + pic_mode=default
  22021. +fi
  22022. - case $lt_echo in
  22023. - *'\$0 --fallback-echo"')
  22024. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  22025. - ;;
  22026. - esac
  22027. -cfgfile="${ofile}T"
  22028. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  22029. - $rm -f "$cfgfile"
  22030. - { echo "$as_me:$LINENO: creating $ofile" >&5
  22031. -echo "$as_me: creating $ofile" >&6;}
  22032. +test -z "$pic_mode" && pic_mode=default
  22033. - cat <<__EOF__ >> "$cfgfile"
  22034. -#! $SHELL
  22035. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22036. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  22037. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22038. -#
  22039. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  22040. -# Free Software Foundation, Inc.
  22041. -#
  22042. -# This file is part of GNU Libtool:
  22043. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  22044. -#
  22045. -# This program is free software; you can redistribute it and/or modify
  22046. -# it under the terms of the GNU General Public License as published by
  22047. -# the Free Software Foundation; either version 2 of the License, or
  22048. -# (at your option) any later version.
  22049. -#
  22050. -# This program is distributed in the hope that it will be useful, but
  22051. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  22052. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  22053. -# General Public License for more details.
  22054. -#
  22055. -# You should have received a copy of the GNU General Public License
  22056. -# along with this program; if not, write to the Free Software
  22057. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22058. -#
  22059. -# As a special exception to the GNU General Public License, if you
  22060. -# distribute this file as part of a program that contains a
  22061. -# configuration script generated by Autoconf, you may include it under
  22062. -# the same distribution terms that you use for the rest of that program.
  22063. -# A sed program that does not truncate output.
  22064. -SED=$lt_SED
  22065. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22066. -Xsed="$SED -e 1s/^X//"
  22067. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  22068. -# if CDPATH is set.
  22069. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22070. -
  22071. -# The names of the tagged configurations supported by this script.
  22072. -available_tags=
  22073. -# ### BEGIN LIBTOOL CONFIG
  22074. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22075. + # Check whether --enable-fast-install was given.
  22076. +if test "${enable_fast_install+set}" = set; then :
  22077. + enableval=$enable_fast_install; p=${PACKAGE-default}
  22078. + case $enableval in
  22079. + yes) enable_fast_install=yes ;;
  22080. + no) enable_fast_install=no ;;
  22081. + *)
  22082. + enable_fast_install=no
  22083. + # Look at the argument we got. We use all the common list separators.
  22084. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22085. + for pkg in $enableval; do
  22086. + IFS="$lt_save_ifs"
  22087. + if test "X$pkg" = "X$p"; then
  22088. + enable_fast_install=yes
  22089. + fi
  22090. + done
  22091. + IFS="$lt_save_ifs"
  22092. + ;;
  22093. + esac
  22094. +else
  22095. + enable_fast_install=yes
  22096. +fi
  22097. -# Shell to use when invoking shell scripts.
  22098. -SHELL=$lt_SHELL
  22099. -# Whether or not to build shared libraries.
  22100. -build_libtool_libs=$enable_shared
  22101. -# Whether or not to build static libraries.
  22102. -build_old_libs=$enable_static
  22103. -# Whether or not to add -lc for building shared libraries.
  22104. -build_libtool_need_lc=$archive_cmds_need_lc
  22105. -# Whether or not to disallow shared libs when runtime libs are static
  22106. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22107. -# Whether or not to optimize for fast installation.
  22108. -fast_install=$enable_fast_install
  22109. -# The host system.
  22110. -host_alias=$host_alias
  22111. -host=$host
  22112. -host_os=$host_os
  22113. -# The build system.
  22114. -build_alias=$build_alias
  22115. -build=$build
  22116. -build_os=$build_os
  22117. -# An echo program that does not interpret backslashes.
  22118. -echo=$lt_echo
  22119. -# The archiver.
  22120. -AR=$lt_AR
  22121. -AR_FLAGS=$lt_AR_FLAGS
  22122. -# A C compiler.
  22123. -LTCC=$lt_LTCC
  22124. +# This can be used to rebuild libtool when needed
  22125. +LIBTOOL_DEPS="$ltmain"
  22126. -# LTCC compiler flags.
  22127. -LTCFLAGS=$lt_LTCFLAGS
  22128. +# Always use our own libtool.
  22129. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  22130. -# A language-specific compiler.
  22131. -CC=$lt_compiler
  22132. -# Is the compiler the GNU C compiler?
  22133. -with_gcc=$GCC
  22134. -# An ERE matcher.
  22135. -EGREP=$lt_EGREP
  22136. -# The linker used to build libraries.
  22137. -LD=$lt_LD
  22138. -# Whether we need hard or soft links.
  22139. -LN_S=$lt_LN_S
  22140. -# A BSD-compatible nm program.
  22141. -NM=$lt_NM
  22142. -# A symbol stripping program
  22143. -STRIP=$lt_STRIP
  22144. -# Used to examine libraries when file_magic_cmd begins "file"
  22145. -MAGIC_CMD=$MAGIC_CMD
  22146. -# Used on cygwin: DLL creation program.
  22147. -DLLTOOL="$DLLTOOL"
  22148. -# Used on cygwin: object dumper.
  22149. -OBJDUMP="$OBJDUMP"
  22150. -# Used on cygwin: assembler.
  22151. -AS="$AS"
  22152. -# The name of the directory that contains temporary libtool files.
  22153. -objdir=$objdir
  22154. -# How to create reloadable object files.
  22155. -reload_flag=$lt_reload_flag
  22156. -reload_cmds=$lt_reload_cmds
  22157. -# How to pass a linker flag through the compiler.
  22158. -wl=$lt_lt_prog_compiler_wl
  22159. -# Object file suffix (normally "o").
  22160. -objext="$ac_objext"
  22161. -# Old archive suffix (normally "a").
  22162. -libext="$libext"
  22163. -# Shared library suffix (normally ".so").
  22164. -shrext_cmds='$shrext_cmds'
  22165. -# Executable file suffix (normally "").
  22166. -exeext="$exeext"
  22167. -# Additional compiler flags for building library objects.
  22168. -pic_flag=$lt_lt_prog_compiler_pic
  22169. -pic_mode=$pic_mode
  22170. -# What is the maximum length of a command?
  22171. -max_cmd_len=$lt_cv_sys_max_cmd_len
  22172. -# Does compiler simultaneously support -c and -o options?
  22173. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22174. -# Must we lock files when doing compilation?
  22175. -need_locks=$lt_need_locks
  22176. -# Do we need the lib prefix for modules?
  22177. -need_lib_prefix=$need_lib_prefix
  22178. -# Do we need a version for libraries?
  22179. -need_version=$need_version
  22180. -# Whether dlopen is supported.
  22181. -dlopen_support=$enable_dlopen
  22182. +test -z "$LN_S" && LN_S="ln -s"
  22183. -# Whether dlopen of programs is supported.
  22184. -dlopen_self=$enable_dlopen_self
  22185. -# Whether dlopen of statically linked programs is supported.
  22186. -dlopen_self_static=$enable_dlopen_self_static
  22187. -# Compiler flag to prevent dynamic linking.
  22188. -link_static_flag=$lt_lt_prog_compiler_static
  22189. -# Compiler flag to turn off builtin functions.
  22190. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22191. -# Compiler flag to allow reflexive dlopens.
  22192. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22193. -# Compiler flag to generate shared objects directly from archives.
  22194. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22195. -# Compiler flag to generate thread-safe objects.
  22196. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  22197. -# Library versioning type.
  22198. -version_type=$version_type
  22199. -# Format of library name prefix.
  22200. -libname_spec=$lt_libname_spec
  22201. -# List of archive names. First name is the real one, the rest are links.
  22202. -# The last name is the one that the linker finds with -lNAME.
  22203. -library_names_spec=$lt_library_names_spec
  22204. -# The coded name of the library, if different from the real name.
  22205. -soname_spec=$lt_soname_spec
  22206. -# Commands used to build and install an old-style archive.
  22207. -RANLIB=$lt_RANLIB
  22208. -old_archive_cmds=$lt_old_archive_cmds
  22209. -old_postinstall_cmds=$lt_old_postinstall_cmds
  22210. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22211. -# Create an old-style archive from a shared archive.
  22212. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22213. -# Create a temporary old-style archive to link instead of a shared archive.
  22214. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22215. +if test -n "${ZSH_VERSION+set}" ; then
  22216. + setopt NO_GLOB_SUBST
  22217. +fi
  22218. -# Commands used to build and install a shared archive.
  22219. -archive_cmds=$lt_archive_cmds
  22220. -archive_expsym_cmds=$lt_archive_expsym_cmds
  22221. -postinstall_cmds=$lt_postinstall_cmds
  22222. -postuninstall_cmds=$lt_postuninstall_cmds
  22223. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  22224. +$as_echo_n "checking for objdir... " >&6; }
  22225. +if test "${lt_cv_objdir+set}" = set; then :
  22226. + $as_echo_n "(cached) " >&6
  22227. +else
  22228. + rm -f .libs 2>/dev/null
  22229. +mkdir .libs 2>/dev/null
  22230. +if test -d .libs; then
  22231. + lt_cv_objdir=.libs
  22232. +else
  22233. + # MS-DOS does not allow filenames that begin with a dot.
  22234. + lt_cv_objdir=_libs
  22235. +fi
  22236. +rmdir .libs 2>/dev/null
  22237. +fi
  22238. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  22239. +$as_echo "$lt_cv_objdir" >&6; }
  22240. +objdir=$lt_cv_objdir
  22241. -# Commands used to build a loadable module (assumed same as above if empty)
  22242. -module_cmds=$lt_module_cmds
  22243. -module_expsym_cmds=$lt_module_expsym_cmds
  22244. -# Commands to strip libraries.
  22245. -old_striplib=$lt_old_striplib
  22246. -striplib=$lt_striplib
  22247. -# Dependencies to place before the objects being linked to create a
  22248. -# shared library.
  22249. -predep_objects=$lt_predep_objects
  22250. -# Dependencies to place after the objects being linked to create a
  22251. -# shared library.
  22252. -postdep_objects=$lt_postdep_objects
  22253. -# Dependencies to place before the objects being linked to create a
  22254. -# shared library.
  22255. -predeps=$lt_predeps
  22256. +cat >>confdefs.h <<_ACEOF
  22257. +#define LT_OBJDIR "$lt_cv_objdir/"
  22258. +_ACEOF
  22259. -# Dependencies to place after the objects being linked to create a
  22260. -# shared library.
  22261. -postdeps=$lt_postdeps
  22262. -# The directories searched by this compiler when creating a shared
  22263. -# library
  22264. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22265. -# The library search path used internally by the compiler when linking
  22266. -# a shared library.
  22267. -compiler_lib_search_path=$lt_compiler_lib_search_path
  22268. -# Method to check whether dependent libraries are shared objects.
  22269. -deplibs_check_method=$lt_deplibs_check_method
  22270. -# Command to use when deplibs_check_method == file_magic.
  22271. -file_magic_cmd=$lt_file_magic_cmd
  22272. -# Flag that allows shared libraries with undefined symbols to be built.
  22273. -allow_undefined_flag=$lt_allow_undefined_flag
  22274. -# Flag that forces no undefined symbols.
  22275. -no_undefined_flag=$lt_no_undefined_flag
  22276. -# Commands used to finish a libtool library installation in a directory.
  22277. -finish_cmds=$lt_finish_cmds
  22278. -# Same as above, but a single script fragment to be evaled but not shown.
  22279. -finish_eval=$lt_finish_eval
  22280. -# Take the output of nm and produce a listing of raw symbols and C names.
  22281. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22282. -# Transform the output of nm in a proper C declaration
  22283. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22284. -# Transform the output of nm in a C name address pair
  22285. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22286. -# This is the shared library runtime path variable.
  22287. -runpath_var=$runpath_var
  22288. -# This is the shared library path variable.
  22289. -shlibpath_var=$shlibpath_var
  22290. -# Is shlibpath searched before the hard-coded library search path?
  22291. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22292. -# How to hardcode a shared library path into an executable.
  22293. -hardcode_action=$hardcode_action
  22294. -# Whether we should hardcode library paths into libraries.
  22295. -hardcode_into_libs=$hardcode_into_libs
  22296. +case $host_os in
  22297. +aix3*)
  22298. + # AIX sometimes has problems with the GCC collect2 program. For some
  22299. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  22300. + # vanish in a puff of smoke.
  22301. + if test "X${COLLECT_NAMES+set}" != Xset; then
  22302. + COLLECT_NAMES=
  22303. + export COLLECT_NAMES
  22304. + fi
  22305. + ;;
  22306. +esac
  22307. -# Flag to hardcode \$libdir into a binary during linking.
  22308. -# This must work even if \$libdir does not exist.
  22309. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22310. +# Sed substitution that helps us do robust quoting. It backslashifies
  22311. +# metacharacters that are still active within double-quoted strings.
  22312. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  22313. -# If ld is used when linking, flag to hardcode \$libdir into
  22314. -# a binary during linking. This must work even if \$libdir does
  22315. -# not exist.
  22316. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  22317. +# Same as above, but do not quote variable references.
  22318. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  22319. -# Whether we need a single -rpath flag with a separated argument.
  22320. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22321. +# Sed substitution to delay expansion of an escaped shell variable in a
  22322. +# double_quote_subst'ed string.
  22323. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  22324. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  22325. -# resulting binary.
  22326. -hardcode_direct=$hardcode_direct
  22327. +# Sed substitution to delay expansion of an escaped single quote.
  22328. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  22329. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  22330. -# resulting binary.
  22331. -hardcode_minus_L=$hardcode_minus_L
  22332. +# Sed substitution to avoid accidental globbing in evaled expressions
  22333. +no_glob_subst='s/\*/\\\*/g'
  22334. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  22335. -# the resulting binary.
  22336. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  22337. +# Global variables:
  22338. +ofile=libtool
  22339. +can_build_shared=yes
  22340. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  22341. -# and all subsequent libraries and executables linked against it.
  22342. -hardcode_automatic=$hardcode_automatic
  22343. +# All known linkers require a `.a' archive for static linking (except MSVC,
  22344. +# which needs '.lib').
  22345. +libext=a
  22346. -# Variables whose values should be saved in libtool wrapper scripts and
  22347. -# restored at relink time.
  22348. -variables_saved_for_relink="$variables_saved_for_relink"
  22349. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  22350. -# Whether libtool must link a program against all its dependency libraries.
  22351. -link_all_deplibs=$link_all_deplibs
  22352. +old_CC="$CC"
  22353. +old_CFLAGS="$CFLAGS"
  22354. -# Compile-time system search path for libraries
  22355. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22356. +# Set sane defaults for various variables
  22357. +test -z "$CC" && CC=cc
  22358. +test -z "$LTCC" && LTCC=$CC
  22359. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  22360. +test -z "$LD" && LD=ld
  22361. +test -z "$ac_objext" && ac_objext=o
  22362. -# Run-time system search path for libraries
  22363. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22364. +for cc_temp in $compiler""; do
  22365. + case $cc_temp in
  22366. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22367. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22368. + \-*) ;;
  22369. + *) break;;
  22370. + esac
  22371. +done
  22372. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22373. -# Fix the shell variable \$srcfile for the compiler.
  22374. -fix_srcfile_path=$lt_fix_srcfile_path
  22375. -# Set to yes if exported symbols are required.
  22376. -always_export_symbols=$always_export_symbols
  22377. +# Only perform the check for file, if the check method requires it
  22378. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  22379. +case $deplibs_check_method in
  22380. +file_magic*)
  22381. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  22382. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  22383. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  22384. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  22385. + $as_echo_n "(cached) " >&6
  22386. +else
  22387. + case $MAGIC_CMD in
  22388. +[\\/*] | ?:[\\/]*)
  22389. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  22390. + ;;
  22391. +*)
  22392. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  22393. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22394. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  22395. + for ac_dir in $ac_dummy; do
  22396. + IFS="$lt_save_ifs"
  22397. + test -z "$ac_dir" && ac_dir=.
  22398. + if test -f $ac_dir/${ac_tool_prefix}file; then
  22399. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  22400. + if test -n "$file_magic_test_file"; then
  22401. + case $deplibs_check_method in
  22402. + "file_magic "*)
  22403. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  22404. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22405. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  22406. + $EGREP "$file_magic_regex" > /dev/null; then
  22407. + :
  22408. + else
  22409. + cat <<_LT_EOF 1>&2
  22410. -# The commands to list exported symbols.
  22411. -export_symbols_cmds=$lt_export_symbols_cmds
  22412. +*** Warning: the command libtool uses to detect shared libraries,
  22413. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  22414. +*** The result is that libtool may fail to recognize shared libraries
  22415. +*** as such. This will affect the creation of libtool libraries that
  22416. +*** depend on shared libraries, but programs linked with such libtool
  22417. +*** libraries will work regardless of this problem. Nevertheless, you
  22418. +*** may want to report the problem to your system manager and/or to
  22419. +*** bug-libtool@gnu.org
  22420. -# The commands to extract the exported symbol list from a shared archive.
  22421. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22422. +_LT_EOF
  22423. + fi ;;
  22424. + esac
  22425. + fi
  22426. + break
  22427. + fi
  22428. + done
  22429. + IFS="$lt_save_ifs"
  22430. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  22431. + ;;
  22432. +esac
  22433. +fi
  22434. -# Symbols that should not be listed in the preloaded symbols.
  22435. -exclude_expsyms=$lt_exclude_expsyms
  22436. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22437. +if test -n "$MAGIC_CMD"; then
  22438. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  22439. +$as_echo "$MAGIC_CMD" >&6; }
  22440. +else
  22441. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22442. +$as_echo "no" >&6; }
  22443. +fi
  22444. -# Symbols that must always be exported.
  22445. -include_expsyms=$lt_include_expsyms
  22446. -# ### END LIBTOOL CONFIG
  22447. -__EOF__
  22448. - case $host_os in
  22449. - aix3*)
  22450. - cat <<\EOF >> "$cfgfile"
  22451. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  22452. + if test -n "$ac_tool_prefix"; then
  22453. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  22454. +$as_echo_n "checking for file... " >&6; }
  22455. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  22456. + $as_echo_n "(cached) " >&6
  22457. +else
  22458. + case $MAGIC_CMD in
  22459. +[\\/*] | ?:[\\/]*)
  22460. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  22461. + ;;
  22462. +*)
  22463. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  22464. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22465. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  22466. + for ac_dir in $ac_dummy; do
  22467. + IFS="$lt_save_ifs"
  22468. + test -z "$ac_dir" && ac_dir=.
  22469. + if test -f $ac_dir/file; then
  22470. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  22471. + if test -n "$file_magic_test_file"; then
  22472. + case $deplibs_check_method in
  22473. + "file_magic "*)
  22474. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  22475. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22476. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  22477. + $EGREP "$file_magic_regex" > /dev/null; then
  22478. + :
  22479. + else
  22480. + cat <<_LT_EOF 1>&2
  22481. -# AIX sometimes has problems with the GCC collect2 program. For some
  22482. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  22483. -# vanish in a puff of smoke.
  22484. -if test "X${COLLECT_NAMES+set}" != Xset; then
  22485. - COLLECT_NAMES=
  22486. - export COLLECT_NAMES
  22487. +*** Warning: the command libtool uses to detect shared libraries,
  22488. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  22489. +*** The result is that libtool may fail to recognize shared libraries
  22490. +*** as such. This will affect the creation of libtool libraries that
  22491. +*** depend on shared libraries, but programs linked with such libtool
  22492. +*** libraries will work regardless of this problem. Nevertheless, you
  22493. +*** may want to report the problem to your system manager and/or to
  22494. +*** bug-libtool@gnu.org
  22495. +
  22496. +_LT_EOF
  22497. + fi ;;
  22498. + esac
  22499. + fi
  22500. + break
  22501. + fi
  22502. + done
  22503. + IFS="$lt_save_ifs"
  22504. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  22505. + ;;
  22506. +esac
  22507. fi
  22508. -EOF
  22509. - ;;
  22510. - esac
  22511. - # We use sed instead of cat because bash on DJGPP gets confused if
  22512. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22513. - # text mode, it properly converts lines to CR/LF. This bash problem
  22514. - # is reportedly fixed, but why not run on old versions too?
  22515. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  22516. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22517. +if test -n "$MAGIC_CMD"; then
  22518. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  22519. +$as_echo "$MAGIC_CMD" >&6; }
  22520. +else
  22521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22522. +$as_echo "no" >&6; }
  22523. +fi
  22524. - mv -f "$cfgfile" "$ofile" || \
  22525. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22526. - chmod +x "$ofile"
  22527. -else
  22528. - # If there is no Makefile yet, we rely on a make rule to execute
  22529. - # `config.status --recheck' to rerun these tests and create the
  22530. - # libtool script then.
  22531. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  22532. - if test -f "$ltmain_in"; then
  22533. - test -f Makefile && make "$ltmain"
  22534. + else
  22535. + MAGIC_CMD=:
  22536. fi
  22537. fi
  22538. + fi
  22539. + ;;
  22540. +esac
  22541. +
  22542. +# Use C for the default configuration in the libtool script
  22543. +lt_save_CC="$CC"
  22544. ac_ext=c
  22545. ac_cpp='$CPP $CPPFLAGS'
  22546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22549. -CC="$lt_save_CC"
  22550. -
  22551. -
  22552. -# Check whether --with-tags was given.
  22553. -if test "${with_tags+set}" = set; then
  22554. - withval=$with_tags; tagnames="$withval"
  22555. -fi
  22556. -
  22557. -
  22558. -if test -f "$ltmain" && test -n "$tagnames"; then
  22559. - if test ! -f "${ofile}"; then
  22560. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  22561. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  22562. - fi
  22563. -
  22564. - if test -z "$LTCC"; then
  22565. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  22566. - if test -z "$LTCC"; then
  22567. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  22568. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  22569. - else
  22570. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  22571. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  22572. - fi
  22573. - fi
  22574. - if test -z "$LTCFLAGS"; then
  22575. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  22576. - fi
  22577. -
  22578. - # Extract list of available tagged configurations in $ofile.
  22579. - # Note that this assumes the entire list is on one line.
  22580. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  22581. -
  22582. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22583. - for tagname in $tagnames; do
  22584. - IFS="$lt_save_ifs"
  22585. - # Check whether tagname contains only valid characters
  22586. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  22587. - "") ;;
  22588. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  22589. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  22590. - { (exit 1); exit 1; }; }
  22591. - ;;
  22592. - esac
  22593. -
  22594. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  22595. - then
  22596. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  22597. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  22598. - { (exit 1); exit 1; }; }
  22599. - fi
  22600. -
  22601. - # Update the list of available tags.
  22602. - if test -n "$tagname"; then
  22603. - echo appending configuration tag \"$tagname\" to $ofile
  22604. -
  22605. - case $tagname in
  22606. - CXX)
  22607. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  22608. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  22609. - (test "X$CXX" != "Xg++"))) ; then
  22610. - ac_ext=cpp
  22611. -ac_cpp='$CXXCPP $CPPFLAGS'
  22612. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22613. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22614. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22615. +# Source file extension for C test sources.
  22616. +ac_ext=c
  22617. +# Object file extension for compiled C test sources.
  22618. +objext=o
  22619. +objext=$objext
  22620. +# Code to be used in simple compile tests
  22621. +lt_simple_compile_test_code="int some_variable = 0;"
  22622. -archive_cmds_need_lc_CXX=no
  22623. -allow_undefined_flag_CXX=
  22624. -always_export_symbols_CXX=no
  22625. -archive_expsym_cmds_CXX=
  22626. -export_dynamic_flag_spec_CXX=
  22627. -hardcode_direct_CXX=no
  22628. -hardcode_libdir_flag_spec_CXX=
  22629. -hardcode_libdir_flag_spec_ld_CXX=
  22630. -hardcode_libdir_separator_CXX=
  22631. -hardcode_minus_L_CXX=no
  22632. -hardcode_shlibpath_var_CXX=unsupported
  22633. -hardcode_automatic_CXX=no
  22634. -module_cmds_CXX=
  22635. -module_expsym_cmds_CXX=
  22636. -link_all_deplibs_CXX=unknown
  22637. -old_archive_cmds_CXX=$old_archive_cmds
  22638. -no_undefined_flag_CXX=
  22639. -whole_archive_flag_spec_CXX=
  22640. -enable_shared_with_static_runtimes_CXX=no
  22641. +# Code to be used in simple link tests
  22642. +lt_simple_link_test_code='int main(){return(0);}'
  22643. -# Dependencies to place before and after the object being linked:
  22644. -predep_objects_CXX=
  22645. -postdep_objects_CXX=
  22646. -predeps_CXX=
  22647. -postdeps_CXX=
  22648. -compiler_lib_search_path_CXX=
  22649. -compiler_lib_search_dirs_CXX=
  22650. -# Source file extension for C++ test sources.
  22651. -ac_ext=cpp
  22652. -# Object file extension for compiled C++ test sources.
  22653. -objext=o
  22654. -objext_CXX=$objext
  22655. -# Code to be used in simple compile tests
  22656. -lt_simple_compile_test_code="int some_variable = 0;"
  22657. -# Code to be used in simple link tests
  22658. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  22659. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  22660. # If no C compiler was specified, use CC.
  22661. LTCC=${LTCC-"$CC"}
  22662. @@ -11417,3426 +8689,538 @@
  22663. # Allow CC to be a program name with arguments.
  22664. compiler=$CC
  22665. +# Save the default compiler, since it gets overwritten when the other
  22666. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  22667. +compiler_DEFAULT=$CC
  22668. # save warnings/boilerplate of simple test code
  22669. ac_outfile=conftest.$ac_objext
  22670. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  22671. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  22672. _lt_compiler_boilerplate=`cat conftest.err`
  22673. -$rm conftest*
  22674. +$RM conftest*
  22675. ac_outfile=conftest.$ac_objext
  22676. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  22677. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  22678. _lt_linker_boilerplate=`cat conftest.err`
  22679. -$rm -r conftest*
  22680. +$RM -r conftest*
  22681. -# Allow CC to be a program name with arguments.
  22682. -lt_save_CC=$CC
  22683. -lt_save_LD=$LD
  22684. -lt_save_GCC=$GCC
  22685. -GCC=$GXX
  22686. -lt_save_with_gnu_ld=$with_gnu_ld
  22687. -lt_save_path_LD=$lt_cv_path_LD
  22688. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  22689. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  22690. -else
  22691. - $as_unset lt_cv_prog_gnu_ld
  22692. -fi
  22693. -if test -n "${lt_cv_path_LDCXX+set}"; then
  22694. - lt_cv_path_LD=$lt_cv_path_LDCXX
  22695. -else
  22696. - $as_unset lt_cv_path_LD
  22697. -fi
  22698. -test -z "${LDCXX+set}" || LD=$LDCXX
  22699. -CC=${CXX-"c++"}
  22700. -compiler=$CC
  22701. -compiler_CXX=$CC
  22702. -for cc_temp in $compiler""; do
  22703. - case $cc_temp in
  22704. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22705. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22706. - \-*) ;;
  22707. - *) break;;
  22708. - esac
  22709. -done
  22710. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22711. +## CAVEAT EMPTOR:
  22712. +## There is no encapsulation within the following macros, do not change
  22713. +## the running order or otherwise move them around unless you know exactly
  22714. +## what you are doing...
  22715. +if test -n "$compiler"; then
  22716. +lt_prog_compiler_no_builtin_flag=
  22717. -# We don't want -fno-exception wen compiling C++ code, so set the
  22718. -# no_builtin_flag separately
  22719. -if test "$GXX" = yes; then
  22720. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  22721. -else
  22722. - lt_prog_compiler_no_builtin_flag_CXX=
  22723. -fi
  22724. +if test "$GCC" = yes; then
  22725. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  22726. -if test "$GXX" = yes; then
  22727. - # Set up default GNU C++ configuration
  22728. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  22729. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  22730. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  22731. + $as_echo_n "(cached) " >&6
  22732. +else
  22733. + lt_cv_prog_compiler_rtti_exceptions=no
  22734. + ac_outfile=conftest.$ac_objext
  22735. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22736. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  22737. + # Insert the option either (1) after the last *FLAGS variable, or
  22738. + # (2) before a word containing "conftest.", or (3) at the end.
  22739. + # Note that $ac_compile itself does not contain backslashes and begins
  22740. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  22741. + # The option is referenced via a variable to avoid confusing sed.
  22742. + lt_compile=`echo "$ac_compile" | $SED \
  22743. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22744. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22745. + -e 's:$: $lt_compiler_flag:'`
  22746. + (eval echo "\"\$as_me:8739: $lt_compile\"" >&5)
  22747. + (eval "$lt_compile" 2>conftest.err)
  22748. + ac_status=$?
  22749. + cat conftest.err >&5
  22750. + echo "$as_me:8743: \$? = $ac_status" >&5
  22751. + if (exit $ac_status) && test -s "$ac_outfile"; then
  22752. + # The compiler can only warn and ignore the option if not recognized
  22753. + # So say no if there are warnings other than the usual output.
  22754. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  22755. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22756. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  22757. + lt_cv_prog_compiler_rtti_exceptions=yes
  22758. + fi
  22759. + fi
  22760. + $RM conftest*
  22761. +fi
  22762. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  22763. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  22764. -# Check whether --with-gnu-ld was given.
  22765. -if test "${with_gnu_ld+set}" = set; then
  22766. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  22767. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  22768. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  22769. else
  22770. - with_gnu_ld=no
  22771. + :
  22772. fi
  22773. -ac_prog=ld
  22774. -if test "$GCC" = yes; then
  22775. - # Check if gcc -print-prog-name=ld gives a path.
  22776. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  22777. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  22778. - case $host in
  22779. - *-*-mingw*)
  22780. - # gcc leaves a trailing carriage return which upsets mingw
  22781. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  22782. - *)
  22783. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  22784. - esac
  22785. - case $ac_prog in
  22786. - # Accept absolute paths.
  22787. - [\\/]* | ?:[\\/]*)
  22788. - re_direlt='/[^/][^/]*/\.\./'
  22789. - # Canonicalize the pathname of ld
  22790. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  22791. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  22792. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  22793. - done
  22794. - test -z "$LD" && LD="$ac_prog"
  22795. - ;;
  22796. - "")
  22797. - # If it fails, then pretend we aren't using GCC.
  22798. - ac_prog=ld
  22799. - ;;
  22800. - *)
  22801. - # If it is relative, then search for the first ld in PATH.
  22802. - with_gnu_ld=unknown
  22803. - ;;
  22804. - esac
  22805. -elif test "$with_gnu_ld" = yes; then
  22806. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  22807. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  22808. -else
  22809. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  22810. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  22811. fi
  22812. -if test "${lt_cv_path_LD+set}" = set; then
  22813. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22814. -else
  22815. - if test -z "$LD"; then
  22816. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22817. - for ac_dir in $PATH; do
  22818. - IFS="$lt_save_ifs"
  22819. - test -z "$ac_dir" && ac_dir=.
  22820. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  22821. - lt_cv_path_LD="$ac_dir/$ac_prog"
  22822. - # Check to see if the program is GNU ld. I'd rather use --version,
  22823. - # but apparently some variants of GNU ld only accept -v.
  22824. - # Break only if it was the GNU/non-GNU ld that we prefer.
  22825. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  22826. - *GNU* | *'with BFD'*)
  22827. - test "$with_gnu_ld" != no && break
  22828. - ;;
  22829. - *)
  22830. - test "$with_gnu_ld" != yes && break
  22831. - ;;
  22832. - esac
  22833. - fi
  22834. - done
  22835. - IFS="$lt_save_ifs"
  22836. -else
  22837. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  22838. -fi
  22839. -fi
  22840. -
  22841. -LD="$lt_cv_path_LD"
  22842. -if test -n "$LD"; then
  22843. - { echo "$as_me:$LINENO: result: $LD" >&5
  22844. -echo "${ECHO_T}$LD" >&6; }
  22845. -else
  22846. - { echo "$as_me:$LINENO: result: no" >&5
  22847. -echo "${ECHO_T}no" >&6; }
  22848. -fi
  22849. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  22850. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  22851. - { (exit 1); exit 1; }; }
  22852. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  22853. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  22854. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  22855. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22856. -else
  22857. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  22858. -case `$LD -v 2>&1 </dev/null` in
  22859. -*GNU* | *'with BFD'*)
  22860. - lt_cv_prog_gnu_ld=yes
  22861. - ;;
  22862. -*)
  22863. - lt_cv_prog_gnu_ld=no
  22864. - ;;
  22865. -esac
  22866. -fi
  22867. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  22868. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  22869. -with_gnu_ld=$lt_cv_prog_gnu_ld
  22870. -
  22871. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  22872. - # archiving commands below assume that GNU ld is being used.
  22873. - if test "$with_gnu_ld" = yes; then
  22874. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22875. - 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'
  22876. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  22877. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  22878. - # If archive_cmds runs LD, not CC, wlarc should be empty
  22879. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  22880. - # investigate it a little bit more. (MM)
  22881. - wlarc='${wl}'
  22882. - # ancient GNU ld didn't support --whole-archive et. al.
  22883. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  22884. - grep 'no-whole-archive' > /dev/null; then
  22885. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22886. - else
  22887. - whole_archive_flag_spec_CXX=
  22888. - fi
  22889. - else
  22890. - with_gnu_ld=no
  22891. - wlarc=
  22892. - # A generic and very simple default shared library creation
  22893. - # command for GNU C++ for the case where it uses the native
  22894. - # linker, instead of GNU ld. If possible, this setting should
  22895. - # overridden to take advantage of the native linker features on
  22896. - # the platform it is being used on.
  22897. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  22898. - fi
  22899. + lt_prog_compiler_wl=
  22900. +lt_prog_compiler_pic=
  22901. +lt_prog_compiler_static=
  22902. - # Commands to make compiler produce verbose output that lists
  22903. - # what "hidden" libraries, object files and flags are used when
  22904. - # linking a shared library.
  22905. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  22906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  22907. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  22908. -else
  22909. - GXX=no
  22910. - with_gnu_ld=no
  22911. - wlarc=
  22912. -fi
  22913. + if test "$GCC" = yes; then
  22914. + lt_prog_compiler_wl='-Wl,'
  22915. + lt_prog_compiler_static='-static'
  22916. -# PORTME: fill in a description of your system's C++ link characteristics
  22917. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22918. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  22919. -ld_shlibs_CXX=yes
  22920. -case $host_os in
  22921. - aix3*)
  22922. - # FIXME: insert proper C++ library support
  22923. - ld_shlibs_CXX=no
  22924. - ;;
  22925. - aix[4-9]*)
  22926. - if test "$host_cpu" = ia64; then
  22927. - # On IA64, the linker does run time linking by default, so we don't
  22928. - # have to do anything special.
  22929. - aix_use_runtimelinking=no
  22930. - exp_sym_flag='-Bexport'
  22931. - no_entry_flag=""
  22932. - else
  22933. - aix_use_runtimelinking=no
  22934. + case $host_os in
  22935. + aix*)
  22936. + # All AIX code is PIC.
  22937. + if test "$host_cpu" = ia64; then
  22938. + # AIX 5 now supports IA64 processor
  22939. + lt_prog_compiler_static='-Bstatic'
  22940. + fi
  22941. + ;;
  22942. - # Test if we are trying to use run time linking or normal
  22943. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22944. - # need to do runtime linking.
  22945. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  22946. - for ld_flag in $LDFLAGS; do
  22947. - case $ld_flag in
  22948. - *-brtl*)
  22949. - aix_use_runtimelinking=yes
  22950. - break
  22951. - ;;
  22952. - esac
  22953. - done
  22954. - ;;
  22955. + amigaos*)
  22956. + case $host_cpu in
  22957. + powerpc)
  22958. + # see comment about AmigaOS4 .so support
  22959. + lt_prog_compiler_pic='-fPIC'
  22960. + ;;
  22961. + m68k)
  22962. + # FIXME: we need at least 68020 code to build shared libraries, but
  22963. + # adding the `-m68020' flag to GCC prevents building anything better,
  22964. + # like `-m68040'.
  22965. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  22966. + ;;
  22967. esac
  22968. + ;;
  22969. - exp_sym_flag='-bexport'
  22970. - no_entry_flag='-bnoentry'
  22971. - fi
  22972. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  22973. + # PIC is the default for these OSes.
  22974. + ;;
  22975. - # When large executables or shared objects are built, AIX ld can
  22976. - # have problems creating the table of contents. If linking a library
  22977. - # or program results in "error TOC overflow" add -mminimal-toc to
  22978. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22979. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22980. -
  22981. - archive_cmds_CXX=''
  22982. - hardcode_direct_CXX=yes
  22983. - hardcode_libdir_separator_CXX=':'
  22984. - link_all_deplibs_CXX=yes
  22985. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  22986. + # This hack is so that the source file can tell whether it is being
  22987. + # built for inclusion in a dll (and should export symbols for example).
  22988. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  22989. + # (--disable-auto-import) libraries
  22990. + lt_prog_compiler_pic='-DDLL_EXPORT'
  22991. + ;;
  22992. - if test "$GXX" = yes; then
  22993. - case $host_os in aix4.[012]|aix4.[012].*)
  22994. - # We only want to do this on AIX 4.2 and lower, the check
  22995. - # below for broken collect2 doesn't work under 4.3+
  22996. - collect2name=`${CC} -print-prog-name=collect2`
  22997. - if test -f "$collect2name" && \
  22998. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  22999. - then
  23000. - # We have reworked collect2
  23001. - :
  23002. - else
  23003. - # We have old collect2
  23004. - hardcode_direct_CXX=unsupported
  23005. - # It fails to find uninstalled libraries when the uninstalled
  23006. - # path is not listed in the libpath. Setting hardcode_minus_L
  23007. - # to unsupported forces relinking
  23008. - hardcode_minus_L_CXX=yes
  23009. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  23010. - hardcode_libdir_separator_CXX=
  23011. - fi
  23012. + darwin* | rhapsody*)
  23013. + # PIC is the default on this platform
  23014. + # Common symbols not allowed in MH_DYLIB files
  23015. + lt_prog_compiler_pic='-fno-common'
  23016. + ;;
  23017. +
  23018. + hpux*)
  23019. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  23020. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  23021. + # sets the default TLS model and affects inlining.
  23022. + case $host_cpu in
  23023. + hppa*64*)
  23024. + # +Z the default
  23025. + ;;
  23026. + *)
  23027. + lt_prog_compiler_pic='-fPIC'
  23028. ;;
  23029. esac
  23030. - shared_flag='-shared'
  23031. - if test "$aix_use_runtimelinking" = yes; then
  23032. - shared_flag="$shared_flag "'${wl}-G'
  23033. - fi
  23034. - else
  23035. - # not using gcc
  23036. - if test "$host_cpu" = ia64; then
  23037. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  23038. - # chokes on -Wl,-G. The following line is correct:
  23039. - shared_flag='-G'
  23040. - else
  23041. - if test "$aix_use_runtimelinking" = yes; then
  23042. - shared_flag='${wl}-G'
  23043. - else
  23044. - shared_flag='${wl}-bM:SRE'
  23045. - fi
  23046. - fi
  23047. - fi
  23048. -
  23049. - # It seems that -bexpall does not export symbols beginning with
  23050. - # underscore (_), so it is better to generate a list of symbols to export.
  23051. - always_export_symbols_CXX=yes
  23052. - if test "$aix_use_runtimelinking" = yes; then
  23053. - # Warning - without using the other runtime loading flags (-brtl),
  23054. - # -berok will link without error, but may produce a broken library.
  23055. - allow_undefined_flag_CXX='-berok'
  23056. - # Determine the default libpath from the value encoded in an empty executable.
  23057. - cat >conftest.$ac_ext <<_ACEOF
  23058. -/* confdefs.h. */
  23059. -_ACEOF
  23060. -cat confdefs.h >>conftest.$ac_ext
  23061. -cat >>conftest.$ac_ext <<_ACEOF
  23062. -/* end confdefs.h. */
  23063. -
  23064. -int
  23065. -main ()
  23066. -{
  23067. -
  23068. - ;
  23069. - return 0;
  23070. -}
  23071. -_ACEOF
  23072. -rm -f conftest.$ac_objext conftest$ac_exeext
  23073. -if { (ac_try="$ac_link"
  23074. -case "(($ac_try" in
  23075. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23076. - *) ac_try_echo=$ac_try;;
  23077. -esac
  23078. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23079. - (eval "$ac_link") 2>conftest.er1
  23080. - ac_status=$?
  23081. - grep -v '^ *+' conftest.er1 >conftest.err
  23082. - rm -f conftest.er1
  23083. - cat conftest.err >&5
  23084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23085. - (exit $ac_status); } && {
  23086. - test -z "$ac_cxx_werror_flag" ||
  23087. - test ! -s conftest.err
  23088. - } && test -s conftest$ac_exeext &&
  23089. - $as_test_x conftest$ac_exeext; then
  23090. -
  23091. -lt_aix_libpath_sed='
  23092. - /Import File Strings/,/^$/ {
  23093. - /^0/ {
  23094. - s/^0 *\(.*\)$/\1/
  23095. - p
  23096. - }
  23097. - }'
  23098. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23099. -# Check for a 64-bit object if we didn't find anything.
  23100. -if test -z "$aix_libpath"; then
  23101. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23102. -fi
  23103. -else
  23104. - echo "$as_me: failed program was:" >&5
  23105. -sed 's/^/| /' conftest.$ac_ext >&5
  23106. + ;;
  23107. + interix[3-9]*)
  23108. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  23109. + # Instead, we relocate shared libraries at runtime.
  23110. + ;;
  23111. -fi
  23112. + msdosdjgpp*)
  23113. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  23114. + # on systems that don't support them.
  23115. + lt_prog_compiler_can_build_shared=no
  23116. + enable_shared=no
  23117. + ;;
  23118. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23119. - conftest$ac_exeext conftest.$ac_ext
  23120. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  23121. + *nto* | *qnx*)
  23122. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  23123. + # it will coredump.
  23124. + lt_prog_compiler_pic='-fPIC -shared'
  23125. + ;;
  23126. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  23127. + sysv4*MP*)
  23128. + if test -d /usr/nec; then
  23129. + lt_prog_compiler_pic=-Kconform_pic
  23130. + fi
  23131. + ;;
  23132. - 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"
  23133. - else
  23134. + *)
  23135. + lt_prog_compiler_pic='-fPIC'
  23136. + ;;
  23137. + esac
  23138. + else
  23139. + # PORTME Check for flag to pass linker flags through the system compiler.
  23140. + case $host_os in
  23141. + aix*)
  23142. + lt_prog_compiler_wl='-Wl,'
  23143. if test "$host_cpu" = ia64; then
  23144. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  23145. - allow_undefined_flag_CXX="-z nodefs"
  23146. - 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"
  23147. + # AIX 5 now supports IA64 processor
  23148. + lt_prog_compiler_static='-Bstatic'
  23149. else
  23150. - # Determine the default libpath from the value encoded in an empty executable.
  23151. - cat >conftest.$ac_ext <<_ACEOF
  23152. -/* confdefs.h. */
  23153. -_ACEOF
  23154. -cat confdefs.h >>conftest.$ac_ext
  23155. -cat >>conftest.$ac_ext <<_ACEOF
  23156. -/* end confdefs.h. */
  23157. -
  23158. -int
  23159. -main ()
  23160. -{
  23161. -
  23162. - ;
  23163. - return 0;
  23164. -}
  23165. -_ACEOF
  23166. -rm -f conftest.$ac_objext conftest$ac_exeext
  23167. -if { (ac_try="$ac_link"
  23168. -case "(($ac_try" in
  23169. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23170. - *) ac_try_echo=$ac_try;;
  23171. -esac
  23172. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23173. - (eval "$ac_link") 2>conftest.er1
  23174. - ac_status=$?
  23175. - grep -v '^ *+' conftest.er1 >conftest.err
  23176. - rm -f conftest.er1
  23177. - cat conftest.err >&5
  23178. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23179. - (exit $ac_status); } && {
  23180. - test -z "$ac_cxx_werror_flag" ||
  23181. - test ! -s conftest.err
  23182. - } && test -s conftest$ac_exeext &&
  23183. - $as_test_x conftest$ac_exeext; then
  23184. -
  23185. -lt_aix_libpath_sed='
  23186. - /Import File Strings/,/^$/ {
  23187. - /^0/ {
  23188. - s/^0 *\(.*\)$/\1/
  23189. - p
  23190. - }
  23191. - }'
  23192. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23193. -# Check for a 64-bit object if we didn't find anything.
  23194. -if test -z "$aix_libpath"; then
  23195. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23196. -fi
  23197. -else
  23198. - echo "$as_me: failed program was:" >&5
  23199. -sed 's/^/| /' conftest.$ac_ext >&5
  23200. -
  23201. -
  23202. -fi
  23203. -
  23204. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23205. - conftest$ac_exeext conftest.$ac_ext
  23206. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  23207. -
  23208. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  23209. - # Warning - without using the other run time loading flags,
  23210. - # -berok will link without error, but may produce a broken library.
  23211. - no_undefined_flag_CXX=' ${wl}-bernotok'
  23212. - allow_undefined_flag_CXX=' ${wl}-berok'
  23213. - # Exported symbols can be pulled into shared objects from archives
  23214. - whole_archive_flag_spec_CXX='$convenience'
  23215. - archive_cmds_need_lc_CXX=yes
  23216. - # This is similar to how AIX traditionally builds its shared libraries.
  23217. - 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'
  23218. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  23219. fi
  23220. - fi
  23221. - ;;
  23222. + ;;
  23223. - beos*)
  23224. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23225. - allow_undefined_flag_CXX=unsupported
  23226. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  23227. - # support --undefined. This deserves some investigation. FIXME
  23228. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23229. - else
  23230. - ld_shlibs_CXX=no
  23231. - fi
  23232. - ;;
  23233. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  23234. + # This hack is so that the source file can tell whether it is being
  23235. + # built for inclusion in a dll (and should export symbols for example).
  23236. + lt_prog_compiler_pic='-DDLL_EXPORT'
  23237. + ;;
  23238. - chorus*)
  23239. - case $cc_basename in
  23240. + hpux9* | hpux10* | hpux11*)
  23241. + lt_prog_compiler_wl='-Wl,'
  23242. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23243. + # not for PA HP-UX.
  23244. + case $host_cpu in
  23245. + hppa*64*|ia64*)
  23246. + # +Z the default
  23247. + ;;
  23248. *)
  23249. - # FIXME: insert proper C++ library support
  23250. - ld_shlibs_CXX=no
  23251. + lt_prog_compiler_pic='+Z'
  23252. ;;
  23253. - esac
  23254. - ;;
  23255. -
  23256. - cygwin* | mingw* | pw32*)
  23257. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  23258. - # as there is no search path for DLLs.
  23259. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  23260. - allow_undefined_flag_CXX=unsupported
  23261. - always_export_symbols_CXX=no
  23262. - enable_shared_with_static_runtimes_CXX=yes
  23263. -
  23264. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  23265. - 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'
  23266. - # If the export-symbols file already is a .def file (1st line
  23267. - # is EXPORTS), use it as is; otherwise, prepend...
  23268. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  23269. - cp $export_symbols $output_objdir/$soname.def;
  23270. - else
  23271. - echo EXPORTS > $output_objdir/$soname.def;
  23272. - cat $export_symbols >> $output_objdir/$soname.def;
  23273. - fi~
  23274. - $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'
  23275. - else
  23276. - ld_shlibs_CXX=no
  23277. - fi
  23278. - ;;
  23279. - darwin* | rhapsody*)
  23280. - archive_cmds_need_lc_CXX=no
  23281. - hardcode_direct_CXX=no
  23282. - hardcode_automatic_CXX=yes
  23283. - hardcode_shlibpath_var_CXX=unsupported
  23284. - whole_archive_flag_spec_CXX=''
  23285. - link_all_deplibs_CXX=yes
  23286. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  23287. - if test "$GXX" = yes ; then
  23288. - output_verbose_link_cmd='echo'
  23289. - 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}"
  23290. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  23291. - 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}"
  23292. - 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}"
  23293. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  23294. - 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}"
  23295. - 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}"
  23296. - fi
  23297. - else
  23298. - case $cc_basename in
  23299. - xlc*)
  23300. - output_verbose_link_cmd='echo'
  23301. - 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'
  23302. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  23303. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  23304. - 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}'
  23305. - 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}'
  23306. - ;;
  23307. - *)
  23308. - ld_shlibs_CXX=no
  23309. - ;;
  23310. esac
  23311. - fi
  23312. - ;;
  23313. -
  23314. - dgux*)
  23315. - case $cc_basename in
  23316. - ec++*)
  23317. - # FIXME: insert proper C++ library support
  23318. - ld_shlibs_CXX=no
  23319. - ;;
  23320. - ghcx*)
  23321. - # Green Hills C++ Compiler
  23322. - # FIXME: insert proper C++ library support
  23323. - ld_shlibs_CXX=no
  23324. - ;;
  23325. - *)
  23326. - # FIXME: insert proper C++ library support
  23327. - ld_shlibs_CXX=no
  23328. - ;;
  23329. - esac
  23330. - ;;
  23331. - freebsd[12]*)
  23332. - # C++ shared libraries reported to be fairly broken before switch to ELF
  23333. - ld_shlibs_CXX=no
  23334. - ;;
  23335. - freebsd-elf*)
  23336. - archive_cmds_need_lc_CXX=no
  23337. - ;;
  23338. - freebsd* | dragonfly*)
  23339. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  23340. - # conventions
  23341. - ld_shlibs_CXX=yes
  23342. - ;;
  23343. - gnu*)
  23344. - ;;
  23345. - hpux9*)
  23346. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  23347. - hardcode_libdir_separator_CXX=:
  23348. - export_dynamic_flag_spec_CXX='${wl}-E'
  23349. - hardcode_direct_CXX=yes
  23350. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  23351. - # but as the default
  23352. - # location of the library.
  23353. -
  23354. - case $cc_basename in
  23355. - CC*)
  23356. - # FIXME: insert proper C++ library support
  23357. - ld_shlibs_CXX=no
  23358. - ;;
  23359. - aCC*)
  23360. - 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'
  23361. - # Commands to make compiler produce verbose output that lists
  23362. - # what "hidden" libraries, object files and flags are used when
  23363. - # linking a shared library.
  23364. - #
  23365. - # There doesn't appear to be a way to prevent this compiler from
  23366. - # explicitly linking system object files so we need to strip them
  23367. - # from the output so that they don't get included in the library
  23368. - # dependencies.
  23369. - 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'
  23370. - ;;
  23371. - *)
  23372. - if test "$GXX" = yes; then
  23373. - 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'
  23374. - else
  23375. - # FIXME: insert proper C++ library support
  23376. - ld_shlibs_CXX=no
  23377. - fi
  23378. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  23379. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  23380. ;;
  23381. - esac
  23382. - ;;
  23383. - hpux10*|hpux11*)
  23384. - if test $with_gnu_ld = no; then
  23385. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  23386. - hardcode_libdir_separator_CXX=:
  23387. - case $host_cpu in
  23388. - hppa*64*|ia64*) ;;
  23389. - *)
  23390. - export_dynamic_flag_spec_CXX='${wl}-E'
  23391. - ;;
  23392. - esac
  23393. - fi
  23394. - case $host_cpu in
  23395. - hppa*64*|ia64*)
  23396. - hardcode_direct_CXX=no
  23397. - hardcode_shlibpath_var_CXX=no
  23398. - ;;
  23399. - *)
  23400. - hardcode_direct_CXX=yes
  23401. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  23402. - # but as the default
  23403. - # location of the library.
  23404. + irix5* | irix6* | nonstopux*)
  23405. + lt_prog_compiler_wl='-Wl,'
  23406. + # PIC (with -KPIC) is the default.
  23407. + lt_prog_compiler_static='-non_shared'
  23408. ;;
  23409. - esac
  23410. - case $cc_basename in
  23411. - CC*)
  23412. - # FIXME: insert proper C++ library support
  23413. - ld_shlibs_CXX=no
  23414. - ;;
  23415. - aCC*)
  23416. - case $host_cpu in
  23417. - hppa*64*)
  23418. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23419. - ;;
  23420. - ia64*)
  23421. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23422. - ;;
  23423. - *)
  23424. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23425. - ;;
  23426. - esac
  23427. - # Commands to make compiler produce verbose output that lists
  23428. - # what "hidden" libraries, object files and flags are used when
  23429. - # linking a shared library.
  23430. - #
  23431. - # There doesn't appear to be a way to prevent this compiler from
  23432. - # explicitly linking system object files so we need to strip them
  23433. - # from the output so that they don't get included in the library
  23434. - # dependencies.
  23435. - 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'
  23436. - ;;
  23437. - *)
  23438. - if test "$GXX" = yes; then
  23439. - if test $with_gnu_ld = no; then
  23440. - case $host_cpu in
  23441. - hppa*64*)
  23442. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23443. - ;;
  23444. - ia64*)
  23445. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23446. - ;;
  23447. - *)
  23448. - 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'
  23449. - ;;
  23450. - esac
  23451. - fi
  23452. - else
  23453. - # FIXME: insert proper C++ library support
  23454. - ld_shlibs_CXX=no
  23455. - fi
  23456. - ;;
  23457. - esac
  23458. - ;;
  23459. - interix[3-9]*)
  23460. - hardcode_direct_CXX=no
  23461. - hardcode_shlibpath_var_CXX=no
  23462. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23463. - export_dynamic_flag_spec_CXX='${wl}-E'
  23464. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  23465. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  23466. - # default) and relocated if they conflict, which is a slow very memory
  23467. - # consuming and fragmenting process. To avoid this, we pick a random,
  23468. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  23469. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  23470. - 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'
  23471. - 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'
  23472. - ;;
  23473. - irix5* | irix6*)
  23474. - case $cc_basename in
  23475. - CC*)
  23476. - # SGI C++
  23477. - 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'
  23478. -
  23479. - # Archives containing C++ object files must be created using
  23480. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  23481. - # necessary to make sure instantiated templates are included
  23482. - # in the archive.
  23483. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  23484. - ;;
  23485. - *)
  23486. - if test "$GXX" = yes; then
  23487. - if test "$with_gnu_ld" = no; then
  23488. - 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'
  23489. - else
  23490. - 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'
  23491. - fi
  23492. - fi
  23493. - link_all_deplibs_CXX=yes
  23494. - ;;
  23495. - esac
  23496. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23497. - hardcode_libdir_separator_CXX=:
  23498. - ;;
  23499. - linux* | k*bsd*-gnu)
  23500. - case $cc_basename in
  23501. - KCC*)
  23502. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  23503. -
  23504. - # KCC will only create a shared library if the output file
  23505. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  23506. - # to its proper name (with version) after linking.
  23507. - 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'
  23508. - 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'
  23509. - # Commands to make compiler produce verbose output that lists
  23510. - # what "hidden" libraries, object files and flags are used when
  23511. - # linking a shared library.
  23512. - #
  23513. - # There doesn't appear to be a way to prevent this compiler from
  23514. - # explicitly linking system object files so we need to strip them
  23515. - # from the output so that they don't get included in the library
  23516. - # dependencies.
  23517. - 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'
  23518. -
  23519. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  23520. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  23521. -
  23522. - # Archives containing C++ object files must be created using
  23523. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  23524. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  23525. - ;;
  23526. - icpc*)
  23527. - # Intel C++
  23528. - with_gnu_ld=yes
  23529. - # version 8.0 and above of icpc choke on multiply defined symbols
  23530. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  23531. - # earlier do not add the objects themselves.
  23532. - case `$CC -V 2>&1` in
  23533. - *"Version 7."*)
  23534. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23535. - 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'
  23536. - ;;
  23537. - *) # Version 8.0 or newer
  23538. - tmp_idyn=
  23539. - case $host_cpu in
  23540. - ia64*) tmp_idyn=' -i_dynamic';;
  23541. - esac
  23542. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23543. - 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'
  23544. - ;;
  23545. - esac
  23546. - archive_cmds_need_lc_CXX=no
  23547. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23548. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  23549. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  23550. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  23551. + case $cc_basename in
  23552. + # old Intel for x86_64 which still supported -KPIC.
  23553. + ecc*)
  23554. + lt_prog_compiler_wl='-Wl,'
  23555. + lt_prog_compiler_pic='-KPIC'
  23556. + lt_prog_compiler_static='-static'
  23557. + ;;
  23558. + # icc used to be incompatible with GCC.
  23559. + # ICC 10 doesn't accept -KPIC any more.
  23560. + icc* | ifort*)
  23561. + lt_prog_compiler_wl='-Wl,'
  23562. + lt_prog_compiler_pic='-fPIC'
  23563. + lt_prog_compiler_static='-static'
  23564. + ;;
  23565. + # Lahey Fortran 8.1.
  23566. + lf95*)
  23567. + lt_prog_compiler_wl='-Wl,'
  23568. + lt_prog_compiler_pic='--shared'
  23569. + lt_prog_compiler_static='--static'
  23570. ;;
  23571. - pgCC* | pgcpp*)
  23572. - # Portland Group C++ compiler
  23573. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  23574. - 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'
  23575. -
  23576. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  23577. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  23578. - 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'
  23579. + pgcc* | pgf77* | pgf90* | pgf95*)
  23580. + # Portland Group compilers (*not* the Pentium gcc compiler,
  23581. + # which looks to be a dead project)
  23582. + lt_prog_compiler_wl='-Wl,'
  23583. + lt_prog_compiler_pic='-fpic'
  23584. + lt_prog_compiler_static='-Bstatic'
  23585. ;;
  23586. - cxx*)
  23587. - # Compaq C++
  23588. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23589. - 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'
  23590. -
  23591. - runpath_var=LD_RUN_PATH
  23592. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  23593. - hardcode_libdir_separator_CXX=:
  23594. -
  23595. - # Commands to make compiler produce verbose output that lists
  23596. - # what "hidden" libraries, object files and flags are used when
  23597. - # linking a shared library.
  23598. - #
  23599. - # There doesn't appear to be a way to prevent this compiler from
  23600. - # explicitly linking system object files so we need to strip them
  23601. - # from the output so that they don't get included in the library
  23602. - # dependencies.
  23603. - 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'
  23604. + ccc*)
  23605. + lt_prog_compiler_wl='-Wl,'
  23606. + # All Alpha code is PIC.
  23607. + lt_prog_compiler_static='-non_shared'
  23608. + ;;
  23609. + xl*)
  23610. + # IBM XL C 8.0/Fortran 10.1 on PPC
  23611. + lt_prog_compiler_wl='-Wl,'
  23612. + lt_prog_compiler_pic='-qpic'
  23613. + lt_prog_compiler_static='-qstaticlink'
  23614. ;;
  23615. *)
  23616. case `$CC -V 2>&1 | sed 5q` in
  23617. *Sun\ C*)
  23618. - # Sun C++ 5.9
  23619. - no_undefined_flag_CXX=' -zdefs'
  23620. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23621. - 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'
  23622. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  23623. - 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'
  23624. -
  23625. - # Not sure whether something based on
  23626. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  23627. - # would be better.
  23628. - output_verbose_link_cmd='echo'
  23629. -
  23630. - # Archives containing C++ object files must be created using
  23631. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  23632. - # necessary to make sure instantiated templates are included
  23633. - # in the archive.
  23634. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  23635. + # Sun C 5.9
  23636. + lt_prog_compiler_pic='-KPIC'
  23637. + lt_prog_compiler_static='-Bstatic'
  23638. + lt_prog_compiler_wl='-Wl,'
  23639. + ;;
  23640. + *Sun\ F*)
  23641. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  23642. + lt_prog_compiler_pic='-KPIC'
  23643. + lt_prog_compiler_static='-Bstatic'
  23644. + lt_prog_compiler_wl=''
  23645. ;;
  23646. esac
  23647. ;;
  23648. - esac
  23649. - ;;
  23650. - lynxos*)
  23651. - # FIXME: insert proper C++ library support
  23652. - ld_shlibs_CXX=no
  23653. - ;;
  23654. - m88k*)
  23655. - # FIXME: insert proper C++ library support
  23656. - ld_shlibs_CXX=no
  23657. - ;;
  23658. - mvs*)
  23659. - case $cc_basename in
  23660. - cxx*)
  23661. - # FIXME: insert proper C++ library support
  23662. - ld_shlibs_CXX=no
  23663. - ;;
  23664. - *)
  23665. - # FIXME: insert proper C++ library support
  23666. - ld_shlibs_CXX=no
  23667. - ;;
  23668. - esac
  23669. - ;;
  23670. - netbsd*)
  23671. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23672. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  23673. - wlarc=
  23674. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  23675. - hardcode_direct_CXX=yes
  23676. - hardcode_shlibpath_var_CXX=no
  23677. - fi
  23678. - # Workaround some broken pre-1.5 toolchains
  23679. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  23680. - ;;
  23681. - openbsd2*)
  23682. - # C++ shared libraries are fairly broken
  23683. - ld_shlibs_CXX=no
  23684. - ;;
  23685. - openbsd*)
  23686. - if test -f /usr/libexec/ld.so; then
  23687. - hardcode_direct_CXX=yes
  23688. - hardcode_shlibpath_var_CXX=no
  23689. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  23690. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23691. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23692. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  23693. - export_dynamic_flag_spec_CXX='${wl}-E'
  23694. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  23695. - fi
  23696. - output_verbose_link_cmd='echo'
  23697. - else
  23698. - ld_shlibs_CXX=no
  23699. - fi
  23700. - ;;
  23701. - osf3*)
  23702. - case $cc_basename in
  23703. - KCC*)
  23704. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  23705. -
  23706. - # KCC will only create a shared library if the output file
  23707. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  23708. - # to its proper name (with version) after linking.
  23709. - 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'
  23710. + esac
  23711. + ;;
  23712. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23713. - hardcode_libdir_separator_CXX=:
  23714. + newsos6)
  23715. + lt_prog_compiler_pic='-KPIC'
  23716. + lt_prog_compiler_static='-Bstatic'
  23717. + ;;
  23718. - # Archives containing C++ object files must be created using
  23719. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  23720. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  23721. + *nto* | *qnx*)
  23722. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  23723. + # it will coredump.
  23724. + lt_prog_compiler_pic='-fPIC -shared'
  23725. + ;;
  23726. - ;;
  23727. - RCC*)
  23728. - # Rational C++ 2.4.1
  23729. - # FIXME: insert proper C++ library support
  23730. - ld_shlibs_CXX=no
  23731. - ;;
  23732. - cxx*)
  23733. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  23734. - 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'
  23735. -
  23736. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23737. - hardcode_libdir_separator_CXX=:
  23738. -
  23739. - # Commands to make compiler produce verbose output that lists
  23740. - # what "hidden" libraries, object files and flags are used when
  23741. - # linking a shared library.
  23742. - #
  23743. - # There doesn't appear to be a way to prevent this compiler from
  23744. - # explicitly linking system object files so we need to strip them
  23745. - # from the output so that they don't get included in the library
  23746. - # dependencies.
  23747. - 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'
  23748. - ;;
  23749. - *)
  23750. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23751. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  23752. - 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'
  23753. + osf3* | osf4* | osf5*)
  23754. + lt_prog_compiler_wl='-Wl,'
  23755. + # All OSF/1 code is PIC.
  23756. + lt_prog_compiler_static='-non_shared'
  23757. + ;;
  23758. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23759. - hardcode_libdir_separator_CXX=:
  23760. + rdos*)
  23761. + lt_prog_compiler_static='-non_shared'
  23762. + ;;
  23763. - # Commands to make compiler produce verbose output that lists
  23764. - # what "hidden" libraries, object files and flags are used when
  23765. - # linking a shared library.
  23766. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  23767. + solaris*)
  23768. + lt_prog_compiler_pic='-KPIC'
  23769. + lt_prog_compiler_static='-Bstatic'
  23770. + case $cc_basename in
  23771. + f77* | f90* | f95*)
  23772. + lt_prog_compiler_wl='-Qoption ld ';;
  23773. + *)
  23774. + lt_prog_compiler_wl='-Wl,';;
  23775. + esac
  23776. + ;;
  23777. - else
  23778. - # FIXME: insert proper C++ library support
  23779. - ld_shlibs_CXX=no
  23780. - fi
  23781. - ;;
  23782. - esac
  23783. - ;;
  23784. - osf4* | osf5*)
  23785. - case $cc_basename in
  23786. - KCC*)
  23787. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  23788. -
  23789. - # KCC will only create a shared library if the output file
  23790. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  23791. - # to its proper name (with version) after linking.
  23792. - 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'
  23793. + sunos4*)
  23794. + lt_prog_compiler_wl='-Qoption ld '
  23795. + lt_prog_compiler_pic='-PIC'
  23796. + lt_prog_compiler_static='-Bstatic'
  23797. + ;;
  23798. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23799. - hardcode_libdir_separator_CXX=:
  23800. + sysv4 | sysv4.2uw2* | sysv4.3*)
  23801. + lt_prog_compiler_wl='-Wl,'
  23802. + lt_prog_compiler_pic='-KPIC'
  23803. + lt_prog_compiler_static='-Bstatic'
  23804. + ;;
  23805. - # Archives containing C++ object files must be created using
  23806. - # the KAI C++ compiler.
  23807. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  23808. - ;;
  23809. - RCC*)
  23810. - # Rational C++ 2.4.1
  23811. - # FIXME: insert proper C++ library support
  23812. - ld_shlibs_CXX=no
  23813. - ;;
  23814. - cxx*)
  23815. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  23816. - 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'
  23817. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  23818. - echo "-hidden">> $lib.exp~
  23819. - $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~
  23820. - $rm $lib.exp'
  23821. -
  23822. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  23823. - hardcode_libdir_separator_CXX=:
  23824. -
  23825. - # Commands to make compiler produce verbose output that lists
  23826. - # what "hidden" libraries, object files and flags are used when
  23827. - # linking a shared library.
  23828. - #
  23829. - # There doesn't appear to be a way to prevent this compiler from
  23830. - # explicitly linking system object files so we need to strip them
  23831. - # from the output so that they don't get included in the library
  23832. - # dependencies.
  23833. - 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'
  23834. - ;;
  23835. - *)
  23836. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23837. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  23838. - 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'
  23839. + sysv4*MP*)
  23840. + if test -d /usr/nec ;then
  23841. + lt_prog_compiler_pic='-Kconform_pic'
  23842. + lt_prog_compiler_static='-Bstatic'
  23843. + fi
  23844. + ;;
  23845. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23846. - hardcode_libdir_separator_CXX=:
  23847. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23848. + lt_prog_compiler_wl='-Wl,'
  23849. + lt_prog_compiler_pic='-KPIC'
  23850. + lt_prog_compiler_static='-Bstatic'
  23851. + ;;
  23852. +
  23853. + unicos*)
  23854. + lt_prog_compiler_wl='-Wl,'
  23855. + lt_prog_compiler_can_build_shared=no
  23856. + ;;
  23857. - # Commands to make compiler produce verbose output that lists
  23858. - # what "hidden" libraries, object files and flags are used when
  23859. - # linking a shared library.
  23860. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  23861. + uts4*)
  23862. + lt_prog_compiler_pic='-pic'
  23863. + lt_prog_compiler_static='-Bstatic'
  23864. + ;;
  23865. - else
  23866. - # FIXME: insert proper C++ library support
  23867. - ld_shlibs_CXX=no
  23868. - fi
  23869. - ;;
  23870. + *)
  23871. + lt_prog_compiler_can_build_shared=no
  23872. + ;;
  23873. esac
  23874. + fi
  23875. +
  23876. +case $host_os in
  23877. + # For platforms which do not support PIC, -DPIC is meaningless:
  23878. + *djgpp*)
  23879. + lt_prog_compiler_pic=
  23880. ;;
  23881. - psos*)
  23882. - # FIXME: insert proper C++ library support
  23883. - ld_shlibs_CXX=no
  23884. - ;;
  23885. - sunos4*)
  23886. - case $cc_basename in
  23887. - CC*)
  23888. - # Sun C++ 4.x
  23889. - # FIXME: insert proper C++ library support
  23890. - ld_shlibs_CXX=no
  23891. - ;;
  23892. - lcc*)
  23893. - # Lucid
  23894. - # FIXME: insert proper C++ library support
  23895. - ld_shlibs_CXX=no
  23896. - ;;
  23897. - *)
  23898. - # FIXME: insert proper C++ library support
  23899. - ld_shlibs_CXX=no
  23900. - ;;
  23901. - esac
  23902. + *)
  23903. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  23904. ;;
  23905. - solaris*)
  23906. - case $cc_basename in
  23907. - CC*)
  23908. - # Sun C++ 4.2, 5.x and Centerline C++
  23909. - archive_cmds_need_lc_CXX=yes
  23910. - no_undefined_flag_CXX=' -zdefs'
  23911. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23912. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23913. - $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'
  23914. +esac
  23915. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  23916. +$as_echo "$lt_prog_compiler_pic" >&6; }
  23917. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  23918. - hardcode_shlibpath_var_CXX=no
  23919. - case $host_os in
  23920. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  23921. - *)
  23922. - # The compiler driver will combine and reorder linker options,
  23923. - # but understands `-z linker_flag'.
  23924. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  23925. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  23926. - ;;
  23927. - esac
  23928. - link_all_deplibs_CXX=yes
  23929. - output_verbose_link_cmd='echo'
  23930. -
  23931. - # Archives containing C++ object files must be created using
  23932. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  23933. - # necessary to make sure instantiated templates are included
  23934. - # in the archive.
  23935. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  23936. - ;;
  23937. - gcx*)
  23938. - # Green Hills C++ Compiler
  23939. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23940. -
  23941. - # The C++ compiler must be used to create the archive.
  23942. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  23943. - ;;
  23944. - *)
  23945. - # GNU C++ compiler with Solaris linker
  23946. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23947. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  23948. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  23949. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23950. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23951. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  23952. - # Commands to make compiler produce verbose output that lists
  23953. - # what "hidden" libraries, object files and flags are used when
  23954. - # linking a shared library.
  23955. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  23956. - else
  23957. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  23958. - # platform.
  23959. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23960. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23961. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  23962. - # Commands to make compiler produce verbose output that lists
  23963. - # what "hidden" libraries, object files and flags are used when
  23964. - # linking a shared library.
  23965. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  23966. - fi
  23967. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  23968. - case $host_os in
  23969. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  23970. - *)
  23971. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  23972. - ;;
  23973. - esac
  23974. - fi
  23975. - ;;
  23976. - esac
  23977. - ;;
  23978. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  23979. - no_undefined_flag_CXX='${wl}-z,text'
  23980. - archive_cmds_need_lc_CXX=no
  23981. - hardcode_shlibpath_var_CXX=no
  23982. - runpath_var='LD_RUN_PATH'
  23983. -
  23984. - case $cc_basename in
  23985. - CC*)
  23986. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23987. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23988. - ;;
  23989. - *)
  23990. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23991. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23992. - ;;
  23993. - esac
  23994. - ;;
  23995. - sysv5* | sco3.2v5* | sco5v6*)
  23996. - # Note: We can NOT use -z defs as we might desire, because we do not
  23997. - # link with -lc, and that would cause any symbols used from libc to
  23998. - # always be unresolved, which means just about no library would
  23999. - # ever link correctly. If we're not using GNU ld we use -z text
  24000. - # though, which does catch some bad symbols but isn't as heavy-handed
  24001. - # as -z defs.
  24002. - # For security reasons, it is highly recommended that you always
  24003. - # use absolute paths for naming shared libraries, and exclude the
  24004. - # DT_RUNPATH tag from executables and libraries. But doing so
  24005. - # requires that you compile everything twice, which is a pain.
  24006. - # So that behaviour is only enabled if SCOABSPATH is set to a
  24007. - # non-empty value in the environment. Most likely only useful for
  24008. - # creating official distributions of packages.
  24009. - # This is a hack until libtool officially supports absolute path
  24010. - # names for shared libraries.
  24011. - no_undefined_flag_CXX='${wl}-z,text'
  24012. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  24013. - archive_cmds_need_lc_CXX=no
  24014. - hardcode_shlibpath_var_CXX=no
  24015. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  24016. - hardcode_libdir_separator_CXX=':'
  24017. - link_all_deplibs_CXX=yes
  24018. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  24019. - runpath_var='LD_RUN_PATH'
  24020. -
  24021. - case $cc_basename in
  24022. - CC*)
  24023. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24024. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24025. - ;;
  24026. - *)
  24027. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24028. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24029. - ;;
  24030. - esac
  24031. - ;;
  24032. - tandem*)
  24033. - case $cc_basename in
  24034. - NCC*)
  24035. - # NonStop-UX NCC 3.20
  24036. - # FIXME: insert proper C++ library support
  24037. - ld_shlibs_CXX=no
  24038. - ;;
  24039. - *)
  24040. - # FIXME: insert proper C++ library support
  24041. - ld_shlibs_CXX=no
  24042. - ;;
  24043. - esac
  24044. - ;;
  24045. - vxworks*)
  24046. - # FIXME: insert proper C++ library support
  24047. - ld_shlibs_CXX=no
  24048. - ;;
  24049. - *)
  24050. - # FIXME: insert proper C++ library support
  24051. - ld_shlibs_CXX=no
  24052. - ;;
  24053. -esac
  24054. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  24055. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  24056. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  24057. -GCC_CXX="$GXX"
  24058. -LD_CXX="$LD"
  24059. +#
  24060. +# Check to make sure the PIC flag actually works.
  24061. +#
  24062. +if test -n "$lt_prog_compiler_pic"; then
  24063. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  24064. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  24065. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  24066. + $as_echo_n "(cached) " >&6
  24067. +else
  24068. + lt_cv_prog_compiler_pic_works=no
  24069. + ac_outfile=conftest.$ac_objext
  24070. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24071. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  24072. + # Insert the option either (1) after the last *FLAGS variable, or
  24073. + # (2) before a word containing "conftest.", or (3) at the end.
  24074. + # Note that $ac_compile itself does not contain backslashes and begins
  24075. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24076. + # The option is referenced via a variable to avoid confusing sed.
  24077. + lt_compile=`echo "$ac_compile" | $SED \
  24078. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24079. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24080. + -e 's:$: $lt_compiler_flag:'`
  24081. + (eval echo "\"\$as_me:9078: $lt_compile\"" >&5)
  24082. + (eval "$lt_compile" 2>conftest.err)
  24083. + ac_status=$?
  24084. + cat conftest.err >&5
  24085. + echo "$as_me:9082: \$? = $ac_status" >&5
  24086. + if (exit $ac_status) && test -s "$ac_outfile"; then
  24087. + # The compiler can only warn and ignore the option if not recognized
  24088. + # So say no if there are warnings other than the usual output.
  24089. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24090. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24091. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24092. + lt_cv_prog_compiler_pic_works=yes
  24093. + fi
  24094. + fi
  24095. + $RM conftest*
  24096. -cat > conftest.$ac_ext <<EOF
  24097. -class Foo
  24098. -{
  24099. -public:
  24100. - Foo (void) { a = 0; }
  24101. -private:
  24102. - int a;
  24103. -};
  24104. -EOF
  24105. +fi
  24106. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  24107. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  24108. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24109. - (eval $ac_compile) 2>&5
  24110. - ac_status=$?
  24111. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24112. - (exit $ac_status); }; then
  24113. - # Parse the compiler output and extract the necessary
  24114. - # objects, libraries and library flags.
  24115. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  24116. + case $lt_prog_compiler_pic in
  24117. + "" | " "*) ;;
  24118. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  24119. + esac
  24120. +else
  24121. + lt_prog_compiler_pic=
  24122. + lt_prog_compiler_can_build_shared=no
  24123. +fi
  24124. - # Sentinel used to keep track of whether or not we are before
  24125. - # the conftest object file.
  24126. - pre_test_object_deps_done=no
  24127. +fi
  24128. - # The `*' in the case matches for architectures that use `case' in
  24129. - # $output_verbose_cmd can trigger glob expansion during the loop
  24130. - # eval without this substitution.
  24131. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  24132. - for p in `eval $output_verbose_link_cmd`; do
  24133. - case $p in
  24134. - -L* | -R* | -l*)
  24135. - # Some compilers place space between "-{L,R}" and the path.
  24136. - # Remove the space.
  24137. - if test $p = "-L" \
  24138. - || test $p = "-R"; then
  24139. - prev=$p
  24140. - continue
  24141. - else
  24142. - prev=
  24143. - fi
  24144. - if test "$pre_test_object_deps_done" = no; then
  24145. - case $p in
  24146. - -L* | -R*)
  24147. - # Internal compiler library paths should come after those
  24148. - # provided the user. The postdeps already come after the
  24149. - # user supplied libs so there is no need to process them.
  24150. - if test -z "$compiler_lib_search_path_CXX"; then
  24151. - compiler_lib_search_path_CXX="${prev}${p}"
  24152. - else
  24153. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  24154. - fi
  24155. - ;;
  24156. - # The "-l" case would never come before the object being
  24157. - # linked, so don't bother handling this case.
  24158. - esac
  24159. - else
  24160. - if test -z "$postdeps_CXX"; then
  24161. - postdeps_CXX="${prev}${p}"
  24162. - else
  24163. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  24164. - fi
  24165. - fi
  24166. - ;;
  24167. - *.$objext)
  24168. - # This assumes that the test object file only shows up
  24169. - # once in the compiler output.
  24170. - if test "$p" = "conftest.$objext"; then
  24171. - pre_test_object_deps_done=yes
  24172. - continue
  24173. - fi
  24174. - if test "$pre_test_object_deps_done" = no; then
  24175. - if test -z "$predep_objects_CXX"; then
  24176. - predep_objects_CXX="$p"
  24177. - else
  24178. - predep_objects_CXX="$predep_objects_CXX $p"
  24179. - fi
  24180. - else
  24181. - if test -z "$postdep_objects_CXX"; then
  24182. - postdep_objects_CXX="$p"
  24183. - else
  24184. - postdep_objects_CXX="$postdep_objects_CXX $p"
  24185. - fi
  24186. +#
  24187. +# Check to make sure the static flag actually works.
  24188. +#
  24189. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24190. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24191. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  24192. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  24193. + $as_echo_n "(cached) " >&6
  24194. +else
  24195. + lt_cv_prog_compiler_static_works=no
  24196. + save_LDFLAGS="$LDFLAGS"
  24197. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24198. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  24199. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24200. + # The linker can only warn and ignore the option if not recognized
  24201. + # So say no if there are warnings
  24202. + if test -s conftest.err; then
  24203. + # Append any errors to the config.log.
  24204. + cat conftest.err 1>&5
  24205. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24206. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24207. + if diff conftest.exp conftest.er2 >/dev/null; then
  24208. + lt_cv_prog_compiler_static_works=yes
  24209. fi
  24210. - ;;
  24211. -
  24212. - *) ;; # Ignore the rest.
  24213. -
  24214. - esac
  24215. - done
  24216. + else
  24217. + lt_cv_prog_compiler_static_works=yes
  24218. + fi
  24219. + fi
  24220. + $RM -r conftest*
  24221. + LDFLAGS="$save_LDFLAGS"
  24222. - # Clean up.
  24223. - rm -f a.out a.exe
  24224. -else
  24225. - echo "libtool.m4: error: problem compiling CXX test program"
  24226. fi
  24227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  24228. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  24229. -$rm -f confest.$objext
  24230. -
  24231. -compiler_lib_search_dirs_CXX=
  24232. -if test -n "$compiler_lib_search_path_CXX"; then
  24233. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  24234. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  24235. + :
  24236. +else
  24237. + lt_prog_compiler_static=
  24238. fi
  24239. -# PORTME: override above test on systems where it is broken
  24240. -case $host_os in
  24241. -interix[3-9]*)
  24242. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  24243. - # hack all around it, let's just trust "g++" to DTRT.
  24244. - predep_objects_CXX=
  24245. - postdep_objects_CXX=
  24246. - postdeps_CXX=
  24247. - ;;
  24248. -
  24249. -linux*)
  24250. - case `$CC -V 2>&1 | sed 5q` in
  24251. - *Sun\ C*)
  24252. - # Sun C++ 5.9
  24253. - #
  24254. - # The more standards-conforming stlport4 library is
  24255. - # incompatible with the Cstd library. Avoid specifying
  24256. - # it if it's in CXXFLAGS. Ignore libCrun as
  24257. - # -library=stlport4 depends on it.
  24258. - case " $CXX $CXXFLAGS " in
  24259. - *" -library=stlport4 "*)
  24260. - solaris_use_stlport4=yes
  24261. - ;;
  24262. - esac
  24263. - if test "$solaris_use_stlport4" != yes; then
  24264. - postdeps_CXX='-library=Cstd -library=Crun'
  24265. - fi
  24266. - ;;
  24267. - esac
  24268. - ;;
  24269. -solaris*)
  24270. - case $cc_basename in
  24271. - CC*)
  24272. - # The more standards-conforming stlport4 library is
  24273. - # incompatible with the Cstd library. Avoid specifying
  24274. - # it if it's in CXXFLAGS. Ignore libCrun as
  24275. - # -library=stlport4 depends on it.
  24276. - case " $CXX $CXXFLAGS " in
  24277. - *" -library=stlport4 "*)
  24278. - solaris_use_stlport4=yes
  24279. - ;;
  24280. - esac
  24281. - # Adding this requires a known-good setup of shared libraries for
  24282. - # Sun compiler versions before 5.6, else PIC objects from an old
  24283. - # archive will be linked into the output, leading to subtle bugs.
  24284. - if test "$solaris_use_stlport4" != yes; then
  24285. - postdeps_CXX='-library=Cstd -library=Crun'
  24286. - fi
  24287. - ;;
  24288. - esac
  24289. - ;;
  24290. -esac
  24291. -case " $postdeps_CXX " in
  24292. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  24293. -esac
  24294. -lt_prog_compiler_wl_CXX=
  24295. -lt_prog_compiler_pic_CXX=
  24296. -lt_prog_compiler_static_CXX=
  24297. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  24298. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  24299. - # C++ specific cases for pic, static, wl, etc.
  24300. - if test "$GXX" = yes; then
  24301. - lt_prog_compiler_wl_CXX='-Wl,'
  24302. - lt_prog_compiler_static_CXX='-static'
  24303. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  24304. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  24305. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  24306. + $as_echo_n "(cached) " >&6
  24307. +else
  24308. + lt_cv_prog_compiler_c_o=no
  24309. + $RM -r conftest 2>/dev/null
  24310. + mkdir conftest
  24311. + cd conftest
  24312. + mkdir out
  24313. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24314. - case $host_os in
  24315. - aix*)
  24316. - # All AIX code is PIC.
  24317. - if test "$host_cpu" = ia64; then
  24318. - # AIX 5 now supports IA64 processor
  24319. - lt_prog_compiler_static_CXX='-Bstatic'
  24320. - fi
  24321. - ;;
  24322. - amigaos*)
  24323. - # FIXME: we need at least 68020 code to build shared libraries, but
  24324. - # adding the `-m68020' flag to GCC prevents building anything better,
  24325. - # like `-m68040'.
  24326. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  24327. - ;;
  24328. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  24329. - # PIC is the default for these OSes.
  24330. - ;;
  24331. - mingw* | cygwin* | os2* | pw32*)
  24332. - # This hack is so that the source file can tell whether it is being
  24333. - # built for inclusion in a dll (and should export symbols for example).
  24334. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  24335. - # (--disable-auto-import) libraries
  24336. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  24337. - ;;
  24338. - darwin* | rhapsody*)
  24339. - # PIC is the default on this platform
  24340. - # Common symbols not allowed in MH_DYLIB files
  24341. - lt_prog_compiler_pic_CXX='-fno-common'
  24342. - ;;
  24343. - *djgpp*)
  24344. - # DJGPP does not support shared libraries at all
  24345. - lt_prog_compiler_pic_CXX=
  24346. - ;;
  24347. - interix[3-9]*)
  24348. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  24349. - # Instead, we relocate shared libraries at runtime.
  24350. - ;;
  24351. - sysv4*MP*)
  24352. - if test -d /usr/nec; then
  24353. - lt_prog_compiler_pic_CXX=-Kconform_pic
  24354. - fi
  24355. - ;;
  24356. - hpux*)
  24357. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24358. - # not for PA HP-UX.
  24359. - case $host_cpu in
  24360. - hppa*64*|ia64*)
  24361. - ;;
  24362. - *)
  24363. - lt_prog_compiler_pic_CXX='-fPIC'
  24364. - ;;
  24365. - esac
  24366. - ;;
  24367. - *)
  24368. - lt_prog_compiler_pic_CXX='-fPIC'
  24369. - ;;
  24370. - esac
  24371. - else
  24372. - case $host_os in
  24373. - aix[4-9]*)
  24374. - # All AIX code is PIC.
  24375. - if test "$host_cpu" = ia64; then
  24376. - # AIX 5 now supports IA64 processor
  24377. - lt_prog_compiler_static_CXX='-Bstatic'
  24378. - else
  24379. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  24380. - fi
  24381. - ;;
  24382. - chorus*)
  24383. - case $cc_basename in
  24384. - cxch68*)
  24385. - # Green Hills C++ Compiler
  24386. - # _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"
  24387. - ;;
  24388. - esac
  24389. - ;;
  24390. - darwin*)
  24391. - # PIC is the default on this platform
  24392. - # Common symbols not allowed in MH_DYLIB files
  24393. - case $cc_basename in
  24394. - xlc*)
  24395. - lt_prog_compiler_pic_CXX='-qnocommon'
  24396. - lt_prog_compiler_wl_CXX='-Wl,'
  24397. - ;;
  24398. - esac
  24399. - ;;
  24400. - dgux*)
  24401. - case $cc_basename in
  24402. - ec++*)
  24403. - lt_prog_compiler_pic_CXX='-KPIC'
  24404. - ;;
  24405. - ghcx*)
  24406. - # Green Hills C++ Compiler
  24407. - lt_prog_compiler_pic_CXX='-pic'
  24408. - ;;
  24409. - *)
  24410. - ;;
  24411. - esac
  24412. - ;;
  24413. - freebsd* | dragonfly*)
  24414. - # FreeBSD uses GNU C++
  24415. - ;;
  24416. - hpux9* | hpux10* | hpux11*)
  24417. - case $cc_basename in
  24418. - CC*)
  24419. - lt_prog_compiler_wl_CXX='-Wl,'
  24420. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  24421. - if test "$host_cpu" != ia64; then
  24422. - lt_prog_compiler_pic_CXX='+Z'
  24423. - fi
  24424. - ;;
  24425. - aCC*)
  24426. - lt_prog_compiler_wl_CXX='-Wl,'
  24427. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  24428. - case $host_cpu in
  24429. - hppa*64*|ia64*)
  24430. - # +Z the default
  24431. - ;;
  24432. - *)
  24433. - lt_prog_compiler_pic_CXX='+Z'
  24434. - ;;
  24435. - esac
  24436. - ;;
  24437. - *)
  24438. - ;;
  24439. - esac
  24440. - ;;
  24441. - interix*)
  24442. - # This is c89, which is MS Visual C++ (no shared libs)
  24443. - # Anyone wants to do a port?
  24444. - ;;
  24445. - irix5* | irix6* | nonstopux*)
  24446. - case $cc_basename in
  24447. - CC*)
  24448. - lt_prog_compiler_wl_CXX='-Wl,'
  24449. - lt_prog_compiler_static_CXX='-non_shared'
  24450. - # CC pic flag -KPIC is the default.
  24451. - ;;
  24452. - *)
  24453. - ;;
  24454. - esac
  24455. - ;;
  24456. - linux* | k*bsd*-gnu)
  24457. - case $cc_basename in
  24458. - KCC*)
  24459. - # KAI C++ Compiler
  24460. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  24461. - lt_prog_compiler_pic_CXX='-fPIC'
  24462. - ;;
  24463. - icpc* | ecpc*)
  24464. - # Intel C++
  24465. - lt_prog_compiler_wl_CXX='-Wl,'
  24466. - lt_prog_compiler_pic_CXX='-KPIC'
  24467. - lt_prog_compiler_static_CXX='-static'
  24468. - ;;
  24469. - pgCC* | pgcpp*)
  24470. - # Portland Group C++ compiler.
  24471. - lt_prog_compiler_wl_CXX='-Wl,'
  24472. - lt_prog_compiler_pic_CXX='-fpic'
  24473. - lt_prog_compiler_static_CXX='-Bstatic'
  24474. - ;;
  24475. - cxx*)
  24476. - # Compaq C++
  24477. - # Make sure the PIC flag is empty. It appears that all Alpha
  24478. - # Linux and Compaq Tru64 Unix objects are PIC.
  24479. - lt_prog_compiler_pic_CXX=
  24480. - lt_prog_compiler_static_CXX='-non_shared'
  24481. - ;;
  24482. - *)
  24483. - case `$CC -V 2>&1 | sed 5q` in
  24484. - *Sun\ C*)
  24485. - # Sun C++ 5.9
  24486. - lt_prog_compiler_pic_CXX='-KPIC'
  24487. - lt_prog_compiler_static_CXX='-Bstatic'
  24488. - lt_prog_compiler_wl_CXX='-Qoption ld '
  24489. - ;;
  24490. - esac
  24491. - ;;
  24492. - esac
  24493. - ;;
  24494. - lynxos*)
  24495. - ;;
  24496. - m88k*)
  24497. - ;;
  24498. - mvs*)
  24499. - case $cc_basename in
  24500. - cxx*)
  24501. - lt_prog_compiler_pic_CXX='-W c,exportall'
  24502. - ;;
  24503. - *)
  24504. - ;;
  24505. - esac
  24506. - ;;
  24507. - netbsd*)
  24508. - ;;
  24509. - osf3* | osf4* | osf5*)
  24510. - case $cc_basename in
  24511. - KCC*)
  24512. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  24513. - ;;
  24514. - RCC*)
  24515. - # Rational C++ 2.4.1
  24516. - lt_prog_compiler_pic_CXX='-pic'
  24517. - ;;
  24518. - cxx*)
  24519. - # Digital/Compaq C++
  24520. - lt_prog_compiler_wl_CXX='-Wl,'
  24521. - # Make sure the PIC flag is empty. It appears that all Alpha
  24522. - # Linux and Compaq Tru64 Unix objects are PIC.
  24523. - lt_prog_compiler_pic_CXX=
  24524. - lt_prog_compiler_static_CXX='-non_shared'
  24525. - ;;
  24526. - *)
  24527. - ;;
  24528. - esac
  24529. - ;;
  24530. - psos*)
  24531. - ;;
  24532. - solaris*)
  24533. - case $cc_basename in
  24534. - CC*)
  24535. - # Sun C++ 4.2, 5.x and Centerline C++
  24536. - lt_prog_compiler_pic_CXX='-KPIC'
  24537. - lt_prog_compiler_static_CXX='-Bstatic'
  24538. - lt_prog_compiler_wl_CXX='-Qoption ld '
  24539. - ;;
  24540. - gcx*)
  24541. - # Green Hills C++ Compiler
  24542. - lt_prog_compiler_pic_CXX='-PIC'
  24543. - ;;
  24544. - *)
  24545. - ;;
  24546. - esac
  24547. - ;;
  24548. - sunos4*)
  24549. - case $cc_basename in
  24550. - CC*)
  24551. - # Sun C++ 4.x
  24552. - lt_prog_compiler_pic_CXX='-pic'
  24553. - lt_prog_compiler_static_CXX='-Bstatic'
  24554. - ;;
  24555. - lcc*)
  24556. - # Lucid
  24557. - lt_prog_compiler_pic_CXX='-pic'
  24558. - ;;
  24559. - *)
  24560. - ;;
  24561. - esac
  24562. - ;;
  24563. - tandem*)
  24564. - case $cc_basename in
  24565. - NCC*)
  24566. - # NonStop-UX NCC 3.20
  24567. - lt_prog_compiler_pic_CXX='-KPIC'
  24568. - ;;
  24569. - *)
  24570. - ;;
  24571. - esac
  24572. - ;;
  24573. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  24574. - case $cc_basename in
  24575. - CC*)
  24576. - lt_prog_compiler_wl_CXX='-Wl,'
  24577. - lt_prog_compiler_pic_CXX='-KPIC'
  24578. - lt_prog_compiler_static_CXX='-Bstatic'
  24579. - ;;
  24580. - esac
  24581. - ;;
  24582. - vxworks*)
  24583. - ;;
  24584. - *)
  24585. - lt_prog_compiler_can_build_shared_CXX=no
  24586. - ;;
  24587. - esac
  24588. - fi
  24589. -
  24590. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  24591. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  24592. -
  24593. -#
  24594. -# Check to make sure the PIC flag actually works.
  24595. -#
  24596. -if test -n "$lt_prog_compiler_pic_CXX"; then
  24597. -
  24598. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  24599. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  24600. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  24601. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24602. -else
  24603. - lt_cv_prog_compiler_pic_works_CXX=no
  24604. - ac_outfile=conftest.$ac_objext
  24605. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24606. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  24607. - # Insert the option either (1) after the last *FLAGS variable, or
  24608. - # (2) before a word containing "conftest.", or (3) at the end.
  24609. - # Note that $ac_compile itself does not contain backslashes and begins
  24610. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24611. - # The option is referenced via a variable to avoid confusing sed.
  24612. - lt_compile=`echo "$ac_compile" | $SED \
  24613. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24614. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24615. - -e 's:$: $lt_compiler_flag:'`
  24616. - (eval echo "\"\$as_me:13063: $lt_compile\"" >&5)
  24617. - (eval "$lt_compile" 2>conftest.err)
  24618. - ac_status=$?
  24619. - cat conftest.err >&5
  24620. - echo "$as_me:13067: \$? = $ac_status" >&5
  24621. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24622. - # The compiler can only warn and ignore the option if not recognized
  24623. - # So say no if there are warnings other than the usual output.
  24624. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24625. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24626. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24627. - lt_cv_prog_compiler_pic_works_CXX=yes
  24628. - fi
  24629. - fi
  24630. - $rm conftest*
  24631. -
  24632. -fi
  24633. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  24634. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  24635. -
  24636. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  24637. - case $lt_prog_compiler_pic_CXX in
  24638. - "" | " "*) ;;
  24639. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  24640. - esac
  24641. -else
  24642. - lt_prog_compiler_pic_CXX=
  24643. - lt_prog_compiler_can_build_shared_CXX=no
  24644. -fi
  24645. -
  24646. -fi
  24647. -case $host_os in
  24648. - # For platforms which do not support PIC, -DPIC is meaningless:
  24649. - *djgpp*)
  24650. - lt_prog_compiler_pic_CXX=
  24651. - ;;
  24652. - *)
  24653. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  24654. - ;;
  24655. -esac
  24656. -
  24657. -#
  24658. -# Check to make sure the static flag actually works.
  24659. -#
  24660. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  24661. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24662. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  24663. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  24664. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24665. -else
  24666. - lt_cv_prog_compiler_static_works_CXX=no
  24667. - save_LDFLAGS="$LDFLAGS"
  24668. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24669. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  24670. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24671. - # The linker can only warn and ignore the option if not recognized
  24672. - # So say no if there are warnings
  24673. - if test -s conftest.err; then
  24674. - # Append any errors to the config.log.
  24675. - cat conftest.err 1>&5
  24676. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24677. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24678. - if diff conftest.exp conftest.er2 >/dev/null; then
  24679. - lt_cv_prog_compiler_static_works_CXX=yes
  24680. - fi
  24681. - else
  24682. - lt_cv_prog_compiler_static_works_CXX=yes
  24683. - fi
  24684. - fi
  24685. - $rm -r conftest*
  24686. - LDFLAGS="$save_LDFLAGS"
  24687. -
  24688. -fi
  24689. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  24690. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  24691. -
  24692. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  24693. - :
  24694. -else
  24695. - lt_prog_compiler_static_CXX=
  24696. -fi
  24697. -
  24698. -
  24699. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24700. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  24701. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  24702. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24703. -else
  24704. - lt_cv_prog_compiler_c_o_CXX=no
  24705. - $rm -r conftest 2>/dev/null
  24706. - mkdir conftest
  24707. - cd conftest
  24708. - mkdir out
  24709. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24710. -
  24711. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  24712. - # Insert the option either (1) after the last *FLAGS variable, or
  24713. - # (2) before a word containing "conftest.", or (3) at the end.
  24714. - # Note that $ac_compile itself does not contain backslashes and begins
  24715. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24716. - lt_compile=`echo "$ac_compile" | $SED \
  24717. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24718. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24719. - -e 's:$: $lt_compiler_flag:'`
  24720. - (eval echo "\"\$as_me:13167: $lt_compile\"" >&5)
  24721. - (eval "$lt_compile" 2>out/conftest.err)
  24722. - ac_status=$?
  24723. - cat out/conftest.err >&5
  24724. - echo "$as_me:13171: \$? = $ac_status" >&5
  24725. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24726. - then
  24727. - # The compiler can only warn and ignore the option if not recognized
  24728. - # So say no if there are warnings
  24729. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24730. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24731. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24732. - lt_cv_prog_compiler_c_o_CXX=yes
  24733. - fi
  24734. - fi
  24735. - chmod u+w . 2>&5
  24736. - $rm conftest*
  24737. - # SGI C++ compiler will create directory out/ii_files/ for
  24738. - # template instantiation
  24739. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24740. - $rm out/* && rmdir out
  24741. - cd ..
  24742. - rmdir conftest
  24743. - $rm conftest*
  24744. -
  24745. -fi
  24746. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  24747. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  24748. -
  24749. -
  24750. -hard_links="nottested"
  24751. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  24752. - # do not overwrite the value of need_locks provided by the user
  24753. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24754. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  24755. - hard_links=yes
  24756. - $rm conftest*
  24757. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24758. - touch conftest.a
  24759. - ln conftest.a conftest.b 2>&5 || hard_links=no
  24760. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24761. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  24762. -echo "${ECHO_T}$hard_links" >&6; }
  24763. - if test "$hard_links" = no; then
  24764. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24765. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24766. - need_locks=warn
  24767. - fi
  24768. -else
  24769. - need_locks=no
  24770. -fi
  24771. -
  24772. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24773. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24774. -
  24775. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24776. - case $host_os in
  24777. - aix[4-9]*)
  24778. - # If we're using GNU nm, then we don't want the "-C" option.
  24779. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  24780. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  24781. - 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'
  24782. - else
  24783. - 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'
  24784. - fi
  24785. - ;;
  24786. - pw32*)
  24787. - export_symbols_cmds_CXX="$ltdll_cmds"
  24788. - ;;
  24789. - cygwin* | mingw*)
  24790. - 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'
  24791. - ;;
  24792. - *)
  24793. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24794. - ;;
  24795. - esac
  24796. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  24797. -
  24798. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  24799. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  24800. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  24801. -
  24802. -#
  24803. -# Do we need to explicitly link libc?
  24804. -#
  24805. -case "x$archive_cmds_need_lc_CXX" in
  24806. -x|xyes)
  24807. - # Assume -lc should be added
  24808. - archive_cmds_need_lc_CXX=yes
  24809. -
  24810. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  24811. - case $archive_cmds_CXX in
  24812. - *'~'*)
  24813. - # FIXME: we may have to deal with multi-command sequences.
  24814. - ;;
  24815. - '$CC '*)
  24816. - # Test whether the compiler implicitly links with -lc since on some
  24817. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  24818. - # to ld, don't add -lc before -lgcc.
  24819. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  24820. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  24821. - $rm conftest*
  24822. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24823. -
  24824. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24825. - (eval $ac_compile) 2>&5
  24826. - ac_status=$?
  24827. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24828. - (exit $ac_status); } 2>conftest.err; then
  24829. - soname=conftest
  24830. - lib=conftest
  24831. - libobjs=conftest.$ac_objext
  24832. - deplibs=
  24833. - wl=$lt_prog_compiler_wl_CXX
  24834. - pic_flag=$lt_prog_compiler_pic_CXX
  24835. - compiler_flags=-v
  24836. - linker_flags=-v
  24837. - verstring=
  24838. - output_objdir=.
  24839. - libname=conftest
  24840. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  24841. - allow_undefined_flag_CXX=
  24842. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  24843. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  24844. - ac_status=$?
  24845. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24846. - (exit $ac_status); }
  24847. - then
  24848. - archive_cmds_need_lc_CXX=no
  24849. - else
  24850. - archive_cmds_need_lc_CXX=yes
  24851. - fi
  24852. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  24853. - else
  24854. - cat conftest.err 1>&5
  24855. - fi
  24856. - $rm conftest*
  24857. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  24858. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  24859. - ;;
  24860. - esac
  24861. - fi
  24862. - ;;
  24863. -esac
  24864. -
  24865. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  24866. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  24867. -library_names_spec=
  24868. -libname_spec='lib$name'
  24869. -soname_spec=
  24870. -shrext_cmds=".so"
  24871. -postinstall_cmds=
  24872. -postuninstall_cmds=
  24873. -finish_cmds=
  24874. -finish_eval=
  24875. -shlibpath_var=
  24876. -shlibpath_overrides_runpath=unknown
  24877. -version_type=none
  24878. -dynamic_linker="$host_os ld.so"
  24879. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  24880. -
  24881. -need_lib_prefix=unknown
  24882. -hardcode_into_libs=no
  24883. -
  24884. -# when you set need_version to no, make sure it does not cause -set_version
  24885. -# flags to be left without arguments
  24886. -need_version=unknown
  24887. -
  24888. -case $host_os in
  24889. -aix3*)
  24890. - version_type=linux
  24891. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  24892. - shlibpath_var=LIBPATH
  24893. -
  24894. - # AIX 3 has no versioning support, so we append a major version to the name.
  24895. - soname_spec='${libname}${release}${shared_ext}$major'
  24896. - ;;
  24897. -
  24898. -aix[4-9]*)
  24899. - version_type=linux
  24900. - need_lib_prefix=no
  24901. - need_version=no
  24902. - hardcode_into_libs=yes
  24903. - if test "$host_cpu" = ia64; then
  24904. - # AIX 5 supports IA64
  24905. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  24906. - shlibpath_var=LD_LIBRARY_PATH
  24907. - else
  24908. - # With GCC up to 2.95.x, collect2 would create an import file
  24909. - # for dependence libraries. The import file would start with
  24910. - # the line `#! .'. This would cause the generated library to
  24911. - # depend on `.', always an invalid library. This was fixed in
  24912. - # development snapshots of GCC prior to 3.0.
  24913. - case $host_os in
  24914. - aix4 | aix4.[01] | aix4.[01].*)
  24915. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  24916. - echo ' yes '
  24917. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  24918. - :
  24919. - else
  24920. - can_build_shared=no
  24921. - fi
  24922. - ;;
  24923. - esac
  24924. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  24925. - # soname into executable. Probably we can add versioning support to
  24926. - # collect2, so additional links can be useful in future.
  24927. - if test "$aix_use_runtimelinking" = yes; then
  24928. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  24929. - # instead of lib<name>.a to let people know that these are not
  24930. - # typical AIX shared libraries.
  24931. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24932. - else
  24933. - # We preserve .a as extension for shared libraries through AIX4.2
  24934. - # and later when we are not doing run time linking.
  24935. - library_names_spec='${libname}${release}.a $libname.a'
  24936. - soname_spec='${libname}${release}${shared_ext}$major'
  24937. - fi
  24938. - shlibpath_var=LIBPATH
  24939. - fi
  24940. - ;;
  24941. -
  24942. -amigaos*)
  24943. - library_names_spec='$libname.ixlibrary $libname.a'
  24944. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  24945. - 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'
  24946. - ;;
  24947. -
  24948. -beos*)
  24949. - library_names_spec='${libname}${shared_ext}'
  24950. - dynamic_linker="$host_os ld.so"
  24951. - shlibpath_var=LIBRARY_PATH
  24952. - ;;
  24953. -
  24954. -bsdi[45]*)
  24955. - version_type=linux
  24956. - need_version=no
  24957. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24958. - soname_spec='${libname}${release}${shared_ext}$major'
  24959. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  24960. - shlibpath_var=LD_LIBRARY_PATH
  24961. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  24962. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  24963. - # the default ld.so.conf also contains /usr/contrib/lib and
  24964. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  24965. - # libtool to hard-code these into programs
  24966. - ;;
  24967. -
  24968. -cygwin* | mingw* | pw32*)
  24969. - version_type=windows
  24970. - shrext_cmds=".dll"
  24971. - need_version=no
  24972. - need_lib_prefix=no
  24973. -
  24974. - case $GCC,$host_os in
  24975. - yes,cygwin* | yes,mingw* | yes,pw32*)
  24976. - library_names_spec='$libname.dll.a'
  24977. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  24978. - postinstall_cmds='base_file=`basename \${file}`~
  24979. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  24980. - dldir=$destdir/`dirname \$dlpath`~
  24981. - test -d \$dldir || mkdir -p \$dldir~
  24982. - $install_prog $dir/$dlname \$dldir/$dlname~
  24983. - chmod a+x \$dldir/$dlname'
  24984. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  24985. - dlpath=$dir/\$dldll~
  24986. - $rm \$dlpath'
  24987. - shlibpath_overrides_runpath=yes
  24988. -
  24989. - case $host_os in
  24990. - cygwin*)
  24991. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  24992. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24993. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  24994. - ;;
  24995. - mingw*)
  24996. - # MinGW DLLs use traditional 'lib' prefix
  24997. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24998. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24999. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  25000. - # It is most probably a Windows format PATH printed by
  25001. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  25002. - # path with ; separators, and with drive letters. We can handle the
  25003. - # drive letters (cygwin fileutils understands them), so leave them,
  25004. - # especially as we might pass files found there to a mingw objdump,
  25005. - # which wouldn't understand a cygwinified path. Ahh.
  25006. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25007. - else
  25008. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25009. - fi
  25010. - ;;
  25011. - pw32*)
  25012. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  25013. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25014. - ;;
  25015. - esac
  25016. - ;;
  25017. -
  25018. - *)
  25019. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  25020. - ;;
  25021. - esac
  25022. - dynamic_linker='Win32 ld.exe'
  25023. - # FIXME: first we should search . and the directory the executable is in
  25024. - shlibpath_var=PATH
  25025. - ;;
  25026. -
  25027. -darwin* | rhapsody*)
  25028. - dynamic_linker="$host_os dyld"
  25029. - version_type=darwin
  25030. - need_lib_prefix=no
  25031. - need_version=no
  25032. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  25033. - soname_spec='${libname}${release}${major}$shared_ext'
  25034. - shlibpath_overrides_runpath=yes
  25035. - shlibpath_var=DYLD_LIBRARY_PATH
  25036. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  25037. -
  25038. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  25039. - ;;
  25040. -
  25041. -dgux*)
  25042. - version_type=linux
  25043. - need_lib_prefix=no
  25044. - need_version=no
  25045. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  25046. - soname_spec='${libname}${release}${shared_ext}$major'
  25047. - shlibpath_var=LD_LIBRARY_PATH
  25048. - ;;
  25049. -
  25050. -freebsd1*)
  25051. - dynamic_linker=no
  25052. - ;;
  25053. -
  25054. -freebsd* | dragonfly*)
  25055. - # DragonFly does not have aout. When/if they implement a new
  25056. - # versioning mechanism, adjust this.
  25057. - if test -x /usr/bin/objformat; then
  25058. - objformat=`/usr/bin/objformat`
  25059. - else
  25060. - case $host_os in
  25061. - freebsd[123]*) objformat=aout ;;
  25062. - *) objformat=elf ;;
  25063. - esac
  25064. - fi
  25065. - version_type=freebsd-$objformat
  25066. - case $version_type in
  25067. - freebsd-elf*)
  25068. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25069. - need_version=no
  25070. - need_lib_prefix=no
  25071. - ;;
  25072. - freebsd-*)
  25073. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  25074. - need_version=yes
  25075. - ;;
  25076. - esac
  25077. - shlibpath_var=LD_LIBRARY_PATH
  25078. - case $host_os in
  25079. - freebsd2*)
  25080. - shlibpath_overrides_runpath=yes
  25081. - ;;
  25082. - freebsd3.[01]* | freebsdelf3.[01]*)
  25083. - shlibpath_overrides_runpath=yes
  25084. - hardcode_into_libs=yes
  25085. - ;;
  25086. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  25087. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  25088. - shlibpath_overrides_runpath=no
  25089. - hardcode_into_libs=yes
  25090. - ;;
  25091. - *) # from 4.6 on, and DragonFly
  25092. - shlibpath_overrides_runpath=yes
  25093. - hardcode_into_libs=yes
  25094. - ;;
  25095. - esac
  25096. - ;;
  25097. -
  25098. -gnu*)
  25099. - version_type=linux
  25100. - need_lib_prefix=no
  25101. - need_version=no
  25102. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  25103. - soname_spec='${libname}${release}${shared_ext}$major'
  25104. - shlibpath_var=LD_LIBRARY_PATH
  25105. - hardcode_into_libs=yes
  25106. - ;;
  25107. -
  25108. -hpux9* | hpux10* | hpux11*)
  25109. - # Give a soname corresponding to the major version so that dld.sl refuses to
  25110. - # link against other versions.
  25111. - version_type=sunos
  25112. - need_lib_prefix=no
  25113. - need_version=no
  25114. - case $host_cpu in
  25115. - ia64*)
  25116. - shrext_cmds='.so'
  25117. - hardcode_into_libs=yes
  25118. - dynamic_linker="$host_os dld.so"
  25119. - shlibpath_var=LD_LIBRARY_PATH
  25120. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25121. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25122. - soname_spec='${libname}${release}${shared_ext}$major'
  25123. - if test "X$HPUX_IA64_MODE" = X32; then
  25124. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  25125. - else
  25126. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  25127. - fi
  25128. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25129. - ;;
  25130. - hppa*64*)
  25131. - shrext_cmds='.sl'
  25132. - hardcode_into_libs=yes
  25133. - dynamic_linker="$host_os dld.sl"
  25134. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  25135. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25136. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25137. - soname_spec='${libname}${release}${shared_ext}$major'
  25138. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  25139. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25140. - ;;
  25141. - *)
  25142. - shrext_cmds='.sl'
  25143. - dynamic_linker="$host_os dld.sl"
  25144. - shlibpath_var=SHLIB_PATH
  25145. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  25146. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25147. - soname_spec='${libname}${release}${shared_ext}$major'
  25148. - ;;
  25149. - esac
  25150. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  25151. - postinstall_cmds='chmod 555 $lib'
  25152. - ;;
  25153. -
  25154. -interix[3-9]*)
  25155. - version_type=linux
  25156. - need_lib_prefix=no
  25157. - need_version=no
  25158. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25159. - soname_spec='${libname}${release}${shared_ext}$major'
  25160. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  25161. - shlibpath_var=LD_LIBRARY_PATH
  25162. - shlibpath_overrides_runpath=no
  25163. - hardcode_into_libs=yes
  25164. - ;;
  25165. -
  25166. -irix5* | irix6* | nonstopux*)
  25167. - case $host_os in
  25168. - nonstopux*) version_type=nonstopux ;;
  25169. - *)
  25170. - if test "$lt_cv_prog_gnu_ld" = yes; then
  25171. - version_type=linux
  25172. - else
  25173. - version_type=irix
  25174. - fi ;;
  25175. - esac
  25176. - need_lib_prefix=no
  25177. - need_version=no
  25178. - soname_spec='${libname}${release}${shared_ext}$major'
  25179. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  25180. - case $host_os in
  25181. - irix5* | nonstopux*)
  25182. - libsuff= shlibsuff=
  25183. - ;;
  25184. - *)
  25185. - case $LD in # libtool.m4 will add one of these switches to LD
  25186. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  25187. - libsuff= shlibsuff= libmagic=32-bit;;
  25188. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  25189. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  25190. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  25191. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  25192. - *) libsuff= shlibsuff= libmagic=never-match;;
  25193. - esac
  25194. - ;;
  25195. - esac
  25196. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  25197. - shlibpath_overrides_runpath=no
  25198. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  25199. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  25200. - hardcode_into_libs=yes
  25201. - ;;
  25202. -
  25203. -# No shared lib support for Linux oldld, aout, or coff.
  25204. -linux*oldld* | linux*aout* | linux*coff*)
  25205. - dynamic_linker=no
  25206. - ;;
  25207. -
  25208. -# This must be Linux ELF.
  25209. -linux* | k*bsd*-gnu)
  25210. - version_type=linux
  25211. - need_lib_prefix=no
  25212. - need_version=no
  25213. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25214. - soname_spec='${libname}${release}${shared_ext}$major'
  25215. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  25216. - shlibpath_var=LD_LIBRARY_PATH
  25217. - shlibpath_overrides_runpath=no
  25218. - # This implies no fast_install, which is unacceptable.
  25219. - # Some rework will be needed to allow for fast_install
  25220. - # before this can be enabled.
  25221. - hardcode_into_libs=yes
  25222. -
  25223. - # Append ld.so.conf contents to the search path
  25224. - if test -f /etc/ld.so.conf; then
  25225. - 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' ' '`
  25226. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  25227. - fi
  25228. -
  25229. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  25230. - # powerpc, because MkLinux only supported shared libraries with the
  25231. - # GNU dynamic linker. Since this was broken with cross compilers,
  25232. - # most powerpc-linux boxes support dynamic linking these days and
  25233. - # people can always --disable-shared, the test was removed, and we
  25234. - # assume the GNU/Linux dynamic linker is in use.
  25235. - dynamic_linker='GNU/Linux ld.so'
  25236. - ;;
  25237. -
  25238. -netbsd*)
  25239. - version_type=sunos
  25240. - need_lib_prefix=no
  25241. - need_version=no
  25242. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25243. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25244. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25245. - dynamic_linker='NetBSD (a.out) ld.so'
  25246. - else
  25247. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25248. - soname_spec='${libname}${release}${shared_ext}$major'
  25249. - dynamic_linker='NetBSD ld.elf_so'
  25250. - fi
  25251. - shlibpath_var=LD_LIBRARY_PATH
  25252. - shlibpath_overrides_runpath=yes
  25253. - hardcode_into_libs=yes
  25254. - ;;
  25255. -
  25256. -newsos6)
  25257. - version_type=linux
  25258. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25259. - shlibpath_var=LD_LIBRARY_PATH
  25260. - shlibpath_overrides_runpath=yes
  25261. - ;;
  25262. -
  25263. -nto-qnx*)
  25264. - version_type=linux
  25265. - need_lib_prefix=no
  25266. - need_version=no
  25267. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25268. - soname_spec='${libname}${release}${shared_ext}$major'
  25269. - shlibpath_var=LD_LIBRARY_PATH
  25270. - shlibpath_overrides_runpath=yes
  25271. - ;;
  25272. -
  25273. -openbsd*)
  25274. - version_type=sunos
  25275. - sys_lib_dlsearch_path_spec="/usr/lib"
  25276. - need_lib_prefix=no
  25277. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  25278. - case $host_os in
  25279. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  25280. - *) need_version=no ;;
  25281. - esac
  25282. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25283. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25284. - shlibpath_var=LD_LIBRARY_PATH
  25285. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25286. - case $host_os in
  25287. - openbsd2.[89] | openbsd2.[89].*)
  25288. - shlibpath_overrides_runpath=no
  25289. - ;;
  25290. - *)
  25291. - shlibpath_overrides_runpath=yes
  25292. - ;;
  25293. - esac
  25294. - else
  25295. - shlibpath_overrides_runpath=yes
  25296. - fi
  25297. - ;;
  25298. -
  25299. -os2*)
  25300. - libname_spec='$name'
  25301. - shrext_cmds=".dll"
  25302. - need_lib_prefix=no
  25303. - library_names_spec='$libname${shared_ext} $libname.a'
  25304. - dynamic_linker='OS/2 ld.exe'
  25305. - shlibpath_var=LIBPATH
  25306. - ;;
  25307. -
  25308. -osf3* | osf4* | osf5*)
  25309. - version_type=osf
  25310. - need_lib_prefix=no
  25311. - need_version=no
  25312. - soname_spec='${libname}${release}${shared_ext}$major'
  25313. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25314. - shlibpath_var=LD_LIBRARY_PATH
  25315. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  25316. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  25317. - ;;
  25318. -
  25319. -rdos*)
  25320. - dynamic_linker=no
  25321. - ;;
  25322. -
  25323. -solaris*)
  25324. - version_type=linux
  25325. - need_lib_prefix=no
  25326. - need_version=no
  25327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25328. - soname_spec='${libname}${release}${shared_ext}$major'
  25329. - shlibpath_var=LD_LIBRARY_PATH
  25330. - shlibpath_overrides_runpath=yes
  25331. - hardcode_into_libs=yes
  25332. - # ldd complains unless libraries are executable
  25333. - postinstall_cmds='chmod +x $lib'
  25334. - ;;
  25335. -
  25336. -sunos4*)
  25337. - version_type=sunos
  25338. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25339. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  25340. - shlibpath_var=LD_LIBRARY_PATH
  25341. - shlibpath_overrides_runpath=yes
  25342. - if test "$with_gnu_ld" = yes; then
  25343. - need_lib_prefix=no
  25344. - fi
  25345. - need_version=yes
  25346. - ;;
  25347. -
  25348. -sysv4 | sysv4.3*)
  25349. - version_type=linux
  25350. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25351. - soname_spec='${libname}${release}${shared_ext}$major'
  25352. - shlibpath_var=LD_LIBRARY_PATH
  25353. - case $host_vendor in
  25354. - sni)
  25355. - shlibpath_overrides_runpath=no
  25356. - need_lib_prefix=no
  25357. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  25358. - runpath_var=LD_RUN_PATH
  25359. - ;;
  25360. - siemens)
  25361. - need_lib_prefix=no
  25362. - ;;
  25363. - motorola)
  25364. - need_lib_prefix=no
  25365. - need_version=no
  25366. - shlibpath_overrides_runpath=no
  25367. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  25368. - ;;
  25369. - esac
  25370. - ;;
  25371. -
  25372. -sysv4*MP*)
  25373. - if test -d /usr/nec ;then
  25374. - version_type=linux
  25375. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  25376. - soname_spec='$libname${shared_ext}.$major'
  25377. - shlibpath_var=LD_LIBRARY_PATH
  25378. - fi
  25379. - ;;
  25380. -
  25381. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  25382. - version_type=freebsd-elf
  25383. - need_lib_prefix=no
  25384. - need_version=no
  25385. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25386. - soname_spec='${libname}${release}${shared_ext}$major'
  25387. - shlibpath_var=LD_LIBRARY_PATH
  25388. - hardcode_into_libs=yes
  25389. - if test "$with_gnu_ld" = yes; then
  25390. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  25391. - shlibpath_overrides_runpath=no
  25392. - else
  25393. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  25394. - shlibpath_overrides_runpath=yes
  25395. - case $host_os in
  25396. - sco3.2v5*)
  25397. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  25398. - ;;
  25399. - esac
  25400. - fi
  25401. - sys_lib_dlsearch_path_spec='/usr/lib'
  25402. - ;;
  25403. -
  25404. -uts4*)
  25405. - version_type=linux
  25406. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25407. - soname_spec='${libname}${release}${shared_ext}$major'
  25408. - shlibpath_var=LD_LIBRARY_PATH
  25409. - ;;
  25410. -
  25411. -*)
  25412. - dynamic_linker=no
  25413. - ;;
  25414. -esac
  25415. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  25416. -echo "${ECHO_T}$dynamic_linker" >&6; }
  25417. -test "$dynamic_linker" = no && can_build_shared=no
  25418. -
  25419. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  25420. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25421. -else
  25422. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  25423. -fi
  25424. -
  25425. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  25426. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  25427. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25428. -else
  25429. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  25430. -fi
  25431. -
  25432. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  25433. -
  25434. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  25435. -if test "$GCC" = yes; then
  25436. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  25437. -fi
  25438. -
  25439. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  25440. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  25441. -hardcode_action_CXX=
  25442. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  25443. - test -n "$runpath_var_CXX" || \
  25444. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  25445. -
  25446. - # We can hardcode non-existant directories.
  25447. - if test "$hardcode_direct_CXX" != no &&
  25448. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  25449. - # have to relink, otherwise we might link with an installed library
  25450. - # when we should be linking with a yet-to-be-installed one
  25451. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  25452. - test "$hardcode_minus_L_CXX" != no; then
  25453. - # Linking always hardcodes the temporary library directory.
  25454. - hardcode_action_CXX=relink
  25455. - else
  25456. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  25457. - hardcode_action_CXX=immediate
  25458. - fi
  25459. -else
  25460. - # We cannot hardcode anything, or else we can only hardcode existing
  25461. - # directories.
  25462. - hardcode_action_CXX=unsupported
  25463. -fi
  25464. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  25465. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  25466. -
  25467. -if test "$hardcode_action_CXX" = relink; then
  25468. - # Fast installation is not supported
  25469. - enable_fast_install=no
  25470. -elif test "$shlibpath_overrides_runpath" = yes ||
  25471. - test "$enable_shared" = no; then
  25472. - # Fast installation is not necessary
  25473. - enable_fast_install=needless
  25474. -fi
  25475. -
  25476. -
  25477. -# The else clause should only fire when bootstrapping the
  25478. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  25479. -# with your package, and you will get complaints that there are
  25480. -# no rules to generate ltmain.sh.
  25481. -if test -f "$ltmain"; then
  25482. - # See if we are running on zsh, and set the options which allow our commands through
  25483. - # without removal of \ escapes.
  25484. - if test -n "${ZSH_VERSION+set}" ; then
  25485. - setopt NO_GLOB_SUBST
  25486. - fi
  25487. - # Now quote all the things that may contain metacharacters while being
  25488. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  25489. - # variables and quote the copies for generation of the libtool script.
  25490. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  25491. - SED SHELL STRIP \
  25492. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  25493. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  25494. - deplibs_check_method reload_flag reload_cmds need_locks \
  25495. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  25496. - lt_cv_sys_global_symbol_to_c_name_address \
  25497. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  25498. - old_postinstall_cmds old_postuninstall_cmds \
  25499. - compiler_CXX \
  25500. - CC_CXX \
  25501. - LD_CXX \
  25502. - lt_prog_compiler_wl_CXX \
  25503. - lt_prog_compiler_pic_CXX \
  25504. - lt_prog_compiler_static_CXX \
  25505. - lt_prog_compiler_no_builtin_flag_CXX \
  25506. - export_dynamic_flag_spec_CXX \
  25507. - thread_safe_flag_spec_CXX \
  25508. - whole_archive_flag_spec_CXX \
  25509. - enable_shared_with_static_runtimes_CXX \
  25510. - old_archive_cmds_CXX \
  25511. - old_archive_from_new_cmds_CXX \
  25512. - predep_objects_CXX \
  25513. - postdep_objects_CXX \
  25514. - predeps_CXX \
  25515. - postdeps_CXX \
  25516. - compiler_lib_search_path_CXX \
  25517. - compiler_lib_search_dirs_CXX \
  25518. - archive_cmds_CXX \
  25519. - archive_expsym_cmds_CXX \
  25520. - postinstall_cmds_CXX \
  25521. - postuninstall_cmds_CXX \
  25522. - old_archive_from_expsyms_cmds_CXX \
  25523. - allow_undefined_flag_CXX \
  25524. - no_undefined_flag_CXX \
  25525. - export_symbols_cmds_CXX \
  25526. - hardcode_libdir_flag_spec_CXX \
  25527. - hardcode_libdir_flag_spec_ld_CXX \
  25528. - hardcode_libdir_separator_CXX \
  25529. - hardcode_automatic_CXX \
  25530. - module_cmds_CXX \
  25531. - module_expsym_cmds_CXX \
  25532. - lt_cv_prog_compiler_c_o_CXX \
  25533. - fix_srcfile_path_CXX \
  25534. - exclude_expsyms_CXX \
  25535. - include_expsyms_CXX; do
  25536. -
  25537. - case $var in
  25538. - old_archive_cmds_CXX | \
  25539. - old_archive_from_new_cmds_CXX | \
  25540. - archive_cmds_CXX | \
  25541. - archive_expsym_cmds_CXX | \
  25542. - module_cmds_CXX | \
  25543. - module_expsym_cmds_CXX | \
  25544. - old_archive_from_expsyms_cmds_CXX | \
  25545. - export_symbols_cmds_CXX | \
  25546. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  25547. - postinstall_cmds | postuninstall_cmds | \
  25548. - old_postinstall_cmds | old_postuninstall_cmds | \
  25549. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  25550. - # Double-quote double-evaled strings.
  25551. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  25552. - ;;
  25553. - *)
  25554. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  25555. - ;;
  25556. - esac
  25557. - done
  25558. -
  25559. - case $lt_echo in
  25560. - *'\$0 --fallback-echo"')
  25561. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  25562. - ;;
  25563. - esac
  25564. -
  25565. -cfgfile="$ofile"
  25566. -
  25567. - cat <<__EOF__ >> "$cfgfile"
  25568. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  25569. -
  25570. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25571. -
  25572. -# Shell to use when invoking shell scripts.
  25573. -SHELL=$lt_SHELL
  25574. -
  25575. -# Whether or not to build shared libraries.
  25576. -build_libtool_libs=$enable_shared
  25577. -
  25578. -# Whether or not to build static libraries.
  25579. -build_old_libs=$enable_static
  25580. -
  25581. -# Whether or not to add -lc for building shared libraries.
  25582. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25583. -
  25584. -# Whether or not to disallow shared libs when runtime libs are static
  25585. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25586. -
  25587. -# Whether or not to optimize for fast installation.
  25588. -fast_install=$enable_fast_install
  25589. -
  25590. -# The host system.
  25591. -host_alias=$host_alias
  25592. -host=$host
  25593. -host_os=$host_os
  25594. -
  25595. -# The build system.
  25596. -build_alias=$build_alias
  25597. -build=$build
  25598. -build_os=$build_os
  25599. -
  25600. -# An echo program that does not interpret backslashes.
  25601. -echo=$lt_echo
  25602. -
  25603. -# The archiver.
  25604. -AR=$lt_AR
  25605. -AR_FLAGS=$lt_AR_FLAGS
  25606. -
  25607. -# A C compiler.
  25608. -LTCC=$lt_LTCC
  25609. -
  25610. -# LTCC compiler flags.
  25611. -LTCFLAGS=$lt_LTCFLAGS
  25612. -
  25613. -# A language-specific compiler.
  25614. -CC=$lt_compiler_CXX
  25615. -
  25616. -# Is the compiler the GNU C compiler?
  25617. -with_gcc=$GCC_CXX
  25618. -
  25619. -# An ERE matcher.
  25620. -EGREP=$lt_EGREP
  25621. -
  25622. -# The linker used to build libraries.
  25623. -LD=$lt_LD_CXX
  25624. -
  25625. -# Whether we need hard or soft links.
  25626. -LN_S=$lt_LN_S
  25627. -
  25628. -# A BSD-compatible nm program.
  25629. -NM=$lt_NM
  25630. -
  25631. -# A symbol stripping program
  25632. -STRIP=$lt_STRIP
  25633. -
  25634. -# Used to examine libraries when file_magic_cmd begins "file"
  25635. -MAGIC_CMD=$MAGIC_CMD
  25636. -
  25637. -# Used on cygwin: DLL creation program.
  25638. -DLLTOOL="$DLLTOOL"
  25639. -
  25640. -# Used on cygwin: object dumper.
  25641. -OBJDUMP="$OBJDUMP"
  25642. -
  25643. -# Used on cygwin: assembler.
  25644. -AS="$AS"
  25645. -
  25646. -# The name of the directory that contains temporary libtool files.
  25647. -objdir=$objdir
  25648. -
  25649. -# How to create reloadable object files.
  25650. -reload_flag=$lt_reload_flag
  25651. -reload_cmds=$lt_reload_cmds
  25652. -
  25653. -# How to pass a linker flag through the compiler.
  25654. -wl=$lt_lt_prog_compiler_wl_CXX
  25655. -
  25656. -# Object file suffix (normally "o").
  25657. -objext="$ac_objext"
  25658. -
  25659. -# Old archive suffix (normally "a").
  25660. -libext="$libext"
  25661. -
  25662. -# Shared library suffix (normally ".so").
  25663. -shrext_cmds='$shrext_cmds'
  25664. -
  25665. -# Executable file suffix (normally "").
  25666. -exeext="$exeext"
  25667. -
  25668. -# Additional compiler flags for building library objects.
  25669. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  25670. -pic_mode=$pic_mode
  25671. -
  25672. -# What is the maximum length of a command?
  25673. -max_cmd_len=$lt_cv_sys_max_cmd_len
  25674. -
  25675. -# Does compiler simultaneously support -c and -o options?
  25676. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25677. -
  25678. -# Must we lock files when doing compilation?
  25679. -need_locks=$lt_need_locks
  25680. -
  25681. -# Do we need the lib prefix for modules?
  25682. -need_lib_prefix=$need_lib_prefix
  25683. -
  25684. -# Do we need a version for libraries?
  25685. -need_version=$need_version
  25686. -
  25687. -# Whether dlopen is supported.
  25688. -dlopen_support=$enable_dlopen
  25689. -
  25690. -# Whether dlopen of programs is supported.
  25691. -dlopen_self=$enable_dlopen_self
  25692. -
  25693. -# Whether dlopen of statically linked programs is supported.
  25694. -dlopen_self_static=$enable_dlopen_self_static
  25695. -
  25696. -# Compiler flag to prevent dynamic linking.
  25697. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  25698. -
  25699. -# Compiler flag to turn off builtin functions.
  25700. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25701. -
  25702. -# Compiler flag to allow reflexive dlopens.
  25703. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25704. -
  25705. -# Compiler flag to generate shared objects directly from archives.
  25706. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25707. -
  25708. -# Compiler flag to generate thread-safe objects.
  25709. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  25710. -
  25711. -# Library versioning type.
  25712. -version_type=$version_type
  25713. -
  25714. -# Format of library name prefix.
  25715. -libname_spec=$lt_libname_spec
  25716. -
  25717. -# List of archive names. First name is the real one, the rest are links.
  25718. -# The last name is the one that the linker finds with -lNAME.
  25719. -library_names_spec=$lt_library_names_spec
  25720. -
  25721. -# The coded name of the library, if different from the real name.
  25722. -soname_spec=$lt_soname_spec
  25723. -
  25724. -# Commands used to build and install an old-style archive.
  25725. -RANLIB=$lt_RANLIB
  25726. -old_archive_cmds=$lt_old_archive_cmds_CXX
  25727. -old_postinstall_cmds=$lt_old_postinstall_cmds
  25728. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25729. -
  25730. -# Create an old-style archive from a shared archive.
  25731. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25732. -
  25733. -# Create a temporary old-style archive to link instead of a shared archive.
  25734. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25735. -
  25736. -# Commands used to build and install a shared archive.
  25737. -archive_cmds=$lt_archive_cmds_CXX
  25738. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25739. -postinstall_cmds=$lt_postinstall_cmds
  25740. -postuninstall_cmds=$lt_postuninstall_cmds
  25741. -
  25742. -# Commands used to build a loadable module (assumed same as above if empty)
  25743. -module_cmds=$lt_module_cmds_CXX
  25744. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25745. -
  25746. -# Commands to strip libraries.
  25747. -old_striplib=$lt_old_striplib
  25748. -striplib=$lt_striplib
  25749. -
  25750. -# Dependencies to place before the objects being linked to create a
  25751. -# shared library.
  25752. -predep_objects=$lt_predep_objects_CXX
  25753. -
  25754. -# Dependencies to place after the objects being linked to create a
  25755. -# shared library.
  25756. -postdep_objects=$lt_postdep_objects_CXX
  25757. -
  25758. -# Dependencies to place before the objects being linked to create a
  25759. -# shared library.
  25760. -predeps=$lt_predeps_CXX
  25761. -
  25762. -# Dependencies to place after the objects being linked to create a
  25763. -# shared library.
  25764. -postdeps=$lt_postdeps_CXX
  25765. -
  25766. -# The directories searched by this compiler when creating a shared
  25767. -# library
  25768. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25769. -
  25770. -# The library search path used internally by the compiler when linking
  25771. -# a shared library.
  25772. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25773. -
  25774. -# Method to check whether dependent libraries are shared objects.
  25775. -deplibs_check_method=$lt_deplibs_check_method
  25776. -
  25777. -# Command to use when deplibs_check_method == file_magic.
  25778. -file_magic_cmd=$lt_file_magic_cmd
  25779. -
  25780. -# Flag that allows shared libraries with undefined symbols to be built.
  25781. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25782. -
  25783. -# Flag that forces no undefined symbols.
  25784. -no_undefined_flag=$lt_no_undefined_flag_CXX
  25785. -
  25786. -# Commands used to finish a libtool library installation in a directory.
  25787. -finish_cmds=$lt_finish_cmds
  25788. -
  25789. -# Same as above, but a single script fragment to be evaled but not shown.
  25790. -finish_eval=$lt_finish_eval
  25791. -
  25792. -# Take the output of nm and produce a listing of raw symbols and C names.
  25793. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25794. -
  25795. -# Transform the output of nm in a proper C declaration
  25796. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25797. -
  25798. -# Transform the output of nm in a C name address pair
  25799. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25800. -
  25801. -# This is the shared library runtime path variable.
  25802. -runpath_var=$runpath_var
  25803. -
  25804. -# This is the shared library path variable.
  25805. -shlibpath_var=$shlibpath_var
  25806. -
  25807. -# Is shlibpath searched before the hard-coded library search path?
  25808. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25809. -
  25810. -# How to hardcode a shared library path into an executable.
  25811. -hardcode_action=$hardcode_action_CXX
  25812. -
  25813. -# Whether we should hardcode library paths into libraries.
  25814. -hardcode_into_libs=$hardcode_into_libs
  25815. -
  25816. -# Flag to hardcode \$libdir into a binary during linking.
  25817. -# This must work even if \$libdir does not exist.
  25818. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25819. -
  25820. -# If ld is used when linking, flag to hardcode \$libdir into
  25821. -# a binary during linking. This must work even if \$libdir does
  25822. -# not exist.
  25823. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  25824. -
  25825. -# Whether we need a single -rpath flag with a separated argument.
  25826. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25827. -
  25828. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  25829. -# resulting binary.
  25830. -hardcode_direct=$hardcode_direct_CXX
  25831. -
  25832. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  25833. -# resulting binary.
  25834. -hardcode_minus_L=$hardcode_minus_L_CXX
  25835. -
  25836. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  25837. -# the resulting binary.
  25838. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25839. -
  25840. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  25841. -# and all subsequent libraries and executables linked against it.
  25842. -hardcode_automatic=$hardcode_automatic_CXX
  25843. -
  25844. -# Variables whose values should be saved in libtool wrapper scripts and
  25845. -# restored at relink time.
  25846. -variables_saved_for_relink="$variables_saved_for_relink"
  25847. -
  25848. -# Whether libtool must link a program against all its dependency libraries.
  25849. -link_all_deplibs=$link_all_deplibs_CXX
  25850. -
  25851. -# Compile-time system search path for libraries
  25852. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25853. -
  25854. -# Run-time system search path for libraries
  25855. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  25856. -
  25857. -# Fix the shell variable \$srcfile for the compiler.
  25858. -fix_srcfile_path=$lt_fix_srcfile_path
  25859. -
  25860. -# Set to yes if exported symbols are required.
  25861. -always_export_symbols=$always_export_symbols_CXX
  25862. -
  25863. -# The commands to list exported symbols.
  25864. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25865. -
  25866. -# The commands to extract the exported symbol list from a shared archive.
  25867. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25868. -
  25869. -# Symbols that should not be listed in the preloaded symbols.
  25870. -exclude_expsyms=$lt_exclude_expsyms_CXX
  25871. -
  25872. -# Symbols that must always be exported.
  25873. -include_expsyms=$lt_include_expsyms_CXX
  25874. -
  25875. -# ### END LIBTOOL TAG CONFIG: $tagname
  25876. -
  25877. -__EOF__
  25878. -
  25879. -
  25880. -else
  25881. - # If there is no Makefile yet, we rely on a make rule to execute
  25882. - # `config.status --recheck' to rerun these tests and create the
  25883. - # libtool script then.
  25884. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  25885. - if test -f "$ltmain_in"; then
  25886. - test -f Makefile && make "$ltmain"
  25887. - fi
  25888. -fi
  25889. -
  25890. -
  25891. -ac_ext=c
  25892. -ac_cpp='$CPP $CPPFLAGS'
  25893. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25894. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25895. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25896. -
  25897. -CC=$lt_save_CC
  25898. -LDCXX=$LD
  25899. -LD=$lt_save_LD
  25900. -GCC=$lt_save_GCC
  25901. -with_gnu_ldcxx=$with_gnu_ld
  25902. -with_gnu_ld=$lt_save_with_gnu_ld
  25903. -lt_cv_path_LDCXX=$lt_cv_path_LD
  25904. -lt_cv_path_LD=$lt_save_path_LD
  25905. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  25906. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  25907. -
  25908. - else
  25909. - tagname=""
  25910. - fi
  25911. - ;;
  25912. -
  25913. - F77)
  25914. - if test -n "$F77" && test "X$F77" != "Xno"; then
  25915. -
  25916. -ac_ext=f
  25917. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  25918. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25919. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  25920. -
  25921. -
  25922. -archive_cmds_need_lc_F77=no
  25923. -allow_undefined_flag_F77=
  25924. -always_export_symbols_F77=no
  25925. -archive_expsym_cmds_F77=
  25926. -export_dynamic_flag_spec_F77=
  25927. -hardcode_direct_F77=no
  25928. -hardcode_libdir_flag_spec_F77=
  25929. -hardcode_libdir_flag_spec_ld_F77=
  25930. -hardcode_libdir_separator_F77=
  25931. -hardcode_minus_L_F77=no
  25932. -hardcode_automatic_F77=no
  25933. -module_cmds_F77=
  25934. -module_expsym_cmds_F77=
  25935. -link_all_deplibs_F77=unknown
  25936. -old_archive_cmds_F77=$old_archive_cmds
  25937. -no_undefined_flag_F77=
  25938. -whole_archive_flag_spec_F77=
  25939. -enable_shared_with_static_runtimes_F77=no
  25940. -
  25941. -# Source file extension for f77 test sources.
  25942. -ac_ext=f
  25943. -
  25944. -# Object file extension for compiled f77 test sources.
  25945. -objext=o
  25946. -objext_F77=$objext
  25947. -
  25948. -# Code to be used in simple compile tests
  25949. -lt_simple_compile_test_code="\
  25950. - subroutine t
  25951. - return
  25952. - end
  25953. -"
  25954. -
  25955. -# Code to be used in simple link tests
  25956. -lt_simple_link_test_code="\
  25957. - program t
  25958. - end
  25959. -"
  25960. -
  25961. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  25962. -
  25963. -# If no C compiler was specified, use CC.
  25964. -LTCC=${LTCC-"$CC"}
  25965. -
  25966. -# If no C compiler flags were specified, use CFLAGS.
  25967. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25968. -
  25969. -# Allow CC to be a program name with arguments.
  25970. -compiler=$CC
  25971. -
  25972. -
  25973. -# save warnings/boilerplate of simple test code
  25974. -ac_outfile=conftest.$ac_objext
  25975. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  25976. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25977. -_lt_compiler_boilerplate=`cat conftest.err`
  25978. -$rm conftest*
  25979. -
  25980. -ac_outfile=conftest.$ac_objext
  25981. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  25982. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25983. -_lt_linker_boilerplate=`cat conftest.err`
  25984. -$rm -r conftest*
  25985. -
  25986. -
  25987. -# Allow CC to be a program name with arguments.
  25988. -lt_save_CC="$CC"
  25989. -CC=${F77-"f77"}
  25990. -compiler=$CC
  25991. -compiler_F77=$CC
  25992. -for cc_temp in $compiler""; do
  25993. - case $cc_temp in
  25994. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25995. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25996. - \-*) ;;
  25997. - *) break;;
  25998. - esac
  25999. -done
  26000. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26001. -
  26002. -
  26003. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  26004. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  26005. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  26006. -echo "${ECHO_T}$can_build_shared" >&6; }
  26007. -
  26008. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  26009. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  26010. -test "$can_build_shared" = "no" && enable_shared=no
  26011. -
  26012. -# On AIX, shared libraries and static libraries use the same namespace, and
  26013. -# are all built from PIC.
  26014. -case $host_os in
  26015. -aix3*)
  26016. - test "$enable_shared" = yes && enable_static=no
  26017. - if test -n "$RANLIB"; then
  26018. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  26019. - postinstall_cmds='$RANLIB $lib'
  26020. - fi
  26021. - ;;
  26022. -aix[4-9]*)
  26023. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  26024. - test "$enable_shared" = yes && enable_static=no
  26025. - fi
  26026. - ;;
  26027. -esac
  26028. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  26029. -echo "${ECHO_T}$enable_shared" >&6; }
  26030. -
  26031. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  26032. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  26033. -# Make sure either enable_shared or enable_static is yes.
  26034. -test "$enable_shared" = yes || enable_static=yes
  26035. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  26036. -echo "${ECHO_T}$enable_static" >&6; }
  26037. -
  26038. -GCC_F77="$G77"
  26039. -LD_F77="$LD"
  26040. -
  26041. -lt_prog_compiler_wl_F77=
  26042. -lt_prog_compiler_pic_F77=
  26043. -lt_prog_compiler_static_F77=
  26044. -
  26045. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  26046. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  26047. -
  26048. - if test "$GCC" = yes; then
  26049. - lt_prog_compiler_wl_F77='-Wl,'
  26050. - lt_prog_compiler_static_F77='-static'
  26051. -
  26052. - case $host_os in
  26053. - aix*)
  26054. - # All AIX code is PIC.
  26055. - if test "$host_cpu" = ia64; then
  26056. - # AIX 5 now supports IA64 processor
  26057. - lt_prog_compiler_static_F77='-Bstatic'
  26058. - fi
  26059. - ;;
  26060. -
  26061. - amigaos*)
  26062. - # FIXME: we need at least 68020 code to build shared libraries, but
  26063. - # adding the `-m68020' flag to GCC prevents building anything better,
  26064. - # like `-m68040'.
  26065. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  26066. - ;;
  26067. -
  26068. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26069. - # PIC is the default for these OSes.
  26070. - ;;
  26071. -
  26072. - mingw* | cygwin* | pw32* | os2*)
  26073. - # This hack is so that the source file can tell whether it is being
  26074. - # built for inclusion in a dll (and should export symbols for example).
  26075. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  26076. - # (--disable-auto-import) libraries
  26077. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  26078. - ;;
  26079. -
  26080. - darwin* | rhapsody*)
  26081. - # PIC is the default on this platform
  26082. - # Common symbols not allowed in MH_DYLIB files
  26083. - lt_prog_compiler_pic_F77='-fno-common'
  26084. - ;;
  26085. -
  26086. - interix[3-9]*)
  26087. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  26088. - # Instead, we relocate shared libraries at runtime.
  26089. - ;;
  26090. -
  26091. - msdosdjgpp*)
  26092. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  26093. - # on systems that don't support them.
  26094. - lt_prog_compiler_can_build_shared_F77=no
  26095. - enable_shared=no
  26096. - ;;
  26097. -
  26098. - sysv4*MP*)
  26099. - if test -d /usr/nec; then
  26100. - lt_prog_compiler_pic_F77=-Kconform_pic
  26101. - fi
  26102. - ;;
  26103. -
  26104. - hpux*)
  26105. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26106. - # not for PA HP-UX.
  26107. - case $host_cpu in
  26108. - hppa*64*|ia64*)
  26109. - # +Z the default
  26110. - ;;
  26111. - *)
  26112. - lt_prog_compiler_pic_F77='-fPIC'
  26113. - ;;
  26114. - esac
  26115. - ;;
  26116. -
  26117. - *)
  26118. - lt_prog_compiler_pic_F77='-fPIC'
  26119. - ;;
  26120. - esac
  26121. - else
  26122. - # PORTME Check for flag to pass linker flags through the system compiler.
  26123. - case $host_os in
  26124. - aix*)
  26125. - lt_prog_compiler_wl_F77='-Wl,'
  26126. - if test "$host_cpu" = ia64; then
  26127. - # AIX 5 now supports IA64 processor
  26128. - lt_prog_compiler_static_F77='-Bstatic'
  26129. - else
  26130. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  26131. - fi
  26132. - ;;
  26133. - darwin*)
  26134. - # PIC is the default on this platform
  26135. - # Common symbols not allowed in MH_DYLIB files
  26136. - case $cc_basename in
  26137. - xlc*)
  26138. - lt_prog_compiler_pic_F77='-qnocommon'
  26139. - lt_prog_compiler_wl_F77='-Wl,'
  26140. - ;;
  26141. - esac
  26142. - ;;
  26143. -
  26144. - mingw* | cygwin* | pw32* | os2*)
  26145. - # This hack is so that the source file can tell whether it is being
  26146. - # built for inclusion in a dll (and should export symbols for example).
  26147. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  26148. - ;;
  26149. -
  26150. - hpux9* | hpux10* | hpux11*)
  26151. - lt_prog_compiler_wl_F77='-Wl,'
  26152. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26153. - # not for PA HP-UX.
  26154. - case $host_cpu in
  26155. - hppa*64*|ia64*)
  26156. - # +Z the default
  26157. - ;;
  26158. - *)
  26159. - lt_prog_compiler_pic_F77='+Z'
  26160. - ;;
  26161. - esac
  26162. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  26163. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  26164. - ;;
  26165. -
  26166. - irix5* | irix6* | nonstopux*)
  26167. - lt_prog_compiler_wl_F77='-Wl,'
  26168. - # PIC (with -KPIC) is the default.
  26169. - lt_prog_compiler_static_F77='-non_shared'
  26170. - ;;
  26171. -
  26172. - newsos6)
  26173. - lt_prog_compiler_pic_F77='-KPIC'
  26174. - lt_prog_compiler_static_F77='-Bstatic'
  26175. - ;;
  26176. -
  26177. - linux* | k*bsd*-gnu)
  26178. - case $cc_basename in
  26179. - icc* | ecc*)
  26180. - lt_prog_compiler_wl_F77='-Wl,'
  26181. - lt_prog_compiler_pic_F77='-KPIC'
  26182. - lt_prog_compiler_static_F77='-static'
  26183. - ;;
  26184. - pgcc* | pgf77* | pgf90* | pgf95*)
  26185. - # Portland Group compilers (*not* the Pentium gcc compiler,
  26186. - # which looks to be a dead project)
  26187. - lt_prog_compiler_wl_F77='-Wl,'
  26188. - lt_prog_compiler_pic_F77='-fpic'
  26189. - lt_prog_compiler_static_F77='-Bstatic'
  26190. - ;;
  26191. - ccc*)
  26192. - lt_prog_compiler_wl_F77='-Wl,'
  26193. - # All Alpha code is PIC.
  26194. - lt_prog_compiler_static_F77='-non_shared'
  26195. - ;;
  26196. - *)
  26197. - case `$CC -V 2>&1 | sed 5q` in
  26198. - *Sun\ C*)
  26199. - # Sun C 5.9
  26200. - lt_prog_compiler_pic_F77='-KPIC'
  26201. - lt_prog_compiler_static_F77='-Bstatic'
  26202. - lt_prog_compiler_wl_F77='-Wl,'
  26203. - ;;
  26204. - *Sun\ F*)
  26205. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  26206. - lt_prog_compiler_pic_F77='-KPIC'
  26207. - lt_prog_compiler_static_F77='-Bstatic'
  26208. - lt_prog_compiler_wl_F77=''
  26209. - ;;
  26210. - esac
  26211. - ;;
  26212. - esac
  26213. - ;;
  26214. -
  26215. - osf3* | osf4* | osf5*)
  26216. - lt_prog_compiler_wl_F77='-Wl,'
  26217. - # All OSF/1 code is PIC.
  26218. - lt_prog_compiler_static_F77='-non_shared'
  26219. - ;;
  26220. -
  26221. - rdos*)
  26222. - lt_prog_compiler_static_F77='-non_shared'
  26223. - ;;
  26224. -
  26225. - solaris*)
  26226. - lt_prog_compiler_pic_F77='-KPIC'
  26227. - lt_prog_compiler_static_F77='-Bstatic'
  26228. - case $cc_basename in
  26229. - f77* | f90* | f95*)
  26230. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  26231. - *)
  26232. - lt_prog_compiler_wl_F77='-Wl,';;
  26233. - esac
  26234. - ;;
  26235. -
  26236. - sunos4*)
  26237. - lt_prog_compiler_wl_F77='-Qoption ld '
  26238. - lt_prog_compiler_pic_F77='-PIC'
  26239. - lt_prog_compiler_static_F77='-Bstatic'
  26240. - ;;
  26241. -
  26242. - sysv4 | sysv4.2uw2* | sysv4.3*)
  26243. - lt_prog_compiler_wl_F77='-Wl,'
  26244. - lt_prog_compiler_pic_F77='-KPIC'
  26245. - lt_prog_compiler_static_F77='-Bstatic'
  26246. - ;;
  26247. -
  26248. - sysv4*MP*)
  26249. - if test -d /usr/nec ;then
  26250. - lt_prog_compiler_pic_F77='-Kconform_pic'
  26251. - lt_prog_compiler_static_F77='-Bstatic'
  26252. - fi
  26253. - ;;
  26254. -
  26255. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  26256. - lt_prog_compiler_wl_F77='-Wl,'
  26257. - lt_prog_compiler_pic_F77='-KPIC'
  26258. - lt_prog_compiler_static_F77='-Bstatic'
  26259. - ;;
  26260. -
  26261. - unicos*)
  26262. - lt_prog_compiler_wl_F77='-Wl,'
  26263. - lt_prog_compiler_can_build_shared_F77=no
  26264. - ;;
  26265. -
  26266. - uts4*)
  26267. - lt_prog_compiler_pic_F77='-pic'
  26268. - lt_prog_compiler_static_F77='-Bstatic'
  26269. - ;;
  26270. -
  26271. - *)
  26272. - lt_prog_compiler_can_build_shared_F77=no
  26273. - ;;
  26274. - esac
  26275. - fi
  26276. -
  26277. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  26278. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  26279. -
  26280. -#
  26281. -# Check to make sure the PIC flag actually works.
  26282. -#
  26283. -if test -n "$lt_prog_compiler_pic_F77"; then
  26284. -
  26285. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  26286. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  26287. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  26288. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26289. -else
  26290. - lt_cv_prog_compiler_pic_works_F77=no
  26291. - ac_outfile=conftest.$ac_objext
  26292. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26293. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  26294. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  26295. # Insert the option either (1) after the last *FLAGS variable, or
  26296. # (2) before a word containing "conftest.", or (3) at the end.
  26297. # Note that $ac_compile itself does not contain backslashes and begins
  26298. # with a dollar sign (not a hyphen), so the echo should work correctly.
  26299. - # The option is referenced via a variable to avoid confusing sed.
  26300. lt_compile=`echo "$ac_compile" | $SED \
  26301. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26302. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26303. -e 's:$: $lt_compiler_flag:'`
  26304. - (eval echo "\"\$as_me:14750: $lt_compile\"" >&5)
  26305. - (eval "$lt_compile" 2>conftest.err)
  26306. + (eval echo "\"\$as_me:9183: $lt_compile\"" >&5)
  26307. + (eval "$lt_compile" 2>out/conftest.err)
  26308. ac_status=$?
  26309. - cat conftest.err >&5
  26310. - echo "$as_me:14754: \$? = $ac_status" >&5
  26311. - if (exit $ac_status) && test -s "$ac_outfile"; then
  26312. + cat out/conftest.err >&5
  26313. + echo "$as_me:9187: \$? = $ac_status" >&5
  26314. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  26315. + then
  26316. # The compiler can only warn and ignore the option if not recognized
  26317. - # So say no if there are warnings other than the usual output.
  26318. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26319. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26320. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26321. - lt_cv_prog_compiler_pic_works_F77=yes
  26322. + # So say no if there are warnings
  26323. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  26324. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  26325. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  26326. + lt_cv_prog_compiler_c_o=yes
  26327. fi
  26328. fi
  26329. - $rm conftest*
  26330. -
  26331. -fi
  26332. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  26333. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  26334. + chmod u+w . 2>&5
  26335. + $RM conftest*
  26336. + # SGI C++ compiler will create directory out/ii_files/ for
  26337. + # template instantiation
  26338. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  26339. + $RM out/* && rmdir out
  26340. + cd ..
  26341. + $RM -r conftest
  26342. + $RM conftest*
  26343. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  26344. - case $lt_prog_compiler_pic_F77 in
  26345. - "" | " "*) ;;
  26346. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  26347. - esac
  26348. -else
  26349. - lt_prog_compiler_pic_F77=
  26350. - lt_prog_compiler_can_build_shared_F77=no
  26351. fi
  26352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  26353. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  26354. -fi
  26355. -case $host_os in
  26356. - # For platforms which do not support PIC, -DPIC is meaningless:
  26357. - *djgpp*)
  26358. - lt_prog_compiler_pic_F77=
  26359. - ;;
  26360. - *)
  26361. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  26362. - ;;
  26363. -esac
  26364. -#
  26365. -# Check to make sure the static flag actually works.
  26366. -#
  26367. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  26368. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  26369. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  26370. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  26371. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26372. -else
  26373. - lt_cv_prog_compiler_static_works_F77=no
  26374. - save_LDFLAGS="$LDFLAGS"
  26375. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  26376. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  26377. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  26378. - # The linker can only warn and ignore the option if not recognized
  26379. - # So say no if there are warnings
  26380. - if test -s conftest.err; then
  26381. - # Append any errors to the config.log.
  26382. - cat conftest.err 1>&5
  26383. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  26384. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26385. - if diff conftest.exp conftest.er2 >/dev/null; then
  26386. - lt_cv_prog_compiler_static_works_F77=yes
  26387. - fi
  26388. - else
  26389. - lt_cv_prog_compiler_static_works_F77=yes
  26390. - fi
  26391. - fi
  26392. - $rm -r conftest*
  26393. - LDFLAGS="$save_LDFLAGS"
  26394. -fi
  26395. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  26396. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  26397. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  26398. - :
  26399. -else
  26400. - lt_prog_compiler_static_F77=
  26401. -fi
  26402. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  26403. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  26404. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  26405. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26406. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  26407. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  26408. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  26409. + $as_echo_n "(cached) " >&6
  26410. else
  26411. - lt_cv_prog_compiler_c_o_F77=no
  26412. - $rm -r conftest 2>/dev/null
  26413. + lt_cv_prog_compiler_c_o=no
  26414. + $RM -r conftest 2>/dev/null
  26415. mkdir conftest
  26416. cd conftest
  26417. mkdir out
  26418. @@ -14851,111 +9235,111 @@
  26419. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26420. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26421. -e 's:$: $lt_compiler_flag:'`
  26422. - (eval echo "\"\$as_me:14854: $lt_compile\"" >&5)
  26423. + (eval echo "\"\$as_me:9238: $lt_compile\"" >&5)
  26424. (eval "$lt_compile" 2>out/conftest.err)
  26425. ac_status=$?
  26426. cat out/conftest.err >&5
  26427. - echo "$as_me:14858: \$? = $ac_status" >&5
  26428. + echo "$as_me:9242: \$? = $ac_status" >&5
  26429. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  26430. then
  26431. # The compiler can only warn and ignore the option if not recognized
  26432. # So say no if there are warnings
  26433. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  26434. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  26435. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  26436. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  26437. - lt_cv_prog_compiler_c_o_F77=yes
  26438. + lt_cv_prog_compiler_c_o=yes
  26439. fi
  26440. fi
  26441. chmod u+w . 2>&5
  26442. - $rm conftest*
  26443. + $RM conftest*
  26444. # SGI C++ compiler will create directory out/ii_files/ for
  26445. # template instantiation
  26446. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  26447. - $rm out/* && rmdir out
  26448. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  26449. + $RM out/* && rmdir out
  26450. cd ..
  26451. - rmdir conftest
  26452. - $rm conftest*
  26453. + $RM -r conftest
  26454. + $RM conftest*
  26455. fi
  26456. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  26457. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  26458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  26459. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  26460. +
  26461. +
  26462. hard_links="nottested"
  26463. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  26464. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  26465. # do not overwrite the value of need_locks provided by the user
  26466. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  26467. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  26468. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  26469. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  26470. hard_links=yes
  26471. - $rm conftest*
  26472. + $RM conftest*
  26473. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26474. touch conftest.a
  26475. ln conftest.a conftest.b 2>&5 || hard_links=no
  26476. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26477. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  26478. -echo "${ECHO_T}$hard_links" >&6; }
  26479. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  26480. +$as_echo "$hard_links" >&6; }
  26481. if test "$hard_links" = no; then
  26482. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  26483. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  26484. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  26485. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  26486. need_locks=warn
  26487. fi
  26488. else
  26489. need_locks=no
  26490. fi
  26491. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  26492. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  26493. +
  26494. +
  26495. +
  26496. +
  26497. +
  26498. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  26499. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  26500. runpath_var=
  26501. - allow_undefined_flag_F77=
  26502. - enable_shared_with_static_runtimes_F77=no
  26503. - archive_cmds_F77=
  26504. - archive_expsym_cmds_F77=
  26505. - old_archive_From_new_cmds_F77=
  26506. - old_archive_from_expsyms_cmds_F77=
  26507. - export_dynamic_flag_spec_F77=
  26508. - whole_archive_flag_spec_F77=
  26509. - thread_safe_flag_spec_F77=
  26510. - hardcode_libdir_flag_spec_F77=
  26511. - hardcode_libdir_flag_spec_ld_F77=
  26512. - hardcode_libdir_separator_F77=
  26513. - hardcode_direct_F77=no
  26514. - hardcode_minus_L_F77=no
  26515. - hardcode_shlibpath_var_F77=unsupported
  26516. - link_all_deplibs_F77=unknown
  26517. - hardcode_automatic_F77=no
  26518. - module_cmds_F77=
  26519. - module_expsym_cmds_F77=
  26520. - always_export_symbols_F77=no
  26521. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  26522. + allow_undefined_flag=
  26523. + always_export_symbols=no
  26524. + archive_cmds=
  26525. + archive_expsym_cmds=
  26526. + compiler_needs_object=no
  26527. + enable_shared_with_static_runtimes=no
  26528. + export_dynamic_flag_spec=
  26529. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  26530. + hardcode_automatic=no
  26531. + hardcode_direct=no
  26532. + hardcode_direct_absolute=no
  26533. + hardcode_libdir_flag_spec=
  26534. + hardcode_libdir_flag_spec_ld=
  26535. + hardcode_libdir_separator=
  26536. + hardcode_minus_L=no
  26537. + hardcode_shlibpath_var=unsupported
  26538. + inherit_rpath=no
  26539. + link_all_deplibs=unknown
  26540. + module_cmds=
  26541. + module_expsym_cmds=
  26542. + old_archive_from_new_cmds=
  26543. + old_archive_from_expsyms_cmds=
  26544. + thread_safe_flag_spec=
  26545. + whole_archive_flag_spec=
  26546. # include_expsyms should be a list of space-separated symbols to be *always*
  26547. # included in the symbol list
  26548. - include_expsyms_F77=
  26549. + include_expsyms=
  26550. # exclude_expsyms can be an extended regexp of symbols to exclude
  26551. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  26552. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  26553. # as well as any symbol that contains `d'.
  26554. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  26555. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  26556. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  26557. - # platforms (ab)use it in PIC code, but their linkers get confused if
  26558. - # the symbol is explicitly referenced. Since portable code cannot
  26559. - # rely on this symbol name, it's probably fine to never include it in
  26560. - # preloaded symbol tables.
  26561. - # Exclude shared library initialization/finalization symbols.
  26562. - extract_expsyms_cmds=
  26563. - # Just being paranoid about ensuring that cc_basename is set.
  26564. - for cc_temp in $compiler""; do
  26565. - case $cc_temp in
  26566. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26567. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26568. - \-*) ;;
  26569. - *) break;;
  26570. - esac
  26571. -done
  26572. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26573. + # platforms (ab)use it in PIC code, but their linkers get confused if
  26574. + # the symbol is explicitly referenced. Since portable code cannot
  26575. + # rely on this symbol name, it's probably fine to never include it in
  26576. + # preloaded symbol tables.
  26577. + # Exclude shared library initialization/finalization symbols.
  26578. + extract_expsyms_cmds=
  26579. case $host_os in
  26580. - cygwin* | mingw* | pw32*)
  26581. + cygwin* | mingw* | pw32* | cegcc*)
  26582. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  26583. # When not using gcc, we currently assume that we are using
  26584. # Microsoft Visual C++.
  26585. @@ -14970,9 +9354,12 @@
  26586. openbsd*)
  26587. with_gnu_ld=no
  26588. ;;
  26589. + linux* | k*bsd*-gnu)
  26590. + link_all_deplibs=no
  26591. + ;;
  26592. esac
  26593. - ld_shlibs_F77=yes
  26594. + ld_shlibs=yes
  26595. if test "$with_gnu_ld" = yes; then
  26596. # If archive_cmds runs LD, not CC, wlarc should be empty
  26597. wlarc='${wl}'
  26598. @@ -14981,16 +9368,17 @@
  26599. # are reset later if shared libraries are not supported. Putting them
  26600. # here allows them to be overridden if necessary.
  26601. runpath_var=LD_RUN_PATH
  26602. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  26603. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  26604. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26605. + export_dynamic_flag_spec='${wl}--export-dynamic'
  26606. # ancient GNU ld didn't support --whole-archive et. al.
  26607. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  26608. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26609. - else
  26610. - whole_archive_flag_spec_F77=
  26611. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  26612. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26613. + else
  26614. + whole_archive_flag_spec=
  26615. fi
  26616. supports_anon_versioning=no
  26617. - case `$LD -v 2>/dev/null` in
  26618. + case `$LD -v 2>&1` in
  26619. + *GNU\ gold*) supports_anon_versioning=yes ;;
  26620. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  26621. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  26622. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  26623. @@ -15003,8 +9391,8 @@
  26624. aix[3-9]*)
  26625. # On AIX/PPC, the GNU linker is very broken
  26626. if test "$host_cpu" != ia64; then
  26627. - ld_shlibs_F77=no
  26628. - cat <<EOF 1>&2
  26629. + ld_shlibs=no
  26630. + cat <<_LT_EOF 1>&2
  26631. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  26632. *** to be unable to reliably create shared libraries on AIX.
  26633. @@ -15012,49 +9400,50 @@
  26634. *** really care for shared libraries, you may want to modify your PATH
  26635. *** so that a non-GNU linker is found, and then restart.
  26636. -EOF
  26637. +_LT_EOF
  26638. fi
  26639. ;;
  26640. amigaos*)
  26641. - 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)'
  26642. - hardcode_libdir_flag_spec_F77='-L$libdir'
  26643. - hardcode_minus_L_F77=yes
  26644. -
  26645. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  26646. - # that the semantics of dynamic libraries on AmigaOS, at least up
  26647. - # to version 4, is to share data among multiple programs linked
  26648. - # with the same dynamic library. Since this doesn't match the
  26649. - # behavior of shared libraries on other platforms, we can't use
  26650. - # them.
  26651. - ld_shlibs_F77=no
  26652. + case $host_cpu in
  26653. + powerpc)
  26654. + # see comment about AmigaOS4 .so support
  26655. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26656. + archive_expsym_cmds=''
  26657. + ;;
  26658. + m68k)
  26659. + 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)'
  26660. + hardcode_libdir_flag_spec='-L$libdir'
  26661. + hardcode_minus_L=yes
  26662. + ;;
  26663. + esac
  26664. ;;
  26665. beos*)
  26666. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26667. - allow_undefined_flag_F77=unsupported
  26668. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26669. + allow_undefined_flag=unsupported
  26670. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  26671. # support --undefined. This deserves some investigation. FIXME
  26672. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26673. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26674. else
  26675. - ld_shlibs_F77=no
  26676. + ld_shlibs=no
  26677. fi
  26678. ;;
  26679. - cygwin* | mingw* | pw32*)
  26680. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  26681. + cygwin* | mingw* | pw32* | cegcc*)
  26682. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  26683. # as there is no search path for DLLs.
  26684. - hardcode_libdir_flag_spec_F77='-L$libdir'
  26685. - allow_undefined_flag_F77=unsupported
  26686. - always_export_symbols_F77=no
  26687. - enable_shared_with_static_runtimes_F77=yes
  26688. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  26689. + hardcode_libdir_flag_spec='-L$libdir'
  26690. + allow_undefined_flag=unsupported
  26691. + always_export_symbols=no
  26692. + enable_shared_with_static_runtimes=yes
  26693. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  26694. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  26695. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26696. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  26697. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26698. # If the export-symbols file already is a .def file (1st line
  26699. # is EXPORTS), use it as is; otherwise, prepend...
  26700. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  26701. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  26702. cp $export_symbols $output_objdir/$soname.def;
  26703. else
  26704. echo EXPORTS > $output_objdir/$soname.def;
  26705. @@ -15062,79 +9451,109 @@
  26706. fi~
  26707. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26708. else
  26709. - ld_shlibs_F77=no
  26710. + ld_shlibs=no
  26711. fi
  26712. ;;
  26713. interix[3-9]*)
  26714. - hardcode_direct_F77=no
  26715. - hardcode_shlibpath_var_F77=no
  26716. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  26717. - export_dynamic_flag_spec_F77='${wl}-E'
  26718. + hardcode_direct=no
  26719. + hardcode_shlibpath_var=no
  26720. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26721. + export_dynamic_flag_spec='${wl}-E'
  26722. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  26723. # Instead, shared libraries are loaded at an image base (0x10000000 by
  26724. # default) and relocated if they conflict, which is a slow very memory
  26725. # consuming and fragmenting process. To avoid this, we pick a random,
  26726. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  26727. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  26728. - 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'
  26729. - 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'
  26730. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  26731. + 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'
  26732. ;;
  26733. - gnu* | linux* | k*bsd*-gnu)
  26734. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26735. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  26736. + tmp_diet=no
  26737. + if test "$host_os" = linux-dietlibc; then
  26738. + case $cc_basename in
  26739. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  26740. + esac
  26741. + fi
  26742. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  26743. + && test "$tmp_diet" = no
  26744. + then
  26745. tmp_addflag=
  26746. + tmp_sharedflag='-shared'
  26747. case $cc_basename,$host_cpu in
  26748. - pgcc*) # Portland Group C compiler
  26749. - 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'
  26750. + pgcc*) # Portland Group C compiler
  26751. + 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'
  26752. tmp_addflag=' $pic_flag'
  26753. ;;
  26754. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  26755. - 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'
  26756. + 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'
  26757. tmp_addflag=' $pic_flag -Mnomain' ;;
  26758. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  26759. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  26760. tmp_addflag=' -i_dynamic' ;;
  26761. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  26762. tmp_addflag=' -i_dynamic -nofor_main' ;;
  26763. ifc* | ifort*) # Intel Fortran compiler
  26764. tmp_addflag=' -nofor_main' ;;
  26765. + lf95*) # Lahey Fortran 8.1
  26766. + whole_archive_flag_spec=
  26767. + tmp_sharedflag='--shared' ;;
  26768. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  26769. + tmp_sharedflag='-qmkshrobj'
  26770. + tmp_addflag= ;;
  26771. esac
  26772. case `$CC -V 2>&1 | sed 5q` in
  26773. *Sun\ C*) # Sun C 5.9
  26774. - 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'
  26775. + 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'
  26776. + compiler_needs_object=yes
  26777. tmp_sharedflag='-G' ;;
  26778. *Sun\ F*) # Sun Fortran 8.3
  26779. tmp_sharedflag='-G' ;;
  26780. - *)
  26781. - tmp_sharedflag='-shared' ;;
  26782. esac
  26783. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26784. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26785. - if test $supports_anon_versioning = yes; then
  26786. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  26787. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26788. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  26789. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26790. - fi
  26791. + if test "x$supports_anon_versioning" = xyes; then
  26792. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  26793. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26794. + echo "local: *; };" >> $output_objdir/$libname.ver~
  26795. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26796. + fi
  26797. +
  26798. + case $cc_basename in
  26799. + xlf*)
  26800. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  26801. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  26802. + hardcode_libdir_flag_spec=
  26803. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  26804. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  26805. + if test "x$supports_anon_versioning" = xyes; then
  26806. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  26807. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26808. + echo "local: *; };" >> $output_objdir/$libname.ver~
  26809. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  26810. + fi
  26811. + ;;
  26812. + esac
  26813. else
  26814. - ld_shlibs_F77=no
  26815. + ld_shlibs=no
  26816. fi
  26817. ;;
  26818. - netbsd*)
  26819. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26820. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26821. + netbsd* | netbsdelf*-gnu)
  26822. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  26823. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26824. wlarc=
  26825. else
  26826. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26827. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26828. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26829. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26830. fi
  26831. ;;
  26832. solaris*)
  26833. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  26834. - ld_shlibs_F77=no
  26835. - cat <<EOF 1>&2
  26836. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  26837. + ld_shlibs=no
  26838. + cat <<_LT_EOF 1>&2
  26839. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  26840. *** create shared libraries on Solaris systems. Therefore, libtool
  26841. @@ -15143,19 +9562,19 @@
  26842. *** your PATH or compiler configuration so that the native linker is
  26843. *** used, and then restart.
  26844. -EOF
  26845. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26846. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26847. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26848. +_LT_EOF
  26849. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26850. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26851. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26852. else
  26853. - ld_shlibs_F77=no
  26854. + ld_shlibs=no
  26855. fi
  26856. ;;
  26857. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  26858. case `$LD -v 2>&1` in
  26859. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  26860. - ld_shlibs_F77=no
  26861. + ld_shlibs=no
  26862. cat <<_LT_EOF 1>&2
  26863. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  26864. @@ -15168,54 +9587,58 @@
  26865. _LT_EOF
  26866. ;;
  26867. *)
  26868. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26869. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  26870. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  26871. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  26872. + # For security reasons, it is highly recommended that you always
  26873. + # use absolute paths for naming shared libraries, and exclude the
  26874. + # DT_RUNPATH tag from executables and libraries. But doing so
  26875. + # requires that you compile everything twice, which is a pain.
  26876. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26877. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26878. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26879. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26880. else
  26881. - ld_shlibs_F77=no
  26882. + ld_shlibs=no
  26883. fi
  26884. ;;
  26885. esac
  26886. ;;
  26887. sunos4*)
  26888. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26889. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26890. wlarc=
  26891. - hardcode_direct_F77=yes
  26892. - hardcode_shlibpath_var_F77=no
  26893. + hardcode_direct=yes
  26894. + hardcode_shlibpath_var=no
  26895. ;;
  26896. *)
  26897. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26898. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26899. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26900. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26901. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26902. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26903. else
  26904. - ld_shlibs_F77=no
  26905. + ld_shlibs=no
  26906. fi
  26907. ;;
  26908. esac
  26909. - if test "$ld_shlibs_F77" = no; then
  26910. + if test "$ld_shlibs" = no; then
  26911. runpath_var=
  26912. - hardcode_libdir_flag_spec_F77=
  26913. - export_dynamic_flag_spec_F77=
  26914. - whole_archive_flag_spec_F77=
  26915. + hardcode_libdir_flag_spec=
  26916. + export_dynamic_flag_spec=
  26917. + whole_archive_flag_spec=
  26918. fi
  26919. else
  26920. # PORTME fill in a description of your system's linker (not GNU ld)
  26921. case $host_os in
  26922. aix3*)
  26923. - allow_undefined_flag_F77=unsupported
  26924. - always_export_symbols_F77=yes
  26925. - 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'
  26926. + allow_undefined_flag=unsupported
  26927. + always_export_symbols=yes
  26928. + 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'
  26929. # Note: this linker hardcodes the directories in LIBPATH if there
  26930. # are no directories specified by -L.
  26931. - hardcode_minus_L_F77=yes
  26932. + hardcode_minus_L=yes
  26933. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  26934. # Neither direct hardcoding nor static linking is supported with a
  26935. # broken collect2.
  26936. - hardcode_direct_F77=unsupported
  26937. + hardcode_direct=unsupported
  26938. fi
  26939. ;;
  26940. @@ -15229,10 +9652,10 @@
  26941. else
  26942. # If we're using GNU nm, then we don't want the "-C" option.
  26943. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26944. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  26945. - 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'
  26946. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  26947. + 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'
  26948. else
  26949. - 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'
  26950. + 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'
  26951. fi
  26952. aix_use_runtimelinking=no
  26953. @@ -15241,10 +9664,10 @@
  26954. # need to do runtime linking.
  26955. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  26956. for ld_flag in $LDFLAGS; do
  26957. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26958. - aix_use_runtimelinking=yes
  26959. - break
  26960. - fi
  26961. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26962. + aix_use_runtimelinking=yes
  26963. + break
  26964. + fi
  26965. done
  26966. ;;
  26967. esac
  26968. @@ -15259,30 +9682,32 @@
  26969. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26970. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26971. - archive_cmds_F77=''
  26972. - hardcode_direct_F77=yes
  26973. - hardcode_libdir_separator_F77=':'
  26974. - link_all_deplibs_F77=yes
  26975. + archive_cmds=''
  26976. + hardcode_direct=yes
  26977. + hardcode_direct_absolute=yes
  26978. + hardcode_libdir_separator=':'
  26979. + link_all_deplibs=yes
  26980. + file_list_spec='${wl}-f,'
  26981. if test "$GCC" = yes; then
  26982. case $host_os in aix4.[012]|aix4.[012].*)
  26983. # We only want to do this on AIX 4.2 and lower, the check
  26984. # below for broken collect2 doesn't work under 4.3+
  26985. collect2name=`${CC} -print-prog-name=collect2`
  26986. - if test -f "$collect2name" && \
  26987. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  26988. + if test -f "$collect2name" &&
  26989. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  26990. then
  26991. - # We have reworked collect2
  26992. - :
  26993. + # We have reworked collect2
  26994. + :
  26995. else
  26996. - # We have old collect2
  26997. - hardcode_direct_F77=unsupported
  26998. - # It fails to find uninstalled libraries when the uninstalled
  26999. - # path is not listed in the libpath. Setting hardcode_minus_L
  27000. - # to unsupported forces relinking
  27001. - hardcode_minus_L_F77=yes
  27002. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27003. - hardcode_libdir_separator_F77=
  27004. + # We have old collect2
  27005. + hardcode_direct=unsupported
  27006. + # It fails to find uninstalled libraries when the uninstalled
  27007. + # path is not listed in the libpath. Setting hardcode_minus_L
  27008. + # to unsupported forces relinking
  27009. + hardcode_minus_L=yes
  27010. + hardcode_libdir_flag_spec='-L$libdir'
  27011. + hardcode_libdir_separator=
  27012. fi
  27013. ;;
  27014. esac
  27015. @@ -15290,11 +9715,12 @@
  27016. if test "$aix_use_runtimelinking" = yes; then
  27017. shared_flag="$shared_flag "'${wl}-G'
  27018. fi
  27019. + link_all_deplibs=no
  27020. else
  27021. # not using gcc
  27022. if test "$host_cpu" = ia64; then
  27023. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27024. - # chokes on -Wl,-G. The following line is correct:
  27025. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27026. + # chokes on -Wl,-G. The following line is correct:
  27027. shared_flag='-G'
  27028. else
  27029. if test "$aix_use_runtimelinking" = yes; then
  27030. @@ -15305,37 +9731,28 @@
  27031. fi
  27032. fi
  27033. + export_dynamic_flag_spec='${wl}-bexpall'
  27034. # It seems that -bexpall does not export symbols beginning with
  27035. # underscore (_), so it is better to generate a list of symbols to export.
  27036. - always_export_symbols_F77=yes
  27037. + always_export_symbols=yes
  27038. if test "$aix_use_runtimelinking" = yes; then
  27039. # Warning - without using the other runtime loading flags (-brtl),
  27040. # -berok will link without error, but may produce a broken library.
  27041. - allow_undefined_flag_F77='-berok'
  27042. - # Determine the default libpath from the value encoded in an empty executable.
  27043. - cat >conftest.$ac_ext <<_ACEOF
  27044. - program main
  27045. + allow_undefined_flag='-berok'
  27046. + # Determine the default libpath from the value encoded in an
  27047. + # empty executable.
  27048. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27049. +/* end confdefs.h. */
  27050. +
  27051. +int
  27052. +main ()
  27053. +{
  27054. - end
  27055. + ;
  27056. + return 0;
  27057. +}
  27058. _ACEOF
  27059. -rm -f conftest.$ac_objext conftest$ac_exeext
  27060. -if { (ac_try="$ac_link"
  27061. -case "(($ac_try" in
  27062. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27063. - *) ac_try_echo=$ac_try;;
  27064. -esac
  27065. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27066. - (eval "$ac_link") 2>conftest.er1
  27067. - ac_status=$?
  27068. - grep -v '^ *+' conftest.er1 >conftest.err
  27069. - rm -f conftest.er1
  27070. - cat conftest.err >&5
  27071. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27072. - (exit $ac_status); } && {
  27073. - test -z "$ac_f77_werror_flag" ||
  27074. - test ! -s conftest.err
  27075. - } && test -s conftest$ac_exeext &&
  27076. - $as_test_x conftest$ac_exeext; then
  27077. +if ac_fn_c_try_link "$LINENO"; then :
  27078. lt_aix_libpath_sed='
  27079. /Import File Strings/,/^$/ {
  27080. @@ -15349,49 +9766,33 @@
  27081. if test -z "$aix_libpath"; then
  27082. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27083. fi
  27084. -else
  27085. - echo "$as_me: failed program was:" >&5
  27086. -sed 's/^/| /' conftest.$ac_ext >&5
  27087. -
  27088. -
  27089. fi
  27090. -
  27091. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27092. - conftest$ac_exeext conftest.$ac_ext
  27093. +rm -f core conftest.err conftest.$ac_objext \
  27094. + conftest$ac_exeext conftest.$ac_ext
  27095. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27096. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  27097. - 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"
  27098. - else
  27099. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27100. + 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"
  27101. + else
  27102. if test "$host_cpu" = ia64; then
  27103. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  27104. - allow_undefined_flag_F77="-z nodefs"
  27105. - 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"
  27106. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  27107. + allow_undefined_flag="-z nodefs"
  27108. + 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"
  27109. else
  27110. - # Determine the default libpath from the value encoded in an empty executable.
  27111. - cat >conftest.$ac_ext <<_ACEOF
  27112. - program main
  27113. + # Determine the default libpath from the value encoded in an
  27114. + # empty executable.
  27115. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27116. +/* end confdefs.h. */
  27117. +
  27118. +int
  27119. +main ()
  27120. +{
  27121. - end
  27122. + ;
  27123. + return 0;
  27124. +}
  27125. _ACEOF
  27126. -rm -f conftest.$ac_objext conftest$ac_exeext
  27127. -if { (ac_try="$ac_link"
  27128. -case "(($ac_try" in
  27129. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27130. - *) ac_try_echo=$ac_try;;
  27131. -esac
  27132. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27133. - (eval "$ac_link") 2>conftest.er1
  27134. - ac_status=$?
  27135. - grep -v '^ *+' conftest.er1 >conftest.err
  27136. - rm -f conftest.er1
  27137. - cat conftest.err >&5
  27138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27139. - (exit $ac_status); } && {
  27140. - test -z "$ac_f77_werror_flag" ||
  27141. - test ! -s conftest.err
  27142. - } && test -s conftest$ac_exeext &&
  27143. - $as_test_x conftest$ac_exeext; then
  27144. +if ac_fn_c_try_link "$LINENO"; then :
  27145. lt_aix_libpath_sed='
  27146. /Import File Strings/,/^$/ {
  27147. @@ -15405,121 +9806,100 @@
  27148. if test -z "$aix_libpath"; then
  27149. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27150. fi
  27151. -else
  27152. - echo "$as_me: failed program was:" >&5
  27153. -sed 's/^/| /' conftest.$ac_ext >&5
  27154. -
  27155. -
  27156. fi
  27157. -
  27158. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27159. - conftest$ac_exeext conftest.$ac_ext
  27160. +rm -f core conftest.err conftest.$ac_objext \
  27161. + conftest$ac_exeext conftest.$ac_ext
  27162. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27163. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  27164. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27165. # Warning - without using the other run time loading flags,
  27166. # -berok will link without error, but may produce a broken library.
  27167. - no_undefined_flag_F77=' ${wl}-bernotok'
  27168. - allow_undefined_flag_F77=' ${wl}-berok'
  27169. + no_undefined_flag=' ${wl}-bernotok'
  27170. + allow_undefined_flag=' ${wl}-berok'
  27171. # Exported symbols can be pulled into shared objects from archives
  27172. - whole_archive_flag_spec_F77='$convenience'
  27173. - archive_cmds_need_lc_F77=yes
  27174. + whole_archive_flag_spec='$convenience'
  27175. + archive_cmds_need_lc=yes
  27176. # This is similar to how AIX traditionally builds its shared libraries.
  27177. - 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'
  27178. + 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'
  27179. fi
  27180. fi
  27181. ;;
  27182. amigaos*)
  27183. - 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)'
  27184. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27185. - hardcode_minus_L_F77=yes
  27186. - # see comment about different semantics on the GNU ld section
  27187. - ld_shlibs_F77=no
  27188. + case $host_cpu in
  27189. + powerpc)
  27190. + # see comment about AmigaOS4 .so support
  27191. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27192. + archive_expsym_cmds=''
  27193. + ;;
  27194. + m68k)
  27195. + 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)'
  27196. + hardcode_libdir_flag_spec='-L$libdir'
  27197. + hardcode_minus_L=yes
  27198. + ;;
  27199. + esac
  27200. ;;
  27201. bsdi[45]*)
  27202. - export_dynamic_flag_spec_F77=-rdynamic
  27203. + export_dynamic_flag_spec=-rdynamic
  27204. ;;
  27205. - cygwin* | mingw* | pw32*)
  27206. + cygwin* | mingw* | pw32* | cegcc*)
  27207. # When not using gcc, we currently assume that we are using
  27208. # Microsoft Visual C++.
  27209. # hardcode_libdir_flag_spec is actually meaningless, as there is
  27210. # no search path for DLLs.
  27211. - hardcode_libdir_flag_spec_F77=' '
  27212. - allow_undefined_flag_F77=unsupported
  27213. + hardcode_libdir_flag_spec=' '
  27214. + allow_undefined_flag=unsupported
  27215. # Tell ltmain to make .lib files, not .a files.
  27216. libext=lib
  27217. # Tell ltmain to make .dll files, not .so files.
  27218. shrext_cmds=".dll"
  27219. # FIXME: Setting linknames here is a bad hack.
  27220. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  27221. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  27222. # The linker will automatically build a .lib file if we build a DLL.
  27223. - old_archive_From_new_cmds_F77='true'
  27224. + old_archive_from_new_cmds='true'
  27225. # FIXME: Should let the user specify the lib program.
  27226. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  27227. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  27228. - enable_shared_with_static_runtimes_F77=yes
  27229. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  27230. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  27231. + enable_shared_with_static_runtimes=yes
  27232. ;;
  27233. darwin* | rhapsody*)
  27234. - case $host_os in
  27235. - rhapsody* | darwin1.[012])
  27236. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  27237. - ;;
  27238. - *) # Darwin 1.3 on
  27239. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  27240. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  27241. - else
  27242. - case ${MACOSX_DEPLOYMENT_TARGET} in
  27243. - 10.[012])
  27244. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  27245. - ;;
  27246. - 10.*)
  27247. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  27248. - ;;
  27249. - esac
  27250. - fi
  27251. - ;;
  27252. - esac
  27253. - archive_cmds_need_lc_F77=no
  27254. - hardcode_direct_F77=no
  27255. - hardcode_automatic_F77=yes
  27256. - hardcode_shlibpath_var_F77=unsupported
  27257. - whole_archive_flag_spec_F77=''
  27258. - link_all_deplibs_F77=yes
  27259. - if test "$GCC" = yes ; then
  27260. - output_verbose_link_cmd='echo'
  27261. - 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}"
  27262. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  27263. - 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}"
  27264. - 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}"
  27265. - else
  27266. - case $cc_basename in
  27267. - xlc*)
  27268. - output_verbose_link_cmd='echo'
  27269. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  27270. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27271. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  27272. - 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}'
  27273. - 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}'
  27274. - ;;
  27275. - *)
  27276. - ld_shlibs_F77=no
  27277. - ;;
  27278. - esac
  27279. - fi
  27280. +
  27281. +
  27282. + archive_cmds_need_lc=no
  27283. + hardcode_direct=no
  27284. + hardcode_automatic=yes
  27285. + hardcode_shlibpath_var=unsupported
  27286. + whole_archive_flag_spec=''
  27287. + link_all_deplibs=yes
  27288. + allow_undefined_flag="$_lt_dar_allow_undefined"
  27289. + case $cc_basename in
  27290. + ifort*) _lt_dar_can_shared=yes ;;
  27291. + *) _lt_dar_can_shared=$GCC ;;
  27292. + esac
  27293. + if test "$_lt_dar_can_shared" = "yes"; then
  27294. + output_verbose_link_cmd=echo
  27295. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  27296. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  27297. + 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}"
  27298. + 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}"
  27299. +
  27300. + else
  27301. + ld_shlibs=no
  27302. + fi
  27303. +
  27304. ;;
  27305. dgux*)
  27306. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27307. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27308. - hardcode_shlibpath_var_F77=no
  27309. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27310. + hardcode_libdir_flag_spec='-L$libdir'
  27311. + hardcode_shlibpath_var=no
  27312. ;;
  27313. freebsd1*)
  27314. - ld_shlibs_F77=no
  27315. + ld_shlibs=no
  27316. ;;
  27317. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  27318. @@ -15527,60 +9907,60 @@
  27319. # does not break anything, and helps significantly (at the cost of a little
  27320. # extra space).
  27321. freebsd2.2*)
  27322. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  27323. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27324. - hardcode_direct_F77=yes
  27325. - hardcode_shlibpath_var_F77=no
  27326. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  27327. + hardcode_libdir_flag_spec='-R$libdir'
  27328. + hardcode_direct=yes
  27329. + hardcode_shlibpath_var=no
  27330. ;;
  27331. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  27332. freebsd2*)
  27333. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27334. - hardcode_direct_F77=yes
  27335. - hardcode_minus_L_F77=yes
  27336. - hardcode_shlibpath_var_F77=no
  27337. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27338. + hardcode_direct=yes
  27339. + hardcode_minus_L=yes
  27340. + hardcode_shlibpath_var=no
  27341. ;;
  27342. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  27343. freebsd* | dragonfly*)
  27344. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  27345. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27346. - hardcode_direct_F77=yes
  27347. - hardcode_shlibpath_var_F77=no
  27348. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  27349. + hardcode_libdir_flag_spec='-R$libdir'
  27350. + hardcode_direct=yes
  27351. + hardcode_shlibpath_var=no
  27352. ;;
  27353. hpux9*)
  27354. if test "$GCC" = yes; then
  27355. - 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'
  27356. + 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'
  27357. else
  27358. - 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'
  27359. + 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'
  27360. fi
  27361. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  27362. - hardcode_libdir_separator_F77=:
  27363. - hardcode_direct_F77=yes
  27364. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27365. + hardcode_libdir_separator=:
  27366. + hardcode_direct=yes
  27367. # hardcode_minus_L: Not really in the search PATH,
  27368. # but as the default location of the library.
  27369. - hardcode_minus_L_F77=yes
  27370. - export_dynamic_flag_spec_F77='${wl}-E'
  27371. + hardcode_minus_L=yes
  27372. + export_dynamic_flag_spec='${wl}-E'
  27373. ;;
  27374. hpux10*)
  27375. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  27376. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27377. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27378. else
  27379. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  27380. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  27381. fi
  27382. if test "$with_gnu_ld" = no; then
  27383. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  27384. - hardcode_libdir_separator_F77=:
  27385. -
  27386. - hardcode_direct_F77=yes
  27387. - export_dynamic_flag_spec_F77='${wl}-E'
  27388. -
  27389. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27390. + hardcode_libdir_flag_spec_ld='+b $libdir'
  27391. + hardcode_libdir_separator=:
  27392. + hardcode_direct=yes
  27393. + hardcode_direct_absolute=yes
  27394. + export_dynamic_flag_spec='${wl}-E'
  27395. # hardcode_minus_L: Not really in the search PATH,
  27396. # but as the default location of the library.
  27397. - hardcode_minus_L_F77=yes
  27398. + hardcode_minus_L=yes
  27399. fi
  27400. ;;
  27401. @@ -15588,45 +9968,45 @@
  27402. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  27403. case $host_cpu in
  27404. hppa*64*)
  27405. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27406. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27407. ;;
  27408. ia64*)
  27409. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27410. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27411. ;;
  27412. *)
  27413. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27414. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27415. ;;
  27416. esac
  27417. else
  27418. case $host_cpu in
  27419. hppa*64*)
  27420. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27421. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27422. ;;
  27423. ia64*)
  27424. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27425. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27426. ;;
  27427. *)
  27428. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27429. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27430. ;;
  27431. esac
  27432. fi
  27433. if test "$with_gnu_ld" = no; then
  27434. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  27435. - hardcode_libdir_separator_F77=:
  27436. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27437. + hardcode_libdir_separator=:
  27438. case $host_cpu in
  27439. hppa*64*|ia64*)
  27440. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  27441. - hardcode_direct_F77=no
  27442. - hardcode_shlibpath_var_F77=no
  27443. + hardcode_direct=no
  27444. + hardcode_shlibpath_var=no
  27445. ;;
  27446. *)
  27447. - hardcode_direct_F77=yes
  27448. - export_dynamic_flag_spec_F77='${wl}-E'
  27449. + hardcode_direct=yes
  27450. + hardcode_direct_absolute=yes
  27451. + export_dynamic_flag_spec='${wl}-E'
  27452. # hardcode_minus_L: Not really in the search PATH,
  27453. # but as the default location of the library.
  27454. - hardcode_minus_L_F77=yes
  27455. + hardcode_minus_L=yes
  27456. ;;
  27457. esac
  27458. fi
  27459. @@ -15634,194 +10014,228 @@
  27460. irix5* | irix6* | nonstopux*)
  27461. if test "$GCC" = yes; then
  27462. - 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'
  27463. + 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'
  27464. + # Try to use the -exported_symbol ld option, if it does not
  27465. + # work, assume that -exports_file does not work either and
  27466. + # implicitly export all symbols.
  27467. + save_LDFLAGS="$LDFLAGS"
  27468. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  27469. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27470. +/* end confdefs.h. */
  27471. +int foo(void) {}
  27472. +_ACEOF
  27473. +if ac_fn_c_try_link "$LINENO"; then :
  27474. + 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'
  27475. +
  27476. +fi
  27477. +rm -f core conftest.err conftest.$ac_objext \
  27478. + conftest$ac_exeext conftest.$ac_ext
  27479. + LDFLAGS="$save_LDFLAGS"
  27480. else
  27481. - 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'
  27482. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  27483. + 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'
  27484. + 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'
  27485. fi
  27486. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27487. - hardcode_libdir_separator_F77=:
  27488. - link_all_deplibs_F77=yes
  27489. + archive_cmds_need_lc='no'
  27490. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27491. + hardcode_libdir_separator=:
  27492. + inherit_rpath=yes
  27493. + link_all_deplibs=yes
  27494. ;;
  27495. - netbsd*)
  27496. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27497. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  27498. + netbsd* | netbsdelf*-gnu)
  27499. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  27500. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  27501. else
  27502. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  27503. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  27504. fi
  27505. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27506. - hardcode_direct_F77=yes
  27507. - hardcode_shlibpath_var_F77=no
  27508. + hardcode_libdir_flag_spec='-R$libdir'
  27509. + hardcode_direct=yes
  27510. + hardcode_shlibpath_var=no
  27511. ;;
  27512. newsos6)
  27513. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27514. - hardcode_direct_F77=yes
  27515. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27516. - hardcode_libdir_separator_F77=:
  27517. - hardcode_shlibpath_var_F77=no
  27518. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27519. + hardcode_direct=yes
  27520. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27521. + hardcode_libdir_separator=:
  27522. + hardcode_shlibpath_var=no
  27523. + ;;
  27524. +
  27525. + *nto* | *qnx*)
  27526. ;;
  27527. openbsd*)
  27528. if test -f /usr/libexec/ld.so; then
  27529. - hardcode_direct_F77=yes
  27530. - hardcode_shlibpath_var_F77=no
  27531. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27532. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27533. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  27534. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  27535. - export_dynamic_flag_spec_F77='${wl}-E'
  27536. + hardcode_direct=yes
  27537. + hardcode_shlibpath_var=no
  27538. + hardcode_direct_absolute=yes
  27539. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27540. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27541. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  27542. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  27543. + export_dynamic_flag_spec='${wl}-E'
  27544. else
  27545. case $host_os in
  27546. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  27547. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27548. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27549. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27550. + hardcode_libdir_flag_spec='-R$libdir'
  27551. ;;
  27552. *)
  27553. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27554. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  27555. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27556. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  27557. ;;
  27558. esac
  27559. - fi
  27560. + fi
  27561. else
  27562. - ld_shlibs_F77=no
  27563. + ld_shlibs=no
  27564. fi
  27565. ;;
  27566. os2*)
  27567. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27568. - hardcode_minus_L_F77=yes
  27569. - allow_undefined_flag_F77=unsupported
  27570. - 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'
  27571. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  27572. + hardcode_libdir_flag_spec='-L$libdir'
  27573. + hardcode_minus_L=yes
  27574. + allow_undefined_flag=unsupported
  27575. + 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'
  27576. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  27577. ;;
  27578. osf3*)
  27579. if test "$GCC" = yes; then
  27580. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  27581. - 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'
  27582. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  27583. + 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'
  27584. else
  27585. - allow_undefined_flag_F77=' -expect_unresolved \*'
  27586. - 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'
  27587. + allow_undefined_flag=' -expect_unresolved \*'
  27588. + 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'
  27589. fi
  27590. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27591. - hardcode_libdir_separator_F77=:
  27592. + archive_cmds_need_lc='no'
  27593. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27594. + hardcode_libdir_separator=:
  27595. ;;
  27596. osf4* | osf5*) # as osf3* with the addition of -msym flag
  27597. if test "$GCC" = yes; then
  27598. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  27599. - 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'
  27600. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27601. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  27602. + 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'
  27603. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27604. else
  27605. - allow_undefined_flag_F77=' -expect_unresolved \*'
  27606. - 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'
  27607. - 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~
  27608. - $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'
  27609. + allow_undefined_flag=' -expect_unresolved \*'
  27610. + 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'
  27611. + 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~
  27612. + $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'
  27613. # Both c and cxx compiler support -rpath directly
  27614. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  27615. + hardcode_libdir_flag_spec='-rpath $libdir'
  27616. fi
  27617. - hardcode_libdir_separator_F77=:
  27618. + archive_cmds_need_lc='no'
  27619. + hardcode_libdir_separator=:
  27620. ;;
  27621. solaris*)
  27622. - no_undefined_flag_F77=' -z text'
  27623. + no_undefined_flag=' -z defs'
  27624. if test "$GCC" = yes; then
  27625. wlarc='${wl}'
  27626. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27627. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27628. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  27629. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27630. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  27631. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  27632. else
  27633. - wlarc=''
  27634. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27635. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27636. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  27637. + case `$CC -V 2>&1` in
  27638. + *"Compilers 5.0"*)
  27639. + wlarc=''
  27640. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27641. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  27642. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  27643. + ;;
  27644. + *)
  27645. + wlarc='${wl}'
  27646. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  27647. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  27648. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  27649. + ;;
  27650. + esac
  27651. fi
  27652. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27653. - hardcode_shlibpath_var_F77=no
  27654. + hardcode_libdir_flag_spec='-R$libdir'
  27655. + hardcode_shlibpath_var=no
  27656. case $host_os in
  27657. solaris2.[0-5] | solaris2.[0-5].*) ;;
  27658. *)
  27659. # The compiler driver will combine and reorder linker options,
  27660. # but understands `-z linker_flag'. GCC discards it without `$wl',
  27661. # but is careful enough not to reorder.
  27662. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  27663. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  27664. if test "$GCC" = yes; then
  27665. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  27666. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  27667. else
  27668. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  27669. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  27670. fi
  27671. ;;
  27672. esac
  27673. - link_all_deplibs_F77=yes
  27674. + link_all_deplibs=yes
  27675. ;;
  27676. sunos4*)
  27677. if test "x$host_vendor" = xsequent; then
  27678. # Use $CC to link under sequent, because it throws in some extra .o
  27679. # files that make .init and .fini sections work.
  27680. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  27681. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  27682. else
  27683. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  27684. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  27685. fi
  27686. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27687. - hardcode_direct_F77=yes
  27688. - hardcode_minus_L_F77=yes
  27689. - hardcode_shlibpath_var_F77=no
  27690. + hardcode_libdir_flag_spec='-L$libdir'
  27691. + hardcode_direct=yes
  27692. + hardcode_minus_L=yes
  27693. + hardcode_shlibpath_var=no
  27694. ;;
  27695. sysv4)
  27696. case $host_vendor in
  27697. sni)
  27698. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27699. - hardcode_direct_F77=yes # is this really true???
  27700. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27701. + hardcode_direct=yes # is this really true???
  27702. ;;
  27703. siemens)
  27704. ## LD is ld it makes a PLAMLIB
  27705. ## CC just makes a GrossModule.
  27706. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  27707. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  27708. - hardcode_direct_F77=no
  27709. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  27710. + reload_cmds='$CC -r -o $output$reload_objs'
  27711. + hardcode_direct=no
  27712. ;;
  27713. motorola)
  27714. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27715. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  27716. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27717. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  27718. ;;
  27719. esac
  27720. runpath_var='LD_RUN_PATH'
  27721. - hardcode_shlibpath_var_F77=no
  27722. + hardcode_shlibpath_var=no
  27723. ;;
  27724. sysv4.3*)
  27725. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27726. - hardcode_shlibpath_var_F77=no
  27727. - export_dynamic_flag_spec_F77='-Bexport'
  27728. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27729. + hardcode_shlibpath_var=no
  27730. + export_dynamic_flag_spec='-Bexport'
  27731. ;;
  27732. sysv4*MP*)
  27733. if test -d /usr/nec; then
  27734. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27735. - hardcode_shlibpath_var_F77=no
  27736. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27737. + hardcode_shlibpath_var=no
  27738. runpath_var=LD_RUN_PATH
  27739. hardcode_runpath_var=yes
  27740. - ld_shlibs_F77=yes
  27741. + ld_shlibs=yes
  27742. fi
  27743. ;;
  27744. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  27745. - no_undefined_flag_F77='${wl}-z,text'
  27746. - archive_cmds_need_lc_F77=no
  27747. - hardcode_shlibpath_var_F77=no
  27748. + no_undefined_flag='${wl}-z,text'
  27749. + archive_cmds_need_lc=no
  27750. + hardcode_shlibpath_var=no
  27751. runpath_var='LD_RUN_PATH'
  27752. if test "$GCC" = yes; then
  27753. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27754. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27755. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27756. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27757. else
  27758. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27759. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27760. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27761. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27762. fi
  27763. ;;
  27764. @@ -15832,51 +10246,75 @@
  27765. # ever link correctly. If we're not using GNU ld we use -z text
  27766. # though, which does catch some bad symbols but isn't as heavy-handed
  27767. # as -z defs.
  27768. - no_undefined_flag_F77='${wl}-z,text'
  27769. - allow_undefined_flag_F77='${wl}-z,nodefs'
  27770. - archive_cmds_need_lc_F77=no
  27771. - hardcode_shlibpath_var_F77=no
  27772. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  27773. - hardcode_libdir_separator_F77=':'
  27774. - link_all_deplibs_F77=yes
  27775. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  27776. + no_undefined_flag='${wl}-z,text'
  27777. + allow_undefined_flag='${wl}-z,nodefs'
  27778. + archive_cmds_need_lc=no
  27779. + hardcode_shlibpath_var=no
  27780. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  27781. + hardcode_libdir_separator=':'
  27782. + link_all_deplibs=yes
  27783. + export_dynamic_flag_spec='${wl}-Bexport'
  27784. runpath_var='LD_RUN_PATH'
  27785. if test "$GCC" = yes; then
  27786. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27787. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27788. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27789. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27790. else
  27791. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27792. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27793. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27794. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27795. fi
  27796. ;;
  27797. uts4*)
  27798. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27799. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27800. - hardcode_shlibpath_var_F77=no
  27801. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27802. + hardcode_libdir_flag_spec='-L$libdir'
  27803. + hardcode_shlibpath_var=no
  27804. ;;
  27805. *)
  27806. - ld_shlibs_F77=no
  27807. + ld_shlibs=no
  27808. ;;
  27809. esac
  27810. +
  27811. + if test x$host_vendor = xsni; then
  27812. + case $host in
  27813. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  27814. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  27815. + ;;
  27816. + esac
  27817. + fi
  27818. fi
  27819. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  27820. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  27821. -test "$ld_shlibs_F77" = no && can_build_shared=no
  27822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  27823. +$as_echo "$ld_shlibs" >&6; }
  27824. +test "$ld_shlibs" = no && can_build_shared=no
  27825. +
  27826. +with_gnu_ld=$with_gnu_ld
  27827. +
  27828. +
  27829. +
  27830. +
  27831. +
  27832. +
  27833. +
  27834. +
  27835. +
  27836. +
  27837. +
  27838. +
  27839. +
  27840. +
  27841. #
  27842. # Do we need to explicitly link libc?
  27843. #
  27844. -case "x$archive_cmds_need_lc_F77" in
  27845. +case "x$archive_cmds_need_lc" in
  27846. x|xyes)
  27847. # Assume -lc should be added
  27848. - archive_cmds_need_lc_F77=yes
  27849. + archive_cmds_need_lc=yes
  27850. if test "$enable_shared" = yes && test "$GCC" = yes; then
  27851. - case $archive_cmds_F77 in
  27852. + case $archive_cmds in
  27853. *'~'*)
  27854. # FIXME: we may have to deal with multi-command sequences.
  27855. ;;
  27856. @@ -15884,54 +10322,262 @@
  27857. # Test whether the compiler implicitly links with -lc since on some
  27858. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  27859. # to ld, don't add -lc before -lgcc.
  27860. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  27861. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  27862. - $rm conftest*
  27863. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  27864. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  27865. + $RM conftest*
  27866. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27867. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27868. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  27869. (eval $ac_compile) 2>&5
  27870. ac_status=$?
  27871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27872. - (exit $ac_status); } 2>conftest.err; then
  27873. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27874. + test $ac_status = 0; } 2>conftest.err; then
  27875. soname=conftest
  27876. lib=conftest
  27877. libobjs=conftest.$ac_objext
  27878. deplibs=
  27879. - wl=$lt_prog_compiler_wl_F77
  27880. - pic_flag=$lt_prog_compiler_pic_F77
  27881. + wl=$lt_prog_compiler_wl
  27882. + pic_flag=$lt_prog_compiler_pic
  27883. compiler_flags=-v
  27884. linker_flags=-v
  27885. verstring=
  27886. output_objdir=.
  27887. libname=conftest
  27888. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  27889. - allow_undefined_flag_F77=
  27890. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  27891. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  27892. + lt_save_allow_undefined_flag=$allow_undefined_flag
  27893. + allow_undefined_flag=
  27894. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  27895. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  27896. ac_status=$?
  27897. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27898. - (exit $ac_status); }
  27899. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27900. + test $ac_status = 0; }
  27901. then
  27902. - archive_cmds_need_lc_F77=no
  27903. + archive_cmds_need_lc=no
  27904. else
  27905. - archive_cmds_need_lc_F77=yes
  27906. + archive_cmds_need_lc=yes
  27907. fi
  27908. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  27909. + allow_undefined_flag=$lt_save_allow_undefined_flag
  27910. else
  27911. cat conftest.err 1>&5
  27912. fi
  27913. - $rm conftest*
  27914. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  27915. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  27916. + $RM conftest*
  27917. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  27918. +$as_echo "$archive_cmds_need_lc" >&6; }
  27919. ;;
  27920. esac
  27921. fi
  27922. - ;;
  27923. -esac
  27924. -
  27925. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  27926. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  27927. + ;;
  27928. +esac
  27929. +
  27930. +
  27931. +
  27932. +
  27933. +
  27934. +
  27935. +
  27936. +
  27937. +
  27938. +
  27939. +
  27940. +
  27941. +
  27942. +
  27943. +
  27944. +
  27945. +
  27946. +
  27947. +
  27948. +
  27949. +
  27950. +
  27951. +
  27952. +
  27953. +
  27954. +
  27955. +
  27956. +
  27957. +
  27958. +
  27959. +
  27960. +
  27961. +
  27962. +
  27963. +
  27964. +
  27965. +
  27966. +
  27967. +
  27968. +
  27969. +
  27970. +
  27971. +
  27972. +
  27973. +
  27974. +
  27975. +
  27976. +
  27977. +
  27978. +
  27979. +
  27980. +
  27981. +
  27982. +
  27983. +
  27984. +
  27985. +
  27986. +
  27987. +
  27988. +
  27989. +
  27990. +
  27991. +
  27992. +
  27993. +
  27994. +
  27995. +
  27996. +
  27997. +
  27998. +
  27999. +
  28000. +
  28001. +
  28002. +
  28003. +
  28004. +
  28005. +
  28006. +
  28007. +
  28008. +
  28009. +
  28010. +
  28011. +
  28012. +
  28013. +
  28014. +
  28015. +
  28016. +
  28017. +
  28018. +
  28019. +
  28020. +
  28021. +
  28022. +
  28023. +
  28024. +
  28025. +
  28026. +
  28027. +
  28028. +
  28029. +
  28030. +
  28031. +
  28032. +
  28033. +
  28034. +
  28035. +
  28036. +
  28037. +
  28038. +
  28039. +
  28040. +
  28041. +
  28042. +
  28043. +
  28044. +
  28045. +
  28046. +
  28047. +
  28048. +
  28049. +
  28050. +
  28051. +
  28052. +
  28053. +
  28054. +
  28055. +
  28056. +
  28057. +
  28058. +
  28059. +
  28060. +
  28061. +
  28062. +
  28063. +
  28064. +
  28065. +
  28066. +
  28067. +
  28068. +
  28069. +
  28070. +
  28071. +
  28072. +
  28073. +
  28074. +
  28075. +
  28076. +
  28077. +
  28078. +
  28079. +
  28080. +
  28081. +
  28082. +
  28083. +
  28084. +
  28085. +
  28086. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  28087. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  28088. +
  28089. +if test "$GCC" = yes; then
  28090. + case $host_os in
  28091. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  28092. + *) lt_awk_arg="/^libraries:/" ;;
  28093. + esac
  28094. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28095. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  28096. + # if the path contains ";" then we assume it to be the separator
  28097. + # otherwise default to the standard path separator (i.e. ":") - it is
  28098. + # assumed that no part of a normal pathname contains ";" but that should
  28099. + # okay in the real world where ";" in dirpaths is itself problematic.
  28100. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  28101. + else
  28102. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28103. + fi
  28104. + # Ok, now we have the path, separated by spaces, we can step through it
  28105. + # and add multilib dir if necessary.
  28106. + lt_tmp_lt_search_path_spec=
  28107. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  28108. + for lt_sys_path in $lt_search_path_spec; do
  28109. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  28110. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  28111. + else
  28112. + test -d "$lt_sys_path" && \
  28113. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  28114. + fi
  28115. + done
  28116. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  28117. +BEGIN {RS=" "; FS="/|\n";} {
  28118. + lt_foo="";
  28119. + lt_count=0;
  28120. + for (lt_i = NF; lt_i > 0; lt_i--) {
  28121. + if ($lt_i != "" && $lt_i != ".") {
  28122. + if ($lt_i == "..") {
  28123. + lt_count++;
  28124. + } else {
  28125. + if (lt_count == 0) {
  28126. + lt_foo="/" $lt_i lt_foo;
  28127. + } else {
  28128. + lt_count--;
  28129. + }
  28130. + }
  28131. + }
  28132. + }
  28133. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  28134. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  28135. +}'`
  28136. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  28137. +else
  28138. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  28139. +fi
  28140. library_names_spec=
  28141. libname_spec='lib$name'
  28142. soname_spec=
  28143. @@ -15945,7 +10591,6 @@
  28144. version_type=none
  28145. dynamic_linker="$host_os ld.so"
  28146. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28147. -
  28148. need_lib_prefix=unknown
  28149. hardcode_into_libs=no
  28150. @@ -15982,7 +10627,7 @@
  28151. aix4 | aix4.[01] | aix4.[01].*)
  28152. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28153. echo ' yes '
  28154. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28155. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  28156. :
  28157. else
  28158. can_build_shared=no
  28159. @@ -16008,9 +10653,18 @@
  28160. ;;
  28161. amigaos*)
  28162. - library_names_spec='$libname.ixlibrary $libname.a'
  28163. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28164. - 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'
  28165. + case $host_cpu in
  28166. + powerpc)
  28167. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  28168. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  28169. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28170. + ;;
  28171. + m68k)
  28172. + library_names_spec='$libname.ixlibrary $libname.a'
  28173. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28174. + 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'
  28175. + ;;
  28176. + esac
  28177. ;;
  28178. beos*)
  28179. @@ -16033,25 +10687,28 @@
  28180. # libtool to hard-code these into programs
  28181. ;;
  28182. -cygwin* | mingw* | pw32*)
  28183. +cygwin* | mingw* | pw32* | cegcc*)
  28184. version_type=windows
  28185. shrext_cmds=".dll"
  28186. need_version=no
  28187. need_lib_prefix=no
  28188. case $GCC,$host_os in
  28189. - yes,cygwin* | yes,mingw* | yes,pw32*)
  28190. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  28191. library_names_spec='$libname.dll.a'
  28192. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28193. postinstall_cmds='base_file=`basename \${file}`~
  28194. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28195. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  28196. dldir=$destdir/`dirname \$dlpath`~
  28197. test -d \$dldir || mkdir -p \$dldir~
  28198. $install_prog $dir/$dlname \$dldir/$dlname~
  28199. - chmod a+x \$dldir/$dlname'
  28200. + chmod a+x \$dldir/$dlname~
  28201. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  28202. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  28203. + fi'
  28204. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28205. dlpath=$dir/\$dldll~
  28206. - $rm \$dlpath'
  28207. + $RM \$dlpath'
  28208. shlibpath_overrides_runpath=yes
  28209. case $host_os in
  28210. @@ -16060,20 +10717,20 @@
  28211. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28212. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28213. ;;
  28214. - mingw*)
  28215. + mingw* | cegcc*)
  28216. # MinGW DLLs use traditional 'lib' prefix
  28217. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28218. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28219. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  28220. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28221. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  28222. # It is most probably a Windows format PATH printed by
  28223. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28224. # path with ; separators, and with drive letters. We can handle the
  28225. # drive letters (cygwin fileutils understands them), so leave them,
  28226. # especially as we might pass files found there to a mingw objdump,
  28227. # which wouldn't understand a cygwinified path. Ahh.
  28228. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28229. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28230. else
  28231. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28232. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28233. fi
  28234. ;;
  28235. pw32*)
  28236. @@ -16097,12 +10754,13 @@
  28237. version_type=darwin
  28238. need_lib_prefix=no
  28239. need_version=no
  28240. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28241. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28242. soname_spec='${libname}${release}${major}$shared_ext'
  28243. shlibpath_overrides_runpath=yes
  28244. shlibpath_var=DYLD_LIBRARY_PATH
  28245. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  28246. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  28247. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  28248. ;;
  28249. @@ -16195,18 +10853,18 @@
  28250. fi
  28251. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28252. ;;
  28253. - hppa*64*)
  28254. - shrext_cmds='.sl'
  28255. - hardcode_into_libs=yes
  28256. - dynamic_linker="$host_os dld.sl"
  28257. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28258. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28259. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28260. - soname_spec='${libname}${release}${shared_ext}$major'
  28261. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28262. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28263. - ;;
  28264. - *)
  28265. + hppa*64*)
  28266. + shrext_cmds='.sl'
  28267. + hardcode_into_libs=yes
  28268. + dynamic_linker="$host_os dld.sl"
  28269. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28270. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28271. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28272. + soname_spec='${libname}${release}${shared_ext}$major'
  28273. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28274. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28275. + ;;
  28276. + *)
  28277. shrext_cmds='.sl'
  28278. dynamic_linker="$host_os dld.sl"
  28279. shlibpath_var=SHLIB_PATH
  28280. @@ -16274,7 +10932,7 @@
  28281. ;;
  28282. # This must be Linux ELF.
  28283. -linux* | k*bsd*-gnu)
  28284. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  28285. version_type=linux
  28286. need_lib_prefix=no
  28287. need_version=no
  28288. @@ -16283,6 +10941,32 @@
  28289. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  28290. shlibpath_var=LD_LIBRARY_PATH
  28291. shlibpath_overrides_runpath=no
  28292. + # Some binutils ld are patched to set DT_RUNPATH
  28293. + save_LDFLAGS=$LDFLAGS
  28294. + save_libdir=$libdir
  28295. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  28296. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  28297. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28298. +/* end confdefs.h. */
  28299. +
  28300. +int
  28301. +main ()
  28302. +{
  28303. +
  28304. + ;
  28305. + return 0;
  28306. +}
  28307. +_ACEOF
  28308. +if ac_fn_c_try_link "$LINENO"; then :
  28309. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  28310. + shlibpath_overrides_runpath=yes
  28311. +fi
  28312. +fi
  28313. +rm -f core conftest.err conftest.$ac_objext \
  28314. + conftest$ac_exeext conftest.$ac_ext
  28315. + LDFLAGS=$save_LDFLAGS
  28316. + libdir=$save_libdir
  28317. +
  28318. # This implies no fast_install, which is unacceptable.
  28319. # Some rework will be needed to allow for fast_install
  28320. # before this can be enabled.
  28321. @@ -16290,7 +10974,7 @@
  28322. # Append ld.so.conf contents to the search path
  28323. if test -f /etc/ld.so.conf; then
  28324. - 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' ' '`
  28325. + 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' ' '`
  28326. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  28327. fi
  28328. @@ -16303,11 +10987,23 @@
  28329. dynamic_linker='GNU/Linux ld.so'
  28330. ;;
  28331. +netbsdelf*-gnu)
  28332. + version_type=linux
  28333. + need_lib_prefix=no
  28334. + need_version=no
  28335. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28336. + soname_spec='${libname}${release}${shared_ext}$major'
  28337. + shlibpath_var=LD_LIBRARY_PATH
  28338. + shlibpath_overrides_runpath=no
  28339. + hardcode_into_libs=yes
  28340. + dynamic_linker='NetBSD ld.elf_so'
  28341. + ;;
  28342. +
  28343. netbsd*)
  28344. version_type=sunos
  28345. need_lib_prefix=no
  28346. need_version=no
  28347. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28348. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  28349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28350. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28351. dynamic_linker='NetBSD (a.out) ld.so'
  28352. @@ -16328,14 +11024,16 @@
  28353. shlibpath_overrides_runpath=yes
  28354. ;;
  28355. -nto-qnx*)
  28356. - version_type=linux
  28357. +*nto* | *qnx*)
  28358. + version_type=qnx
  28359. need_lib_prefix=no
  28360. need_version=no
  28361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28362. soname_spec='${libname}${release}${shared_ext}$major'
  28363. shlibpath_var=LD_LIBRARY_PATH
  28364. - shlibpath_overrides_runpath=yes
  28365. + shlibpath_overrides_runpath=no
  28366. + hardcode_into_libs=yes
  28367. + dynamic_linker='ldqnx.so'
  28368. ;;
  28369. openbsd*)
  28370. @@ -16344,13 +11042,13 @@
  28371. need_lib_prefix=no
  28372. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  28373. case $host_os in
  28374. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  28375. - *) need_version=no ;;
  28376. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  28377. + *) need_version=no ;;
  28378. esac
  28379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28380. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28381. shlibpath_var=LD_LIBRARY_PATH
  28382. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28383. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28384. case $host_os in
  28385. openbsd2.[89] | openbsd2.[89].*)
  28386. shlibpath_overrides_runpath=no
  28387. @@ -16422,7 +11120,6 @@
  28388. sni)
  28389. shlibpath_overrides_runpath=no
  28390. need_lib_prefix=no
  28391. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  28392. runpath_var=LD_RUN_PATH
  28393. ;;
  28394. siemens)
  28395. @@ -16453,13 +11150,12 @@
  28396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28397. soname_spec='${libname}${release}${shared_ext}$major'
  28398. shlibpath_var=LD_LIBRARY_PATH
  28399. + shlibpath_overrides_runpath=yes
  28400. hardcode_into_libs=yes
  28401. if test "$with_gnu_ld" = yes; then
  28402. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  28403. - shlibpath_overrides_runpath=no
  28404. else
  28405. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  28406. - shlibpath_overrides_runpath=yes
  28407. case $host_os in
  28408. sco3.2v5*)
  28409. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  28410. @@ -16469,6 +11165,17 @@
  28411. sys_lib_dlsearch_path_spec='/usr/lib'
  28412. ;;
  28413. +tpf*)
  28414. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  28415. + version_type=linux
  28416. + need_lib_prefix=no
  28417. + need_version=no
  28418. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28419. + shlibpath_var=LD_LIBRARY_PATH
  28420. + shlibpath_overrides_runpath=no
  28421. + hardcode_into_libs=yes
  28422. + ;;
  28423. +
  28424. uts4*)
  28425. version_type=linux
  28426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28427. @@ -16480,5139 +11187,4210 @@
  28428. dynamic_linker=no
  28429. ;;
  28430. esac
  28431. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  28432. -echo "${ECHO_T}$dynamic_linker" >&6; }
  28433. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  28434. +$as_echo "$dynamic_linker" >&6; }
  28435. test "$dynamic_linker" = no && can_build_shared=no
  28436. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  28437. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28438. -else
  28439. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  28440. -fi
  28441. -
  28442. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  28443. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  28444. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28445. -else
  28446. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  28447. -fi
  28448. -
  28449. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  28450. -
  28451. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  28452. if test "$GCC" = yes; then
  28453. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  28454. fi
  28455. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  28456. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  28457. -hardcode_action_F77=
  28458. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  28459. - test -n "$runpath_var_F77" || \
  28460. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  28461. -
  28462. - # We can hardcode non-existant directories.
  28463. - if test "$hardcode_direct_F77" != no &&
  28464. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  28465. - # have to relink, otherwise we might link with an installed library
  28466. - # when we should be linking with a yet-to-be-installed one
  28467. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  28468. - test "$hardcode_minus_L_F77" != no; then
  28469. - # Linking always hardcodes the temporary library directory.
  28470. - hardcode_action_F77=relink
  28471. - else
  28472. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  28473. - hardcode_action_F77=immediate
  28474. - fi
  28475. -else
  28476. - # We cannot hardcode anything, or else we can only hardcode existing
  28477. - # directories.
  28478. - hardcode_action_F77=unsupported
  28479. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  28480. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  28481. fi
  28482. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  28483. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  28484. -
  28485. -if test "$hardcode_action_F77" = relink; then
  28486. - # Fast installation is not supported
  28487. - enable_fast_install=no
  28488. -elif test "$shlibpath_overrides_runpath" = yes ||
  28489. - test "$enable_shared" = no; then
  28490. - # Fast installation is not necessary
  28491. - enable_fast_install=needless
  28492. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  28493. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  28494. fi
  28495. -# The else clause should only fire when bootstrapping the
  28496. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  28497. -# with your package, and you will get complaints that there are
  28498. -# no rules to generate ltmain.sh.
  28499. -if test -f "$ltmain"; then
  28500. - # See if we are running on zsh, and set the options which allow our commands through
  28501. - # without removal of \ escapes.
  28502. - if test -n "${ZSH_VERSION+set}" ; then
  28503. - setopt NO_GLOB_SUBST
  28504. - fi
  28505. - # Now quote all the things that may contain metacharacters while being
  28506. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  28507. - # variables and quote the copies for generation of the libtool script.
  28508. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  28509. - SED SHELL STRIP \
  28510. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  28511. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  28512. - deplibs_check_method reload_flag reload_cmds need_locks \
  28513. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  28514. - lt_cv_sys_global_symbol_to_c_name_address \
  28515. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  28516. - old_postinstall_cmds old_postuninstall_cmds \
  28517. - compiler_F77 \
  28518. - CC_F77 \
  28519. - LD_F77 \
  28520. - lt_prog_compiler_wl_F77 \
  28521. - lt_prog_compiler_pic_F77 \
  28522. - lt_prog_compiler_static_F77 \
  28523. - lt_prog_compiler_no_builtin_flag_F77 \
  28524. - export_dynamic_flag_spec_F77 \
  28525. - thread_safe_flag_spec_F77 \
  28526. - whole_archive_flag_spec_F77 \
  28527. - enable_shared_with_static_runtimes_F77 \
  28528. - old_archive_cmds_F77 \
  28529. - old_archive_from_new_cmds_F77 \
  28530. - predep_objects_F77 \
  28531. - postdep_objects_F77 \
  28532. - predeps_F77 \
  28533. - postdeps_F77 \
  28534. - compiler_lib_search_path_F77 \
  28535. - compiler_lib_search_dirs_F77 \
  28536. - archive_cmds_F77 \
  28537. - archive_expsym_cmds_F77 \
  28538. - postinstall_cmds_F77 \
  28539. - postuninstall_cmds_F77 \
  28540. - old_archive_from_expsyms_cmds_F77 \
  28541. - allow_undefined_flag_F77 \
  28542. - no_undefined_flag_F77 \
  28543. - export_symbols_cmds_F77 \
  28544. - hardcode_libdir_flag_spec_F77 \
  28545. - hardcode_libdir_flag_spec_ld_F77 \
  28546. - hardcode_libdir_separator_F77 \
  28547. - hardcode_automatic_F77 \
  28548. - module_cmds_F77 \
  28549. - module_expsym_cmds_F77 \
  28550. - lt_cv_prog_compiler_c_o_F77 \
  28551. - fix_srcfile_path_F77 \
  28552. - exclude_expsyms_F77 \
  28553. - include_expsyms_F77; do
  28554. -
  28555. - case $var in
  28556. - old_archive_cmds_F77 | \
  28557. - old_archive_from_new_cmds_F77 | \
  28558. - archive_cmds_F77 | \
  28559. - archive_expsym_cmds_F77 | \
  28560. - module_cmds_F77 | \
  28561. - module_expsym_cmds_F77 | \
  28562. - old_archive_from_expsyms_cmds_F77 | \
  28563. - export_symbols_cmds_F77 | \
  28564. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  28565. - postinstall_cmds | postuninstall_cmds | \
  28566. - old_postinstall_cmds | old_postuninstall_cmds | \
  28567. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  28568. - # Double-quote double-evaled strings.
  28569. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  28570. - ;;
  28571. - *)
  28572. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  28573. - ;;
  28574. - esac
  28575. - done
  28576. -
  28577. - case $lt_echo in
  28578. - *'\$0 --fallback-echo"')
  28579. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  28580. - ;;
  28581. - esac
  28582. -
  28583. -cfgfile="$ofile"
  28584. -
  28585. - cat <<__EOF__ >> "$cfgfile"
  28586. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  28587. -
  28588. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  28589. -
  28590. -# Shell to use when invoking shell scripts.
  28591. -SHELL=$lt_SHELL
  28592. -
  28593. -# Whether or not to build shared libraries.
  28594. -build_libtool_libs=$enable_shared
  28595. -
  28596. -# Whether or not to build static libraries.
  28597. -build_old_libs=$enable_static
  28598. -
  28599. -# Whether or not to add -lc for building shared libraries.
  28600. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  28601. -
  28602. -# Whether or not to disallow shared libs when runtime libs are static
  28603. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  28604. -
  28605. -# Whether or not to optimize for fast installation.
  28606. -fast_install=$enable_fast_install
  28607. -
  28608. -# The host system.
  28609. -host_alias=$host_alias
  28610. -host=$host
  28611. -host_os=$host_os
  28612. -
  28613. -# The build system.
  28614. -build_alias=$build_alias
  28615. -build=$build
  28616. -build_os=$build_os
  28617. -
  28618. -# An echo program that does not interpret backslashes.
  28619. -echo=$lt_echo
  28620. -
  28621. -# The archiver.
  28622. -AR=$lt_AR
  28623. -AR_FLAGS=$lt_AR_FLAGS
  28624. -
  28625. -# A C compiler.
  28626. -LTCC=$lt_LTCC
  28627. -
  28628. -# LTCC compiler flags.
  28629. -LTCFLAGS=$lt_LTCFLAGS
  28630. -
  28631. -# A language-specific compiler.
  28632. -CC=$lt_compiler_F77
  28633. -
  28634. -# Is the compiler the GNU C compiler?
  28635. -with_gcc=$GCC_F77
  28636. -
  28637. -# An ERE matcher.
  28638. -EGREP=$lt_EGREP
  28639. -
  28640. -# The linker used to build libraries.
  28641. -LD=$lt_LD_F77
  28642. -
  28643. -# Whether we need hard or soft links.
  28644. -LN_S=$lt_LN_S
  28645. -
  28646. -# A BSD-compatible nm program.
  28647. -NM=$lt_NM
  28648. -
  28649. -# A symbol stripping program
  28650. -STRIP=$lt_STRIP
  28651. -
  28652. -# Used to examine libraries when file_magic_cmd begins "file"
  28653. -MAGIC_CMD=$MAGIC_CMD
  28654. -
  28655. -# Used on cygwin: DLL creation program.
  28656. -DLLTOOL="$DLLTOOL"
  28657. -
  28658. -# Used on cygwin: object dumper.
  28659. -OBJDUMP="$OBJDUMP"
  28660. -
  28661. -# Used on cygwin: assembler.
  28662. -AS="$AS"
  28663. -
  28664. -# The name of the directory that contains temporary libtool files.
  28665. -objdir=$objdir
  28666. -
  28667. -# How to create reloadable object files.
  28668. -reload_flag=$lt_reload_flag
  28669. -reload_cmds=$lt_reload_cmds
  28670. -
  28671. -# How to pass a linker flag through the compiler.
  28672. -wl=$lt_lt_prog_compiler_wl_F77
  28673. -
  28674. -# Object file suffix (normally "o").
  28675. -objext="$ac_objext"
  28676. -
  28677. -# Old archive suffix (normally "a").
  28678. -libext="$libext"
  28679. -
  28680. -# Shared library suffix (normally ".so").
  28681. -shrext_cmds='$shrext_cmds'
  28682. -
  28683. -# Executable file suffix (normally "").
  28684. -exeext="$exeext"
  28685. -
  28686. -# Additional compiler flags for building library objects.
  28687. -pic_flag=$lt_lt_prog_compiler_pic_F77
  28688. -pic_mode=$pic_mode
  28689. -
  28690. -# What is the maximum length of a command?
  28691. -max_cmd_len=$lt_cv_sys_max_cmd_len
  28692. -
  28693. -# Does compiler simultaneously support -c and -o options?
  28694. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  28695. -
  28696. -# Must we lock files when doing compilation?
  28697. -need_locks=$lt_need_locks
  28698. -
  28699. -# Do we need the lib prefix for modules?
  28700. -need_lib_prefix=$need_lib_prefix
  28701. -
  28702. -# Do we need a version for libraries?
  28703. -need_version=$need_version
  28704. -
  28705. -# Whether dlopen is supported.
  28706. -dlopen_support=$enable_dlopen
  28707. -
  28708. -# Whether dlopen of programs is supported.
  28709. -dlopen_self=$enable_dlopen_self
  28710. -
  28711. -# Whether dlopen of statically linked programs is supported.
  28712. -dlopen_self_static=$enable_dlopen_self_static
  28713. -
  28714. -# Compiler flag to prevent dynamic linking.
  28715. -link_static_flag=$lt_lt_prog_compiler_static_F77
  28716. -
  28717. -# Compiler flag to turn off builtin functions.
  28718. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  28719. -
  28720. -# Compiler flag to allow reflexive dlopens.
  28721. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  28722. -
  28723. -# Compiler flag to generate shared objects directly from archives.
  28724. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  28725. -# Compiler flag to generate thread-safe objects.
  28726. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  28727. -
  28728. -# Library versioning type.
  28729. -version_type=$version_type
  28730. -
  28731. -# Format of library name prefix.
  28732. -libname_spec=$lt_libname_spec
  28733. -
  28734. -# List of archive names. First name is the real one, the rest are links.
  28735. -# The last name is the one that the linker finds with -lNAME.
  28736. -library_names_spec=$lt_library_names_spec
  28737. -
  28738. -# The coded name of the library, if different from the real name.
  28739. -soname_spec=$lt_soname_spec
  28740. -
  28741. -# Commands used to build and install an old-style archive.
  28742. -RANLIB=$lt_RANLIB
  28743. -old_archive_cmds=$lt_old_archive_cmds_F77
  28744. -old_postinstall_cmds=$lt_old_postinstall_cmds
  28745. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  28746. -# Create an old-style archive from a shared archive.
  28747. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  28748. -# Create a temporary old-style archive to link instead of a shared archive.
  28749. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  28750. -# Commands used to build and install a shared archive.
  28751. -archive_cmds=$lt_archive_cmds_F77
  28752. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  28753. -postinstall_cmds=$lt_postinstall_cmds
  28754. -postuninstall_cmds=$lt_postuninstall_cmds
  28755. -# Commands used to build a loadable module (assumed same as above if empty)
  28756. -module_cmds=$lt_module_cmds_F77
  28757. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  28758. -# Commands to strip libraries.
  28759. -old_striplib=$lt_old_striplib
  28760. -striplib=$lt_striplib
  28761. -# Dependencies to place before the objects being linked to create a
  28762. -# shared library.
  28763. -predep_objects=$lt_predep_objects_F77
  28764. -
  28765. -# Dependencies to place after the objects being linked to create a
  28766. -# shared library.
  28767. -postdep_objects=$lt_postdep_objects_F77
  28768. -
  28769. -# Dependencies to place before the objects being linked to create a
  28770. -# shared library.
  28771. -predeps=$lt_predeps_F77
  28772. -
  28773. -# Dependencies to place after the objects being linked to create a
  28774. -# shared library.
  28775. -postdeps=$lt_postdeps_F77
  28776. -
  28777. -# The directories searched by this compiler when creating a shared
  28778. -# library
  28779. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  28780. -# The library search path used internally by the compiler when linking
  28781. -# a shared library.
  28782. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  28783. -# Method to check whether dependent libraries are shared objects.
  28784. -deplibs_check_method=$lt_deplibs_check_method
  28785. -# Command to use when deplibs_check_method == file_magic.
  28786. -file_magic_cmd=$lt_file_magic_cmd
  28787. -# Flag that allows shared libraries with undefined symbols to be built.
  28788. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  28789. -# Flag that forces no undefined symbols.
  28790. -no_undefined_flag=$lt_no_undefined_flag_F77
  28791. -# Commands used to finish a libtool library installation in a directory.
  28792. -finish_cmds=$lt_finish_cmds
  28793. -# Same as above, but a single script fragment to be evaled but not shown.
  28794. -finish_eval=$lt_finish_eval
  28795. -# Take the output of nm and produce a listing of raw symbols and C names.
  28796. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  28797. -# Transform the output of nm in a proper C declaration
  28798. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  28799. -# Transform the output of nm in a C name address pair
  28800. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  28801. -# This is the shared library runtime path variable.
  28802. -runpath_var=$runpath_var
  28803. -# This is the shared library path variable.
  28804. -shlibpath_var=$shlibpath_var
  28805. -# Is shlibpath searched before the hard-coded library search path?
  28806. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  28807. -# How to hardcode a shared library path into an executable.
  28808. -hardcode_action=$hardcode_action_F77
  28809. -# Whether we should hardcode library paths into libraries.
  28810. -hardcode_into_libs=$hardcode_into_libs
  28811. -# Flag to hardcode \$libdir into a binary during linking.
  28812. -# This must work even if \$libdir does not exist.
  28813. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  28814. -# If ld is used when linking, flag to hardcode \$libdir into
  28815. -# a binary during linking. This must work even if \$libdir does
  28816. -# not exist.
  28817. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  28818. -
  28819. -# Whether we need a single -rpath flag with a separated argument.
  28820. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  28821. -
  28822. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  28823. -# resulting binary.
  28824. -hardcode_direct=$hardcode_direct_F77
  28825. -
  28826. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  28827. -# resulting binary.
  28828. -hardcode_minus_L=$hardcode_minus_L_F77
  28829. -
  28830. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  28831. -# the resulting binary.
  28832. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  28833. -
  28834. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  28835. -# and all subsequent libraries and executables linked against it.
  28836. -hardcode_automatic=$hardcode_automatic_F77
  28837. -# Variables whose values should be saved in libtool wrapper scripts and
  28838. -# restored at relink time.
  28839. -variables_saved_for_relink="$variables_saved_for_relink"
  28840. -# Whether libtool must link a program against all its dependency libraries.
  28841. -link_all_deplibs=$link_all_deplibs_F77
  28842. -# Compile-time system search path for libraries
  28843. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  28844. -# Run-time system search path for libraries
  28845. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  28846. -# Fix the shell variable \$srcfile for the compiler.
  28847. -fix_srcfile_path=$lt_fix_srcfile_path
  28848. -# Set to yes if exported symbols are required.
  28849. -always_export_symbols=$always_export_symbols_F77
  28850. -# The commands to list exported symbols.
  28851. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  28852. -# The commands to extract the exported symbol list from a shared archive.
  28853. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  28854. -# Symbols that should not be listed in the preloaded symbols.
  28855. -exclude_expsyms=$lt_exclude_expsyms_F77
  28856. -# Symbols that must always be exported.
  28857. -include_expsyms=$lt_include_expsyms_F77
  28858. -# ### END LIBTOOL TAG CONFIG: $tagname
  28859. -__EOF__
  28860. -else
  28861. - # If there is no Makefile yet, we rely on a make rule to execute
  28862. - # `config.status --recheck' to rerun these tests and create the
  28863. - # libtool script then.
  28864. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  28865. - if test -f "$ltmain_in"; then
  28866. - test -f Makefile && make "$ltmain"
  28867. - fi
  28868. -fi
  28869. -ac_ext=c
  28870. -ac_cpp='$CPP $CPPFLAGS'
  28871. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28872. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28873. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28874. -CC="$lt_save_CC"
  28875. - else
  28876. - tagname=""
  28877. - fi
  28878. - ;;
  28879. - GCJ)
  28880. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  28881. -# Source file extension for Java test sources.
  28882. -ac_ext=java
  28883. -# Object file extension for compiled Java test sources.
  28884. -objext=o
  28885. -objext_GCJ=$objext
  28886. -# Code to be used in simple compile tests
  28887. -lt_simple_compile_test_code="class foo {}"
  28888. -# Code to be used in simple link tests
  28889. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  28890. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  28891. -# If no C compiler was specified, use CC.
  28892. -LTCC=${LTCC-"$CC"}
  28893. -# If no C compiler flags were specified, use CFLAGS.
  28894. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28895. -# Allow CC to be a program name with arguments.
  28896. -compiler=$CC
  28897. -# save warnings/boilerplate of simple test code
  28898. -ac_outfile=conftest.$ac_objext
  28899. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  28900. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28901. -_lt_compiler_boilerplate=`cat conftest.err`
  28902. -$rm conftest*
  28903. -ac_outfile=conftest.$ac_objext
  28904. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  28905. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28906. -_lt_linker_boilerplate=`cat conftest.err`
  28907. -$rm -r conftest*
  28908. -# Allow CC to be a program name with arguments.
  28909. -lt_save_CC="$CC"
  28910. -CC=${GCJ-"gcj"}
  28911. -compiler=$CC
  28912. -compiler_GCJ=$CC
  28913. -for cc_temp in $compiler""; do
  28914. - case $cc_temp in
  28915. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28916. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28917. - \-*) ;;
  28918. - *) break;;
  28919. - esac
  28920. -done
  28921. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28922. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  28923. -archive_cmds_need_lc_GCJ=no
  28924. -old_archive_cmds_GCJ=$old_archive_cmds
  28925. -lt_prog_compiler_no_builtin_flag_GCJ=
  28926. -if test "$GCC" = yes; then
  28927. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  28928. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  28929. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  28930. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  28931. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28932. -else
  28933. - lt_cv_prog_compiler_rtti_exceptions=no
  28934. - ac_outfile=conftest.$ac_objext
  28935. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28936. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  28937. - # Insert the option either (1) after the last *FLAGS variable, or
  28938. - # (2) before a word containing "conftest.", or (3) at the end.
  28939. - # Note that $ac_compile itself does not contain backslashes and begins
  28940. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28941. - # The option is referenced via a variable to avoid confusing sed.
  28942. - lt_compile=`echo "$ac_compile" | $SED \
  28943. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28944. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28945. - -e 's:$: $lt_compiler_flag:'`
  28946. - (eval echo "\"\$as_me:17061: $lt_compile\"" >&5)
  28947. - (eval "$lt_compile" 2>conftest.err)
  28948. - ac_status=$?
  28949. - cat conftest.err >&5
  28950. - echo "$as_me:17065: \$? = $ac_status" >&5
  28951. - if (exit $ac_status) && test -s "$ac_outfile"; then
  28952. - # The compiler can only warn and ignore the option if not recognized
  28953. - # So say no if there are warnings other than the usual output.
  28954. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28955. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28956. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28957. - lt_cv_prog_compiler_rtti_exceptions=yes
  28958. - fi
  28959. - fi
  28960. - $rm conftest*
  28961. -fi
  28962. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  28963. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  28964. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  28965. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  28966. -else
  28967. - :
  28968. -fi
  28969. -fi
  28970. -lt_prog_compiler_wl_GCJ=
  28971. -lt_prog_compiler_pic_GCJ=
  28972. -lt_prog_compiler_static_GCJ=
  28973. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28974. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  28975. - if test "$GCC" = yes; then
  28976. - lt_prog_compiler_wl_GCJ='-Wl,'
  28977. - lt_prog_compiler_static_GCJ='-static'
  28978. - case $host_os in
  28979. - aix*)
  28980. - # All AIX code is PIC.
  28981. - if test "$host_cpu" = ia64; then
  28982. - # AIX 5 now supports IA64 processor
  28983. - lt_prog_compiler_static_GCJ='-Bstatic'
  28984. - fi
  28985. - ;;
  28986. - amigaos*)
  28987. - # FIXME: we need at least 68020 code to build shared libraries, but
  28988. - # adding the `-m68020' flag to GCC prevents building anything better,
  28989. - # like `-m68040'.
  28990. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  28991. - ;;
  28992. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28993. - # PIC is the default for these OSes.
  28994. - ;;
  28995. - mingw* | cygwin* | pw32* | os2*)
  28996. - # This hack is so that the source file can tell whether it is being
  28997. - # built for inclusion in a dll (and should export symbols for example).
  28998. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28999. - # (--disable-auto-import) libraries
  29000. - ;;
  29001. - darwin* | rhapsody*)
  29002. - # PIC is the default on this platform
  29003. - # Common symbols not allowed in MH_DYLIB files
  29004. - lt_prog_compiler_pic_GCJ='-fno-common'
  29005. - ;;
  29006. - interix[3-9]*)
  29007. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29008. - # Instead, we relocate shared libraries at runtime.
  29009. - ;;
  29010. - msdosdjgpp*)
  29011. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  29012. - # on systems that don't support them.
  29013. - lt_prog_compiler_can_build_shared_GCJ=no
  29014. - enable_shared=no
  29015. - ;;
  29016. - sysv4*MP*)
  29017. - if test -d /usr/nec; then
  29018. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  29019. - fi
  29020. - ;;
  29021. - hpux*)
  29022. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29023. - # not for PA HP-UX.
  29024. - case $host_cpu in
  29025. - hppa*64*|ia64*)
  29026. - # +Z the default
  29027. - ;;
  29028. - *)
  29029. - lt_prog_compiler_pic_GCJ='-fPIC'
  29030. - ;;
  29031. - esac
  29032. - ;;
  29033. - *)
  29034. - lt_prog_compiler_pic_GCJ='-fPIC'
  29035. - ;;
  29036. - esac
  29037. - else
  29038. - # PORTME Check for flag to pass linker flags through the system compiler.
  29039. - case $host_os in
  29040. - aix*)
  29041. - lt_prog_compiler_wl_GCJ='-Wl,'
  29042. - if test "$host_cpu" = ia64; then
  29043. - # AIX 5 now supports IA64 processor
  29044. - lt_prog_compiler_static_GCJ='-Bstatic'
  29045. - else
  29046. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  29047. - fi
  29048. - ;;
  29049. - darwin*)
  29050. - # PIC is the default on this platform
  29051. - # Common symbols not allowed in MH_DYLIB files
  29052. - case $cc_basename in
  29053. - xlc*)
  29054. - lt_prog_compiler_pic_GCJ='-qnocommon'
  29055. - lt_prog_compiler_wl_GCJ='-Wl,'
  29056. - ;;
  29057. - esac
  29058. - ;;
  29059. - mingw* | cygwin* | pw32* | os2*)
  29060. - # This hack is so that the source file can tell whether it is being
  29061. - # built for inclusion in a dll (and should export symbols for example).
  29062. - ;;
  29063. - hpux9* | hpux10* | hpux11*)
  29064. - lt_prog_compiler_wl_GCJ='-Wl,'
  29065. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29066. - # not for PA HP-UX.
  29067. - case $host_cpu in
  29068. - hppa*64*|ia64*)
  29069. - # +Z the default
  29070. - ;;
  29071. - *)
  29072. - lt_prog_compiler_pic_GCJ='+Z'
  29073. - ;;
  29074. - esac
  29075. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  29076. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  29077. - ;;
  29078. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  29079. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  29080. +hardcode_action=
  29081. +if test -n "$hardcode_libdir_flag_spec" ||
  29082. + test -n "$runpath_var" ||
  29083. + test "X$hardcode_automatic" = "Xyes" ; then
  29084. - irix5* | irix6* | nonstopux*)
  29085. - lt_prog_compiler_wl_GCJ='-Wl,'
  29086. - # PIC (with -KPIC) is the default.
  29087. - lt_prog_compiler_static_GCJ='-non_shared'
  29088. - ;;
  29089. + # We can hardcode non-existent directories.
  29090. + if test "$hardcode_direct" != no &&
  29091. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29092. + # have to relink, otherwise we might link with an installed library
  29093. + # when we should be linking with a yet-to-be-installed one
  29094. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  29095. + test "$hardcode_minus_L" != no; then
  29096. + # Linking always hardcodes the temporary library directory.
  29097. + hardcode_action=relink
  29098. + else
  29099. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  29100. + hardcode_action=immediate
  29101. + fi
  29102. +else
  29103. + # We cannot hardcode anything, or else we can only hardcode existing
  29104. + # directories.
  29105. + hardcode_action=unsupported
  29106. +fi
  29107. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  29108. +$as_echo "$hardcode_action" >&6; }
  29109. - newsos6)
  29110. - lt_prog_compiler_pic_GCJ='-KPIC'
  29111. - lt_prog_compiler_static_GCJ='-Bstatic'
  29112. - ;;
  29113. +if test "$hardcode_action" = relink ||
  29114. + test "$inherit_rpath" = yes; then
  29115. + # Fast installation is not supported
  29116. + enable_fast_install=no
  29117. +elif test "$shlibpath_overrides_runpath" = yes ||
  29118. + test "$enable_shared" = no; then
  29119. + # Fast installation is not necessary
  29120. + enable_fast_install=needless
  29121. +fi
  29122. - linux* | k*bsd*-gnu)
  29123. - case $cc_basename in
  29124. - icc* | ecc*)
  29125. - lt_prog_compiler_wl_GCJ='-Wl,'
  29126. - lt_prog_compiler_pic_GCJ='-KPIC'
  29127. - lt_prog_compiler_static_GCJ='-static'
  29128. - ;;
  29129. - pgcc* | pgf77* | pgf90* | pgf95*)
  29130. - # Portland Group compilers (*not* the Pentium gcc compiler,
  29131. - # which looks to be a dead project)
  29132. - lt_prog_compiler_wl_GCJ='-Wl,'
  29133. - lt_prog_compiler_pic_GCJ='-fpic'
  29134. - lt_prog_compiler_static_GCJ='-Bstatic'
  29135. - ;;
  29136. - ccc*)
  29137. - lt_prog_compiler_wl_GCJ='-Wl,'
  29138. - # All Alpha code is PIC.
  29139. - lt_prog_compiler_static_GCJ='-non_shared'
  29140. - ;;
  29141. - *)
  29142. - case `$CC -V 2>&1 | sed 5q` in
  29143. - *Sun\ C*)
  29144. - # Sun C 5.9
  29145. - lt_prog_compiler_pic_GCJ='-KPIC'
  29146. - lt_prog_compiler_static_GCJ='-Bstatic'
  29147. - lt_prog_compiler_wl_GCJ='-Wl,'
  29148. - ;;
  29149. - *Sun\ F*)
  29150. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  29151. - lt_prog_compiler_pic_GCJ='-KPIC'
  29152. - lt_prog_compiler_static_GCJ='-Bstatic'
  29153. - lt_prog_compiler_wl_GCJ=''
  29154. - ;;
  29155. - esac
  29156. - ;;
  29157. - esac
  29158. - ;;
  29159. - osf3* | osf4* | osf5*)
  29160. - lt_prog_compiler_wl_GCJ='-Wl,'
  29161. - # All OSF/1 code is PIC.
  29162. - lt_prog_compiler_static_GCJ='-non_shared'
  29163. - ;;
  29164. - rdos*)
  29165. - lt_prog_compiler_static_GCJ='-non_shared'
  29166. - ;;
  29167. - solaris*)
  29168. - lt_prog_compiler_pic_GCJ='-KPIC'
  29169. - lt_prog_compiler_static_GCJ='-Bstatic'
  29170. - case $cc_basename in
  29171. - f77* | f90* | f95*)
  29172. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  29173. - *)
  29174. - lt_prog_compiler_wl_GCJ='-Wl,';;
  29175. - esac
  29176. - ;;
  29177. - sunos4*)
  29178. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  29179. - lt_prog_compiler_pic_GCJ='-PIC'
  29180. - lt_prog_compiler_static_GCJ='-Bstatic'
  29181. - ;;
  29182. - sysv4 | sysv4.2uw2* | sysv4.3*)
  29183. - lt_prog_compiler_wl_GCJ='-Wl,'
  29184. - lt_prog_compiler_pic_GCJ='-KPIC'
  29185. - lt_prog_compiler_static_GCJ='-Bstatic'
  29186. - ;;
  29187. + if test "x$enable_dlopen" != xyes; then
  29188. + enable_dlopen=unknown
  29189. + enable_dlopen_self=unknown
  29190. + enable_dlopen_self_static=unknown
  29191. +else
  29192. + lt_cv_dlopen=no
  29193. + lt_cv_dlopen_libs=
  29194. +
  29195. + case $host_os in
  29196. + beos*)
  29197. + lt_cv_dlopen="load_add_on"
  29198. + lt_cv_dlopen_libs=
  29199. + lt_cv_dlopen_self=yes
  29200. + ;;
  29201. - sysv4*MP*)
  29202. - if test -d /usr/nec ;then
  29203. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  29204. - lt_prog_compiler_static_GCJ='-Bstatic'
  29205. - fi
  29206. - ;;
  29207. + mingw* | pw32* | cegcc*)
  29208. + lt_cv_dlopen="LoadLibrary"
  29209. + lt_cv_dlopen_libs=
  29210. + ;;
  29211. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  29212. - lt_prog_compiler_wl_GCJ='-Wl,'
  29213. - lt_prog_compiler_pic_GCJ='-KPIC'
  29214. - lt_prog_compiler_static_GCJ='-Bstatic'
  29215. - ;;
  29216. + cygwin*)
  29217. + lt_cv_dlopen="dlopen"
  29218. + lt_cv_dlopen_libs=
  29219. + ;;
  29220. - unicos*)
  29221. - lt_prog_compiler_wl_GCJ='-Wl,'
  29222. - lt_prog_compiler_can_build_shared_GCJ=no
  29223. - ;;
  29224. + darwin*)
  29225. + # if libdl is installed we need to link against it
  29226. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  29227. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  29228. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  29229. + $as_echo_n "(cached) " >&6
  29230. +else
  29231. + ac_check_lib_save_LIBS=$LIBS
  29232. +LIBS="-ldl $LIBS"
  29233. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29234. +/* end confdefs.h. */
  29235. - uts4*)
  29236. - lt_prog_compiler_pic_GCJ='-pic'
  29237. - lt_prog_compiler_static_GCJ='-Bstatic'
  29238. - ;;
  29239. +/* Override any GCC internal prototype to avoid an error.
  29240. + Use char because int might match the return type of a GCC
  29241. + builtin and then its argument prototype would still apply. */
  29242. +#ifdef __cplusplus
  29243. +extern "C"
  29244. +#endif
  29245. +char dlopen ();
  29246. +int
  29247. +main ()
  29248. +{
  29249. +return dlopen ();
  29250. + ;
  29251. + return 0;
  29252. +}
  29253. +_ACEOF
  29254. +if ac_fn_c_try_link "$LINENO"; then :
  29255. + ac_cv_lib_dl_dlopen=yes
  29256. +else
  29257. + ac_cv_lib_dl_dlopen=no
  29258. +fi
  29259. +rm -f core conftest.err conftest.$ac_objext \
  29260. + conftest$ac_exeext conftest.$ac_ext
  29261. +LIBS=$ac_check_lib_save_LIBS
  29262. +fi
  29263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  29264. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  29265. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  29266. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29267. +else
  29268. - *)
  29269. - lt_prog_compiler_can_build_shared_GCJ=no
  29270. - ;;
  29271. - esac
  29272. - fi
  29273. + lt_cv_dlopen="dyld"
  29274. + lt_cv_dlopen_libs=
  29275. + lt_cv_dlopen_self=yes
  29276. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  29277. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  29278. +fi
  29279. -#
  29280. -# Check to make sure the PIC flag actually works.
  29281. -#
  29282. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  29283. + ;;
  29284. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  29285. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  29286. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  29287. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29288. + *)
  29289. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  29290. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  29291. + lt_cv_dlopen="shl_load"
  29292. else
  29293. - lt_cv_prog_compiler_pic_works_GCJ=no
  29294. - ac_outfile=conftest.$ac_objext
  29295. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29296. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  29297. - # Insert the option either (1) after the last *FLAGS variable, or
  29298. - # (2) before a word containing "conftest.", or (3) at the end.
  29299. - # Note that $ac_compile itself does not contain backslashes and begins
  29300. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29301. - # The option is referenced via a variable to avoid confusing sed.
  29302. - lt_compile=`echo "$ac_compile" | $SED \
  29303. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29304. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29305. - -e 's:$: $lt_compiler_flag:'`
  29306. - (eval echo "\"\$as_me:17351: $lt_compile\"" >&5)
  29307. - (eval "$lt_compile" 2>conftest.err)
  29308. - ac_status=$?
  29309. - cat conftest.err >&5
  29310. - echo "$as_me:17355: \$? = $ac_status" >&5
  29311. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29312. - # The compiler can only warn and ignore the option if not recognized
  29313. - # So say no if there are warnings other than the usual output.
  29314. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29315. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29316. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29317. - lt_cv_prog_compiler_pic_works_GCJ=yes
  29318. - fi
  29319. - fi
  29320. - $rm conftest*
  29321. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  29322. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  29323. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  29324. + $as_echo_n "(cached) " >&6
  29325. +else
  29326. + ac_check_lib_save_LIBS=$LIBS
  29327. +LIBS="-ldld $LIBS"
  29328. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29329. +/* end confdefs.h. */
  29330. +/* Override any GCC internal prototype to avoid an error.
  29331. + Use char because int might match the return type of a GCC
  29332. + builtin and then its argument prototype would still apply. */
  29333. +#ifdef __cplusplus
  29334. +extern "C"
  29335. +#endif
  29336. +char shl_load ();
  29337. +int
  29338. +main ()
  29339. +{
  29340. +return shl_load ();
  29341. + ;
  29342. + return 0;
  29343. +}
  29344. +_ACEOF
  29345. +if ac_fn_c_try_link "$LINENO"; then :
  29346. + ac_cv_lib_dld_shl_load=yes
  29347. +else
  29348. + ac_cv_lib_dld_shl_load=no
  29349. +fi
  29350. +rm -f core conftest.err conftest.$ac_objext \
  29351. + conftest$ac_exeext conftest.$ac_ext
  29352. +LIBS=$ac_check_lib_save_LIBS
  29353. fi
  29354. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  29355. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  29356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  29357. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  29358. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  29359. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  29360. +else
  29361. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  29362. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  29363. + lt_cv_dlopen="dlopen"
  29364. +else
  29365. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  29366. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  29367. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  29368. + $as_echo_n "(cached) " >&6
  29369. +else
  29370. + ac_check_lib_save_LIBS=$LIBS
  29371. +LIBS="-ldl $LIBS"
  29372. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29373. +/* end confdefs.h. */
  29374. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  29375. - case $lt_prog_compiler_pic_GCJ in
  29376. - "" | " "*) ;;
  29377. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  29378. - esac
  29379. +/* Override any GCC internal prototype to avoid an error.
  29380. + Use char because int might match the return type of a GCC
  29381. + builtin and then its argument prototype would still apply. */
  29382. +#ifdef __cplusplus
  29383. +extern "C"
  29384. +#endif
  29385. +char dlopen ();
  29386. +int
  29387. +main ()
  29388. +{
  29389. +return dlopen ();
  29390. + ;
  29391. + return 0;
  29392. +}
  29393. +_ACEOF
  29394. +if ac_fn_c_try_link "$LINENO"; then :
  29395. + ac_cv_lib_dl_dlopen=yes
  29396. else
  29397. - lt_prog_compiler_pic_GCJ=
  29398. - lt_prog_compiler_can_build_shared_GCJ=no
  29399. + ac_cv_lib_dl_dlopen=no
  29400. +fi
  29401. +rm -f core conftest.err conftest.$ac_objext \
  29402. + conftest$ac_exeext conftest.$ac_ext
  29403. +LIBS=$ac_check_lib_save_LIBS
  29404. fi
  29405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  29406. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  29407. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  29408. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29409. +else
  29410. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  29411. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  29412. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  29413. + $as_echo_n "(cached) " >&6
  29414. +else
  29415. + ac_check_lib_save_LIBS=$LIBS
  29416. +LIBS="-lsvld $LIBS"
  29417. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29418. +/* end confdefs.h. */
  29419. +/* Override any GCC internal prototype to avoid an error.
  29420. + Use char because int might match the return type of a GCC
  29421. + builtin and then its argument prototype would still apply. */
  29422. +#ifdef __cplusplus
  29423. +extern "C"
  29424. +#endif
  29425. +char dlopen ();
  29426. +int
  29427. +main ()
  29428. +{
  29429. +return dlopen ();
  29430. + ;
  29431. + return 0;
  29432. +}
  29433. +_ACEOF
  29434. +if ac_fn_c_try_link "$LINENO"; then :
  29435. + ac_cv_lib_svld_dlopen=yes
  29436. +else
  29437. + ac_cv_lib_svld_dlopen=no
  29438. fi
  29439. -case $host_os in
  29440. - # For platforms which do not support PIC, -DPIC is meaningless:
  29441. - *djgpp*)
  29442. - lt_prog_compiler_pic_GCJ=
  29443. - ;;
  29444. - *)
  29445. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  29446. - ;;
  29447. -esac
  29448. +rm -f core conftest.err conftest.$ac_objext \
  29449. + conftest$ac_exeext conftest.$ac_ext
  29450. +LIBS=$ac_check_lib_save_LIBS
  29451. +fi
  29452. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  29453. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  29454. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  29455. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  29456. +else
  29457. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  29458. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  29459. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  29460. + $as_echo_n "(cached) " >&6
  29461. +else
  29462. + ac_check_lib_save_LIBS=$LIBS
  29463. +LIBS="-ldld $LIBS"
  29464. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29465. +/* end confdefs.h. */
  29466. -#
  29467. -# Check to make sure the static flag actually works.
  29468. -#
  29469. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  29470. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  29471. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  29472. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  29473. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29474. +/* Override any GCC internal prototype to avoid an error.
  29475. + Use char because int might match the return type of a GCC
  29476. + builtin and then its argument prototype would still apply. */
  29477. +#ifdef __cplusplus
  29478. +extern "C"
  29479. +#endif
  29480. +char dld_link ();
  29481. +int
  29482. +main ()
  29483. +{
  29484. +return dld_link ();
  29485. + ;
  29486. + return 0;
  29487. +}
  29488. +_ACEOF
  29489. +if ac_fn_c_try_link "$LINENO"; then :
  29490. + ac_cv_lib_dld_dld_link=yes
  29491. else
  29492. - lt_cv_prog_compiler_static_works_GCJ=no
  29493. - save_LDFLAGS="$LDFLAGS"
  29494. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  29495. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  29496. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  29497. - # The linker can only warn and ignore the option if not recognized
  29498. - # So say no if there are warnings
  29499. - if test -s conftest.err; then
  29500. - # Append any errors to the config.log.
  29501. - cat conftest.err 1>&5
  29502. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  29503. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29504. - if diff conftest.exp conftest.er2 >/dev/null; then
  29505. - lt_cv_prog_compiler_static_works_GCJ=yes
  29506. - fi
  29507. - else
  29508. - lt_cv_prog_compiler_static_works_GCJ=yes
  29509. - fi
  29510. - fi
  29511. - $rm -r conftest*
  29512. - LDFLAGS="$save_LDFLAGS"
  29513. + ac_cv_lib_dld_dld_link=no
  29514. +fi
  29515. +rm -f core conftest.err conftest.$ac_objext \
  29516. + conftest$ac_exeext conftest.$ac_ext
  29517. +LIBS=$ac_check_lib_save_LIBS
  29518. +fi
  29519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  29520. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  29521. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  29522. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  29523. +fi
  29524. +
  29525. fi
  29526. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  29527. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  29528. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  29529. - :
  29530. -else
  29531. - lt_prog_compiler_static_GCJ=
  29532. +
  29533. fi
  29534. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  29535. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  29536. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  29537. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29538. -else
  29539. - lt_cv_prog_compiler_c_o_GCJ=no
  29540. - $rm -r conftest 2>/dev/null
  29541. - mkdir conftest
  29542. - cd conftest
  29543. - mkdir out
  29544. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29545. +fi
  29546. +
  29547. +
  29548. +fi
  29549. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  29550. - # Insert the option either (1) after the last *FLAGS variable, or
  29551. - # (2) before a word containing "conftest.", or (3) at the end.
  29552. - # Note that $ac_compile itself does not contain backslashes and begins
  29553. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29554. - lt_compile=`echo "$ac_compile" | $SED \
  29555. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29556. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29557. - -e 's:$: $lt_compiler_flag:'`
  29558. - (eval echo "\"\$as_me:17455: $lt_compile\"" >&5)
  29559. - (eval "$lt_compile" 2>out/conftest.err)
  29560. - ac_status=$?
  29561. - cat out/conftest.err >&5
  29562. - echo "$as_me:17459: \$? = $ac_status" >&5
  29563. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29564. - then
  29565. - # The compiler can only warn and ignore the option if not recognized
  29566. - # So say no if there are warnings
  29567. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29568. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29569. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29570. - lt_cv_prog_compiler_c_o_GCJ=yes
  29571. - fi
  29572. - fi
  29573. - chmod u+w . 2>&5
  29574. - $rm conftest*
  29575. - # SGI C++ compiler will create directory out/ii_files/ for
  29576. - # template instantiation
  29577. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  29578. - $rm out/* && rmdir out
  29579. - cd ..
  29580. - rmdir conftest
  29581. - $rm conftest*
  29582. fi
  29583. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  29584. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  29585. + ;;
  29586. + esac
  29587. -hard_links="nottested"
  29588. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  29589. - # do not overwrite the value of need_locks provided by the user
  29590. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  29591. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  29592. - hard_links=yes
  29593. - $rm conftest*
  29594. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29595. - touch conftest.a
  29596. - ln conftest.a conftest.b 2>&5 || hard_links=no
  29597. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29598. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  29599. -echo "${ECHO_T}$hard_links" >&6; }
  29600. - if test "$hard_links" = no; then
  29601. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  29602. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  29603. - need_locks=warn
  29604. + if test "x$lt_cv_dlopen" != xno; then
  29605. + enable_dlopen=yes
  29606. + else
  29607. + enable_dlopen=no
  29608. fi
  29609. +
  29610. + case $lt_cv_dlopen in
  29611. + dlopen)
  29612. + save_CPPFLAGS="$CPPFLAGS"
  29613. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  29614. +
  29615. + save_LDFLAGS="$LDFLAGS"
  29616. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  29617. +
  29618. + save_LIBS="$LIBS"
  29619. + LIBS="$lt_cv_dlopen_libs $LIBS"
  29620. +
  29621. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  29622. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  29623. +if test "${lt_cv_dlopen_self+set}" = set; then :
  29624. + $as_echo_n "(cached) " >&6
  29625. else
  29626. - need_locks=no
  29627. -fi
  29628. + if test "$cross_compiling" = yes; then :
  29629. + lt_cv_dlopen_self=cross
  29630. +else
  29631. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29632. + lt_status=$lt_dlunknown
  29633. + cat > conftest.$ac_ext <<_LT_EOF
  29634. +#line 11622 "configure"
  29635. +#include "confdefs.h"
  29636. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29637. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  29638. +#if HAVE_DLFCN_H
  29639. +#include <dlfcn.h>
  29640. +#endif
  29641. - runpath_var=
  29642. - allow_undefined_flag_GCJ=
  29643. - enable_shared_with_static_runtimes_GCJ=no
  29644. - archive_cmds_GCJ=
  29645. - archive_expsym_cmds_GCJ=
  29646. - old_archive_From_new_cmds_GCJ=
  29647. - old_archive_from_expsyms_cmds_GCJ=
  29648. - export_dynamic_flag_spec_GCJ=
  29649. - whole_archive_flag_spec_GCJ=
  29650. - thread_safe_flag_spec_GCJ=
  29651. - hardcode_libdir_flag_spec_GCJ=
  29652. - hardcode_libdir_flag_spec_ld_GCJ=
  29653. - hardcode_libdir_separator_GCJ=
  29654. - hardcode_direct_GCJ=no
  29655. - hardcode_minus_L_GCJ=no
  29656. - hardcode_shlibpath_var_GCJ=unsupported
  29657. - link_all_deplibs_GCJ=unknown
  29658. - hardcode_automatic_GCJ=no
  29659. - module_cmds_GCJ=
  29660. - module_expsym_cmds_GCJ=
  29661. - always_export_symbols_GCJ=no
  29662. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29663. - # include_expsyms should be a list of space-separated symbols to be *always*
  29664. - # included in the symbol list
  29665. - include_expsyms_GCJ=
  29666. - # exclude_expsyms can be an extended regexp of symbols to exclude
  29667. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  29668. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  29669. - # as well as any symbol that contains `d'.
  29670. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  29671. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  29672. - # platforms (ab)use it in PIC code, but their linkers get confused if
  29673. - # the symbol is explicitly referenced. Since portable code cannot
  29674. - # rely on this symbol name, it's probably fine to never include it in
  29675. - # preloaded symbol tables.
  29676. - # Exclude shared library initialization/finalization symbols.
  29677. - extract_expsyms_cmds=
  29678. - # Just being paranoid about ensuring that cc_basename is set.
  29679. - for cc_temp in $compiler""; do
  29680. - case $cc_temp in
  29681. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29682. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29683. - \-*) ;;
  29684. - *) break;;
  29685. - esac
  29686. -done
  29687. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29688. +#include <stdio.h>
  29689. - case $host_os in
  29690. - cygwin* | mingw* | pw32*)
  29691. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  29692. - # When not using gcc, we currently assume that we are using
  29693. - # Microsoft Visual C++.
  29694. - if test "$GCC" != yes; then
  29695. - with_gnu_ld=no
  29696. - fi
  29697. - ;;
  29698. - interix*)
  29699. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  29700. - with_gnu_ld=yes
  29701. - ;;
  29702. - openbsd*)
  29703. - with_gnu_ld=no
  29704. - ;;
  29705. - esac
  29706. +#ifdef RTLD_GLOBAL
  29707. +# define LT_DLGLOBAL RTLD_GLOBAL
  29708. +#else
  29709. +# ifdef DL_GLOBAL
  29710. +# define LT_DLGLOBAL DL_GLOBAL
  29711. +# else
  29712. +# define LT_DLGLOBAL 0
  29713. +# endif
  29714. +#endif
  29715. - ld_shlibs_GCJ=yes
  29716. - if test "$with_gnu_ld" = yes; then
  29717. - # If archive_cmds runs LD, not CC, wlarc should be empty
  29718. - wlarc='${wl}'
  29719. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  29720. + find out it does not work in some platform. */
  29721. +#ifndef LT_DLLAZY_OR_NOW
  29722. +# ifdef RTLD_LAZY
  29723. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  29724. +# else
  29725. +# ifdef DL_LAZY
  29726. +# define LT_DLLAZY_OR_NOW DL_LAZY
  29727. +# else
  29728. +# ifdef RTLD_NOW
  29729. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  29730. +# else
  29731. +# ifdef DL_NOW
  29732. +# define LT_DLLAZY_OR_NOW DL_NOW
  29733. +# else
  29734. +# define LT_DLLAZY_OR_NOW 0
  29735. +# endif
  29736. +# endif
  29737. +# endif
  29738. +# endif
  29739. +#endif
  29740. - # Set some defaults for GNU ld with shared library support. These
  29741. - # are reset later if shared libraries are not supported. Putting them
  29742. - # here allows them to be overridden if necessary.
  29743. - runpath_var=LD_RUN_PATH
  29744. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  29745. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  29746. - # ancient GNU ld didn't support --whole-archive et. al.
  29747. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  29748. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29749. - else
  29750. - whole_archive_flag_spec_GCJ=
  29751. - fi
  29752. - supports_anon_versioning=no
  29753. - case `$LD -v 2>/dev/null` in
  29754. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  29755. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  29756. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  29757. - *\ 2.11.*) ;; # other 2.11 versions
  29758. - *) supports_anon_versioning=yes ;;
  29759. - esac
  29760. +void fnord() { int i=42;}
  29761. +int main ()
  29762. +{
  29763. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  29764. + int status = $lt_dlunknown;
  29765. - # See if GNU ld supports shared libraries.
  29766. - case $host_os in
  29767. - aix[3-9]*)
  29768. - # On AIX/PPC, the GNU linker is very broken
  29769. - if test "$host_cpu" != ia64; then
  29770. - ld_shlibs_GCJ=no
  29771. - cat <<EOF 1>&2
  29772. + if (self)
  29773. + {
  29774. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  29775. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  29776. + /* dlclose (self); */
  29777. + }
  29778. + else
  29779. + puts (dlerror ());
  29780. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  29781. -*** to be unable to reliably create shared libraries on AIX.
  29782. -*** Therefore, libtool is disabling shared libraries support. If you
  29783. -*** really care for shared libraries, you may want to modify your PATH
  29784. -*** so that a non-GNU linker is found, and then restart.
  29785. + return status;
  29786. +}
  29787. +_LT_EOF
  29788. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  29789. + (eval $ac_link) 2>&5
  29790. + ac_status=$?
  29791. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29792. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  29793. + (./conftest; exit; ) >&5 2>/dev/null
  29794. + lt_status=$?
  29795. + case x$lt_status in
  29796. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  29797. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  29798. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  29799. + esac
  29800. + else :
  29801. + # compilation failed
  29802. + lt_cv_dlopen_self=no
  29803. + fi
  29804. +fi
  29805. +rm -fr conftest*
  29806. -EOF
  29807. - fi
  29808. - ;;
  29809. - amigaos*)
  29810. - 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)'
  29811. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29812. - hardcode_minus_L_GCJ=yes
  29813. -
  29814. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  29815. - # that the semantics of dynamic libraries on AmigaOS, at least up
  29816. - # to version 4, is to share data among multiple programs linked
  29817. - # with the same dynamic library. Since this doesn't match the
  29818. - # behavior of shared libraries on other platforms, we can't use
  29819. - # them.
  29820. - ld_shlibs_GCJ=no
  29821. - ;;
  29822. +fi
  29823. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  29824. +$as_echo "$lt_cv_dlopen_self" >&6; }
  29825. - beos*)
  29826. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29827. - allow_undefined_flag_GCJ=unsupported
  29828. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  29829. - # support --undefined. This deserves some investigation. FIXME
  29830. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29831. - else
  29832. - ld_shlibs_GCJ=no
  29833. - fi
  29834. - ;;
  29835. + if test "x$lt_cv_dlopen_self" = xyes; then
  29836. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  29837. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  29838. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  29839. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  29840. + $as_echo_n "(cached) " >&6
  29841. +else
  29842. + if test "$cross_compiling" = yes; then :
  29843. + lt_cv_dlopen_self_static=cross
  29844. +else
  29845. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29846. + lt_status=$lt_dlunknown
  29847. + cat > conftest.$ac_ext <<_LT_EOF
  29848. +#line 11718 "configure"
  29849. +#include "confdefs.h"
  29850. - cygwin* | mingw* | pw32*)
  29851. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  29852. - # as there is no search path for DLLs.
  29853. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29854. - allow_undefined_flag_GCJ=unsupported
  29855. - always_export_symbols_GCJ=no
  29856. - enable_shared_with_static_runtimes_GCJ=yes
  29857. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  29858. +#if HAVE_DLFCN_H
  29859. +#include <dlfcn.h>
  29860. +#endif
  29861. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  29862. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29863. - # If the export-symbols file already is a .def file (1st line
  29864. - # is EXPORTS), use it as is; otherwise, prepend...
  29865. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29866. - cp $export_symbols $output_objdir/$soname.def;
  29867. - else
  29868. - echo EXPORTS > $output_objdir/$soname.def;
  29869. - cat $export_symbols >> $output_objdir/$soname.def;
  29870. - fi~
  29871. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29872. - else
  29873. - ld_shlibs_GCJ=no
  29874. - fi
  29875. - ;;
  29876. +#include <stdio.h>
  29877. - interix[3-9]*)
  29878. - hardcode_direct_GCJ=no
  29879. - hardcode_shlibpath_var_GCJ=no
  29880. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  29881. - export_dynamic_flag_spec_GCJ='${wl}-E'
  29882. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29883. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  29884. - # default) and relocated if they conflict, which is a slow very memory
  29885. - # consuming and fragmenting process. To avoid this, we pick a random,
  29886. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29887. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29888. - 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'
  29889. - 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'
  29890. - ;;
  29891. +#ifdef RTLD_GLOBAL
  29892. +# define LT_DLGLOBAL RTLD_GLOBAL
  29893. +#else
  29894. +# ifdef DL_GLOBAL
  29895. +# define LT_DLGLOBAL DL_GLOBAL
  29896. +# else
  29897. +# define LT_DLGLOBAL 0
  29898. +# endif
  29899. +#endif
  29900. - gnu* | linux* | k*bsd*-gnu)
  29901. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29902. - tmp_addflag=
  29903. - case $cc_basename,$host_cpu in
  29904. - pgcc*) # Portland Group C compiler
  29905. - 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'
  29906. - tmp_addflag=' $pic_flag'
  29907. - ;;
  29908. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  29909. - 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'
  29910. - tmp_addflag=' $pic_flag -Mnomain' ;;
  29911. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  29912. - tmp_addflag=' -i_dynamic' ;;
  29913. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  29914. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  29915. - ifc* | ifort*) # Intel Fortran compiler
  29916. - tmp_addflag=' -nofor_main' ;;
  29917. - esac
  29918. - case `$CC -V 2>&1 | sed 5q` in
  29919. - *Sun\ C*) # Sun C 5.9
  29920. - 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'
  29921. - tmp_sharedflag='-G' ;;
  29922. - *Sun\ F*) # Sun Fortran 8.3
  29923. - tmp_sharedflag='-G' ;;
  29924. - *)
  29925. - tmp_sharedflag='-shared' ;;
  29926. - esac
  29927. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29928. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  29929. + find out it does not work in some platform. */
  29930. +#ifndef LT_DLLAZY_OR_NOW
  29931. +# ifdef RTLD_LAZY
  29932. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  29933. +# else
  29934. +# ifdef DL_LAZY
  29935. +# define LT_DLLAZY_OR_NOW DL_LAZY
  29936. +# else
  29937. +# ifdef RTLD_NOW
  29938. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  29939. +# else
  29940. +# ifdef DL_NOW
  29941. +# define LT_DLLAZY_OR_NOW DL_NOW
  29942. +# else
  29943. +# define LT_DLLAZY_OR_NOW 0
  29944. +# endif
  29945. +# endif
  29946. +# endif
  29947. +# endif
  29948. +#endif
  29949. - if test $supports_anon_versioning = yes; then
  29950. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  29951. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29952. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  29953. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  29954. - fi
  29955. - else
  29956. - ld_shlibs_GCJ=no
  29957. - fi
  29958. - ;;
  29959. +void fnord() { int i=42;}
  29960. +int main ()
  29961. +{
  29962. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  29963. + int status = $lt_dlunknown;
  29964. - netbsd*)
  29965. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29966. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  29967. - wlarc=
  29968. - else
  29969. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29970. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29971. - fi
  29972. - ;;
  29973. + if (self)
  29974. + {
  29975. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  29976. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  29977. + /* dlclose (self); */
  29978. + }
  29979. + else
  29980. + puts (dlerror ());
  29981. - solaris*)
  29982. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  29983. - ld_shlibs_GCJ=no
  29984. - cat <<EOF 1>&2
  29985. + return status;
  29986. +}
  29987. +_LT_EOF
  29988. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  29989. + (eval $ac_link) 2>&5
  29990. + ac_status=$?
  29991. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29992. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  29993. + (./conftest; exit; ) >&5 2>/dev/null
  29994. + lt_status=$?
  29995. + case x$lt_status in
  29996. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  29997. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  29998. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  29999. + esac
  30000. + else :
  30001. + # compilation failed
  30002. + lt_cv_dlopen_self_static=no
  30003. + fi
  30004. +fi
  30005. +rm -fr conftest*
  30006. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30007. -*** create shared libraries on Solaris systems. Therefore, libtool
  30008. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30009. -*** binutils to release 2.9.1 or newer. Another option is to modify
  30010. -*** your PATH or compiler configuration so that the native linker is
  30011. -*** used, and then restart.
  30012. -EOF
  30013. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30014. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30015. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30016. - else
  30017. - ld_shlibs_GCJ=no
  30018. - fi
  30019. - ;;
  30020. +fi
  30021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  30022. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  30023. + fi
  30024. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  30025. - case `$LD -v 2>&1` in
  30026. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  30027. - ld_shlibs_GCJ=no
  30028. - cat <<_LT_EOF 1>&2
  30029. + CPPFLAGS="$save_CPPFLAGS"
  30030. + LDFLAGS="$save_LDFLAGS"
  30031. + LIBS="$save_LIBS"
  30032. + ;;
  30033. + esac
  30034. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  30035. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  30036. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30037. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  30038. -*** your PATH or compiler configuration so that the native linker is
  30039. -*** used, and then restart.
  30040. + case $lt_cv_dlopen_self in
  30041. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  30042. + *) enable_dlopen_self=unknown ;;
  30043. + esac
  30044. +
  30045. + case $lt_cv_dlopen_self_static in
  30046. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  30047. + *) enable_dlopen_self_static=unknown ;;
  30048. + esac
  30049. +fi
  30050. -_LT_EOF
  30051. - ;;
  30052. - *)
  30053. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30054. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  30055. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  30056. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  30057. - else
  30058. - ld_shlibs_GCJ=no
  30059. - fi
  30060. - ;;
  30061. - esac
  30062. - ;;
  30063. - sunos4*)
  30064. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30065. - wlarc=
  30066. - hardcode_direct_GCJ=yes
  30067. - hardcode_shlibpath_var_GCJ=no
  30068. - ;;
  30069. - *)
  30070. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30071. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30072. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30073. - else
  30074. - ld_shlibs_GCJ=no
  30075. - fi
  30076. - ;;
  30077. - esac
  30078. - if test "$ld_shlibs_GCJ" = no; then
  30079. - runpath_var=
  30080. - hardcode_libdir_flag_spec_GCJ=
  30081. - export_dynamic_flag_spec_GCJ=
  30082. - whole_archive_flag_spec_GCJ=
  30083. - fi
  30084. - else
  30085. - # PORTME fill in a description of your system's linker (not GNU ld)
  30086. - case $host_os in
  30087. - aix3*)
  30088. - allow_undefined_flag_GCJ=unsupported
  30089. - always_export_symbols_GCJ=yes
  30090. - 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'
  30091. - # Note: this linker hardcodes the directories in LIBPATH if there
  30092. - # are no directories specified by -L.
  30093. - hardcode_minus_L_GCJ=yes
  30094. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  30095. - # Neither direct hardcoding nor static linking is supported with a
  30096. - # broken collect2.
  30097. - hardcode_direct_GCJ=unsupported
  30098. - fi
  30099. - ;;
  30100. - aix[4-9]*)
  30101. - if test "$host_cpu" = ia64; then
  30102. - # On IA64, the linker does run time linking by default, so we don't
  30103. - # have to do anything special.
  30104. - aix_use_runtimelinking=no
  30105. - exp_sym_flag='-Bexport'
  30106. - no_entry_flag=""
  30107. - else
  30108. - # If we're using GNU nm, then we don't want the "-C" option.
  30109. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30110. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30111. - 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'
  30112. - else
  30113. - 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'
  30114. - fi
  30115. - aix_use_runtimelinking=no
  30116. - # Test if we are trying to use run time linking or normal
  30117. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30118. - # need to do runtime linking.
  30119. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  30120. - for ld_flag in $LDFLAGS; do
  30121. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  30122. - aix_use_runtimelinking=yes
  30123. - break
  30124. - fi
  30125. - done
  30126. - ;;
  30127. - esac
  30128. - exp_sym_flag='-bexport'
  30129. - no_entry_flag='-bnoentry'
  30130. - fi
  30131. - # When large executables or shared objects are built, AIX ld can
  30132. - # have problems creating the table of contents. If linking a library
  30133. - # or program results in "error TOC overflow" add -mminimal-toc to
  30134. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30135. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30136. - archive_cmds_GCJ=''
  30137. - hardcode_direct_GCJ=yes
  30138. - hardcode_libdir_separator_GCJ=':'
  30139. - link_all_deplibs_GCJ=yes
  30140. - if test "$GCC" = yes; then
  30141. - case $host_os in aix4.[012]|aix4.[012].*)
  30142. - # We only want to do this on AIX 4.2 and lower, the check
  30143. - # below for broken collect2 doesn't work under 4.3+
  30144. - collect2name=`${CC} -print-prog-name=collect2`
  30145. - if test -f "$collect2name" && \
  30146. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  30147. - then
  30148. - # We have reworked collect2
  30149. - :
  30150. - else
  30151. - # We have old collect2
  30152. - hardcode_direct_GCJ=unsupported
  30153. - # It fails to find uninstalled libraries when the uninstalled
  30154. - # path is not listed in the libpath. Setting hardcode_minus_L
  30155. - # to unsupported forces relinking
  30156. - hardcode_minus_L_GCJ=yes
  30157. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30158. - hardcode_libdir_separator_GCJ=
  30159. - fi
  30160. - ;;
  30161. - esac
  30162. - shared_flag='-shared'
  30163. - if test "$aix_use_runtimelinking" = yes; then
  30164. - shared_flag="$shared_flag "'${wl}-G'
  30165. - fi
  30166. - else
  30167. - # not using gcc
  30168. - if test "$host_cpu" = ia64; then
  30169. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30170. - # chokes on -Wl,-G. The following line is correct:
  30171. - shared_flag='-G'
  30172. - else
  30173. - if test "$aix_use_runtimelinking" = yes; then
  30174. - shared_flag='${wl}-G'
  30175. - else
  30176. - shared_flag='${wl}-bM:SRE'
  30177. - fi
  30178. - fi
  30179. - fi
  30180. - # It seems that -bexpall does not export symbols beginning with
  30181. - # underscore (_), so it is better to generate a list of symbols to export.
  30182. - always_export_symbols_GCJ=yes
  30183. - if test "$aix_use_runtimelinking" = yes; then
  30184. - # Warning - without using the other runtime loading flags (-brtl),
  30185. - # -berok will link without error, but may produce a broken library.
  30186. - allow_undefined_flag_GCJ='-berok'
  30187. - # Determine the default libpath from the value encoded in an empty executable.
  30188. - cat >conftest.$ac_ext <<_ACEOF
  30189. -/* confdefs.h. */
  30190. -_ACEOF
  30191. -cat confdefs.h >>conftest.$ac_ext
  30192. -cat >>conftest.$ac_ext <<_ACEOF
  30193. -/* end confdefs.h. */
  30194. -int
  30195. -main ()
  30196. -{
  30197. - ;
  30198. - return 0;
  30199. -}
  30200. -_ACEOF
  30201. -rm -f conftest.$ac_objext conftest$ac_exeext
  30202. -if { (ac_try="$ac_link"
  30203. -case "(($ac_try" in
  30204. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30205. - *) ac_try_echo=$ac_try;;
  30206. -esac
  30207. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30208. - (eval "$ac_link") 2>conftest.er1
  30209. - ac_status=$?
  30210. - grep -v '^ *+' conftest.er1 >conftest.err
  30211. - rm -f conftest.er1
  30212. - cat conftest.err >&5
  30213. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30214. - (exit $ac_status); } && {
  30215. - test -z "$ac_c_werror_flag" ||
  30216. - test ! -s conftest.err
  30217. - } && test -s conftest$ac_exeext &&
  30218. - $as_test_x conftest$ac_exeext; then
  30219. -lt_aix_libpath_sed='
  30220. - /Import File Strings/,/^$/ {
  30221. - /^0/ {
  30222. - s/^0 *\(.*\)$/\1/
  30223. - p
  30224. - }
  30225. - }'
  30226. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30227. -# Check for a 64-bit object if we didn't find anything.
  30228. -if test -z "$aix_libpath"; then
  30229. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30230. -fi
  30231. -else
  30232. - echo "$as_me: failed program was:" >&5
  30233. -sed 's/^/| /' conftest.$ac_ext >&5
  30234. +
  30235. +striplib=
  30236. +old_striplib=
  30237. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  30238. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  30239. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  30240. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  30241. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  30242. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30243. +$as_echo "yes" >&6; }
  30244. +else
  30245. +# FIXME - insert some real tests, host_os isn't really good enough
  30246. + case $host_os in
  30247. + darwin*)
  30248. + if test -n "$STRIP" ; then
  30249. + striplib="$STRIP -x"
  30250. + old_striplib="$STRIP -S"
  30251. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30252. +$as_echo "yes" >&6; }
  30253. + else
  30254. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30255. +$as_echo "no" >&6; }
  30256. + fi
  30257. + ;;
  30258. + *)
  30259. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30260. +$as_echo "no" >&6; }
  30261. + ;;
  30262. + esac
  30263. fi
  30264. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30265. - conftest$ac_exeext conftest.$ac_ext
  30266. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30267. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  30268. - 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"
  30269. - else
  30270. - if test "$host_cpu" = ia64; then
  30271. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  30272. - allow_undefined_flag_GCJ="-z nodefs"
  30273. - 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"
  30274. - else
  30275. - # Determine the default libpath from the value encoded in an empty executable.
  30276. - cat >conftest.$ac_ext <<_ACEOF
  30277. -/* confdefs.h. */
  30278. -_ACEOF
  30279. -cat confdefs.h >>conftest.$ac_ext
  30280. -cat >>conftest.$ac_ext <<_ACEOF
  30281. -/* end confdefs.h. */
  30282. -int
  30283. -main ()
  30284. -{
  30285. - ;
  30286. - return 0;
  30287. -}
  30288. -_ACEOF
  30289. -rm -f conftest.$ac_objext conftest$ac_exeext
  30290. -if { (ac_try="$ac_link"
  30291. -case "(($ac_try" in
  30292. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30293. - *) ac_try_echo=$ac_try;;
  30294. -esac
  30295. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30296. - (eval "$ac_link") 2>conftest.er1
  30297. - ac_status=$?
  30298. - grep -v '^ *+' conftest.er1 >conftest.err
  30299. - rm -f conftest.er1
  30300. - cat conftest.err >&5
  30301. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30302. - (exit $ac_status); } && {
  30303. - test -z "$ac_c_werror_flag" ||
  30304. - test ! -s conftest.err
  30305. - } && test -s conftest$ac_exeext &&
  30306. - $as_test_x conftest$ac_exeext; then
  30307. -lt_aix_libpath_sed='
  30308. - /Import File Strings/,/^$/ {
  30309. - /^0/ {
  30310. - s/^0 *\(.*\)$/\1/
  30311. - p
  30312. - }
  30313. - }'
  30314. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30315. -# Check for a 64-bit object if we didn't find anything.
  30316. -if test -z "$aix_libpath"; then
  30317. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30318. -fi
  30319. -else
  30320. - echo "$as_me: failed program was:" >&5
  30321. -sed 's/^/| /' conftest.$ac_ext >&5
  30322. -fi
  30323. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30324. - conftest$ac_exeext conftest.$ac_ext
  30325. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30326. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  30327. - # Warning - without using the other run time loading flags,
  30328. - # -berok will link without error, but may produce a broken library.
  30329. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  30330. - allow_undefined_flag_GCJ=' ${wl}-berok'
  30331. - # Exported symbols can be pulled into shared objects from archives
  30332. - whole_archive_flag_spec_GCJ='$convenience'
  30333. - archive_cmds_need_lc_GCJ=yes
  30334. - # This is similar to how AIX traditionally builds its shared libraries.
  30335. - 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'
  30336. - fi
  30337. - fi
  30338. - ;;
  30339. - amigaos*)
  30340. - 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)'
  30341. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30342. - hardcode_minus_L_GCJ=yes
  30343. - # see comment about different semantics on the GNU ld section
  30344. - ld_shlibs_GCJ=no
  30345. - ;;
  30346. - bsdi[45]*)
  30347. - export_dynamic_flag_spec_GCJ=-rdynamic
  30348. - ;;
  30349. - cygwin* | mingw* | pw32*)
  30350. - # When not using gcc, we currently assume that we are using
  30351. - # Microsoft Visual C++.
  30352. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  30353. - # no search path for DLLs.
  30354. - hardcode_libdir_flag_spec_GCJ=' '
  30355. - allow_undefined_flag_GCJ=unsupported
  30356. - # Tell ltmain to make .lib files, not .a files.
  30357. - libext=lib
  30358. - # Tell ltmain to make .dll files, not .so files.
  30359. - shrext_cmds=".dll"
  30360. - # FIXME: Setting linknames here is a bad hack.
  30361. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  30362. - # The linker will automatically build a .lib file if we build a DLL.
  30363. - old_archive_From_new_cmds_GCJ='true'
  30364. - # FIXME: Should let the user specify the lib program.
  30365. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  30366. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  30367. - enable_shared_with_static_runtimes_GCJ=yes
  30368. - ;;
  30369. + # Report which library types will actually be built
  30370. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  30371. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  30372. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  30373. +$as_echo "$can_build_shared" >&6; }
  30374. +
  30375. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  30376. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  30377. + test "$can_build_shared" = "no" && enable_shared=no
  30378. - darwin* | rhapsody*)
  30379. - case $host_os in
  30380. - rhapsody* | darwin1.[012])
  30381. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  30382. - ;;
  30383. - *) # Darwin 1.3 on
  30384. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  30385. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30386. - else
  30387. - case ${MACOSX_DEPLOYMENT_TARGET} in
  30388. - 10.[012])
  30389. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30390. - ;;
  30391. - 10.*)
  30392. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  30393. - ;;
  30394. - esac
  30395. - fi
  30396. - ;;
  30397. - esac
  30398. - archive_cmds_need_lc_GCJ=no
  30399. - hardcode_direct_GCJ=no
  30400. - hardcode_automatic_GCJ=yes
  30401. - hardcode_shlibpath_var_GCJ=unsupported
  30402. - whole_archive_flag_spec_GCJ=''
  30403. - link_all_deplibs_GCJ=yes
  30404. - if test "$GCC" = yes ; then
  30405. - output_verbose_link_cmd='echo'
  30406. - 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}"
  30407. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  30408. - 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}"
  30409. - 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}"
  30410. - else
  30411. - case $cc_basename in
  30412. - xlc*)
  30413. - output_verbose_link_cmd='echo'
  30414. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  30415. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30416. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30417. - 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}'
  30418. - 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}'
  30419. - ;;
  30420. - *)
  30421. - ld_shlibs_GCJ=no
  30422. - ;;
  30423. - esac
  30424. + # On AIX, shared libraries and static libraries use the same namespace, and
  30425. + # are all built from PIC.
  30426. + case $host_os in
  30427. + aix3*)
  30428. + test "$enable_shared" = yes && enable_static=no
  30429. + if test -n "$RANLIB"; then
  30430. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30431. + postinstall_cmds='$RANLIB $lib'
  30432. fi
  30433. - ;;
  30434. + ;;
  30435. - dgux*)
  30436. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30437. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30438. - hardcode_shlibpath_var_GCJ=no
  30439. - ;;
  30440. + aix[4-9]*)
  30441. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30442. + test "$enable_shared" = yes && enable_static=no
  30443. + fi
  30444. + ;;
  30445. + esac
  30446. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  30447. +$as_echo "$enable_shared" >&6; }
  30448. - freebsd1*)
  30449. - ld_shlibs_GCJ=no
  30450. - ;;
  30451. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  30452. +$as_echo_n "checking whether to build static libraries... " >&6; }
  30453. + # Make sure either enable_shared or enable_static is yes.
  30454. + test "$enable_shared" = yes || enable_static=yes
  30455. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  30456. +$as_echo "$enable_static" >&6; }
  30457. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  30458. - # support. Future versions do this automatically, but an explicit c++rt0.o
  30459. - # does not break anything, and helps significantly (at the cost of a little
  30460. - # extra space).
  30461. - freebsd2.2*)
  30462. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  30463. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30464. - hardcode_direct_GCJ=yes
  30465. - hardcode_shlibpath_var_GCJ=no
  30466. - ;;
  30467. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  30468. - freebsd2*)
  30469. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30470. - hardcode_direct_GCJ=yes
  30471. - hardcode_minus_L_GCJ=yes
  30472. - hardcode_shlibpath_var_GCJ=no
  30473. - ;;
  30474. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  30475. - freebsd* | dragonfly*)
  30476. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  30477. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30478. - hardcode_direct_GCJ=yes
  30479. - hardcode_shlibpath_var_GCJ=no
  30480. - ;;
  30481. - hpux9*)
  30482. - if test "$GCC" = yes; then
  30483. - 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'
  30484. - else
  30485. - 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'
  30486. - fi
  30487. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30488. - hardcode_libdir_separator_GCJ=:
  30489. - hardcode_direct_GCJ=yes
  30490. +fi
  30491. +ac_ext=c
  30492. +ac_cpp='$CPP $CPPFLAGS'
  30493. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30494. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30495. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30496. - # hardcode_minus_L: Not really in the search PATH,
  30497. - # but as the default location of the library.
  30498. - hardcode_minus_L_GCJ=yes
  30499. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30500. - ;;
  30501. +CC="$lt_save_CC"
  30502. - hpux10*)
  30503. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30504. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30505. - else
  30506. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  30507. - fi
  30508. - if test "$with_gnu_ld" = no; then
  30509. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30510. - hardcode_libdir_separator_GCJ=:
  30511. - hardcode_direct_GCJ=yes
  30512. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30513. +ac_ext=cpp
  30514. +ac_cpp='$CXXCPP $CPPFLAGS'
  30515. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30516. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30517. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30518. - # hardcode_minus_L: Not really in the search PATH,
  30519. - # but as the default location of the library.
  30520. - hardcode_minus_L_GCJ=yes
  30521. - fi
  30522. - ;;
  30523. +archive_cmds_need_lc_CXX=no
  30524. +allow_undefined_flag_CXX=
  30525. +always_export_symbols_CXX=no
  30526. +archive_expsym_cmds_CXX=
  30527. +compiler_needs_object_CXX=no
  30528. +export_dynamic_flag_spec_CXX=
  30529. +hardcode_direct_CXX=no
  30530. +hardcode_direct_absolute_CXX=no
  30531. +hardcode_libdir_flag_spec_CXX=
  30532. +hardcode_libdir_flag_spec_ld_CXX=
  30533. +hardcode_libdir_separator_CXX=
  30534. +hardcode_minus_L_CXX=no
  30535. +hardcode_shlibpath_var_CXX=unsupported
  30536. +hardcode_automatic_CXX=no
  30537. +inherit_rpath_CXX=no
  30538. +module_cmds_CXX=
  30539. +module_expsym_cmds_CXX=
  30540. +link_all_deplibs_CXX=unknown
  30541. +old_archive_cmds_CXX=$old_archive_cmds
  30542. +no_undefined_flag_CXX=
  30543. +whole_archive_flag_spec_CXX=
  30544. +enable_shared_with_static_runtimes_CXX=no
  30545. - hpux11*)
  30546. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30547. - case $host_cpu in
  30548. - hppa*64*)
  30549. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30550. - ;;
  30551. - ia64*)
  30552. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30553. - ;;
  30554. - *)
  30555. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30556. - ;;
  30557. - esac
  30558. - else
  30559. - case $host_cpu in
  30560. - hppa*64*)
  30561. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30562. - ;;
  30563. - ia64*)
  30564. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30565. - ;;
  30566. - *)
  30567. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30568. - ;;
  30569. - esac
  30570. - fi
  30571. - if test "$with_gnu_ld" = no; then
  30572. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30573. - hardcode_libdir_separator_GCJ=:
  30574. +# Source file extension for C++ test sources.
  30575. +ac_ext=cpp
  30576. - case $host_cpu in
  30577. - hppa*64*|ia64*)
  30578. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  30579. - hardcode_direct_GCJ=no
  30580. - hardcode_shlibpath_var_GCJ=no
  30581. - ;;
  30582. - *)
  30583. - hardcode_direct_GCJ=yes
  30584. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30585. +# Object file extension for compiled C++ test sources.
  30586. +objext=o
  30587. +objext_CXX=$objext
  30588. - # hardcode_minus_L: Not really in the search PATH,
  30589. - # but as the default location of the library.
  30590. - hardcode_minus_L_GCJ=yes
  30591. - ;;
  30592. - esac
  30593. - fi
  30594. - ;;
  30595. +# No sense in running all these tests if we already determined that
  30596. +# the CXX compiler isn't working. Some variables (like enable_shared)
  30597. +# are currently assumed to apply to all compilers on this platform,
  30598. +# and will be corrupted by setting them based on a non-working compiler.
  30599. +if test "$_lt_caught_CXX_error" != yes; then
  30600. + # Code to be used in simple compile tests
  30601. + lt_simple_compile_test_code="int some_variable = 0;"
  30602. - irix5* | irix6* | nonstopux*)
  30603. - if test "$GCC" = yes; then
  30604. - 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'
  30605. - else
  30606. - 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'
  30607. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  30608. - fi
  30609. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  30610. - hardcode_libdir_separator_GCJ=:
  30611. - link_all_deplibs_GCJ=yes
  30612. - ;;
  30613. + # Code to be used in simple link tests
  30614. + lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  30615. - netbsd*)
  30616. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30617. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  30618. - else
  30619. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  30620. - fi
  30621. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30622. - hardcode_direct_GCJ=yes
  30623. - hardcode_shlibpath_var_GCJ=no
  30624. - ;;
  30625. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30626. - newsos6)
  30627. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30628. - hardcode_direct_GCJ=yes
  30629. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  30630. - hardcode_libdir_separator_GCJ=:
  30631. - hardcode_shlibpath_var_GCJ=no
  30632. - ;;
  30633. - openbsd*)
  30634. - if test -f /usr/libexec/ld.so; then
  30635. - hardcode_direct_GCJ=yes
  30636. - hardcode_shlibpath_var_GCJ=no
  30637. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30638. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  30639. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  30640. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  30641. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30642. - else
  30643. - case $host_os in
  30644. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  30645. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30646. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30647. - ;;
  30648. - *)
  30649. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  30650. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  30651. - ;;
  30652. - esac
  30653. - fi
  30654. - else
  30655. - ld_shlibs_GCJ=no
  30656. - fi
  30657. - ;;
  30658. - os2*)
  30659. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30660. - hardcode_minus_L_GCJ=yes
  30661. - allow_undefined_flag_GCJ=unsupported
  30662. - 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'
  30663. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  30664. - ;;
  30665. - osf3*)
  30666. - if test "$GCC" = yes; then
  30667. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  30668. - 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'
  30669. - else
  30670. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  30671. - 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'
  30672. - fi
  30673. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  30674. - hardcode_libdir_separator_GCJ=:
  30675. - ;;
  30676. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  30677. - if test "$GCC" = yes; then
  30678. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  30679. - 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'
  30680. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  30681. - else
  30682. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  30683. - 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'
  30684. - 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~
  30685. - $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'
  30686. - # Both c and cxx compiler support -rpath directly
  30687. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  30688. - fi
  30689. - hardcode_libdir_separator_GCJ=:
  30690. - ;;
  30691. +# If no C compiler was specified, use CC.
  30692. +LTCC=${LTCC-"$CC"}
  30693. - solaris*)
  30694. - no_undefined_flag_GCJ=' -z text'
  30695. - if test "$GCC" = yes; then
  30696. - wlarc='${wl}'
  30697. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30698. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  30699. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  30700. - else
  30701. - wlarc=''
  30702. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30703. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  30704. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  30705. - fi
  30706. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30707. - hardcode_shlibpath_var_GCJ=no
  30708. - case $host_os in
  30709. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  30710. - *)
  30711. - # The compiler driver will combine and reorder linker options,
  30712. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  30713. - # but is careful enough not to reorder.
  30714. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  30715. - if test "$GCC" = yes; then
  30716. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  30717. - else
  30718. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  30719. - fi
  30720. - ;;
  30721. - esac
  30722. - link_all_deplibs_GCJ=yes
  30723. - ;;
  30724. +# If no C compiler flags were specified, use CFLAGS.
  30725. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30726. - sunos4*)
  30727. - if test "x$host_vendor" = xsequent; then
  30728. - # Use $CC to link under sequent, because it throws in some extra .o
  30729. - # files that make .init and .fini sections work.
  30730. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  30731. - else
  30732. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  30733. - fi
  30734. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30735. - hardcode_direct_GCJ=yes
  30736. - hardcode_minus_L_GCJ=yes
  30737. - hardcode_shlibpath_var_GCJ=no
  30738. - ;;
  30739. +# Allow CC to be a program name with arguments.
  30740. +compiler=$CC
  30741. - sysv4)
  30742. - case $host_vendor in
  30743. - sni)
  30744. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30745. - hardcode_direct_GCJ=yes # is this really true???
  30746. - ;;
  30747. - siemens)
  30748. - ## LD is ld it makes a PLAMLIB
  30749. - ## CC just makes a GrossModule.
  30750. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  30751. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  30752. - hardcode_direct_GCJ=no
  30753. - ;;
  30754. - motorola)
  30755. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30756. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  30757. - ;;
  30758. - esac
  30759. - runpath_var='LD_RUN_PATH'
  30760. - hardcode_shlibpath_var_GCJ=no
  30761. - ;;
  30762. - sysv4.3*)
  30763. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30764. - hardcode_shlibpath_var_GCJ=no
  30765. - export_dynamic_flag_spec_GCJ='-Bexport'
  30766. - ;;
  30767. + # save warnings/boilerplate of simple test code
  30768. + ac_outfile=conftest.$ac_objext
  30769. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  30770. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30771. +_lt_compiler_boilerplate=`cat conftest.err`
  30772. +$RM conftest*
  30773. - sysv4*MP*)
  30774. - if test -d /usr/nec; then
  30775. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30776. - hardcode_shlibpath_var_GCJ=no
  30777. - runpath_var=LD_RUN_PATH
  30778. - hardcode_runpath_var=yes
  30779. - ld_shlibs_GCJ=yes
  30780. - fi
  30781. - ;;
  30782. + ac_outfile=conftest.$ac_objext
  30783. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  30784. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30785. +_lt_linker_boilerplate=`cat conftest.err`
  30786. +$RM -r conftest*
  30787. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  30788. - no_undefined_flag_GCJ='${wl}-z,text'
  30789. - archive_cmds_need_lc_GCJ=no
  30790. - hardcode_shlibpath_var_GCJ=no
  30791. - runpath_var='LD_RUN_PATH'
  30792. - if test "$GCC" = yes; then
  30793. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30794. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30795. - else
  30796. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30797. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30798. - fi
  30799. - ;;
  30800. + # Allow CC to be a program name with arguments.
  30801. + lt_save_CC=$CC
  30802. + lt_save_LD=$LD
  30803. + lt_save_GCC=$GCC
  30804. + GCC=$GXX
  30805. + lt_save_with_gnu_ld=$with_gnu_ld
  30806. + lt_save_path_LD=$lt_cv_path_LD
  30807. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  30808. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  30809. + else
  30810. + $as_unset lt_cv_prog_gnu_ld
  30811. + fi
  30812. + if test -n "${lt_cv_path_LDCXX+set}"; then
  30813. + lt_cv_path_LD=$lt_cv_path_LDCXX
  30814. + else
  30815. + $as_unset lt_cv_path_LD
  30816. + fi
  30817. + test -z "${LDCXX+set}" || LD=$LDCXX
  30818. + CC=${CXX-"c++"}
  30819. + compiler=$CC
  30820. + compiler_CXX=$CC
  30821. + for cc_temp in $compiler""; do
  30822. + case $cc_temp in
  30823. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30824. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30825. + \-*) ;;
  30826. + *) break;;
  30827. + esac
  30828. +done
  30829. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30830. - sysv5* | sco3.2v5* | sco5v6*)
  30831. - # Note: We can NOT use -z defs as we might desire, because we do not
  30832. - # link with -lc, and that would cause any symbols used from libc to
  30833. - # always be unresolved, which means just about no library would
  30834. - # ever link correctly. If we're not using GNU ld we use -z text
  30835. - # though, which does catch some bad symbols but isn't as heavy-handed
  30836. - # as -z defs.
  30837. - no_undefined_flag_GCJ='${wl}-z,text'
  30838. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  30839. - archive_cmds_need_lc_GCJ=no
  30840. - hardcode_shlibpath_var_GCJ=no
  30841. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  30842. - hardcode_libdir_separator_GCJ=':'
  30843. - link_all_deplibs_GCJ=yes
  30844. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  30845. - runpath_var='LD_RUN_PATH'
  30846. - if test "$GCC" = yes; then
  30847. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30848. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30849. - else
  30850. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30851. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30852. - fi
  30853. - ;;
  30854. + if test -n "$compiler"; then
  30855. + # We don't want -fno-exception when compiling C++ code, so set the
  30856. + # no_builtin_flag separately
  30857. + if test "$GXX" = yes; then
  30858. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  30859. + else
  30860. + lt_prog_compiler_no_builtin_flag_CXX=
  30861. + fi
  30862. - uts4*)
  30863. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30864. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30865. - hardcode_shlibpath_var_GCJ=no
  30866. - ;;
  30867. + if test "$GXX" = yes; then
  30868. + # Set up default GNU C++ configuration
  30869. - *)
  30870. - ld_shlibs_GCJ=no
  30871. - ;;
  30872. - esac
  30873. - fi
  30874. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  30875. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  30876. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  30877. -#
  30878. -# Do we need to explicitly link libc?
  30879. -#
  30880. -case "x$archive_cmds_need_lc_GCJ" in
  30881. -x|xyes)
  30882. - # Assume -lc should be added
  30883. - archive_cmds_need_lc_GCJ=yes
  30884. +# Check whether --with-gnu-ld was given.
  30885. +if test "${with_gnu_ld+set}" = set; then :
  30886. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  30887. +else
  30888. + with_gnu_ld=no
  30889. +fi
  30890. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  30891. - case $archive_cmds_GCJ in
  30892. - *'~'*)
  30893. - # FIXME: we may have to deal with multi-command sequences.
  30894. +ac_prog=ld
  30895. +if test "$GCC" = yes; then
  30896. + # Check if gcc -print-prog-name=ld gives a path.
  30897. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  30898. +$as_echo_n "checking for ld used by $CC... " >&6; }
  30899. + case $host in
  30900. + *-*-mingw*)
  30901. + # gcc leaves a trailing carriage return which upsets mingw
  30902. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  30903. + *)
  30904. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  30905. + esac
  30906. + case $ac_prog in
  30907. + # Accept absolute paths.
  30908. + [\\/]* | ?:[\\/]*)
  30909. + re_direlt='/[^/][^/]*/\.\./'
  30910. + # Canonicalize the pathname of ld
  30911. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  30912. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  30913. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  30914. + done
  30915. + test -z "$LD" && LD="$ac_prog"
  30916. ;;
  30917. - '$CC '*)
  30918. - # Test whether the compiler implicitly links with -lc since on some
  30919. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30920. - # to ld, don't add -lc before -lgcc.
  30921. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  30922. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  30923. - $rm conftest*
  30924. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30925. + "")
  30926. + # If it fails, then pretend we aren't using GCC.
  30927. + ac_prog=ld
  30928. + ;;
  30929. + *)
  30930. + # If it is relative, then search for the first ld in PATH.
  30931. + with_gnu_ld=unknown
  30932. + ;;
  30933. + esac
  30934. +elif test "$with_gnu_ld" = yes; then
  30935. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  30936. +$as_echo_n "checking for GNU ld... " >&6; }
  30937. +else
  30938. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  30939. +$as_echo_n "checking for non-GNU ld... " >&6; }
  30940. +fi
  30941. +if test "${lt_cv_path_LD+set}" = set; then :
  30942. + $as_echo_n "(cached) " >&6
  30943. +else
  30944. + if test -z "$LD"; then
  30945. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30946. + for ac_dir in $PATH; do
  30947. + IFS="$lt_save_ifs"
  30948. + test -z "$ac_dir" && ac_dir=.
  30949. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  30950. + lt_cv_path_LD="$ac_dir/$ac_prog"
  30951. + # Check to see if the program is GNU ld. I'd rather use --version,
  30952. + # but apparently some variants of GNU ld only accept -v.
  30953. + # Break only if it was the GNU/non-GNU ld that we prefer.
  30954. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  30955. + *GNU* | *'with BFD'*)
  30956. + test "$with_gnu_ld" != no && break
  30957. + ;;
  30958. + *)
  30959. + test "$with_gnu_ld" != yes && break
  30960. + ;;
  30961. + esac
  30962. + fi
  30963. + done
  30964. + IFS="$lt_save_ifs"
  30965. +else
  30966. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  30967. +fi
  30968. +fi
  30969. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30970. - (eval $ac_compile) 2>&5
  30971. - ac_status=$?
  30972. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30973. - (exit $ac_status); } 2>conftest.err; then
  30974. - soname=conftest
  30975. - lib=conftest
  30976. - libobjs=conftest.$ac_objext
  30977. - deplibs=
  30978. - wl=$lt_prog_compiler_wl_GCJ
  30979. - pic_flag=$lt_prog_compiler_pic_GCJ
  30980. - compiler_flags=-v
  30981. - linker_flags=-v
  30982. - verstring=
  30983. - output_objdir=.
  30984. - libname=conftest
  30985. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  30986. - allow_undefined_flag_GCJ=
  30987. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  30988. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30989. - ac_status=$?
  30990. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30991. - (exit $ac_status); }
  30992. - then
  30993. - archive_cmds_need_lc_GCJ=no
  30994. - else
  30995. - archive_cmds_need_lc_GCJ=yes
  30996. - fi
  30997. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  30998. - else
  30999. - cat conftest.err 1>&5
  31000. - fi
  31001. - $rm conftest*
  31002. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  31003. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  31004. - ;;
  31005. - esac
  31006. - fi
  31007. +LD="$lt_cv_path_LD"
  31008. +if test -n "$LD"; then
  31009. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  31010. +$as_echo "$LD" >&6; }
  31011. +else
  31012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31013. +$as_echo "no" >&6; }
  31014. +fi
  31015. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  31016. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  31017. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  31018. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  31019. + $as_echo_n "(cached) " >&6
  31020. +else
  31021. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  31022. +case `$LD -v 2>&1 </dev/null` in
  31023. +*GNU* | *'with BFD'*)
  31024. + lt_cv_prog_gnu_ld=yes
  31025. + ;;
  31026. +*)
  31027. + lt_cv_prog_gnu_ld=no
  31028. ;;
  31029. esac
  31030. +fi
  31031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  31032. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  31033. +with_gnu_ld=$lt_cv_prog_gnu_ld
  31034. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  31035. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  31036. -library_names_spec=
  31037. -libname_spec='lib$name'
  31038. -soname_spec=
  31039. -shrext_cmds=".so"
  31040. -postinstall_cmds=
  31041. -postuninstall_cmds=
  31042. -finish_cmds=
  31043. -finish_eval=
  31044. -shlibpath_var=
  31045. -shlibpath_overrides_runpath=unknown
  31046. -version_type=none
  31047. -dynamic_linker="$host_os ld.so"
  31048. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31049. -
  31050. -need_lib_prefix=unknown
  31051. -hardcode_into_libs=no
  31052. -# when you set need_version to no, make sure it does not cause -set_version
  31053. -# flags to be left without arguments
  31054. -need_version=unknown
  31055. -case $host_os in
  31056. -aix3*)
  31057. - version_type=linux
  31058. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31059. - shlibpath_var=LIBPATH
  31060. - # AIX 3 has no versioning support, so we append a major version to the name.
  31061. - soname_spec='${libname}${release}${shared_ext}$major'
  31062. - ;;
  31063. -aix[4-9]*)
  31064. - version_type=linux
  31065. - need_lib_prefix=no
  31066. - need_version=no
  31067. - hardcode_into_libs=yes
  31068. - if test "$host_cpu" = ia64; then
  31069. - # AIX 5 supports IA64
  31070. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31071. - shlibpath_var=LD_LIBRARY_PATH
  31072. - else
  31073. - # With GCC up to 2.95.x, collect2 would create an import file
  31074. - # for dependence libraries. The import file would start with
  31075. - # the line `#! .'. This would cause the generated library to
  31076. - # depend on `.', always an invalid library. This was fixed in
  31077. - # development snapshots of GCC prior to 3.0.
  31078. - case $host_os in
  31079. - aix4 | aix4.[01] | aix4.[01].*)
  31080. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31081. - echo ' yes '
  31082. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  31083. - :
  31084. - else
  31085. - can_build_shared=no
  31086. - fi
  31087. - ;;
  31088. - esac
  31089. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31090. - # soname into executable. Probably we can add versioning support to
  31091. - # collect2, so additional links can be useful in future.
  31092. - if test "$aix_use_runtimelinking" = yes; then
  31093. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31094. - # instead of lib<name>.a to let people know that these are not
  31095. - # typical AIX shared libraries.
  31096. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31097. - else
  31098. - # We preserve .a as extension for shared libraries through AIX4.2
  31099. - # and later when we are not doing run time linking.
  31100. - library_names_spec='${libname}${release}.a $libname.a'
  31101. - soname_spec='${libname}${release}${shared_ext}$major'
  31102. - fi
  31103. - shlibpath_var=LIBPATH
  31104. - fi
  31105. - ;;
  31106. -amigaos*)
  31107. - library_names_spec='$libname.ixlibrary $libname.a'
  31108. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31109. - 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'
  31110. - ;;
  31111. -beos*)
  31112. - library_names_spec='${libname}${shared_ext}'
  31113. - dynamic_linker="$host_os ld.so"
  31114. - shlibpath_var=LIBRARY_PATH
  31115. - ;;
  31116. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  31117. + # archiving commands below assume that GNU ld is being used.
  31118. + if test "$with_gnu_ld" = yes; then
  31119. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31120. + 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'
  31121. +
  31122. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31123. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31124. +
  31125. + # If archive_cmds runs LD, not CC, wlarc should be empty
  31126. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  31127. + # investigate it a little bit more. (MM)
  31128. + wlarc='${wl}'
  31129. +
  31130. + # ancient GNU ld didn't support --whole-archive et. al.
  31131. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  31132. + $GREP 'no-whole-archive' > /dev/null; then
  31133. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31134. + else
  31135. + whole_archive_flag_spec_CXX=
  31136. + fi
  31137. + else
  31138. + with_gnu_ld=no
  31139. + wlarc=
  31140. -bsdi[45]*)
  31141. - version_type=linux
  31142. - need_version=no
  31143. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31144. - soname_spec='${libname}${release}${shared_ext}$major'
  31145. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31146. - shlibpath_var=LD_LIBRARY_PATH
  31147. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31148. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31149. - # the default ld.so.conf also contains /usr/contrib/lib and
  31150. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31151. - # libtool to hard-code these into programs
  31152. - ;;
  31153. + # A generic and very simple default shared library creation
  31154. + # command for GNU C++ for the case where it uses the native
  31155. + # linker, instead of GNU ld. If possible, this setting should
  31156. + # overridden to take advantage of the native linker features on
  31157. + # the platform it is being used on.
  31158. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  31159. + fi
  31160. -cygwin* | mingw* | pw32*)
  31161. - version_type=windows
  31162. - shrext_cmds=".dll"
  31163. - need_version=no
  31164. - need_lib_prefix=no
  31165. + # Commands to make compiler produce verbose output that lists
  31166. + # what "hidden" libraries, object files and flags are used when
  31167. + # linking a shared library.
  31168. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  31169. - case $GCC,$host_os in
  31170. - yes,cygwin* | yes,mingw* | yes,pw32*)
  31171. - library_names_spec='$libname.dll.a'
  31172. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31173. - postinstall_cmds='base_file=`basename \${file}`~
  31174. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  31175. - dldir=$destdir/`dirname \$dlpath`~
  31176. - test -d \$dldir || mkdir -p \$dldir~
  31177. - $install_prog $dir/$dlname \$dldir/$dlname~
  31178. - chmod a+x \$dldir/$dlname'
  31179. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31180. - dlpath=$dir/\$dldll~
  31181. - $rm \$dlpath'
  31182. - shlibpath_overrides_runpath=yes
  31183. + else
  31184. + GXX=no
  31185. + with_gnu_ld=no
  31186. + wlarc=
  31187. + fi
  31188. + # PORTME: fill in a description of your system's C++ link characteristics
  31189. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31190. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  31191. + ld_shlibs_CXX=yes
  31192. case $host_os in
  31193. - cygwin*)
  31194. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31195. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31196. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31197. - ;;
  31198. - mingw*)
  31199. - # MinGW DLLs use traditional 'lib' prefix
  31200. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31201. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31202. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  31203. - # It is most probably a Windows format PATH printed by
  31204. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31205. - # path with ; separators, and with drive letters. We can handle the
  31206. - # drive letters (cygwin fileutils understands them), so leave them,
  31207. - # especially as we might pass files found there to a mingw objdump,
  31208. - # which wouldn't understand a cygwinified path. Ahh.
  31209. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31210. - else
  31211. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31212. - fi
  31213. - ;;
  31214. - pw32*)
  31215. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  31216. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31217. - ;;
  31218. - esac
  31219. - ;;
  31220. + aix3*)
  31221. + # FIXME: insert proper C++ library support
  31222. + ld_shlibs_CXX=no
  31223. + ;;
  31224. + aix[4-9]*)
  31225. + if test "$host_cpu" = ia64; then
  31226. + # On IA64, the linker does run time linking by default, so we don't
  31227. + # have to do anything special.
  31228. + aix_use_runtimelinking=no
  31229. + exp_sym_flag='-Bexport'
  31230. + no_entry_flag=""
  31231. + else
  31232. + aix_use_runtimelinking=no
  31233. - *)
  31234. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  31235. - ;;
  31236. - esac
  31237. - dynamic_linker='Win32 ld.exe'
  31238. - # FIXME: first we should search . and the directory the executable is in
  31239. - shlibpath_var=PATH
  31240. - ;;
  31241. + # Test if we are trying to use run time linking or normal
  31242. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31243. + # need to do runtime linking.
  31244. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  31245. + for ld_flag in $LDFLAGS; do
  31246. + case $ld_flag in
  31247. + *-brtl*)
  31248. + aix_use_runtimelinking=yes
  31249. + break
  31250. + ;;
  31251. + esac
  31252. + done
  31253. + ;;
  31254. + esac
  31255. -darwin* | rhapsody*)
  31256. - dynamic_linker="$host_os dyld"
  31257. - version_type=darwin
  31258. - need_lib_prefix=no
  31259. - need_version=no
  31260. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31261. - soname_spec='${libname}${release}${major}$shared_ext'
  31262. - shlibpath_overrides_runpath=yes
  31263. - shlibpath_var=DYLD_LIBRARY_PATH
  31264. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31265. + exp_sym_flag='-bexport'
  31266. + no_entry_flag='-bnoentry'
  31267. + fi
  31268. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31269. - ;;
  31270. + # When large executables or shared objects are built, AIX ld can
  31271. + # have problems creating the table of contents. If linking a library
  31272. + # or program results in "error TOC overflow" add -mminimal-toc to
  31273. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31274. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31275. +
  31276. + archive_cmds_CXX=''
  31277. + hardcode_direct_CXX=yes
  31278. + hardcode_direct_absolute_CXX=yes
  31279. + hardcode_libdir_separator_CXX=':'
  31280. + link_all_deplibs_CXX=yes
  31281. + file_list_spec_CXX='${wl}-f,'
  31282. +
  31283. + if test "$GXX" = yes; then
  31284. + case $host_os in aix4.[012]|aix4.[012].*)
  31285. + # We only want to do this on AIX 4.2 and lower, the check
  31286. + # below for broken collect2 doesn't work under 4.3+
  31287. + collect2name=`${CC} -print-prog-name=collect2`
  31288. + if test -f "$collect2name" &&
  31289. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  31290. + then
  31291. + # We have reworked collect2
  31292. + :
  31293. + else
  31294. + # We have old collect2
  31295. + hardcode_direct_CXX=unsupported
  31296. + # It fails to find uninstalled libraries when the uninstalled
  31297. + # path is not listed in the libpath. Setting hardcode_minus_L
  31298. + # to unsupported forces relinking
  31299. + hardcode_minus_L_CXX=yes
  31300. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  31301. + hardcode_libdir_separator_CXX=
  31302. + fi
  31303. + esac
  31304. + shared_flag='-shared'
  31305. + if test "$aix_use_runtimelinking" = yes; then
  31306. + shared_flag="$shared_flag "'${wl}-G'
  31307. + fi
  31308. + else
  31309. + # not using gcc
  31310. + if test "$host_cpu" = ia64; then
  31311. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31312. + # chokes on -Wl,-G. The following line is correct:
  31313. + shared_flag='-G'
  31314. + else
  31315. + if test "$aix_use_runtimelinking" = yes; then
  31316. + shared_flag='${wl}-G'
  31317. + else
  31318. + shared_flag='${wl}-bM:SRE'
  31319. + fi
  31320. + fi
  31321. + fi
  31322. -dgux*)
  31323. - version_type=linux
  31324. - need_lib_prefix=no
  31325. - need_version=no
  31326. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31327. - soname_spec='${libname}${release}${shared_ext}$major'
  31328. - shlibpath_var=LD_LIBRARY_PATH
  31329. - ;;
  31330. + export_dynamic_flag_spec_CXX='${wl}-bexpall'
  31331. + # It seems that -bexpall does not export symbols beginning with
  31332. + # underscore (_), so it is better to generate a list of symbols to
  31333. + # export.
  31334. + always_export_symbols_CXX=yes
  31335. + if test "$aix_use_runtimelinking" = yes; then
  31336. + # Warning - without using the other runtime loading flags (-brtl),
  31337. + # -berok will link without error, but may produce a broken library.
  31338. + allow_undefined_flag_CXX='-berok'
  31339. + # Determine the default libpath from the value encoded in an empty
  31340. + # executable.
  31341. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31342. +/* end confdefs.h. */
  31343. -freebsd1*)
  31344. - dynamic_linker=no
  31345. - ;;
  31346. +int
  31347. +main ()
  31348. +{
  31349. -freebsd* | dragonfly*)
  31350. - # DragonFly does not have aout. When/if they implement a new
  31351. - # versioning mechanism, adjust this.
  31352. - if test -x /usr/bin/objformat; then
  31353. - objformat=`/usr/bin/objformat`
  31354. - else
  31355. - case $host_os in
  31356. - freebsd[123]*) objformat=aout ;;
  31357. - *) objformat=elf ;;
  31358. - esac
  31359. - fi
  31360. - version_type=freebsd-$objformat
  31361. - case $version_type in
  31362. - freebsd-elf*)
  31363. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31364. - need_version=no
  31365. - need_lib_prefix=no
  31366. - ;;
  31367. - freebsd-*)
  31368. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31369. - need_version=yes
  31370. - ;;
  31371. - esac
  31372. - shlibpath_var=LD_LIBRARY_PATH
  31373. - case $host_os in
  31374. - freebsd2*)
  31375. - shlibpath_overrides_runpath=yes
  31376. - ;;
  31377. - freebsd3.[01]* | freebsdelf3.[01]*)
  31378. - shlibpath_overrides_runpath=yes
  31379. - hardcode_into_libs=yes
  31380. - ;;
  31381. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  31382. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  31383. - shlibpath_overrides_runpath=no
  31384. - hardcode_into_libs=yes
  31385. - ;;
  31386. - *) # from 4.6 on, and DragonFly
  31387. - shlibpath_overrides_runpath=yes
  31388. - hardcode_into_libs=yes
  31389. - ;;
  31390. - esac
  31391. - ;;
  31392. + ;
  31393. + return 0;
  31394. +}
  31395. +_ACEOF
  31396. +if ac_fn_cxx_try_link "$LINENO"; then :
  31397. -gnu*)
  31398. - version_type=linux
  31399. - need_lib_prefix=no
  31400. - need_version=no
  31401. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31402. - soname_spec='${libname}${release}${shared_ext}$major'
  31403. - shlibpath_var=LD_LIBRARY_PATH
  31404. - hardcode_into_libs=yes
  31405. - ;;
  31406. +lt_aix_libpath_sed='
  31407. + /Import File Strings/,/^$/ {
  31408. + /^0/ {
  31409. + s/^0 *\(.*\)$/\1/
  31410. + p
  31411. + }
  31412. + }'
  31413. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31414. +# Check for a 64-bit object if we didn't find anything.
  31415. +if test -z "$aix_libpath"; then
  31416. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31417. +fi
  31418. +fi
  31419. +rm -f core conftest.err conftest.$ac_objext \
  31420. + conftest$ac_exeext conftest.$ac_ext
  31421. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31422. -hpux9* | hpux10* | hpux11*)
  31423. - # Give a soname corresponding to the major version so that dld.sl refuses to
  31424. - # link against other versions.
  31425. - version_type=sunos
  31426. - need_lib_prefix=no
  31427. - need_version=no
  31428. - case $host_cpu in
  31429. - ia64*)
  31430. - shrext_cmds='.so'
  31431. - hardcode_into_libs=yes
  31432. - dynamic_linker="$host_os dld.so"
  31433. - shlibpath_var=LD_LIBRARY_PATH
  31434. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31435. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31436. - soname_spec='${libname}${release}${shared_ext}$major'
  31437. - if test "X$HPUX_IA64_MODE" = X32; then
  31438. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31439. - else
  31440. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31441. - fi
  31442. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31443. - ;;
  31444. - hppa*64*)
  31445. - shrext_cmds='.sl'
  31446. - hardcode_into_libs=yes
  31447. - dynamic_linker="$host_os dld.sl"
  31448. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31449. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31450. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31451. - soname_spec='${libname}${release}${shared_ext}$major'
  31452. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31453. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31454. - ;;
  31455. - *)
  31456. - shrext_cmds='.sl'
  31457. - dynamic_linker="$host_os dld.sl"
  31458. - shlibpath_var=SHLIB_PATH
  31459. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31460. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31461. - soname_spec='${libname}${release}${shared_ext}$major'
  31462. - ;;
  31463. - esac
  31464. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  31465. - postinstall_cmds='chmod 555 $lib'
  31466. - ;;
  31467. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  31468. -interix[3-9]*)
  31469. - version_type=linux
  31470. - need_lib_prefix=no
  31471. - need_version=no
  31472. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31473. - soname_spec='${libname}${release}${shared_ext}$major'
  31474. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  31475. - shlibpath_var=LD_LIBRARY_PATH
  31476. - shlibpath_overrides_runpath=no
  31477. - hardcode_into_libs=yes
  31478. - ;;
  31479. + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  31480. + else
  31481. + if test "$host_cpu" = ia64; then
  31482. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  31483. + allow_undefined_flag_CXX="-z nodefs"
  31484. + 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"
  31485. + else
  31486. + # Determine the default libpath from the value encoded in an
  31487. + # empty executable.
  31488. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31489. +/* end confdefs.h. */
  31490. -irix5* | irix6* | nonstopux*)
  31491. - case $host_os in
  31492. - nonstopux*) version_type=nonstopux ;;
  31493. - *)
  31494. - if test "$lt_cv_prog_gnu_ld" = yes; then
  31495. - version_type=linux
  31496. +int
  31497. +main ()
  31498. +{
  31499. +
  31500. + ;
  31501. + return 0;
  31502. +}
  31503. +_ACEOF
  31504. +if ac_fn_cxx_try_link "$LINENO"; then :
  31505. +
  31506. +lt_aix_libpath_sed='
  31507. + /Import File Strings/,/^$/ {
  31508. + /^0/ {
  31509. + s/^0 *\(.*\)$/\1/
  31510. + p
  31511. + }
  31512. + }'
  31513. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31514. +# Check for a 64-bit object if we didn't find anything.
  31515. +if test -z "$aix_libpath"; then
  31516. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31517. +fi
  31518. +fi
  31519. +rm -f core conftest.err conftest.$ac_objext \
  31520. + conftest$ac_exeext conftest.$ac_ext
  31521. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31522. +
  31523. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  31524. + # Warning - without using the other run time loading flags,
  31525. + # -berok will link without error, but may produce a broken library.
  31526. + no_undefined_flag_CXX=' ${wl}-bernotok'
  31527. + allow_undefined_flag_CXX=' ${wl}-berok'
  31528. + # Exported symbols can be pulled into shared objects from archives
  31529. + whole_archive_flag_spec_CXX='$convenience'
  31530. + archive_cmds_need_lc_CXX=yes
  31531. + # This is similar to how AIX traditionally builds its shared
  31532. + # libraries.
  31533. + 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'
  31534. + fi
  31535. + fi
  31536. + ;;
  31537. +
  31538. + beos*)
  31539. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  31540. + allow_undefined_flag_CXX=unsupported
  31541. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31542. + # support --undefined. This deserves some investigation. FIXME
  31543. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31544. else
  31545. - version_type=irix
  31546. - fi ;;
  31547. - esac
  31548. - need_lib_prefix=no
  31549. - need_version=no
  31550. - soname_spec='${libname}${release}${shared_ext}$major'
  31551. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31552. - case $host_os in
  31553. - irix5* | nonstopux*)
  31554. - libsuff= shlibsuff=
  31555. - ;;
  31556. - *)
  31557. - case $LD in # libtool.m4 will add one of these switches to LD
  31558. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31559. - libsuff= shlibsuff= libmagic=32-bit;;
  31560. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31561. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  31562. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31563. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31564. - *) libsuff= shlibsuff= libmagic=never-match;;
  31565. - esac
  31566. - ;;
  31567. - esac
  31568. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31569. - shlibpath_overrides_runpath=no
  31570. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31571. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31572. - hardcode_into_libs=yes
  31573. - ;;
  31574. + ld_shlibs_CXX=no
  31575. + fi
  31576. + ;;
  31577. -# No shared lib support for Linux oldld, aout, or coff.
  31578. -linux*oldld* | linux*aout* | linux*coff*)
  31579. - dynamic_linker=no
  31580. - ;;
  31581. + chorus*)
  31582. + case $cc_basename in
  31583. + *)
  31584. + # FIXME: insert proper C++ library support
  31585. + ld_shlibs_CXX=no
  31586. + ;;
  31587. + esac
  31588. + ;;
  31589. -# This must be Linux ELF.
  31590. -linux* | k*bsd*-gnu)
  31591. - version_type=linux
  31592. - need_lib_prefix=no
  31593. - need_version=no
  31594. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31595. - soname_spec='${libname}${release}${shared_ext}$major'
  31596. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31597. - shlibpath_var=LD_LIBRARY_PATH
  31598. - shlibpath_overrides_runpath=no
  31599. - # This implies no fast_install, which is unacceptable.
  31600. - # Some rework will be needed to allow for fast_install
  31601. - # before this can be enabled.
  31602. - hardcode_into_libs=yes
  31603. + cygwin* | mingw* | pw32* | cegcc*)
  31604. + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  31605. + # as there is no search path for DLLs.
  31606. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  31607. + allow_undefined_flag_CXX=unsupported
  31608. + always_export_symbols_CXX=no
  31609. + enable_shared_with_static_runtimes_CXX=yes
  31610. +
  31611. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  31612. + 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'
  31613. + # If the export-symbols file already is a .def file (1st line
  31614. + # is EXPORTS), use it as is; otherwise, prepend...
  31615. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31616. + cp $export_symbols $output_objdir/$soname.def;
  31617. + else
  31618. + echo EXPORTS > $output_objdir/$soname.def;
  31619. + cat $export_symbols >> $output_objdir/$soname.def;
  31620. + fi~
  31621. + $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'
  31622. + else
  31623. + ld_shlibs_CXX=no
  31624. + fi
  31625. + ;;
  31626. + darwin* | rhapsody*)
  31627. - # Append ld.so.conf contents to the search path
  31628. - if test -f /etc/ld.so.conf; then
  31629. - 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' ' '`
  31630. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  31631. - fi
  31632. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  31633. - # powerpc, because MkLinux only supported shared libraries with the
  31634. - # GNU dynamic linker. Since this was broken with cross compilers,
  31635. - # most powerpc-linux boxes support dynamic linking these days and
  31636. - # people can always --disable-shared, the test was removed, and we
  31637. - # assume the GNU/Linux dynamic linker is in use.
  31638. - dynamic_linker='GNU/Linux ld.so'
  31639. - ;;
  31640. + archive_cmds_need_lc_CXX=no
  31641. + hardcode_direct_CXX=no
  31642. + hardcode_automatic_CXX=yes
  31643. + hardcode_shlibpath_var_CXX=unsupported
  31644. + whole_archive_flag_spec_CXX=''
  31645. + link_all_deplibs_CXX=yes
  31646. + allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  31647. + case $cc_basename in
  31648. + ifort*) _lt_dar_can_shared=yes ;;
  31649. + *) _lt_dar_can_shared=$GCC ;;
  31650. + esac
  31651. + if test "$_lt_dar_can_shared" = "yes"; then
  31652. + output_verbose_link_cmd=echo
  31653. + 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}"
  31654. + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  31655. + 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}"
  31656. + 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}"
  31657. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  31658. + 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}"
  31659. + 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}"
  31660. + fi
  31661. -netbsd*)
  31662. - version_type=sunos
  31663. - need_lib_prefix=no
  31664. - need_version=no
  31665. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31666. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31667. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31668. - dynamic_linker='NetBSD (a.out) ld.so'
  31669. else
  31670. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31671. - soname_spec='${libname}${release}${shared_ext}$major'
  31672. - dynamic_linker='NetBSD ld.elf_so'
  31673. + ld_shlibs_CXX=no
  31674. fi
  31675. - shlibpath_var=LD_LIBRARY_PATH
  31676. - shlibpath_overrides_runpath=yes
  31677. - hardcode_into_libs=yes
  31678. - ;;
  31679. -newsos6)
  31680. - version_type=linux
  31681. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31682. - shlibpath_var=LD_LIBRARY_PATH
  31683. - shlibpath_overrides_runpath=yes
  31684. - ;;
  31685. + ;;
  31686. -nto-qnx*)
  31687. - version_type=linux
  31688. - need_lib_prefix=no
  31689. - need_version=no
  31690. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31691. - soname_spec='${libname}${release}${shared_ext}$major'
  31692. - shlibpath_var=LD_LIBRARY_PATH
  31693. - shlibpath_overrides_runpath=yes
  31694. - ;;
  31695. + dgux*)
  31696. + case $cc_basename in
  31697. + ec++*)
  31698. + # FIXME: insert proper C++ library support
  31699. + ld_shlibs_CXX=no
  31700. + ;;
  31701. + ghcx*)
  31702. + # Green Hills C++ Compiler
  31703. + # FIXME: insert proper C++ library support
  31704. + ld_shlibs_CXX=no
  31705. + ;;
  31706. + *)
  31707. + # FIXME: insert proper C++ library support
  31708. + ld_shlibs_CXX=no
  31709. + ;;
  31710. + esac
  31711. + ;;
  31712. -openbsd*)
  31713. - version_type=sunos
  31714. - sys_lib_dlsearch_path_spec="/usr/lib"
  31715. - need_lib_prefix=no
  31716. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31717. - case $host_os in
  31718. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31719. - *) need_version=no ;;
  31720. - esac
  31721. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31722. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31723. - shlibpath_var=LD_LIBRARY_PATH
  31724. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31725. - case $host_os in
  31726. - openbsd2.[89] | openbsd2.[89].*)
  31727. - shlibpath_overrides_runpath=no
  31728. - ;;
  31729. - *)
  31730. - shlibpath_overrides_runpath=yes
  31731. - ;;
  31732. - esac
  31733. - else
  31734. - shlibpath_overrides_runpath=yes
  31735. - fi
  31736. - ;;
  31737. + freebsd[12]*)
  31738. + # C++ shared libraries reported to be fairly broken before
  31739. + # switch to ELF
  31740. + ld_shlibs_CXX=no
  31741. + ;;
  31742. -os2*)
  31743. - libname_spec='$name'
  31744. - shrext_cmds=".dll"
  31745. - need_lib_prefix=no
  31746. - library_names_spec='$libname${shared_ext} $libname.a'
  31747. - dynamic_linker='OS/2 ld.exe'
  31748. - shlibpath_var=LIBPATH
  31749. - ;;
  31750. + freebsd-elf*)
  31751. + archive_cmds_need_lc_CXX=no
  31752. + ;;
  31753. -osf3* | osf4* | osf5*)
  31754. - version_type=osf
  31755. - need_lib_prefix=no
  31756. - need_version=no
  31757. - soname_spec='${libname}${release}${shared_ext}$major'
  31758. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31759. - shlibpath_var=LD_LIBRARY_PATH
  31760. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31761. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31762. - ;;
  31763. + freebsd* | dragonfly*)
  31764. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  31765. + # conventions
  31766. + ld_shlibs_CXX=yes
  31767. + ;;
  31768. -rdos*)
  31769. - dynamic_linker=no
  31770. - ;;
  31771. + gnu*)
  31772. + ;;
  31773. -solaris*)
  31774. - version_type=linux
  31775. - need_lib_prefix=no
  31776. - need_version=no
  31777. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31778. - soname_spec='${libname}${release}${shared_ext}$major'
  31779. - shlibpath_var=LD_LIBRARY_PATH
  31780. - shlibpath_overrides_runpath=yes
  31781. - hardcode_into_libs=yes
  31782. - # ldd complains unless libraries are executable
  31783. - postinstall_cmds='chmod +x $lib'
  31784. - ;;
  31785. + hpux9*)
  31786. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  31787. + hardcode_libdir_separator_CXX=:
  31788. + export_dynamic_flag_spec_CXX='${wl}-E'
  31789. + hardcode_direct_CXX=yes
  31790. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  31791. + # but as the default
  31792. + # location of the library.
  31793. +
  31794. + case $cc_basename in
  31795. + CC*)
  31796. + # FIXME: insert proper C++ library support
  31797. + ld_shlibs_CXX=no
  31798. + ;;
  31799. + aCC*)
  31800. + 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'
  31801. + # Commands to make compiler produce verbose output that lists
  31802. + # what "hidden" libraries, object files and flags are used when
  31803. + # linking a shared library.
  31804. + #
  31805. + # There doesn't appear to be a way to prevent this compiler from
  31806. + # explicitly linking system object files so we need to strip them
  31807. + # from the output so that they don't get included in the library
  31808. + # dependencies.
  31809. + 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'
  31810. + ;;
  31811. + *)
  31812. + if test "$GXX" = yes; then
  31813. + 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'
  31814. + else
  31815. + # FIXME: insert proper C++ library support
  31816. + ld_shlibs_CXX=no
  31817. + fi
  31818. + ;;
  31819. + esac
  31820. + ;;
  31821. -sunos4*)
  31822. - version_type=sunos
  31823. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31824. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31825. - shlibpath_var=LD_LIBRARY_PATH
  31826. - shlibpath_overrides_runpath=yes
  31827. - if test "$with_gnu_ld" = yes; then
  31828. - need_lib_prefix=no
  31829. - fi
  31830. - need_version=yes
  31831. - ;;
  31832. + hpux10*|hpux11*)
  31833. + if test $with_gnu_ld = no; then
  31834. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  31835. + hardcode_libdir_separator_CXX=:
  31836. -sysv4 | sysv4.3*)
  31837. - version_type=linux
  31838. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31839. - soname_spec='${libname}${release}${shared_ext}$major'
  31840. - shlibpath_var=LD_LIBRARY_PATH
  31841. - case $host_vendor in
  31842. - sni)
  31843. - shlibpath_overrides_runpath=no
  31844. - need_lib_prefix=no
  31845. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  31846. - runpath_var=LD_RUN_PATH
  31847. - ;;
  31848. - siemens)
  31849. - need_lib_prefix=no
  31850. - ;;
  31851. - motorola)
  31852. - need_lib_prefix=no
  31853. - need_version=no
  31854. - shlibpath_overrides_runpath=no
  31855. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  31856. - ;;
  31857. - esac
  31858. - ;;
  31859. + case $host_cpu in
  31860. + hppa*64*|ia64*)
  31861. + ;;
  31862. + *)
  31863. + export_dynamic_flag_spec_CXX='${wl}-E'
  31864. + ;;
  31865. + esac
  31866. + fi
  31867. + case $host_cpu in
  31868. + hppa*64*|ia64*)
  31869. + hardcode_direct_CXX=no
  31870. + hardcode_shlibpath_var_CXX=no
  31871. + ;;
  31872. + *)
  31873. + hardcode_direct_CXX=yes
  31874. + hardcode_direct_absolute_CXX=yes
  31875. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  31876. + # but as the default
  31877. + # location of the library.
  31878. + ;;
  31879. + esac
  31880. +
  31881. + case $cc_basename in
  31882. + CC*)
  31883. + # FIXME: insert proper C++ library support
  31884. + ld_shlibs_CXX=no
  31885. + ;;
  31886. + aCC*)
  31887. + case $host_cpu in
  31888. + hppa*64*)
  31889. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31890. + ;;
  31891. + ia64*)
  31892. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31893. + ;;
  31894. + *)
  31895. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31896. + ;;
  31897. + esac
  31898. + # Commands to make compiler produce verbose output that lists
  31899. + # what "hidden" libraries, object files and flags are used when
  31900. + # linking a shared library.
  31901. + #
  31902. + # There doesn't appear to be a way to prevent this compiler from
  31903. + # explicitly linking system object files so we need to strip them
  31904. + # from the output so that they don't get included in the library
  31905. + # dependencies.
  31906. + 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'
  31907. + ;;
  31908. + *)
  31909. + if test "$GXX" = yes; then
  31910. + if test $with_gnu_ld = no; then
  31911. + case $host_cpu in
  31912. + hppa*64*)
  31913. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31914. + ;;
  31915. + ia64*)
  31916. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31917. + ;;
  31918. + *)
  31919. + 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'
  31920. + ;;
  31921. + esac
  31922. + fi
  31923. + else
  31924. + # FIXME: insert proper C++ library support
  31925. + ld_shlibs_CXX=no
  31926. + fi
  31927. + ;;
  31928. + esac
  31929. + ;;
  31930. -sysv4*MP*)
  31931. - if test -d /usr/nec ;then
  31932. - version_type=linux
  31933. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  31934. - soname_spec='$libname${shared_ext}.$major'
  31935. - shlibpath_var=LD_LIBRARY_PATH
  31936. - fi
  31937. - ;;
  31938. + interix[3-9]*)
  31939. + hardcode_direct_CXX=no
  31940. + hardcode_shlibpath_var_CXX=no
  31941. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31942. + export_dynamic_flag_spec_CXX='${wl}-E'
  31943. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31944. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  31945. + # default) and relocated if they conflict, which is a slow very memory
  31946. + # consuming and fragmenting process. To avoid this, we pick a random,
  31947. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31948. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31949. + 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'
  31950. + 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'
  31951. + ;;
  31952. + irix5* | irix6*)
  31953. + case $cc_basename in
  31954. + CC*)
  31955. + # SGI C++
  31956. + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  31957. +
  31958. + # Archives containing C++ object files must be created using
  31959. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  31960. + # necessary to make sure instantiated templates are included
  31961. + # in the archive.
  31962. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  31963. + ;;
  31964. + *)
  31965. + if test "$GXX" = yes; then
  31966. + if test "$with_gnu_ld" = no; then
  31967. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31968. + else
  31969. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  31970. + fi
  31971. + fi
  31972. + link_all_deplibs_CXX=yes
  31973. + ;;
  31974. + esac
  31975. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31976. + hardcode_libdir_separator_CXX=:
  31977. + inherit_rpath_CXX=yes
  31978. + ;;
  31979. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  31980. - version_type=freebsd-elf
  31981. - need_lib_prefix=no
  31982. - need_version=no
  31983. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31984. - soname_spec='${libname}${release}${shared_ext}$major'
  31985. - shlibpath_var=LD_LIBRARY_PATH
  31986. - hardcode_into_libs=yes
  31987. - if test "$with_gnu_ld" = yes; then
  31988. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  31989. - shlibpath_overrides_runpath=no
  31990. - else
  31991. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  31992. - shlibpath_overrides_runpath=yes
  31993. - case $host_os in
  31994. - sco3.2v5*)
  31995. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  31996. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  31997. + case $cc_basename in
  31998. + KCC*)
  31999. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  32000. +
  32001. + # KCC will only create a shared library if the output file
  32002. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32003. + # to its proper name (with version) after linking.
  32004. + 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'
  32005. + 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'
  32006. + # Commands to make compiler produce verbose output that lists
  32007. + # what "hidden" libraries, object files and flags are used when
  32008. + # linking a shared library.
  32009. + #
  32010. + # There doesn't appear to be a way to prevent this compiler from
  32011. + # explicitly linking system object files so we need to strip them
  32012. + # from the output so that they don't get included in the library
  32013. + # dependencies.
  32014. + 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'
  32015. +
  32016. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32017. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32018. +
  32019. + # Archives containing C++ object files must be created using
  32020. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  32021. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  32022. + ;;
  32023. + icpc* | ecpc* )
  32024. + # Intel C++
  32025. + with_gnu_ld=yes
  32026. + # version 8.0 and above of icpc choke on multiply defined symbols
  32027. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  32028. + # earlier do not add the objects themselves.
  32029. + case `$CC -V 2>&1` in
  32030. + *"Version 7."*)
  32031. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32032. + 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'
  32033. + ;;
  32034. + *) # Version 8.0 or newer
  32035. + tmp_idyn=
  32036. + case $host_cpu in
  32037. + ia64*) tmp_idyn=' -i_dynamic';;
  32038. + esac
  32039. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32040. + 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'
  32041. + ;;
  32042. + esac
  32043. + archive_cmds_need_lc_CXX=no
  32044. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32045. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32046. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  32047. + ;;
  32048. + pgCC* | pgcpp*)
  32049. + # Portland Group C++ compiler
  32050. + case `$CC -V` in
  32051. + *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  32052. + prelink_cmds_CXX='tpldir=Template.dir~
  32053. + rm -rf $tpldir~
  32054. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  32055. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  32056. + old_archive_cmds_CXX='tpldir=Template.dir~
  32057. + rm -rf $tpldir~
  32058. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  32059. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  32060. + $RANLIB $oldlib'
  32061. + archive_cmds_CXX='tpldir=Template.dir~
  32062. + rm -rf $tpldir~
  32063. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  32064. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  32065. + archive_expsym_cmds_CXX='tpldir=Template.dir~
  32066. + rm -rf $tpldir~
  32067. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  32068. + $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'
  32069. + ;;
  32070. + *) # Version 6 will use weak symbols
  32071. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  32072. + 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'
  32073. + ;;
  32074. + esac
  32075. +
  32076. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  32077. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32078. + 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'
  32079. + ;;
  32080. + cxx*)
  32081. + # Compaq C++
  32082. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32083. + 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'
  32084. +
  32085. + runpath_var=LD_RUN_PATH
  32086. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  32087. + hardcode_libdir_separator_CXX=:
  32088. +
  32089. + # Commands to make compiler produce verbose output that lists
  32090. + # what "hidden" libraries, object files and flags are used when
  32091. + # linking a shared library.
  32092. + #
  32093. + # There doesn't appear to be a way to prevent this compiler from
  32094. + # explicitly linking system object files so we need to strip them
  32095. + # from the output so that they don't get included in the library
  32096. + # dependencies.
  32097. + 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'
  32098. + ;;
  32099. + xl*)
  32100. + # IBM XL 8.0 on PPC, with GNU ld
  32101. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32102. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32103. + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32104. + if test "x$supports_anon_versioning" = xyes; then
  32105. + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  32106. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  32107. + echo "local: *; };" >> $output_objdir/$libname.ver~
  32108. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  32109. + fi
  32110. + ;;
  32111. + *)
  32112. + case `$CC -V 2>&1 | sed 5q` in
  32113. + *Sun\ C*)
  32114. + # Sun C++ 5.9
  32115. + no_undefined_flag_CXX=' -zdefs'
  32116. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32117. + 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'
  32118. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  32119. + 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'
  32120. + compiler_needs_object_CXX=yes
  32121. +
  32122. + # Not sure whether something based on
  32123. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  32124. + # would be better.
  32125. + output_verbose_link_cmd='echo'
  32126. +
  32127. + # Archives containing C++ object files must be created using
  32128. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  32129. + # necessary to make sure instantiated templates are included
  32130. + # in the archive.
  32131. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  32132. + ;;
  32133. + esac
  32134. + ;;
  32135. + esac
  32136. ;;
  32137. - esac
  32138. - fi
  32139. - sys_lib_dlsearch_path_spec='/usr/lib'
  32140. - ;;
  32141. -uts4*)
  32142. - version_type=linux
  32143. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32144. - soname_spec='${libname}${release}${shared_ext}$major'
  32145. - shlibpath_var=LD_LIBRARY_PATH
  32146. - ;;
  32147. + lynxos*)
  32148. + # FIXME: insert proper C++ library support
  32149. + ld_shlibs_CXX=no
  32150. + ;;
  32151. -*)
  32152. - dynamic_linker=no
  32153. - ;;
  32154. -esac
  32155. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  32156. -echo "${ECHO_T}$dynamic_linker" >&6; }
  32157. -test "$dynamic_linker" = no && can_build_shared=no
  32158. + m88k*)
  32159. + # FIXME: insert proper C++ library support
  32160. + ld_shlibs_CXX=no
  32161. + ;;
  32162. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  32163. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32164. -else
  32165. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  32166. -fi
  32167. + mvs*)
  32168. + case $cc_basename in
  32169. + cxx*)
  32170. + # FIXME: insert proper C++ library support
  32171. + ld_shlibs_CXX=no
  32172. + ;;
  32173. + *)
  32174. + # FIXME: insert proper C++ library support
  32175. + ld_shlibs_CXX=no
  32176. + ;;
  32177. + esac
  32178. + ;;
  32179. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  32180. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  32181. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32182. -else
  32183. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  32184. -fi
  32185. + netbsd*)
  32186. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  32187. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  32188. + wlarc=
  32189. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  32190. + hardcode_direct_CXX=yes
  32191. + hardcode_shlibpath_var_CXX=no
  32192. + fi
  32193. + # Workaround some broken pre-1.5 toolchains
  32194. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  32195. + ;;
  32196. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  32197. + *nto* | *qnx*)
  32198. + ld_shlibs_CXX=yes
  32199. + ;;
  32200. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  32201. -if test "$GCC" = yes; then
  32202. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  32203. -fi
  32204. + openbsd2*)
  32205. + # C++ shared libraries are fairly broken
  32206. + ld_shlibs_CXX=no
  32207. + ;;
  32208. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  32209. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  32210. -hardcode_action_GCJ=
  32211. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  32212. - test -n "$runpath_var_GCJ" || \
  32213. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  32214. + openbsd*)
  32215. + if test -f /usr/libexec/ld.so; then
  32216. + hardcode_direct_CXX=yes
  32217. + hardcode_shlibpath_var_CXX=no
  32218. + hardcode_direct_absolute_CXX=yes
  32219. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  32220. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32221. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32222. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  32223. + export_dynamic_flag_spec_CXX='${wl}-E'
  32224. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  32225. + fi
  32226. + output_verbose_link_cmd=echo
  32227. + else
  32228. + ld_shlibs_CXX=no
  32229. + fi
  32230. + ;;
  32231. - # We can hardcode non-existant directories.
  32232. - if test "$hardcode_direct_GCJ" != no &&
  32233. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32234. - # have to relink, otherwise we might link with an installed library
  32235. - # when we should be linking with a yet-to-be-installed one
  32236. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  32237. - test "$hardcode_minus_L_GCJ" != no; then
  32238. - # Linking always hardcodes the temporary library directory.
  32239. - hardcode_action_GCJ=relink
  32240. - else
  32241. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32242. - hardcode_action_GCJ=immediate
  32243. - fi
  32244. -else
  32245. - # We cannot hardcode anything, or else we can only hardcode existing
  32246. - # directories.
  32247. - hardcode_action_GCJ=unsupported
  32248. -fi
  32249. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  32250. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  32251. + osf3* | osf4* | osf5*)
  32252. + case $cc_basename in
  32253. + KCC*)
  32254. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  32255. +
  32256. + # KCC will only create a shared library if the output file
  32257. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32258. + # to its proper name (with version) after linking.
  32259. + 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'
  32260. +
  32261. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32262. + hardcode_libdir_separator_CXX=:
  32263. +
  32264. + # Archives containing C++ object files must be created using
  32265. + # the KAI C++ compiler.
  32266. + case $host in
  32267. + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  32268. + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  32269. + esac
  32270. + ;;
  32271. + RCC*)
  32272. + # Rational C++ 2.4.1
  32273. + # FIXME: insert proper C++ library support
  32274. + ld_shlibs_CXX=no
  32275. + ;;
  32276. + cxx*)
  32277. + case $host in
  32278. + osf3*)
  32279. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32280. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  32281. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32282. + ;;
  32283. + *)
  32284. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  32285. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  32286. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  32287. + echo "-hidden">> $lib.exp~
  32288. + $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~
  32289. + $RM $lib.exp'
  32290. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  32291. + ;;
  32292. + esac
  32293. -if test "$hardcode_action_GCJ" = relink; then
  32294. - # Fast installation is not supported
  32295. - enable_fast_install=no
  32296. -elif test "$shlibpath_overrides_runpath" = yes ||
  32297. - test "$enable_shared" = no; then
  32298. - # Fast installation is not necessary
  32299. - enable_fast_install=needless
  32300. -fi
  32301. + hardcode_libdir_separator_CXX=:
  32302. + # Commands to make compiler produce verbose output that lists
  32303. + # what "hidden" libraries, object files and flags are used when
  32304. + # linking a shared library.
  32305. + #
  32306. + # There doesn't appear to be a way to prevent this compiler from
  32307. + # explicitly linking system object files so we need to strip them
  32308. + # from the output so that they don't get included in the library
  32309. + # dependencies.
  32310. + 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'
  32311. + ;;
  32312. + *)
  32313. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32314. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32315. + case $host in
  32316. + osf3*)
  32317. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  32318. + ;;
  32319. + *)
  32320. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  32321. + ;;
  32322. + esac
  32323. +
  32324. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32325. + hardcode_libdir_separator_CXX=:
  32326. +
  32327. + # Commands to make compiler produce verbose output that lists
  32328. + # what "hidden" libraries, object files and flags are used when
  32329. + # linking a shared library.
  32330. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  32331. +
  32332. + else
  32333. + # FIXME: insert proper C++ library support
  32334. + ld_shlibs_CXX=no
  32335. + fi
  32336. + ;;
  32337. + esac
  32338. + ;;
  32339. -# The else clause should only fire when bootstrapping the
  32340. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32341. -# with your package, and you will get complaints that there are
  32342. -# no rules to generate ltmain.sh.
  32343. -if test -f "$ltmain"; then
  32344. - # See if we are running on zsh, and set the options which allow our commands through
  32345. - # without removal of \ escapes.
  32346. - if test -n "${ZSH_VERSION+set}" ; then
  32347. - setopt NO_GLOB_SUBST
  32348. - fi
  32349. - # Now quote all the things that may contain metacharacters while being
  32350. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32351. - # variables and quote the copies for generation of the libtool script.
  32352. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32353. - SED SHELL STRIP \
  32354. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32355. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32356. - deplibs_check_method reload_flag reload_cmds need_locks \
  32357. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32358. - lt_cv_sys_global_symbol_to_c_name_address \
  32359. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32360. - old_postinstall_cmds old_postuninstall_cmds \
  32361. - compiler_GCJ \
  32362. - CC_GCJ \
  32363. - LD_GCJ \
  32364. - lt_prog_compiler_wl_GCJ \
  32365. - lt_prog_compiler_pic_GCJ \
  32366. - lt_prog_compiler_static_GCJ \
  32367. - lt_prog_compiler_no_builtin_flag_GCJ \
  32368. - export_dynamic_flag_spec_GCJ \
  32369. - thread_safe_flag_spec_GCJ \
  32370. - whole_archive_flag_spec_GCJ \
  32371. - enable_shared_with_static_runtimes_GCJ \
  32372. - old_archive_cmds_GCJ \
  32373. - old_archive_from_new_cmds_GCJ \
  32374. - predep_objects_GCJ \
  32375. - postdep_objects_GCJ \
  32376. - predeps_GCJ \
  32377. - postdeps_GCJ \
  32378. - compiler_lib_search_path_GCJ \
  32379. - compiler_lib_search_dirs_GCJ \
  32380. - archive_cmds_GCJ \
  32381. - archive_expsym_cmds_GCJ \
  32382. - postinstall_cmds_GCJ \
  32383. - postuninstall_cmds_GCJ \
  32384. - old_archive_from_expsyms_cmds_GCJ \
  32385. - allow_undefined_flag_GCJ \
  32386. - no_undefined_flag_GCJ \
  32387. - export_symbols_cmds_GCJ \
  32388. - hardcode_libdir_flag_spec_GCJ \
  32389. - hardcode_libdir_flag_spec_ld_GCJ \
  32390. - hardcode_libdir_separator_GCJ \
  32391. - hardcode_automatic_GCJ \
  32392. - module_cmds_GCJ \
  32393. - module_expsym_cmds_GCJ \
  32394. - lt_cv_prog_compiler_c_o_GCJ \
  32395. - fix_srcfile_path_GCJ \
  32396. - exclude_expsyms_GCJ \
  32397. - include_expsyms_GCJ; do
  32398. -
  32399. - case $var in
  32400. - old_archive_cmds_GCJ | \
  32401. - old_archive_from_new_cmds_GCJ | \
  32402. - archive_cmds_GCJ | \
  32403. - archive_expsym_cmds_GCJ | \
  32404. - module_cmds_GCJ | \
  32405. - module_expsym_cmds_GCJ | \
  32406. - old_archive_from_expsyms_cmds_GCJ | \
  32407. - export_symbols_cmds_GCJ | \
  32408. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32409. - postinstall_cmds | postuninstall_cmds | \
  32410. - old_postinstall_cmds | old_postuninstall_cmds | \
  32411. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32412. - # Double-quote double-evaled strings.
  32413. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32414. - ;;
  32415. - *)
  32416. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32417. - ;;
  32418. - esac
  32419. - done
  32420. + psos*)
  32421. + # FIXME: insert proper C++ library support
  32422. + ld_shlibs_CXX=no
  32423. + ;;
  32424. - case $lt_echo in
  32425. - *'\$0 --fallback-echo"')
  32426. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32427. - ;;
  32428. - esac
  32429. + sunos4*)
  32430. + case $cc_basename in
  32431. + CC*)
  32432. + # Sun C++ 4.x
  32433. + # FIXME: insert proper C++ library support
  32434. + ld_shlibs_CXX=no
  32435. + ;;
  32436. + lcc*)
  32437. + # Lucid
  32438. + # FIXME: insert proper C++ library support
  32439. + ld_shlibs_CXX=no
  32440. + ;;
  32441. + *)
  32442. + # FIXME: insert proper C++ library support
  32443. + ld_shlibs_CXX=no
  32444. + ;;
  32445. + esac
  32446. + ;;
  32447. -cfgfile="$ofile"
  32448. + solaris*)
  32449. + case $cc_basename in
  32450. + CC*)
  32451. + # Sun C++ 4.2, 5.x and Centerline C++
  32452. + archive_cmds_need_lc_CXX=yes
  32453. + no_undefined_flag_CXX=' -zdefs'
  32454. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32455. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  32456. + $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'
  32457. +
  32458. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  32459. + hardcode_shlibpath_var_CXX=no
  32460. + case $host_os in
  32461. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  32462. + *)
  32463. + # The compiler driver will combine and reorder linker options,
  32464. + # but understands `-z linker_flag'.
  32465. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  32466. + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  32467. + ;;
  32468. + esac
  32469. + link_all_deplibs_CXX=yes
  32470. - cat <<__EOF__ >> "$cfgfile"
  32471. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32472. + output_verbose_link_cmd='echo'
  32473. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32474. + # Archives containing C++ object files must be created using
  32475. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  32476. + # necessary to make sure instantiated templates are included
  32477. + # in the archive.
  32478. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  32479. + ;;
  32480. + gcx*)
  32481. + # Green Hills C++ Compiler
  32482. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32483. -# Shell to use when invoking shell scripts.
  32484. -SHELL=$lt_SHELL
  32485. + # The C++ compiler must be used to create the archive.
  32486. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  32487. + ;;
  32488. + *)
  32489. + # GNU C++ compiler with Solaris linker
  32490. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32491. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  32492. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  32493. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32494. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  32495. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  32496. +
  32497. + # Commands to make compiler produce verbose output that lists
  32498. + # what "hidden" libraries, object files and flags are used when
  32499. + # linking a shared library.
  32500. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  32501. + else
  32502. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  32503. + # platform.
  32504. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32505. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  32506. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  32507. +
  32508. + # Commands to make compiler produce verbose output that lists
  32509. + # what "hidden" libraries, object files and flags are used when
  32510. + # linking a shared library.
  32511. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  32512. + fi
  32513. +
  32514. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  32515. + case $host_os in
  32516. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  32517. + *)
  32518. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32519. + ;;
  32520. + esac
  32521. + fi
  32522. + ;;
  32523. + esac
  32524. + ;;
  32525. -# Whether or not to build shared libraries.
  32526. -build_libtool_libs=$enable_shared
  32527. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  32528. + no_undefined_flag_CXX='${wl}-z,text'
  32529. + archive_cmds_need_lc_CXX=no
  32530. + hardcode_shlibpath_var_CXX=no
  32531. + runpath_var='LD_RUN_PATH'
  32532. -# Whether or not to build static libraries.
  32533. -build_old_libs=$enable_static
  32534. + case $cc_basename in
  32535. + CC*)
  32536. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32537. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32538. + ;;
  32539. + *)
  32540. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32541. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32542. + ;;
  32543. + esac
  32544. + ;;
  32545. -# Whether or not to add -lc for building shared libraries.
  32546. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  32547. + sysv5* | sco3.2v5* | sco5v6*)
  32548. + # Note: We can NOT use -z defs as we might desire, because we do not
  32549. + # link with -lc, and that would cause any symbols used from libc to
  32550. + # always be unresolved, which means just about no library would
  32551. + # ever link correctly. If we're not using GNU ld we use -z text
  32552. + # though, which does catch some bad symbols but isn't as heavy-handed
  32553. + # as -z defs.
  32554. + no_undefined_flag_CXX='${wl}-z,text'
  32555. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  32556. + archive_cmds_need_lc_CXX=no
  32557. + hardcode_shlibpath_var_CXX=no
  32558. + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  32559. + hardcode_libdir_separator_CXX=':'
  32560. + link_all_deplibs_CXX=yes
  32561. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  32562. + runpath_var='LD_RUN_PATH'
  32563. -# Whether or not to disallow shared libs when runtime libs are static
  32564. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  32565. + case $cc_basename in
  32566. + CC*)
  32567. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32568. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32569. + ;;
  32570. + *)
  32571. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32572. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32573. + ;;
  32574. + esac
  32575. + ;;
  32576. -# Whether or not to optimize for fast installation.
  32577. -fast_install=$enable_fast_install
  32578. + tandem*)
  32579. + case $cc_basename in
  32580. + NCC*)
  32581. + # NonStop-UX NCC 3.20
  32582. + # FIXME: insert proper C++ library support
  32583. + ld_shlibs_CXX=no
  32584. + ;;
  32585. + *)
  32586. + # FIXME: insert proper C++ library support
  32587. + ld_shlibs_CXX=no
  32588. + ;;
  32589. + esac
  32590. + ;;
  32591. -# The host system.
  32592. -host_alias=$host_alias
  32593. -host=$host
  32594. -host_os=$host_os
  32595. + vxworks*)
  32596. + # FIXME: insert proper C++ library support
  32597. + ld_shlibs_CXX=no
  32598. + ;;
  32599. -# The build system.
  32600. -build_alias=$build_alias
  32601. -build=$build
  32602. -build_os=$build_os
  32603. + *)
  32604. + # FIXME: insert proper C++ library support
  32605. + ld_shlibs_CXX=no
  32606. + ;;
  32607. + esac
  32608. -# An echo program that does not interpret backslashes.
  32609. -echo=$lt_echo
  32610. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  32611. +$as_echo "$ld_shlibs_CXX" >&6; }
  32612. + test "$ld_shlibs_CXX" = no && can_build_shared=no
  32613. +
  32614. + GCC_CXX="$GXX"
  32615. + LD_CXX="$LD"
  32616. +
  32617. + ## CAVEAT EMPTOR:
  32618. + ## There is no encapsulation within the following macros, do not change
  32619. + ## the running order or otherwise move them around unless you know exactly
  32620. + ## what you are doing...
  32621. + # Dependencies to place before and after the object being linked:
  32622. +predep_objects_CXX=
  32623. +postdep_objects_CXX=
  32624. +predeps_CXX=
  32625. +postdeps_CXX=
  32626. +compiler_lib_search_path_CXX=
  32627. -# The archiver.
  32628. -AR=$lt_AR
  32629. -AR_FLAGS=$lt_AR_FLAGS
  32630. +cat > conftest.$ac_ext <<_LT_EOF
  32631. +class Foo
  32632. +{
  32633. +public:
  32634. + Foo (void) { a = 0; }
  32635. +private:
  32636. + int a;
  32637. +};
  32638. +_LT_EOF
  32639. -# A C compiler.
  32640. -LTCC=$lt_LTCC
  32641. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  32642. + (eval $ac_compile) 2>&5
  32643. + ac_status=$?
  32644. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32645. + test $ac_status = 0; }; then
  32646. + # Parse the compiler output and extract the necessary
  32647. + # objects, libraries and library flags.
  32648. -# LTCC compiler flags.
  32649. -LTCFLAGS=$lt_LTCFLAGS
  32650. + # Sentinel used to keep track of whether or not we are before
  32651. + # the conftest object file.
  32652. + pre_test_object_deps_done=no
  32653. -# A language-specific compiler.
  32654. -CC=$lt_compiler_GCJ
  32655. + for p in `eval "$output_verbose_link_cmd"`; do
  32656. + case $p in
  32657. -# Is the compiler the GNU C compiler?
  32658. -with_gcc=$GCC_GCJ
  32659. + -L* | -R* | -l*)
  32660. + # Some compilers place space between "-{L,R}" and the path.
  32661. + # Remove the space.
  32662. + if test $p = "-L" ||
  32663. + test $p = "-R"; then
  32664. + prev=$p
  32665. + continue
  32666. + else
  32667. + prev=
  32668. + fi
  32669. -# An ERE matcher.
  32670. -EGREP=$lt_EGREP
  32671. + if test "$pre_test_object_deps_done" = no; then
  32672. + case $p in
  32673. + -L* | -R*)
  32674. + # Internal compiler library paths should come after those
  32675. + # provided the user. The postdeps already come after the
  32676. + # user supplied libs so there is no need to process them.
  32677. + if test -z "$compiler_lib_search_path_CXX"; then
  32678. + compiler_lib_search_path_CXX="${prev}${p}"
  32679. + else
  32680. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  32681. + fi
  32682. + ;;
  32683. + # The "-l" case would never come before the object being
  32684. + # linked, so don't bother handling this case.
  32685. + esac
  32686. + else
  32687. + if test -z "$postdeps_CXX"; then
  32688. + postdeps_CXX="${prev}${p}"
  32689. + else
  32690. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  32691. + fi
  32692. + fi
  32693. + ;;
  32694. -# The linker used to build libraries.
  32695. -LD=$lt_LD_GCJ
  32696. + *.$objext)
  32697. + # This assumes that the test object file only shows up
  32698. + # once in the compiler output.
  32699. + if test "$p" = "conftest.$objext"; then
  32700. + pre_test_object_deps_done=yes
  32701. + continue
  32702. + fi
  32703. -# Whether we need hard or soft links.
  32704. -LN_S=$lt_LN_S
  32705. + if test "$pre_test_object_deps_done" = no; then
  32706. + if test -z "$predep_objects_CXX"; then
  32707. + predep_objects_CXX="$p"
  32708. + else
  32709. + predep_objects_CXX="$predep_objects_CXX $p"
  32710. + fi
  32711. + else
  32712. + if test -z "$postdep_objects_CXX"; then
  32713. + postdep_objects_CXX="$p"
  32714. + else
  32715. + postdep_objects_CXX="$postdep_objects_CXX $p"
  32716. + fi
  32717. + fi
  32718. + ;;
  32719. -# A BSD-compatible nm program.
  32720. -NM=$lt_NM
  32721. + *) ;; # Ignore the rest.
  32722. -# A symbol stripping program
  32723. -STRIP=$lt_STRIP
  32724. + esac
  32725. + done
  32726. -# Used to examine libraries when file_magic_cmd begins "file"
  32727. -MAGIC_CMD=$MAGIC_CMD
  32728. + # Clean up.
  32729. + rm -f a.out a.exe
  32730. +else
  32731. + echo "libtool.m4: error: problem compiling CXX test program"
  32732. +fi
  32733. -# Used on cygwin: DLL creation program.
  32734. -DLLTOOL="$DLLTOOL"
  32735. +$RM -f confest.$objext
  32736. -# Used on cygwin: object dumper.
  32737. -OBJDUMP="$OBJDUMP"
  32738. +# PORTME: override above test on systems where it is broken
  32739. +case $host_os in
  32740. +interix[3-9]*)
  32741. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  32742. + # hack all around it, let's just trust "g++" to DTRT.
  32743. + predep_objects_CXX=
  32744. + postdep_objects_CXX=
  32745. + postdeps_CXX=
  32746. + ;;
  32747. -# Used on cygwin: assembler.
  32748. -AS="$AS"
  32749. +linux*)
  32750. + case `$CC -V 2>&1 | sed 5q` in
  32751. + *Sun\ C*)
  32752. + # Sun C++ 5.9
  32753. -# The name of the directory that contains temporary libtool files.
  32754. -objdir=$objdir
  32755. + # The more standards-conforming stlport4 library is
  32756. + # incompatible with the Cstd library. Avoid specifying
  32757. + # it if it's in CXXFLAGS. Ignore libCrun as
  32758. + # -library=stlport4 depends on it.
  32759. + case " $CXX $CXXFLAGS " in
  32760. + *" -library=stlport4 "*)
  32761. + solaris_use_stlport4=yes
  32762. + ;;
  32763. + esac
  32764. -# How to create reloadable object files.
  32765. -reload_flag=$lt_reload_flag
  32766. -reload_cmds=$lt_reload_cmds
  32767. + if test "$solaris_use_stlport4" != yes; then
  32768. + postdeps_CXX='-library=Cstd -library=Crun'
  32769. + fi
  32770. + ;;
  32771. + esac
  32772. + ;;
  32773. -# How to pass a linker flag through the compiler.
  32774. -wl=$lt_lt_prog_compiler_wl_GCJ
  32775. +solaris*)
  32776. + case $cc_basename in
  32777. + CC*)
  32778. + # The more standards-conforming stlport4 library is
  32779. + # incompatible with the Cstd library. Avoid specifying
  32780. + # it if it's in CXXFLAGS. Ignore libCrun as
  32781. + # -library=stlport4 depends on it.
  32782. + case " $CXX $CXXFLAGS " in
  32783. + *" -library=stlport4 "*)
  32784. + solaris_use_stlport4=yes
  32785. + ;;
  32786. + esac
  32787. -# Object file suffix (normally "o").
  32788. -objext="$ac_objext"
  32789. + # Adding this requires a known-good setup of shared libraries for
  32790. + # Sun compiler versions before 5.6, else PIC objects from an old
  32791. + # archive will be linked into the output, leading to subtle bugs.
  32792. + if test "$solaris_use_stlport4" != yes; then
  32793. + postdeps_CXX='-library=Cstd -library=Crun'
  32794. + fi
  32795. + ;;
  32796. + esac
  32797. + ;;
  32798. +esac
  32799. -# Old archive suffix (normally "a").
  32800. -libext="$libext"
  32801. -# Shared library suffix (normally ".so").
  32802. -shrext_cmds='$shrext_cmds'
  32803. +case " $postdeps_CXX " in
  32804. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  32805. +esac
  32806. + compiler_lib_search_dirs_CXX=
  32807. +if test -n "${compiler_lib_search_path_CXX}"; then
  32808. + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  32809. +fi
  32810. -# Executable file suffix (normally "").
  32811. -exeext="$exeext"
  32812. -# Additional compiler flags for building library objects.
  32813. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  32814. -pic_mode=$pic_mode
  32815. -# What is the maximum length of a command?
  32816. -max_cmd_len=$lt_cv_sys_max_cmd_len
  32817. -# Does compiler simultaneously support -c and -o options?
  32818. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  32819. -# Must we lock files when doing compilation?
  32820. -need_locks=$lt_need_locks
  32821. -# Do we need the lib prefix for modules?
  32822. -need_lib_prefix=$need_lib_prefix
  32823. -# Do we need a version for libraries?
  32824. -need_version=$need_version
  32825. -# Whether dlopen is supported.
  32826. -dlopen_support=$enable_dlopen
  32827. -# Whether dlopen of programs is supported.
  32828. -dlopen_self=$enable_dlopen_self
  32829. -# Whether dlopen of statically linked programs is supported.
  32830. -dlopen_self_static=$enable_dlopen_self_static
  32831. -# Compiler flag to prevent dynamic linking.
  32832. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  32833. -# Compiler flag to turn off builtin functions.
  32834. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  32835. -# Compiler flag to allow reflexive dlopens.
  32836. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  32837. -# Compiler flag to generate shared objects directly from archives.
  32838. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  32839. -# Compiler flag to generate thread-safe objects.
  32840. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  32841. -# Library versioning type.
  32842. -version_type=$version_type
  32843. -# Format of library name prefix.
  32844. -libname_spec=$lt_libname_spec
  32845. -# List of archive names. First name is the real one, the rest are links.
  32846. -# The last name is the one that the linker finds with -lNAME.
  32847. -library_names_spec=$lt_library_names_spec
  32848. -# The coded name of the library, if different from the real name.
  32849. -soname_spec=$lt_soname_spec
  32850. -# Commands used to build and install an old-style archive.
  32851. -RANLIB=$lt_RANLIB
  32852. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  32853. -old_postinstall_cmds=$lt_old_postinstall_cmds
  32854. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32855. -# Create an old-style archive from a shared archive.
  32856. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  32857. -# Create a temporary old-style archive to link instead of a shared archive.
  32858. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  32859. -# Commands used to build and install a shared archive.
  32860. -archive_cmds=$lt_archive_cmds_GCJ
  32861. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  32862. -postinstall_cmds=$lt_postinstall_cmds
  32863. -postuninstall_cmds=$lt_postuninstall_cmds
  32864. -# Commands used to build a loadable module (assumed same as above if empty)
  32865. -module_cmds=$lt_module_cmds_GCJ
  32866. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  32867. -# Commands to strip libraries.
  32868. -old_striplib=$lt_old_striplib
  32869. -striplib=$lt_striplib
  32870. -# Dependencies to place before the objects being linked to create a
  32871. -# shared library.
  32872. -predep_objects=$lt_predep_objects_GCJ
  32873. -
  32874. -# Dependencies to place after the objects being linked to create a
  32875. -# shared library.
  32876. -postdep_objects=$lt_postdep_objects_GCJ
  32877. -
  32878. -# Dependencies to place before the objects being linked to create a
  32879. -# shared library.
  32880. -predeps=$lt_predeps_GCJ
  32881. -
  32882. -# Dependencies to place after the objects being linked to create a
  32883. -# shared library.
  32884. -postdeps=$lt_postdeps_GCJ
  32885. -
  32886. -# The directories searched by this compiler when creating a shared
  32887. -# library
  32888. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  32889. -# The library search path used internally by the compiler when linking
  32890. -# a shared library.
  32891. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  32892. -# Method to check whether dependent libraries are shared objects.
  32893. -deplibs_check_method=$lt_deplibs_check_method
  32894. -# Command to use when deplibs_check_method == file_magic.
  32895. -file_magic_cmd=$lt_file_magic_cmd
  32896. -# Flag that allows shared libraries with undefined symbols to be built.
  32897. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  32898. -# Flag that forces no undefined symbols.
  32899. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  32900. + lt_prog_compiler_wl_CXX=
  32901. +lt_prog_compiler_pic_CXX=
  32902. +lt_prog_compiler_static_CXX=
  32903. -# Commands used to finish a libtool library installation in a directory.
  32904. -finish_cmds=$lt_finish_cmds
  32905. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  32906. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  32907. -# Same as above, but a single script fragment to be evaled but not shown.
  32908. -finish_eval=$lt_finish_eval
  32909. + # C++ specific cases for pic, static, wl, etc.
  32910. + if test "$GXX" = yes; then
  32911. + lt_prog_compiler_wl_CXX='-Wl,'
  32912. + lt_prog_compiler_static_CXX='-static'
  32913. -# Take the output of nm and produce a listing of raw symbols and C names.
  32914. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32915. + case $host_os in
  32916. + aix*)
  32917. + # All AIX code is PIC.
  32918. + if test "$host_cpu" = ia64; then
  32919. + # AIX 5 now supports IA64 processor
  32920. + lt_prog_compiler_static_CXX='-Bstatic'
  32921. + fi
  32922. + ;;
  32923. -# Transform the output of nm in a proper C declaration
  32924. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32925. + amigaos*)
  32926. + case $host_cpu in
  32927. + powerpc)
  32928. + # see comment about AmigaOS4 .so support
  32929. + lt_prog_compiler_pic_CXX='-fPIC'
  32930. + ;;
  32931. + m68k)
  32932. + # FIXME: we need at least 68020 code to build shared libraries, but
  32933. + # adding the `-m68020' flag to GCC prevents building anything better,
  32934. + # like `-m68040'.
  32935. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  32936. + ;;
  32937. + esac
  32938. + ;;
  32939. -# Transform the output of nm in a C name address pair
  32940. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32941. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  32942. + # PIC is the default for these OSes.
  32943. + ;;
  32944. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  32945. + # This hack is so that the source file can tell whether it is being
  32946. + # built for inclusion in a dll (and should export symbols for example).
  32947. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  32948. + # (--disable-auto-import) libraries
  32949. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  32950. + ;;
  32951. + darwin* | rhapsody*)
  32952. + # PIC is the default on this platform
  32953. + # Common symbols not allowed in MH_DYLIB files
  32954. + lt_prog_compiler_pic_CXX='-fno-common'
  32955. + ;;
  32956. + *djgpp*)
  32957. + # DJGPP does not support shared libraries at all
  32958. + lt_prog_compiler_pic_CXX=
  32959. + ;;
  32960. + interix[3-9]*)
  32961. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  32962. + # Instead, we relocate shared libraries at runtime.
  32963. + ;;
  32964. + sysv4*MP*)
  32965. + if test -d /usr/nec; then
  32966. + lt_prog_compiler_pic_CXX=-Kconform_pic
  32967. + fi
  32968. + ;;
  32969. + hpux*)
  32970. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  32971. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  32972. + # sets the default TLS model and affects inlining.
  32973. + case $host_cpu in
  32974. + hppa*64*)
  32975. + ;;
  32976. + *)
  32977. + lt_prog_compiler_pic_CXX='-fPIC'
  32978. + ;;
  32979. + esac
  32980. + ;;
  32981. + *qnx* | *nto*)
  32982. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  32983. + # it will coredump.
  32984. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  32985. + ;;
  32986. + *)
  32987. + lt_prog_compiler_pic_CXX='-fPIC'
  32988. + ;;
  32989. + esac
  32990. + else
  32991. + case $host_os in
  32992. + aix[4-9]*)
  32993. + # All AIX code is PIC.
  32994. + if test "$host_cpu" = ia64; then
  32995. + # AIX 5 now supports IA64 processor
  32996. + lt_prog_compiler_static_CXX='-Bstatic'
  32997. + else
  32998. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  32999. + fi
  33000. + ;;
  33001. + chorus*)
  33002. + case $cc_basename in
  33003. + cxch68*)
  33004. + # Green Hills C++ Compiler
  33005. + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  33006. + ;;
  33007. + esac
  33008. + ;;
  33009. + dgux*)
  33010. + case $cc_basename in
  33011. + ec++*)
  33012. + lt_prog_compiler_pic_CXX='-KPIC'
  33013. + ;;
  33014. + ghcx*)
  33015. + # Green Hills C++ Compiler
  33016. + lt_prog_compiler_pic_CXX='-pic'
  33017. + ;;
  33018. + *)
  33019. + ;;
  33020. + esac
  33021. + ;;
  33022. + freebsd* | dragonfly*)
  33023. + # FreeBSD uses GNU C++
  33024. + ;;
  33025. + hpux9* | hpux10* | hpux11*)
  33026. + case $cc_basename in
  33027. + CC*)
  33028. + lt_prog_compiler_wl_CXX='-Wl,'
  33029. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  33030. + if test "$host_cpu" != ia64; then
  33031. + lt_prog_compiler_pic_CXX='+Z'
  33032. + fi
  33033. + ;;
  33034. + aCC*)
  33035. + lt_prog_compiler_wl_CXX='-Wl,'
  33036. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  33037. + case $host_cpu in
  33038. + hppa*64*|ia64*)
  33039. + # +Z the default
  33040. + ;;
  33041. + *)
  33042. + lt_prog_compiler_pic_CXX='+Z'
  33043. + ;;
  33044. + esac
  33045. + ;;
  33046. + *)
  33047. + ;;
  33048. + esac
  33049. + ;;
  33050. + interix*)
  33051. + # This is c89, which is MS Visual C++ (no shared libs)
  33052. + # Anyone wants to do a port?
  33053. + ;;
  33054. + irix5* | irix6* | nonstopux*)
  33055. + case $cc_basename in
  33056. + CC*)
  33057. + lt_prog_compiler_wl_CXX='-Wl,'
  33058. + lt_prog_compiler_static_CXX='-non_shared'
  33059. + # CC pic flag -KPIC is the default.
  33060. + ;;
  33061. + *)
  33062. + ;;
  33063. + esac
  33064. + ;;
  33065. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33066. + case $cc_basename in
  33067. + KCC*)
  33068. + # KAI C++ Compiler
  33069. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  33070. + lt_prog_compiler_pic_CXX='-fPIC'
  33071. + ;;
  33072. + ecpc* )
  33073. + # old Intel C++ for x86_64 which still supported -KPIC.
  33074. + lt_prog_compiler_wl_CXX='-Wl,'
  33075. + lt_prog_compiler_pic_CXX='-KPIC'
  33076. + lt_prog_compiler_static_CXX='-static'
  33077. + ;;
  33078. + icpc* )
  33079. + # Intel C++, used to be incompatible with GCC.
  33080. + # ICC 10 doesn't accept -KPIC any more.
  33081. + lt_prog_compiler_wl_CXX='-Wl,'
  33082. + lt_prog_compiler_pic_CXX='-fPIC'
  33083. + lt_prog_compiler_static_CXX='-static'
  33084. + ;;
  33085. + pgCC* | pgcpp*)
  33086. + # Portland Group C++ compiler
  33087. + lt_prog_compiler_wl_CXX='-Wl,'
  33088. + lt_prog_compiler_pic_CXX='-fpic'
  33089. + lt_prog_compiler_static_CXX='-Bstatic'
  33090. + ;;
  33091. + cxx*)
  33092. + # Compaq C++
  33093. + # Make sure the PIC flag is empty. It appears that all Alpha
  33094. + # Linux and Compaq Tru64 Unix objects are PIC.
  33095. + lt_prog_compiler_pic_CXX=
  33096. + lt_prog_compiler_static_CXX='-non_shared'
  33097. + ;;
  33098. + xlc* | xlC*)
  33099. + # IBM XL 8.0 on PPC
  33100. + lt_prog_compiler_wl_CXX='-Wl,'
  33101. + lt_prog_compiler_pic_CXX='-qpic'
  33102. + lt_prog_compiler_static_CXX='-qstaticlink'
  33103. + ;;
  33104. + *)
  33105. + case `$CC -V 2>&1 | sed 5q` in
  33106. + *Sun\ C*)
  33107. + # Sun C++ 5.9
  33108. + lt_prog_compiler_pic_CXX='-KPIC'
  33109. + lt_prog_compiler_static_CXX='-Bstatic'
  33110. + lt_prog_compiler_wl_CXX='-Qoption ld '
  33111. + ;;
  33112. + esac
  33113. + ;;
  33114. + esac
  33115. + ;;
  33116. + lynxos*)
  33117. + ;;
  33118. + m88k*)
  33119. + ;;
  33120. + mvs*)
  33121. + case $cc_basename in
  33122. + cxx*)
  33123. + lt_prog_compiler_pic_CXX='-W c,exportall'
  33124. + ;;
  33125. + *)
  33126. + ;;
  33127. + esac
  33128. + ;;
  33129. + netbsd* | netbsdelf*-gnu)
  33130. + ;;
  33131. + *qnx* | *nto*)
  33132. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33133. + # it will coredump.
  33134. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  33135. + ;;
  33136. + osf3* | osf4* | osf5*)
  33137. + case $cc_basename in
  33138. + KCC*)
  33139. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  33140. + ;;
  33141. + RCC*)
  33142. + # Rational C++ 2.4.1
  33143. + lt_prog_compiler_pic_CXX='-pic'
  33144. + ;;
  33145. + cxx*)
  33146. + # Digital/Compaq C++
  33147. + lt_prog_compiler_wl_CXX='-Wl,'
  33148. + # Make sure the PIC flag is empty. It appears that all Alpha
  33149. + # Linux and Compaq Tru64 Unix objects are PIC.
  33150. + lt_prog_compiler_pic_CXX=
  33151. + lt_prog_compiler_static_CXX='-non_shared'
  33152. + ;;
  33153. + *)
  33154. + ;;
  33155. + esac
  33156. + ;;
  33157. + psos*)
  33158. + ;;
  33159. + solaris*)
  33160. + case $cc_basename in
  33161. + CC*)
  33162. + # Sun C++ 4.2, 5.x and Centerline C++
  33163. + lt_prog_compiler_pic_CXX='-KPIC'
  33164. + lt_prog_compiler_static_CXX='-Bstatic'
  33165. + lt_prog_compiler_wl_CXX='-Qoption ld '
  33166. + ;;
  33167. + gcx*)
  33168. + # Green Hills C++ Compiler
  33169. + lt_prog_compiler_pic_CXX='-PIC'
  33170. + ;;
  33171. + *)
  33172. + ;;
  33173. + esac
  33174. + ;;
  33175. + sunos4*)
  33176. + case $cc_basename in
  33177. + CC*)
  33178. + # Sun C++ 4.x
  33179. + lt_prog_compiler_pic_CXX='-pic'
  33180. + lt_prog_compiler_static_CXX='-Bstatic'
  33181. + ;;
  33182. + lcc*)
  33183. + # Lucid
  33184. + lt_prog_compiler_pic_CXX='-pic'
  33185. + ;;
  33186. + *)
  33187. + ;;
  33188. + esac
  33189. + ;;
  33190. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33191. + case $cc_basename in
  33192. + CC*)
  33193. + lt_prog_compiler_wl_CXX='-Wl,'
  33194. + lt_prog_compiler_pic_CXX='-KPIC'
  33195. + lt_prog_compiler_static_CXX='-Bstatic'
  33196. + ;;
  33197. + esac
  33198. + ;;
  33199. + tandem*)
  33200. + case $cc_basename in
  33201. + NCC*)
  33202. + # NonStop-UX NCC 3.20
  33203. + lt_prog_compiler_pic_CXX='-KPIC'
  33204. + ;;
  33205. + *)
  33206. + ;;
  33207. + esac
  33208. + ;;
  33209. + vxworks*)
  33210. + ;;
  33211. + *)
  33212. + lt_prog_compiler_can_build_shared_CXX=no
  33213. + ;;
  33214. + esac
  33215. + fi
  33216. -# This is the shared library runtime path variable.
  33217. -runpath_var=$runpath_var
  33218. +case $host_os in
  33219. + # For platforms which do not support PIC, -DPIC is meaningless:
  33220. + *djgpp*)
  33221. + lt_prog_compiler_pic_CXX=
  33222. + ;;
  33223. + *)
  33224. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  33225. + ;;
  33226. +esac
  33227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  33228. +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  33229. -# This is the shared library path variable.
  33230. -shlibpath_var=$shlibpath_var
  33231. -# Is shlibpath searched before the hard-coded library search path?
  33232. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  33233. -# How to hardcode a shared library path into an executable.
  33234. -hardcode_action=$hardcode_action_GCJ
  33235. +#
  33236. +# Check to make sure the PIC flag actually works.
  33237. +#
  33238. +if test -n "$lt_prog_compiler_pic_CXX"; then
  33239. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  33240. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  33241. +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  33242. + $as_echo_n "(cached) " >&6
  33243. +else
  33244. + lt_cv_prog_compiler_pic_works_CXX=no
  33245. + ac_outfile=conftest.$ac_objext
  33246. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33247. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  33248. + # Insert the option either (1) after the last *FLAGS variable, or
  33249. + # (2) before a word containing "conftest.", or (3) at the end.
  33250. + # Note that $ac_compile itself does not contain backslashes and begins
  33251. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33252. + # The option is referenced via a variable to avoid confusing sed.
  33253. + lt_compile=`echo "$ac_compile" | $SED \
  33254. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33255. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33256. + -e 's:$: $lt_compiler_flag:'`
  33257. + (eval echo "\"\$as_me:13674: $lt_compile\"" >&5)
  33258. + (eval "$lt_compile" 2>conftest.err)
  33259. + ac_status=$?
  33260. + cat conftest.err >&5
  33261. + echo "$as_me:13678: \$? = $ac_status" >&5
  33262. + if (exit $ac_status) && test -s "$ac_outfile"; then
  33263. + # The compiler can only warn and ignore the option if not recognized
  33264. + # So say no if there are warnings other than the usual output.
  33265. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33266. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33267. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33268. + lt_cv_prog_compiler_pic_works_CXX=yes
  33269. + fi
  33270. + fi
  33271. + $RM conftest*
  33272. -# Whether we should hardcode library paths into libraries.
  33273. -hardcode_into_libs=$hardcode_into_libs
  33274. +fi
  33275. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  33276. +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  33277. -# Flag to hardcode \$libdir into a binary during linking.
  33278. -# This must work even if \$libdir does not exist.
  33279. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  33280. +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  33281. + case $lt_prog_compiler_pic_CXX in
  33282. + "" | " "*) ;;
  33283. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  33284. + esac
  33285. +else
  33286. + lt_prog_compiler_pic_CXX=
  33287. + lt_prog_compiler_can_build_shared_CXX=no
  33288. +fi
  33289. -# If ld is used when linking, flag to hardcode \$libdir into
  33290. -# a binary during linking. This must work even if \$libdir does
  33291. -# not exist.
  33292. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  33293. -
  33294. -# Whether we need a single -rpath flag with a separated argument.
  33295. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  33296. -
  33297. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  33298. -# resulting binary.
  33299. -hardcode_direct=$hardcode_direct_GCJ
  33300. -
  33301. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  33302. -# resulting binary.
  33303. -hardcode_minus_L=$hardcode_minus_L_GCJ
  33304. -
  33305. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  33306. -# the resulting binary.
  33307. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  33308. -
  33309. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  33310. -# and all subsequent libraries and executables linked against it.
  33311. -hardcode_automatic=$hardcode_automatic_GCJ
  33312. +fi
  33313. -# Variables whose values should be saved in libtool wrapper scripts and
  33314. -# restored at relink time.
  33315. -variables_saved_for_relink="$variables_saved_for_relink"
  33316. -# Whether libtool must link a program against all its dependency libraries.
  33317. -link_all_deplibs=$link_all_deplibs_GCJ
  33318. -# Compile-time system search path for libraries
  33319. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  33320. +#
  33321. +# Check to make sure the static flag actually works.
  33322. +#
  33323. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  33324. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  33325. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  33326. +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  33327. + $as_echo_n "(cached) " >&6
  33328. +else
  33329. + lt_cv_prog_compiler_static_works_CXX=no
  33330. + save_LDFLAGS="$LDFLAGS"
  33331. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  33332. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  33333. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  33334. + # The linker can only warn and ignore the option if not recognized
  33335. + # So say no if there are warnings
  33336. + if test -s conftest.err; then
  33337. + # Append any errors to the config.log.
  33338. + cat conftest.err 1>&5
  33339. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  33340. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33341. + if diff conftest.exp conftest.er2 >/dev/null; then
  33342. + lt_cv_prog_compiler_static_works_CXX=yes
  33343. + fi
  33344. + else
  33345. + lt_cv_prog_compiler_static_works_CXX=yes
  33346. + fi
  33347. + fi
  33348. + $RM -r conftest*
  33349. + LDFLAGS="$save_LDFLAGS"
  33350. -# Run-time system search path for libraries
  33351. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  33352. +fi
  33353. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  33354. +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  33355. -# Fix the shell variable \$srcfile for the compiler.
  33356. -fix_srcfile_path=$lt_fix_srcfile_path
  33357. +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  33358. + :
  33359. +else
  33360. + lt_prog_compiler_static_CXX=
  33361. +fi
  33362. -# Set to yes if exported symbols are required.
  33363. -always_export_symbols=$always_export_symbols_GCJ
  33364. -# The commands to list exported symbols.
  33365. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  33366. -# The commands to extract the exported symbol list from a shared archive.
  33367. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  33368. -# Symbols that should not be listed in the preloaded symbols.
  33369. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  33370. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33371. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33372. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  33373. + $as_echo_n "(cached) " >&6
  33374. +else
  33375. + lt_cv_prog_compiler_c_o_CXX=no
  33376. + $RM -r conftest 2>/dev/null
  33377. + mkdir conftest
  33378. + cd conftest
  33379. + mkdir out
  33380. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33381. -# Symbols that must always be exported.
  33382. -include_expsyms=$lt_include_expsyms_GCJ
  33383. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33384. + # Insert the option either (1) after the last *FLAGS variable, or
  33385. + # (2) before a word containing "conftest.", or (3) at the end.
  33386. + # Note that $ac_compile itself does not contain backslashes and begins
  33387. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33388. + lt_compile=`echo "$ac_compile" | $SED \
  33389. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33390. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33391. + -e 's:$: $lt_compiler_flag:'`
  33392. + (eval echo "\"\$as_me:13773: $lt_compile\"" >&5)
  33393. + (eval "$lt_compile" 2>out/conftest.err)
  33394. + ac_status=$?
  33395. + cat out/conftest.err >&5
  33396. + echo "$as_me:13777: \$? = $ac_status" >&5
  33397. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33398. + then
  33399. + # The compiler can only warn and ignore the option if not recognized
  33400. + # So say no if there are warnings
  33401. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33402. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33403. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33404. + lt_cv_prog_compiler_c_o_CXX=yes
  33405. + fi
  33406. + fi
  33407. + chmod u+w . 2>&5
  33408. + $RM conftest*
  33409. + # SGI C++ compiler will create directory out/ii_files/ for
  33410. + # template instantiation
  33411. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33412. + $RM out/* && rmdir out
  33413. + cd ..
  33414. + $RM -r conftest
  33415. + $RM conftest*
  33416. -# ### END LIBTOOL TAG CONFIG: $tagname
  33417. +fi
  33418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  33419. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  33420. -__EOF__
  33421. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33422. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33423. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  33424. + $as_echo_n "(cached) " >&6
  33425. else
  33426. - # If there is no Makefile yet, we rely on a make rule to execute
  33427. - # `config.status --recheck' to rerun these tests and create the
  33428. - # libtool script then.
  33429. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  33430. - if test -f "$ltmain_in"; then
  33431. - test -f Makefile && make "$ltmain"
  33432. - fi
  33433. -fi
  33434. -
  33435. -
  33436. -ac_ext=c
  33437. -ac_cpp='$CPP $CPPFLAGS'
  33438. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33439. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33440. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33441. + lt_cv_prog_compiler_c_o_CXX=no
  33442. + $RM -r conftest 2>/dev/null
  33443. + mkdir conftest
  33444. + cd conftest
  33445. + mkdir out
  33446. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33447. -CC="$lt_save_CC"
  33448. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33449. + # Insert the option either (1) after the last *FLAGS variable, or
  33450. + # (2) before a word containing "conftest.", or (3) at the end.
  33451. + # Note that $ac_compile itself does not contain backslashes and begins
  33452. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33453. + lt_compile=`echo "$ac_compile" | $SED \
  33454. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33455. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33456. + -e 's:$: $lt_compiler_flag:'`
  33457. + (eval echo "\"\$as_me:13825: $lt_compile\"" >&5)
  33458. + (eval "$lt_compile" 2>out/conftest.err)
  33459. + ac_status=$?
  33460. + cat out/conftest.err >&5
  33461. + echo "$as_me:13829: \$? = $ac_status" >&5
  33462. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33463. + then
  33464. + # The compiler can only warn and ignore the option if not recognized
  33465. + # So say no if there are warnings
  33466. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33467. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33468. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33469. + lt_cv_prog_compiler_c_o_CXX=yes
  33470. + fi
  33471. + fi
  33472. + chmod u+w . 2>&5
  33473. + $RM conftest*
  33474. + # SGI C++ compiler will create directory out/ii_files/ for
  33475. + # template instantiation
  33476. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33477. + $RM out/* && rmdir out
  33478. + cd ..
  33479. + $RM -r conftest
  33480. + $RM conftest*
  33481. - else
  33482. - tagname=""
  33483. - fi
  33484. - ;;
  33485. +fi
  33486. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  33487. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  33488. - RC)
  33489. -# Source file extension for RC test sources.
  33490. -ac_ext=rc
  33491. -# Object file extension for compiled RC test sources.
  33492. -objext=o
  33493. -objext_RC=$objext
  33494. +hard_links="nottested"
  33495. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  33496. + # do not overwrite the value of need_locks provided by the user
  33497. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  33498. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  33499. + hard_links=yes
  33500. + $RM conftest*
  33501. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33502. + touch conftest.a
  33503. + ln conftest.a conftest.b 2>&5 || hard_links=no
  33504. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33505. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  33506. +$as_echo "$hard_links" >&6; }
  33507. + if test "$hard_links" = no; then
  33508. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33509. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33510. + need_locks=warn
  33511. + fi
  33512. +else
  33513. + need_locks=no
  33514. +fi
  33515. -# Code to be used in simple compile tests
  33516. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  33517. -# Code to be used in simple link tests
  33518. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  33519. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  33520. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33521. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  33522. -# If no C compiler was specified, use CC.
  33523. -LTCC=${LTCC-"$CC"}
  33524. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33525. + case $host_os in
  33526. + aix[4-9]*)
  33527. + # If we're using GNU nm, then we don't want the "-C" option.
  33528. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33529. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  33530. + 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'
  33531. + else
  33532. + 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'
  33533. + fi
  33534. + ;;
  33535. + pw32*)
  33536. + export_symbols_cmds_CXX="$ltdll_cmds"
  33537. + ;;
  33538. + cygwin* | mingw* | cegcc*)
  33539. + 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'
  33540. + ;;
  33541. + linux* | k*bsd*-gnu)
  33542. + link_all_deplibs_CXX=no
  33543. + ;;
  33544. + *)
  33545. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33546. + ;;
  33547. + esac
  33548. + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  33549. -# If no C compiler flags were specified, use CFLAGS.
  33550. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  33551. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  33552. +$as_echo "$ld_shlibs_CXX" >&6; }
  33553. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  33554. -# Allow CC to be a program name with arguments.
  33555. -compiler=$CC
  33556. +with_gnu_ld_CXX=$with_gnu_ld
  33557. -# save warnings/boilerplate of simple test code
  33558. -ac_outfile=conftest.$ac_objext
  33559. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  33560. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33561. -_lt_compiler_boilerplate=`cat conftest.err`
  33562. -$rm conftest*
  33563. -ac_outfile=conftest.$ac_objext
  33564. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  33565. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33566. -_lt_linker_boilerplate=`cat conftest.err`
  33567. -$rm -r conftest*
  33568. -# Allow CC to be a program name with arguments.
  33569. -lt_save_CC="$CC"
  33570. -CC=${RC-"windres"}
  33571. -compiler=$CC
  33572. -compiler_RC=$CC
  33573. -for cc_temp in $compiler""; do
  33574. - case $cc_temp in
  33575. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33576. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33577. - \-*) ;;
  33578. - *) break;;
  33579. - esac
  33580. -done
  33581. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33582. -lt_cv_prog_compiler_c_o_RC=yes
  33583. +#
  33584. +# Do we need to explicitly link libc?
  33585. +#
  33586. +case "x$archive_cmds_need_lc_CXX" in
  33587. +x|xyes)
  33588. + # Assume -lc should be added
  33589. + archive_cmds_need_lc_CXX=yes
  33590. -# The else clause should only fire when bootstrapping the
  33591. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  33592. -# with your package, and you will get complaints that there are
  33593. -# no rules to generate ltmain.sh.
  33594. -if test -f "$ltmain"; then
  33595. - # See if we are running on zsh, and set the options which allow our commands through
  33596. - # without removal of \ escapes.
  33597. - if test -n "${ZSH_VERSION+set}" ; then
  33598. - setopt NO_GLOB_SUBST
  33599. - fi
  33600. - # Now quote all the things that may contain metacharacters while being
  33601. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  33602. - # variables and quote the copies for generation of the libtool script.
  33603. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  33604. - SED SHELL STRIP \
  33605. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  33606. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  33607. - deplibs_check_method reload_flag reload_cmds need_locks \
  33608. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  33609. - lt_cv_sys_global_symbol_to_c_name_address \
  33610. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  33611. - old_postinstall_cmds old_postuninstall_cmds \
  33612. - compiler_RC \
  33613. - CC_RC \
  33614. - LD_RC \
  33615. - lt_prog_compiler_wl_RC \
  33616. - lt_prog_compiler_pic_RC \
  33617. - lt_prog_compiler_static_RC \
  33618. - lt_prog_compiler_no_builtin_flag_RC \
  33619. - export_dynamic_flag_spec_RC \
  33620. - thread_safe_flag_spec_RC \
  33621. - whole_archive_flag_spec_RC \
  33622. - enable_shared_with_static_runtimes_RC \
  33623. - old_archive_cmds_RC \
  33624. - old_archive_from_new_cmds_RC \
  33625. - predep_objects_RC \
  33626. - postdep_objects_RC \
  33627. - predeps_RC \
  33628. - postdeps_RC \
  33629. - compiler_lib_search_path_RC \
  33630. - compiler_lib_search_dirs_RC \
  33631. - archive_cmds_RC \
  33632. - archive_expsym_cmds_RC \
  33633. - postinstall_cmds_RC \
  33634. - postuninstall_cmds_RC \
  33635. - old_archive_from_expsyms_cmds_RC \
  33636. - allow_undefined_flag_RC \
  33637. - no_undefined_flag_RC \
  33638. - export_symbols_cmds_RC \
  33639. - hardcode_libdir_flag_spec_RC \
  33640. - hardcode_libdir_flag_spec_ld_RC \
  33641. - hardcode_libdir_separator_RC \
  33642. - hardcode_automatic_RC \
  33643. - module_cmds_RC \
  33644. - module_expsym_cmds_RC \
  33645. - lt_cv_prog_compiler_c_o_RC \
  33646. - fix_srcfile_path_RC \
  33647. - exclude_expsyms_RC \
  33648. - include_expsyms_RC; do
  33649. -
  33650. - case $var in
  33651. - old_archive_cmds_RC | \
  33652. - old_archive_from_new_cmds_RC | \
  33653. - archive_cmds_RC | \
  33654. - archive_expsym_cmds_RC | \
  33655. - module_cmds_RC | \
  33656. - module_expsym_cmds_RC | \
  33657. - old_archive_from_expsyms_cmds_RC | \
  33658. - export_symbols_cmds_RC | \
  33659. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  33660. - postinstall_cmds | postuninstall_cmds | \
  33661. - old_postinstall_cmds | old_postuninstall_cmds | \
  33662. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  33663. - # Double-quote double-evaled strings.
  33664. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  33665. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  33666. + case $archive_cmds_CXX in
  33667. + *'~'*)
  33668. + # FIXME: we may have to deal with multi-command sequences.
  33669. ;;
  33670. - *)
  33671. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  33672. + '$CC '*)
  33673. + # Test whether the compiler implicitly links with -lc since on some
  33674. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  33675. + # to ld, don't add -lc before -lgcc.
  33676. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  33677. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  33678. + $RM conftest*
  33679. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33680. +
  33681. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  33682. + (eval $ac_compile) 2>&5
  33683. + ac_status=$?
  33684. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33685. + test $ac_status = 0; } 2>conftest.err; then
  33686. + soname=conftest
  33687. + lib=conftest
  33688. + libobjs=conftest.$ac_objext
  33689. + deplibs=
  33690. + wl=$lt_prog_compiler_wl_CXX
  33691. + pic_flag=$lt_prog_compiler_pic_CXX
  33692. + compiler_flags=-v
  33693. + linker_flags=-v
  33694. + verstring=
  33695. + output_objdir=.
  33696. + libname=conftest
  33697. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  33698. + allow_undefined_flag_CXX=
  33699. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  33700. + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  33701. + ac_status=$?
  33702. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33703. + test $ac_status = 0; }
  33704. + then
  33705. + archive_cmds_need_lc_CXX=no
  33706. + else
  33707. + archive_cmds_need_lc_CXX=yes
  33708. + fi
  33709. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  33710. + else
  33711. + cat conftest.err 1>&5
  33712. + fi
  33713. + $RM conftest*
  33714. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  33715. +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  33716. ;;
  33717. esac
  33718. - done
  33719. + fi
  33720. + ;;
  33721. +esac
  33722. - case $lt_echo in
  33723. - *'\$0 --fallback-echo"')
  33724. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  33725. - ;;
  33726. - esac
  33727. -cfgfile="$ofile"
  33728. - cat <<__EOF__ >> "$cfgfile"
  33729. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  33730. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  33731. -# Shell to use when invoking shell scripts.
  33732. -SHELL=$lt_SHELL
  33733. -# Whether or not to build shared libraries.
  33734. -build_libtool_libs=$enable_shared
  33735. -# Whether or not to build static libraries.
  33736. -build_old_libs=$enable_static
  33737. -# Whether or not to add -lc for building shared libraries.
  33738. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  33739. -# Whether or not to disallow shared libs when runtime libs are static
  33740. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  33741. -# Whether or not to optimize for fast installation.
  33742. -fast_install=$enable_fast_install
  33743. -# The host system.
  33744. -host_alias=$host_alias
  33745. -host=$host
  33746. -host_os=$host_os
  33747. -# The build system.
  33748. -build_alias=$build_alias
  33749. -build=$build
  33750. -build_os=$build_os
  33751. -# An echo program that does not interpret backslashes.
  33752. -echo=$lt_echo
  33753. -# The archiver.
  33754. -AR=$lt_AR
  33755. -AR_FLAGS=$lt_AR_FLAGS
  33756. -# A C compiler.
  33757. -LTCC=$lt_LTCC
  33758. -# LTCC compiler flags.
  33759. -LTCFLAGS=$lt_LTCFLAGS
  33760. -# A language-specific compiler.
  33761. -CC=$lt_compiler_RC
  33762. -# Is the compiler the GNU C compiler?
  33763. -with_gcc=$GCC_RC
  33764. -# An ERE matcher.
  33765. -EGREP=$lt_EGREP
  33766. -# The linker used to build libraries.
  33767. -LD=$lt_LD_RC
  33768. -# Whether we need hard or soft links.
  33769. -LN_S=$lt_LN_S
  33770. -# A BSD-compatible nm program.
  33771. -NM=$lt_NM
  33772. -# A symbol stripping program
  33773. -STRIP=$lt_STRIP
  33774. -# Used to examine libraries when file_magic_cmd begins "file"
  33775. -MAGIC_CMD=$MAGIC_CMD
  33776. -# Used on cygwin: DLL creation program.
  33777. -DLLTOOL="$DLLTOOL"
  33778. -# Used on cygwin: object dumper.
  33779. -OBJDUMP="$OBJDUMP"
  33780. -# Used on cygwin: assembler.
  33781. -AS="$AS"
  33782. -# The name of the directory that contains temporary libtool files.
  33783. -objdir=$objdir
  33784. -# How to create reloadable object files.
  33785. -reload_flag=$lt_reload_flag
  33786. -reload_cmds=$lt_reload_cmds
  33787. -# How to pass a linker flag through the compiler.
  33788. -wl=$lt_lt_prog_compiler_wl_RC
  33789. -# Object file suffix (normally "o").
  33790. -objext="$ac_objext"
  33791. -# Old archive suffix (normally "a").
  33792. -libext="$libext"
  33793. -# Shared library suffix (normally ".so").
  33794. -shrext_cmds='$shrext_cmds'
  33795. -# Executable file suffix (normally "").
  33796. -exeext="$exeext"
  33797. -# Additional compiler flags for building library objects.
  33798. -pic_flag=$lt_lt_prog_compiler_pic_RC
  33799. -pic_mode=$pic_mode
  33800. -# What is the maximum length of a command?
  33801. -max_cmd_len=$lt_cv_sys_max_cmd_len
  33802. -# Does compiler simultaneously support -c and -o options?
  33803. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  33804. -# Must we lock files when doing compilation?
  33805. -need_locks=$lt_need_locks
  33806. -# Do we need the lib prefix for modules?
  33807. -need_lib_prefix=$need_lib_prefix
  33808. -# Do we need a version for libraries?
  33809. -need_version=$need_version
  33810. -# Whether dlopen is supported.
  33811. -dlopen_support=$enable_dlopen
  33812. -# Whether dlopen of programs is supported.
  33813. -dlopen_self=$enable_dlopen_self
  33814. -# Whether dlopen of statically linked programs is supported.
  33815. -dlopen_self_static=$enable_dlopen_self_static
  33816. -# Compiler flag to prevent dynamic linking.
  33817. -link_static_flag=$lt_lt_prog_compiler_static_RC
  33818. -# Compiler flag to turn off builtin functions.
  33819. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  33820. -# Compiler flag to allow reflexive dlopens.
  33821. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  33822. -# Compiler flag to generate shared objects directly from archives.
  33823. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  33824. -# Compiler flag to generate thread-safe objects.
  33825. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  33826. -# Library versioning type.
  33827. -version_type=$version_type
  33828. -# Format of library name prefix.
  33829. -libname_spec=$lt_libname_spec
  33830. -# List of archive names. First name is the real one, the rest are links.
  33831. -# The last name is the one that the linker finds with -lNAME.
  33832. -library_names_spec=$lt_library_names_spec
  33833. -# The coded name of the library, if different from the real name.
  33834. -soname_spec=$lt_soname_spec
  33835. -# Commands used to build and install an old-style archive.
  33836. -RANLIB=$lt_RANLIB
  33837. -old_archive_cmds=$lt_old_archive_cmds_RC
  33838. -old_postinstall_cmds=$lt_old_postinstall_cmds
  33839. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  33840. -# Create an old-style archive from a shared archive.
  33841. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  33842. -# Create a temporary old-style archive to link instead of a shared archive.
  33843. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  33844. -# Commands used to build and install a shared archive.
  33845. -archive_cmds=$lt_archive_cmds_RC
  33846. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  33847. -postinstall_cmds=$lt_postinstall_cmds
  33848. -postuninstall_cmds=$lt_postuninstall_cmds
  33849. -# Commands used to build a loadable module (assumed same as above if empty)
  33850. -module_cmds=$lt_module_cmds_RC
  33851. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  33852. -# Commands to strip libraries.
  33853. -old_striplib=$lt_old_striplib
  33854. -striplib=$lt_striplib
  33855. -# Dependencies to place before the objects being linked to create a
  33856. -# shared library.
  33857. -predep_objects=$lt_predep_objects_RC
  33858. -
  33859. -# Dependencies to place after the objects being linked to create a
  33860. -# shared library.
  33861. -postdep_objects=$lt_postdep_objects_RC
  33862. -
  33863. -# Dependencies to place before the objects being linked to create a
  33864. -# shared library.
  33865. -predeps=$lt_predeps_RC
  33866. -
  33867. -# Dependencies to place after the objects being linked to create a
  33868. -# shared library.
  33869. -postdeps=$lt_postdeps_RC
  33870. -
  33871. -# The directories searched by this compiler when creating a shared
  33872. -# library
  33873. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  33874. -# The library search path used internally by the compiler when linking
  33875. -# a shared library.
  33876. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  33877. -# Method to check whether dependent libraries are shared objects.
  33878. -deplibs_check_method=$lt_deplibs_check_method
  33879. -# Command to use when deplibs_check_method == file_magic.
  33880. -file_magic_cmd=$lt_file_magic_cmd
  33881. -# Flag that allows shared libraries with undefined symbols to be built.
  33882. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  33883. -# Flag that forces no undefined symbols.
  33884. -no_undefined_flag=$lt_no_undefined_flag_RC
  33885. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  33886. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  33887. -# Commands used to finish a libtool library installation in a directory.
  33888. -finish_cmds=$lt_finish_cmds
  33889. +library_names_spec=
  33890. +libname_spec='lib$name'
  33891. +soname_spec=
  33892. +shrext_cmds=".so"
  33893. +postinstall_cmds=
  33894. +postuninstall_cmds=
  33895. +finish_cmds=
  33896. +finish_eval=
  33897. +shlibpath_var=
  33898. +shlibpath_overrides_runpath=unknown
  33899. +version_type=none
  33900. +dynamic_linker="$host_os ld.so"
  33901. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33902. +need_lib_prefix=unknown
  33903. +hardcode_into_libs=no
  33904. +
  33905. +# when you set need_version to no, make sure it does not cause -set_version
  33906. +# flags to be left without arguments
  33907. +need_version=unknown
  33908. +
  33909. +case $host_os in
  33910. +aix3*)
  33911. + version_type=linux
  33912. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  33913. + shlibpath_var=LIBPATH
  33914. +
  33915. + # AIX 3 has no versioning support, so we append a major version to the name.
  33916. + soname_spec='${libname}${release}${shared_ext}$major'
  33917. + ;;
  33918. +
  33919. +aix[4-9]*)
  33920. + version_type=linux
  33921. + need_lib_prefix=no
  33922. + need_version=no
  33923. + hardcode_into_libs=yes
  33924. + if test "$host_cpu" = ia64; then
  33925. + # AIX 5 supports IA64
  33926. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  33927. + shlibpath_var=LD_LIBRARY_PATH
  33928. + else
  33929. + # With GCC up to 2.95.x, collect2 would create an import file
  33930. + # for dependence libraries. The import file would start with
  33931. + # the line `#! .'. This would cause the generated library to
  33932. + # depend on `.', always an invalid library. This was fixed in
  33933. + # development snapshots of GCC prior to 3.0.
  33934. + case $host_os in
  33935. + aix4 | aix4.[01] | aix4.[01].*)
  33936. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33937. + echo ' yes '
  33938. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  33939. + :
  33940. + else
  33941. + can_build_shared=no
  33942. + fi
  33943. + ;;
  33944. + esac
  33945. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  33946. + # soname into executable. Probably we can add versioning support to
  33947. + # collect2, so additional links can be useful in future.
  33948. + if test "$aix_use_runtimelinking" = yes; then
  33949. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  33950. + # instead of lib<name>.a to let people know that these are not
  33951. + # typical AIX shared libraries.
  33952. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33953. + else
  33954. + # We preserve .a as extension for shared libraries through AIX4.2
  33955. + # and later when we are not doing run time linking.
  33956. + library_names_spec='${libname}${release}.a $libname.a'
  33957. + soname_spec='${libname}${release}${shared_ext}$major'
  33958. + fi
  33959. + shlibpath_var=LIBPATH
  33960. + fi
  33961. + ;;
  33962. -# Same as above, but a single script fragment to be evaled but not shown.
  33963. -finish_eval=$lt_finish_eval
  33964. +amigaos*)
  33965. + case $host_cpu in
  33966. + powerpc)
  33967. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  33968. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  33969. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33970. + ;;
  33971. + m68k)
  33972. + library_names_spec='$libname.ixlibrary $libname.a'
  33973. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33974. + 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'
  33975. + ;;
  33976. + esac
  33977. + ;;
  33978. -# Take the output of nm and produce a listing of raw symbols and C names.
  33979. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  33980. +beos*)
  33981. + library_names_spec='${libname}${shared_ext}'
  33982. + dynamic_linker="$host_os ld.so"
  33983. + shlibpath_var=LIBRARY_PATH
  33984. + ;;
  33985. -# Transform the output of nm in a proper C declaration
  33986. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  33987. +bsdi[45]*)
  33988. + version_type=linux
  33989. + need_version=no
  33990. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33991. + soname_spec='${libname}${release}${shared_ext}$major'
  33992. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  33993. + shlibpath_var=LD_LIBRARY_PATH
  33994. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  33995. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  33996. + # the default ld.so.conf also contains /usr/contrib/lib and
  33997. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  33998. + # libtool to hard-code these into programs
  33999. + ;;
  34000. -# Transform the output of nm in a C name address pair
  34001. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34002. +cygwin* | mingw* | pw32* | cegcc*)
  34003. + version_type=windows
  34004. + shrext_cmds=".dll"
  34005. + need_version=no
  34006. + need_lib_prefix=no
  34007. -# This is the shared library runtime path variable.
  34008. -runpath_var=$runpath_var
  34009. + case $GCC,$host_os in
  34010. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  34011. + library_names_spec='$libname.dll.a'
  34012. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  34013. + postinstall_cmds='base_file=`basename \${file}`~
  34014. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  34015. + dldir=$destdir/`dirname \$dlpath`~
  34016. + test -d \$dldir || mkdir -p \$dldir~
  34017. + $install_prog $dir/$dlname \$dldir/$dlname~
  34018. + chmod a+x \$dldir/$dlname~
  34019. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  34020. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  34021. + fi'
  34022. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  34023. + dlpath=$dir/\$dldll~
  34024. + $RM \$dlpath'
  34025. + shlibpath_overrides_runpath=yes
  34026. -# This is the shared library path variable.
  34027. -shlibpath_var=$shlibpath_var
  34028. + case $host_os in
  34029. + cygwin*)
  34030. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  34031. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34032. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  34033. + ;;
  34034. + mingw* | cegcc*)
  34035. + # MinGW DLLs use traditional 'lib' prefix
  34036. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34037. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  34038. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  34039. + # It is most probably a Windows format PATH printed by
  34040. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  34041. + # path with ; separators, and with drive letters. We can handle the
  34042. + # drive letters (cygwin fileutils understands them), so leave them,
  34043. + # especially as we might pass files found there to a mingw objdump,
  34044. + # which wouldn't understand a cygwinified path. Ahh.
  34045. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  34046. + else
  34047. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  34048. + fi
  34049. + ;;
  34050. + pw32*)
  34051. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  34052. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34053. + ;;
  34054. + esac
  34055. + ;;
  34056. -# Is shlibpath searched before the hard-coded library search path?
  34057. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34058. + *)
  34059. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  34060. + ;;
  34061. + esac
  34062. + dynamic_linker='Win32 ld.exe'
  34063. + # FIXME: first we should search . and the directory the executable is in
  34064. + shlibpath_var=PATH
  34065. + ;;
  34066. -# How to hardcode a shared library path into an executable.
  34067. -hardcode_action=$hardcode_action_RC
  34068. +darwin* | rhapsody*)
  34069. + dynamic_linker="$host_os dyld"
  34070. + version_type=darwin
  34071. + need_lib_prefix=no
  34072. + need_version=no
  34073. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  34074. + soname_spec='${libname}${release}${major}$shared_ext'
  34075. + shlibpath_overrides_runpath=yes
  34076. + shlibpath_var=DYLD_LIBRARY_PATH
  34077. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  34078. -# Whether we should hardcode library paths into libraries.
  34079. -hardcode_into_libs=$hardcode_into_libs
  34080. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  34081. + ;;
  34082. -# Flag to hardcode \$libdir into a binary during linking.
  34083. -# This must work even if \$libdir does not exist.
  34084. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  34085. +dgux*)
  34086. + version_type=linux
  34087. + need_lib_prefix=no
  34088. + need_version=no
  34089. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  34090. + soname_spec='${libname}${release}${shared_ext}$major'
  34091. + shlibpath_var=LD_LIBRARY_PATH
  34092. + ;;
  34093. -# If ld is used when linking, flag to hardcode \$libdir into
  34094. -# a binary during linking. This must work even if \$libdir does
  34095. -# not exist.
  34096. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  34097. -
  34098. -# Whether we need a single -rpath flag with a separated argument.
  34099. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  34100. -
  34101. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34102. -# resulting binary.
  34103. -hardcode_direct=$hardcode_direct_RC
  34104. -
  34105. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34106. -# resulting binary.
  34107. -hardcode_minus_L=$hardcode_minus_L_RC
  34108. -
  34109. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34110. -# the resulting binary.
  34111. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  34112. -
  34113. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34114. -# and all subsequent libraries and executables linked against it.
  34115. -hardcode_automatic=$hardcode_automatic_RC
  34116. +freebsd1*)
  34117. + dynamic_linker=no
  34118. + ;;
  34119. -# Variables whose values should be saved in libtool wrapper scripts and
  34120. -# restored at relink time.
  34121. -variables_saved_for_relink="$variables_saved_for_relink"
  34122. +freebsd* | dragonfly*)
  34123. + # DragonFly does not have aout. When/if they implement a new
  34124. + # versioning mechanism, adjust this.
  34125. + if test -x /usr/bin/objformat; then
  34126. + objformat=`/usr/bin/objformat`
  34127. + else
  34128. + case $host_os in
  34129. + freebsd[123]*) objformat=aout ;;
  34130. + *) objformat=elf ;;
  34131. + esac
  34132. + fi
  34133. + version_type=freebsd-$objformat
  34134. + case $version_type in
  34135. + freebsd-elf*)
  34136. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  34137. + need_version=no
  34138. + need_lib_prefix=no
  34139. + ;;
  34140. + freebsd-*)
  34141. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  34142. + need_version=yes
  34143. + ;;
  34144. + esac
  34145. + shlibpath_var=LD_LIBRARY_PATH
  34146. + case $host_os in
  34147. + freebsd2*)
  34148. + shlibpath_overrides_runpath=yes
  34149. + ;;
  34150. + freebsd3.[01]* | freebsdelf3.[01]*)
  34151. + shlibpath_overrides_runpath=yes
  34152. + hardcode_into_libs=yes
  34153. + ;;
  34154. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  34155. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  34156. + shlibpath_overrides_runpath=no
  34157. + hardcode_into_libs=yes
  34158. + ;;
  34159. + *) # from 4.6 on, and DragonFly
  34160. + shlibpath_overrides_runpath=yes
  34161. + hardcode_into_libs=yes
  34162. + ;;
  34163. + esac
  34164. + ;;
  34165. -# Whether libtool must link a program against all its dependency libraries.
  34166. -link_all_deplibs=$link_all_deplibs_RC
  34167. +gnu*)
  34168. + version_type=linux
  34169. + need_lib_prefix=no
  34170. + need_version=no
  34171. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  34172. + soname_spec='${libname}${release}${shared_ext}$major'
  34173. + shlibpath_var=LD_LIBRARY_PATH
  34174. + hardcode_into_libs=yes
  34175. + ;;
  34176. -# Compile-time system search path for libraries
  34177. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34178. +hpux9* | hpux10* | hpux11*)
  34179. + # Give a soname corresponding to the major version so that dld.sl refuses to
  34180. + # link against other versions.
  34181. + version_type=sunos
  34182. + need_lib_prefix=no
  34183. + need_version=no
  34184. + case $host_cpu in
  34185. + ia64*)
  34186. + shrext_cmds='.so'
  34187. + hardcode_into_libs=yes
  34188. + dynamic_linker="$host_os dld.so"
  34189. + shlibpath_var=LD_LIBRARY_PATH
  34190. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  34191. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34192. + soname_spec='${libname}${release}${shared_ext}$major'
  34193. + if test "X$HPUX_IA64_MODE" = X32; then
  34194. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  34195. + else
  34196. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  34197. + fi
  34198. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  34199. + ;;
  34200. + hppa*64*)
  34201. + shrext_cmds='.sl'
  34202. + hardcode_into_libs=yes
  34203. + dynamic_linker="$host_os dld.sl"
  34204. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  34205. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  34206. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34207. + soname_spec='${libname}${release}${shared_ext}$major'
  34208. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  34209. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  34210. + ;;
  34211. + *)
  34212. + shrext_cmds='.sl'
  34213. + dynamic_linker="$host_os dld.sl"
  34214. + shlibpath_var=SHLIB_PATH
  34215. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  34216. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34217. + soname_spec='${libname}${release}${shared_ext}$major'
  34218. + ;;
  34219. + esac
  34220. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  34221. + postinstall_cmds='chmod 555 $lib'
  34222. + ;;
  34223. -# Run-time system search path for libraries
  34224. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34225. +interix[3-9]*)
  34226. + version_type=linux
  34227. + need_lib_prefix=no
  34228. + need_version=no
  34229. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  34230. + soname_spec='${libname}${release}${shared_ext}$major'
  34231. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  34232. + shlibpath_var=LD_LIBRARY_PATH
  34233. + shlibpath_overrides_runpath=no
  34234. + hardcode_into_libs=yes
  34235. + ;;
  34236. -# Fix the shell variable \$srcfile for the compiler.
  34237. -fix_srcfile_path=$lt_fix_srcfile_path
  34238. +irix5* | irix6* | nonstopux*)
  34239. + case $host_os in
  34240. + nonstopux*) version_type=nonstopux ;;
  34241. + *)
  34242. + if test "$lt_cv_prog_gnu_ld" = yes; then
  34243. + version_type=linux
  34244. + else
  34245. + version_type=irix
  34246. + fi ;;
  34247. + esac
  34248. + need_lib_prefix=no
  34249. + need_version=no
  34250. + soname_spec='${libname}${release}${shared_ext}$major'
  34251. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  34252. + case $host_os in
  34253. + irix5* | nonstopux*)
  34254. + libsuff= shlibsuff=
  34255. + ;;
  34256. + *)
  34257. + case $LD in # libtool.m4 will add one of these switches to LD
  34258. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  34259. + libsuff= shlibsuff= libmagic=32-bit;;
  34260. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  34261. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  34262. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  34263. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  34264. + *) libsuff= shlibsuff= libmagic=never-match;;
  34265. + esac
  34266. + ;;
  34267. + esac
  34268. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  34269. + shlibpath_overrides_runpath=no
  34270. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  34271. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  34272. + hardcode_into_libs=yes
  34273. + ;;
  34274. -# Set to yes if exported symbols are required.
  34275. -always_export_symbols=$always_export_symbols_RC
  34276. +# No shared lib support for Linux oldld, aout, or coff.
  34277. +linux*oldld* | linux*aout* | linux*coff*)
  34278. + dynamic_linker=no
  34279. + ;;
  34280. -# The commands to list exported symbols.
  34281. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  34282. +# This must be Linux ELF.
  34283. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  34284. + version_type=linux
  34285. + need_lib_prefix=no
  34286. + need_version=no
  34287. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34288. + soname_spec='${libname}${release}${shared_ext}$major'
  34289. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  34290. + shlibpath_var=LD_LIBRARY_PATH
  34291. + shlibpath_overrides_runpath=no
  34292. + # Some binutils ld are patched to set DT_RUNPATH
  34293. + save_LDFLAGS=$LDFLAGS
  34294. + save_libdir=$libdir
  34295. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  34296. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  34297. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34298. +/* end confdefs.h. */
  34299. -# The commands to extract the exported symbol list from a shared archive.
  34300. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34301. +int
  34302. +main ()
  34303. +{
  34304. -# Symbols that should not be listed in the preloaded symbols.
  34305. -exclude_expsyms=$lt_exclude_expsyms_RC
  34306. + ;
  34307. + return 0;
  34308. +}
  34309. +_ACEOF
  34310. +if ac_fn_cxx_try_link "$LINENO"; then :
  34311. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  34312. + shlibpath_overrides_runpath=yes
  34313. +fi
  34314. +fi
  34315. +rm -f core conftest.err conftest.$ac_objext \
  34316. + conftest$ac_exeext conftest.$ac_ext
  34317. + LDFLAGS=$save_LDFLAGS
  34318. + libdir=$save_libdir
  34319. -# Symbols that must always be exported.
  34320. -include_expsyms=$lt_include_expsyms_RC
  34321. + # This implies no fast_install, which is unacceptable.
  34322. + # Some rework will be needed to allow for fast_install
  34323. + # before this can be enabled.
  34324. + hardcode_into_libs=yes
  34325. -# ### END LIBTOOL TAG CONFIG: $tagname
  34326. + # Append ld.so.conf contents to the search path
  34327. + if test -f /etc/ld.so.conf; then
  34328. + 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' ' '`
  34329. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  34330. + fi
  34331. -__EOF__
  34332. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  34333. + # powerpc, because MkLinux only supported shared libraries with the
  34334. + # GNU dynamic linker. Since this was broken with cross compilers,
  34335. + # most powerpc-linux boxes support dynamic linking these days and
  34336. + # people can always --disable-shared, the test was removed, and we
  34337. + # assume the GNU/Linux dynamic linker is in use.
  34338. + dynamic_linker='GNU/Linux ld.so'
  34339. + ;;
  34340. +netbsdelf*-gnu)
  34341. + version_type=linux
  34342. + need_lib_prefix=no
  34343. + need_version=no
  34344. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  34345. + soname_spec='${libname}${release}${shared_ext}$major'
  34346. + shlibpath_var=LD_LIBRARY_PATH
  34347. + shlibpath_overrides_runpath=no
  34348. + hardcode_into_libs=yes
  34349. + dynamic_linker='NetBSD ld.elf_so'
  34350. + ;;
  34351. -else
  34352. - # If there is no Makefile yet, we rely on a make rule to execute
  34353. - # `config.status --recheck' to rerun these tests and create the
  34354. - # libtool script then.
  34355. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34356. - if test -f "$ltmain_in"; then
  34357. - test -f Makefile && make "$ltmain"
  34358. +netbsd*)
  34359. + version_type=sunos
  34360. + need_lib_prefix=no
  34361. + need_version=no
  34362. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34363. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  34364. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  34365. + dynamic_linker='NetBSD (a.out) ld.so'
  34366. + else
  34367. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  34368. + soname_spec='${libname}${release}${shared_ext}$major'
  34369. + dynamic_linker='NetBSD ld.elf_so'
  34370. fi
  34371. -fi
  34372. -
  34373. + shlibpath_var=LD_LIBRARY_PATH
  34374. + shlibpath_overrides_runpath=yes
  34375. + hardcode_into_libs=yes
  34376. + ;;
  34377. -ac_ext=c
  34378. -ac_cpp='$CPP $CPPFLAGS'
  34379. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34380. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34381. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34382. +newsos6)
  34383. + version_type=linux
  34384. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34385. + shlibpath_var=LD_LIBRARY_PATH
  34386. + shlibpath_overrides_runpath=yes
  34387. + ;;
  34388. -CC="$lt_save_CC"
  34389. +*nto* | *qnx*)
  34390. + version_type=qnx
  34391. + need_lib_prefix=no
  34392. + need_version=no
  34393. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34394. + soname_spec='${libname}${release}${shared_ext}$major'
  34395. + shlibpath_var=LD_LIBRARY_PATH
  34396. + shlibpath_overrides_runpath=no
  34397. + hardcode_into_libs=yes
  34398. + dynamic_linker='ldqnx.so'
  34399. + ;;
  34400. +openbsd*)
  34401. + version_type=sunos
  34402. + sys_lib_dlsearch_path_spec="/usr/lib"
  34403. + need_lib_prefix=no
  34404. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  34405. + case $host_os in
  34406. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  34407. + *) need_version=no ;;
  34408. + esac
  34409. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  34410. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  34411. + shlibpath_var=LD_LIBRARY_PATH
  34412. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34413. + case $host_os in
  34414. + openbsd2.[89] | openbsd2.[89].*)
  34415. + shlibpath_overrides_runpath=no
  34416. ;;
  34417. -
  34418. *)
  34419. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  34420. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  34421. - { (exit 1); exit 1; }; }
  34422. + shlibpath_overrides_runpath=yes
  34423. ;;
  34424. esac
  34425. -
  34426. - # Append the new tag name to the list of available tags.
  34427. - if test -n "$tagname" ; then
  34428. - available_tags="$available_tags $tagname"
  34429. - fi
  34430. - fi
  34431. - done
  34432. - IFS="$lt_save_ifs"
  34433. -
  34434. - # Now substitute the updated list of available tags.
  34435. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  34436. - mv "${ofile}T" "$ofile"
  34437. - chmod +x "$ofile"
  34438. - else
  34439. - rm -f "${ofile}T"
  34440. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  34441. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  34442. - { (exit 1); exit 1; }; }
  34443. + else
  34444. + shlibpath_overrides_runpath=yes
  34445. fi
  34446. -fi
  34447. -
  34448. -
  34449. -
  34450. -# This can be used to rebuild libtool when needed
  34451. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  34452. -
  34453. -# Always use our own libtool.
  34454. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  34455. -
  34456. -# Prevent multiple expansion
  34457. -
  34458. -
  34459. -
  34460. -
  34461. -
  34462. -
  34463. -
  34464. -
  34465. -
  34466. -
  34467. + ;;
  34468. +os2*)
  34469. + libname_spec='$name'
  34470. + shrext_cmds=".dll"
  34471. + need_lib_prefix=no
  34472. + library_names_spec='$libname${shared_ext} $libname.a'
  34473. + dynamic_linker='OS/2 ld.exe'
  34474. + shlibpath_var=LIBPATH
  34475. + ;;
  34476. +osf3* | osf4* | osf5*)
  34477. + version_type=osf
  34478. + need_lib_prefix=no
  34479. + need_version=no
  34480. + soname_spec='${libname}${release}${shared_ext}$major'
  34481. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34482. + shlibpath_var=LD_LIBRARY_PATH
  34483. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  34484. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  34485. + ;;
  34486. +rdos*)
  34487. + dynamic_linker=no
  34488. + ;;
  34489. +solaris*)
  34490. + version_type=linux
  34491. + need_lib_prefix=no
  34492. + need_version=no
  34493. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34494. + soname_spec='${libname}${release}${shared_ext}$major'
  34495. + shlibpath_var=LD_LIBRARY_PATH
  34496. + shlibpath_overrides_runpath=yes
  34497. + hardcode_into_libs=yes
  34498. + # ldd complains unless libraries are executable
  34499. + postinstall_cmds='chmod +x $lib'
  34500. + ;;
  34501. +sunos4*)
  34502. + version_type=sunos
  34503. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  34504. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  34505. + shlibpath_var=LD_LIBRARY_PATH
  34506. + shlibpath_overrides_runpath=yes
  34507. + if test "$with_gnu_ld" = yes; then
  34508. + need_lib_prefix=no
  34509. + fi
  34510. + need_version=yes
  34511. + ;;
  34512. +sysv4 | sysv4.3*)
  34513. + version_type=linux
  34514. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34515. + soname_spec='${libname}${release}${shared_ext}$major'
  34516. + shlibpath_var=LD_LIBRARY_PATH
  34517. + case $host_vendor in
  34518. + sni)
  34519. + shlibpath_overrides_runpath=no
  34520. + need_lib_prefix=no
  34521. + runpath_var=LD_RUN_PATH
  34522. + ;;
  34523. + siemens)
  34524. + need_lib_prefix=no
  34525. + ;;
  34526. + motorola)
  34527. + need_lib_prefix=no
  34528. + need_version=no
  34529. + shlibpath_overrides_runpath=no
  34530. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  34531. + ;;
  34532. + esac
  34533. + ;;
  34534. +sysv4*MP*)
  34535. + if test -d /usr/nec ;then
  34536. + version_type=linux
  34537. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  34538. + soname_spec='$libname${shared_ext}.$major'
  34539. + shlibpath_var=LD_LIBRARY_PATH
  34540. + fi
  34541. + ;;
  34542. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  34543. + version_type=freebsd-elf
  34544. + need_lib_prefix=no
  34545. + need_version=no
  34546. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  34547. + soname_spec='${libname}${release}${shared_ext}$major'
  34548. + shlibpath_var=LD_LIBRARY_PATH
  34549. + shlibpath_overrides_runpath=yes
  34550. + hardcode_into_libs=yes
  34551. + if test "$with_gnu_ld" = yes; then
  34552. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  34553. + else
  34554. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  34555. + case $host_os in
  34556. + sco3.2v5*)
  34557. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  34558. + ;;
  34559. + esac
  34560. + fi
  34561. + sys_lib_dlsearch_path_spec='/usr/lib'
  34562. + ;;
  34563. +tpf*)
  34564. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  34565. + version_type=linux
  34566. + need_lib_prefix=no
  34567. + need_version=no
  34568. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34569. + shlibpath_var=LD_LIBRARY_PATH
  34570. + shlibpath_overrides_runpath=no
  34571. + hardcode_into_libs=yes
  34572. + ;;
  34573. +uts4*)
  34574. + version_type=linux
  34575. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34576. + soname_spec='${libname}${release}${shared_ext}$major'
  34577. + shlibpath_var=LD_LIBRARY_PATH
  34578. + ;;
  34579. +*)
  34580. + dynamic_linker=no
  34581. + ;;
  34582. +esac
  34583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  34584. +$as_echo "$dynamic_linker" >&6; }
  34585. +test "$dynamic_linker" = no && can_build_shared=no
  34586. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  34587. +if test "$GCC" = yes; then
  34588. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  34589. +fi
  34590. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  34591. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  34592. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  34593. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  34594. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34595. -else
  34596. - cat >conftest.make <<\_ACEOF
  34597. -SHELL = /bin/sh
  34598. -all:
  34599. - @echo '@@@%%%=$(MAKE)=@@@%%%'
  34600. -_ACEOF
  34601. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  34602. -case `${MAKE-make} -f conftest.make 2>/dev/null` in
  34603. - *@@@%%%=?*=@@@%%%*)
  34604. - eval ac_cv_prog_make_${ac_make}_set=yes;;
  34605. - *)
  34606. - eval ac_cv_prog_make_${ac_make}_set=no;;
  34607. -esac
  34608. -rm -f conftest.make
  34609. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  34610. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  34611. fi
  34612. -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  34613. - { echo "$as_me:$LINENO: result: yes" >&5
  34614. -echo "${ECHO_T}yes" >&6; }
  34615. - SET_MAKE=
  34616. -else
  34617. - { echo "$as_me:$LINENO: result: no" >&5
  34618. -echo "${ECHO_T}no" >&6; }
  34619. - SET_MAKE="MAKE=${MAKE-make}"
  34620. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  34621. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  34622. fi
  34623. -# Find a good install program. We prefer a C program (faster),
  34624. -# so one script is as good as another. But avoid the broken or
  34625. -# incompatible versions:
  34626. -# SysV /etc/install, /usr/sbin/install
  34627. -# SunOS /usr/etc/install
  34628. -# IRIX /sbin/install
  34629. -# AIX /bin/install
  34630. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  34631. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  34632. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  34633. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  34634. -# OS/2's system install, which has a completely different semantic
  34635. -# ./install, which can be erroneously created by make from ./install.sh.
  34636. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  34637. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  34638. -if test -z "$INSTALL"; then
  34639. -if test "${ac_cv_path_install+set}" = set; then
  34640. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34641. -else
  34642. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34643. -for as_dir in $PATH
  34644. -do
  34645. - IFS=$as_save_IFS
  34646. - test -z "$as_dir" && as_dir=.
  34647. - # Account for people who put trailing slashes in PATH elements.
  34648. -case $as_dir/ in
  34649. - ./ | .// | /cC/* | \
  34650. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  34651. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  34652. - /usr/ucb/* ) ;;
  34653. - *)
  34654. - # OSF1 and SCO ODT 3.0 have their own names for install.
  34655. - # Don't use installbsd from OSF since it installs stuff as root
  34656. - # by default.
  34657. - for ac_prog in ginstall scoinst install; do
  34658. - for ac_exec_ext in '' $ac_executable_extensions; do
  34659. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  34660. - if test $ac_prog = install &&
  34661. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  34662. - # AIX install. It has an incompatible calling convention.
  34663. - :
  34664. - elif test $ac_prog = install &&
  34665. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  34666. - # program-specific install script used by HP pwplus--don't use.
  34667. - :
  34668. - else
  34669. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  34670. - break 3
  34671. - fi
  34672. - fi
  34673. - done
  34674. - done
  34675. - ;;
  34676. -esac
  34677. -done
  34678. -IFS=$as_save_IFS
  34679. -fi
  34680. - if test "${ac_cv_path_install+set}" = set; then
  34681. - INSTALL=$ac_cv_path_install
  34682. - else
  34683. - # As a last resort, use the slow shell script. Don't cache a
  34684. - # value for INSTALL within a source directory, because that will
  34685. - # break other packages using the cache if that directory is
  34686. - # removed, or if the value is a relative name.
  34687. - INSTALL=$ac_install_sh
  34688. - fi
  34689. -fi
  34690. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  34691. -echo "${ECHO_T}$INSTALL" >&6; }
  34692. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  34693. -# It thinks the first close brace ends the variable substitution.
  34694. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  34695. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  34696. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  34697. -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  34698. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  34699. -if test "${ac_cv_c_const+set}" = set; then
  34700. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34701. -else
  34702. - cat >conftest.$ac_ext <<_ACEOF
  34703. -/* confdefs.h. */
  34704. -_ACEOF
  34705. -cat confdefs.h >>conftest.$ac_ext
  34706. -cat >>conftest.$ac_ext <<_ACEOF
  34707. -/* end confdefs.h. */
  34708. -int
  34709. -main ()
  34710. -{
  34711. -/* FIXME: Include the comments suggested by Paul. */
  34712. -#ifndef __cplusplus
  34713. - /* Ultrix mips cc rejects this. */
  34714. - typedef int charset[2];
  34715. - const charset cs;
  34716. - /* SunOS 4.1.1 cc rejects this. */
  34717. - char const *const *pcpcc;
  34718. - char **ppc;
  34719. - /* NEC SVR4.0.2 mips cc rejects this. */
  34720. - struct point {int x, y;};
  34721. - static struct point const zero = {0,0};
  34722. - /* AIX XL C 1.02.0.0 rejects this.
  34723. - It does not let you subtract one const X* pointer from another in
  34724. - an arm of an if-expression whose if-part is not a constant
  34725. - expression */
  34726. - const char *g = "string";
  34727. - pcpcc = &g + (g ? g-g : 0);
  34728. - /* HPUX 7.0 cc rejects these. */
  34729. - ++pcpcc;
  34730. - ppc = (char**) pcpcc;
  34731. - pcpcc = (char const *const *) ppc;
  34732. - { /* SCO 3.2v4 cc rejects this. */
  34733. - char *t;
  34734. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  34735. - *t++ = 0;
  34736. - if (s) return 0;
  34737. - }
  34738. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  34739. - int x[] = {25, 17};
  34740. - const int *foo = &x[0];
  34741. - ++foo;
  34742. - }
  34743. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  34744. - typedef const int *iptr;
  34745. - iptr p = 0;
  34746. - ++p;
  34747. - }
  34748. - { /* AIX XL C 1.02.0.0 rejects this saying
  34749. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  34750. - struct s { int j; const int *ap[3]; };
  34751. - struct s *b; b->j = 5;
  34752. - }
  34753. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  34754. - const int foo = 10;
  34755. - if (!foo) return 0;
  34756. - }
  34757. - return !cs[0] && !zero.x;
  34758. -#endif
  34759. - ;
  34760. - return 0;
  34761. -}
  34762. -_ACEOF
  34763. -rm -f conftest.$ac_objext
  34764. -if { (ac_try="$ac_compile"
  34765. -case "(($ac_try" in
  34766. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34767. - *) ac_try_echo=$ac_try;;
  34768. -esac
  34769. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34770. - (eval "$ac_compile") 2>conftest.er1
  34771. - ac_status=$?
  34772. - grep -v '^ *+' conftest.er1 >conftest.err
  34773. - rm -f conftest.er1
  34774. - cat conftest.err >&5
  34775. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34776. - (exit $ac_status); } && {
  34777. - test -z "$ac_c_werror_flag" ||
  34778. - test ! -s conftest.err
  34779. - } && test -s conftest.$ac_objext; then
  34780. - ac_cv_c_const=yes
  34781. -else
  34782. - echo "$as_me: failed program was:" >&5
  34783. -sed 's/^/| /' conftest.$ac_ext >&5
  34784. - ac_cv_c_const=no
  34785. -fi
  34786. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34787. -fi
  34788. -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  34789. -echo "${ECHO_T}$ac_cv_c_const" >&6; }
  34790. -if test $ac_cv_c_const = no; then
  34791. -cat >>confdefs.h <<\_ACEOF
  34792. -#define const
  34793. -_ACEOF
  34794. -fi
  34795. -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  34796. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  34797. -if test "${ac_cv_c_bigendian+set}" = set; then
  34798. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34799. -else
  34800. - # See if sys/param.h defines the BYTE_ORDER macro.
  34801. -cat >conftest.$ac_ext <<_ACEOF
  34802. -/* confdefs.h. */
  34803. -_ACEOF
  34804. -cat confdefs.h >>conftest.$ac_ext
  34805. -cat >>conftest.$ac_ext <<_ACEOF
  34806. -/* end confdefs.h. */
  34807. -#include <sys/types.h>
  34808. -#include <sys/param.h>
  34809. -int
  34810. -main ()
  34811. -{
  34812. -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  34813. - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  34814. - bogus endian macros
  34815. -#endif
  34816. - ;
  34817. - return 0;
  34818. -}
  34819. -_ACEOF
  34820. -rm -f conftest.$ac_objext
  34821. -if { (ac_try="$ac_compile"
  34822. -case "(($ac_try" in
  34823. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34824. - *) ac_try_echo=$ac_try;;
  34825. -esac
  34826. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34827. - (eval "$ac_compile") 2>conftest.er1
  34828. - ac_status=$?
  34829. - grep -v '^ *+' conftest.er1 >conftest.err
  34830. - rm -f conftest.er1
  34831. - cat conftest.err >&5
  34832. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34833. - (exit $ac_status); } && {
  34834. - test -z "$ac_c_werror_flag" ||
  34835. - test ! -s conftest.err
  34836. - } && test -s conftest.$ac_objext; then
  34837. - # It does; now see whether it defined to BIG_ENDIAN or not.
  34838. -cat >conftest.$ac_ext <<_ACEOF
  34839. -/* confdefs.h. */
  34840. -_ACEOF
  34841. -cat confdefs.h >>conftest.$ac_ext
  34842. -cat >>conftest.$ac_ext <<_ACEOF
  34843. -/* end confdefs.h. */
  34844. -#include <sys/types.h>
  34845. -#include <sys/param.h>
  34846. -int
  34847. -main ()
  34848. -{
  34849. -#if BYTE_ORDER != BIG_ENDIAN
  34850. - not big endian
  34851. -#endif
  34852. - ;
  34853. - return 0;
  34854. -}
  34855. -_ACEOF
  34856. -rm -f conftest.$ac_objext
  34857. -if { (ac_try="$ac_compile"
  34858. -case "(($ac_try" in
  34859. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34860. - *) ac_try_echo=$ac_try;;
  34861. -esac
  34862. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34863. - (eval "$ac_compile") 2>conftest.er1
  34864. - ac_status=$?
  34865. - grep -v '^ *+' conftest.er1 >conftest.err
  34866. - rm -f conftest.er1
  34867. - cat conftest.err >&5
  34868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34869. - (exit $ac_status); } && {
  34870. - test -z "$ac_c_werror_flag" ||
  34871. - test ! -s conftest.err
  34872. - } && test -s conftest.$ac_objext; then
  34873. - ac_cv_c_bigendian=yes
  34874. -else
  34875. - echo "$as_me: failed program was:" >&5
  34876. -sed 's/^/| /' conftest.$ac_ext >&5
  34877. - ac_cv_c_bigendian=no
  34878. -fi
  34879. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34880. -else
  34881. - echo "$as_me: failed program was:" >&5
  34882. -sed 's/^/| /' conftest.$ac_ext >&5
  34883. - # It does not; compile a test program.
  34884. -if test "$cross_compiling" = yes; then
  34885. - # try to guess the endianness by grepping values into an object file
  34886. - ac_cv_c_bigendian=unknown
  34887. - cat >conftest.$ac_ext <<_ACEOF
  34888. -/* confdefs.h. */
  34889. -_ACEOF
  34890. -cat confdefs.h >>conftest.$ac_ext
  34891. -cat >>conftest.$ac_ext <<_ACEOF
  34892. -/* end confdefs.h. */
  34893. -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  34894. -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  34895. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  34896. -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  34897. -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  34898. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  34899. -int
  34900. -main ()
  34901. -{
  34902. - _ascii (); _ebcdic ();
  34903. - ;
  34904. - return 0;
  34905. -}
  34906. -_ACEOF
  34907. -rm -f conftest.$ac_objext
  34908. -if { (ac_try="$ac_compile"
  34909. -case "(($ac_try" in
  34910. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34911. - *) ac_try_echo=$ac_try;;
  34912. -esac
  34913. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34914. - (eval "$ac_compile") 2>conftest.er1
  34915. - ac_status=$?
  34916. - grep -v '^ *+' conftest.er1 >conftest.err
  34917. - rm -f conftest.er1
  34918. - cat conftest.err >&5
  34919. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34920. - (exit $ac_status); } && {
  34921. - test -z "$ac_c_werror_flag" ||
  34922. - test ! -s conftest.err
  34923. - } && test -s conftest.$ac_objext; then
  34924. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  34925. - ac_cv_c_bigendian=yes
  34926. -fi
  34927. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  34928. - if test "$ac_cv_c_bigendian" = unknown; then
  34929. - ac_cv_c_bigendian=no
  34930. - else
  34931. - # finding both strings is unlikely to happen, but who knows?
  34932. - ac_cv_c_bigendian=unknown
  34933. - fi
  34934. -fi
  34935. -else
  34936. - echo "$as_me: failed program was:" >&5
  34937. -sed 's/^/| /' conftest.$ac_ext >&5
  34938. -fi
  34939. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34940. -else
  34941. - cat >conftest.$ac_ext <<_ACEOF
  34942. -/* confdefs.h. */
  34943. -_ACEOF
  34944. -cat confdefs.h >>conftest.$ac_ext
  34945. -cat >>conftest.$ac_ext <<_ACEOF
  34946. -/* end confdefs.h. */
  34947. -$ac_includes_default
  34948. -int
  34949. -main ()
  34950. -{
  34951. - /* Are we little or big endian? From Harbison&Steele. */
  34952. - union
  34953. - {
  34954. - long int l;
  34955. - char c[sizeof (long int)];
  34956. - } u;
  34957. - u.l = 1;
  34958. - return u.c[sizeof (long int) - 1] == 1;
  34959. - ;
  34960. - return 0;
  34961. -}
  34962. -_ACEOF
  34963. -rm -f conftest$ac_exeext
  34964. -if { (ac_try="$ac_link"
  34965. -case "(($ac_try" in
  34966. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34967. - *) ac_try_echo=$ac_try;;
  34968. -esac
  34969. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34970. - (eval "$ac_link") 2>&5
  34971. - ac_status=$?
  34972. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34973. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  34974. - { (case "(($ac_try" in
  34975. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34976. - *) ac_try_echo=$ac_try;;
  34977. -esac
  34978. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34979. - (eval "$ac_try") 2>&5
  34980. - ac_status=$?
  34981. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34982. - (exit $ac_status); }; }; then
  34983. - ac_cv_c_bigendian=no
  34984. -else
  34985. - echo "$as_me: program exited with status $ac_status" >&5
  34986. -echo "$as_me: failed program was:" >&5
  34987. -sed 's/^/| /' conftest.$ac_ext >&5
  34988. -( exit $ac_status )
  34989. -ac_cv_c_bigendian=yes
  34990. -fi
  34991. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  34992. -fi
  34993. -fi
  34994. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34995. -fi
  34996. -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  34997. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  34998. -case $ac_cv_c_bigendian in
  34999. - yes)
  35000. -cat >>confdefs.h <<\_ACEOF
  35001. -#define WORDS_BIGENDIAN 1
  35002. -_ACEOF
  35003. - ;;
  35004. - no)
  35005. - ;;
  35006. - *)
  35007. - { { echo "$as_me:$LINENO: error: unknown endianness
  35008. -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  35009. -echo "$as_me: error: unknown endianness
  35010. -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  35011. - { (exit 1); exit 1; }; } ;;
  35012. -esac
  35013. -{ echo "$as_me:$LINENO: checking for inline" >&5
  35014. -echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  35015. -if test "${ac_cv_c_inline+set}" = set; then
  35016. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35017. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  35018. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  35019. +hardcode_action_CXX=
  35020. +if test -n "$hardcode_libdir_flag_spec_CXX" ||
  35021. + test -n "$runpath_var_CXX" ||
  35022. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  35023. +
  35024. + # We can hardcode non-existent directories.
  35025. + if test "$hardcode_direct_CXX" != no &&
  35026. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  35027. + # have to relink, otherwise we might link with an installed library
  35028. + # when we should be linking with a yet-to-be-installed one
  35029. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  35030. + test "$hardcode_minus_L_CXX" != no; then
  35031. + # Linking always hardcodes the temporary library directory.
  35032. + hardcode_action_CXX=relink
  35033. + else
  35034. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  35035. + hardcode_action_CXX=immediate
  35036. + fi
  35037. else
  35038. - ac_cv_c_inline=no
  35039. -for ac_kw in inline __inline__ __inline; do
  35040. - cat >conftest.$ac_ext <<_ACEOF
  35041. -/* confdefs.h. */
  35042. -_ACEOF
  35043. -cat confdefs.h >>conftest.$ac_ext
  35044. -cat >>conftest.$ac_ext <<_ACEOF
  35045. -/* end confdefs.h. */
  35046. -#ifndef __cplusplus
  35047. -typedef int foo_t;
  35048. -static $ac_kw foo_t static_foo () {return 0; }
  35049. -$ac_kw foo_t foo () {return 0; }
  35050. -#endif
  35051. + # We cannot hardcode anything, or else we can only hardcode existing
  35052. + # directories.
  35053. + hardcode_action_CXX=unsupported
  35054. +fi
  35055. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  35056. +$as_echo "$hardcode_action_CXX" >&6; }
  35057. -_ACEOF
  35058. -rm -f conftest.$ac_objext
  35059. -if { (ac_try="$ac_compile"
  35060. -case "(($ac_try" in
  35061. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35062. - *) ac_try_echo=$ac_try;;
  35063. -esac
  35064. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35065. - (eval "$ac_compile") 2>conftest.er1
  35066. - ac_status=$?
  35067. - grep -v '^ *+' conftest.er1 >conftest.err
  35068. - rm -f conftest.er1
  35069. - cat conftest.err >&5
  35070. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35071. - (exit $ac_status); } && {
  35072. - test -z "$ac_c_werror_flag" ||
  35073. - test ! -s conftest.err
  35074. - } && test -s conftest.$ac_objext; then
  35075. - ac_cv_c_inline=$ac_kw
  35076. -else
  35077. - echo "$as_me: failed program was:" >&5
  35078. -sed 's/^/| /' conftest.$ac_ext >&5
  35079. +if test "$hardcode_action_CXX" = relink ||
  35080. + test "$inherit_rpath_CXX" = yes; then
  35081. + # Fast installation is not supported
  35082. + enable_fast_install=no
  35083. +elif test "$shlibpath_overrides_runpath" = yes ||
  35084. + test "$enable_shared" = no; then
  35085. + # Fast installation is not necessary
  35086. + enable_fast_install=needless
  35087. +fi
  35088. -fi
  35089. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35090. - test "$ac_cv_c_inline" != no && break
  35091. -done
  35092. -fi
  35093. -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  35094. -echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  35095. -case $ac_cv_c_inline in
  35096. - inline | yes) ;;
  35097. - *)
  35098. - case $ac_cv_c_inline in
  35099. - no) ac_val=;;
  35100. - *) ac_val=$ac_cv_c_inline;;
  35101. - esac
  35102. - cat >>confdefs.h <<_ACEOF
  35103. -#ifndef __cplusplus
  35104. -#define inline $ac_val
  35105. -#endif
  35106. -_ACEOF
  35107. - ;;
  35108. -esac
  35109. + fi # test -n "$compiler"
  35110. + CC=$lt_save_CC
  35111. + LDCXX=$LD
  35112. + LD=$lt_save_LD
  35113. + GCC=$lt_save_GCC
  35114. + with_gnu_ld=$lt_save_with_gnu_ld
  35115. + lt_cv_path_LDCXX=$lt_cv_path_LD
  35116. + lt_cv_path_LD=$lt_save_path_LD
  35117. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  35118. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  35119. +fi # test "$_lt_caught_CXX_error" != yes
  35120. -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  35121. -# for constant arguments. Useless!
  35122. -{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
  35123. -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  35124. -if test "${ac_cv_working_alloca_h+set}" = set; then
  35125. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35126. -else
  35127. - cat >conftest.$ac_ext <<_ACEOF
  35128. -/* confdefs.h. */
  35129. -_ACEOF
  35130. -cat confdefs.h >>conftest.$ac_ext
  35131. -cat >>conftest.$ac_ext <<_ACEOF
  35132. -/* end confdefs.h. */
  35133. -#include <alloca.h>
  35134. -int
  35135. -main ()
  35136. -{
  35137. -char *p = (char *) alloca (2 * sizeof (int));
  35138. - if (p) return 0;
  35139. - ;
  35140. - return 0;
  35141. -}
  35142. -_ACEOF
  35143. -rm -f conftest.$ac_objext conftest$ac_exeext
  35144. -if { (ac_try="$ac_link"
  35145. -case "(($ac_try" in
  35146. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35147. - *) ac_try_echo=$ac_try;;
  35148. -esac
  35149. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35150. - (eval "$ac_link") 2>conftest.er1
  35151. - ac_status=$?
  35152. - grep -v '^ *+' conftest.er1 >conftest.err
  35153. - rm -f conftest.er1
  35154. - cat conftest.err >&5
  35155. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35156. - (exit $ac_status); } && {
  35157. - test -z "$ac_c_werror_flag" ||
  35158. - test ! -s conftest.err
  35159. - } && test -s conftest$ac_exeext &&
  35160. - $as_test_x conftest$ac_exeext; then
  35161. - ac_cv_working_alloca_h=yes
  35162. -else
  35163. - echo "$as_me: failed program was:" >&5
  35164. -sed 's/^/| /' conftest.$ac_ext >&5
  35165. +ac_ext=c
  35166. +ac_cpp='$CPP $CPPFLAGS'
  35167. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35168. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35169. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35170. - ac_cv_working_alloca_h=no
  35171. -fi
  35172. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35173. - conftest$ac_exeext conftest.$ac_ext
  35174. -fi
  35175. -{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  35176. -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  35177. -if test $ac_cv_working_alloca_h = yes; then
  35178. -cat >>confdefs.h <<\_ACEOF
  35179. -#define HAVE_ALLOCA_H 1
  35180. -_ACEOF
  35181. -fi
  35182. -{ echo "$as_me:$LINENO: checking for alloca" >&5
  35183. -echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  35184. -if test "${ac_cv_func_alloca_works+set}" = set; then
  35185. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35186. -else
  35187. - cat >conftest.$ac_ext <<_ACEOF
  35188. -/* confdefs.h. */
  35189. -_ACEOF
  35190. -cat confdefs.h >>conftest.$ac_ext
  35191. -cat >>conftest.$ac_ext <<_ACEOF
  35192. -/* end confdefs.h. */
  35193. -#ifdef __GNUC__
  35194. -# define alloca __builtin_alloca
  35195. -#else
  35196. -# ifdef _MSC_VER
  35197. -# include <malloc.h>
  35198. -# define alloca _alloca
  35199. -# else
  35200. -# ifdef HAVE_ALLOCA_H
  35201. -# include <alloca.h>
  35202. -# else
  35203. -# ifdef _AIX
  35204. - #pragma alloca
  35205. -# else
  35206. -# ifndef alloca /* predefined by HP cc +Olibcalls */
  35207. -char *alloca ();
  35208. -# endif
  35209. -# endif
  35210. -# endif
  35211. -# endif
  35212. -#endif
  35213. -int
  35214. -main ()
  35215. -{
  35216. -char *p = (char *) alloca (1);
  35217. - if (p) return 0;
  35218. - ;
  35219. - return 0;
  35220. -}
  35221. -_ACEOF
  35222. -rm -f conftest.$ac_objext conftest$ac_exeext
  35223. -if { (ac_try="$ac_link"
  35224. -case "(($ac_try" in
  35225. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35226. - *) ac_try_echo=$ac_try;;
  35227. -esac
  35228. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35229. - (eval "$ac_link") 2>conftest.er1
  35230. - ac_status=$?
  35231. - grep -v '^ *+' conftest.er1 >conftest.err
  35232. - rm -f conftest.er1
  35233. - cat conftest.err >&5
  35234. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35235. - (exit $ac_status); } && {
  35236. - test -z "$ac_c_werror_flag" ||
  35237. - test ! -s conftest.err
  35238. - } && test -s conftest$ac_exeext &&
  35239. - $as_test_x conftest$ac_exeext; then
  35240. - ac_cv_func_alloca_works=yes
  35241. -else
  35242. - echo "$as_me: failed program was:" >&5
  35243. -sed 's/^/| /' conftest.$ac_ext >&5
  35244. - ac_cv_func_alloca_works=no
  35245. -fi
  35246. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35247. - conftest$ac_exeext conftest.$ac_ext
  35248. -fi
  35249. -{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  35250. -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  35251. -if test $ac_cv_func_alloca_works = yes; then
  35252. -cat >>confdefs.h <<\_ACEOF
  35253. -#define HAVE_ALLOCA 1
  35254. -_ACEOF
  35255. -else
  35256. - # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  35257. -# that cause trouble. Some versions do not even contain alloca or
  35258. -# contain a buggy version. If you still want to use their alloca,
  35259. -# use ar to extract alloca.o from them instead of compiling alloca.c.
  35260. -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  35261. -cat >>confdefs.h <<\_ACEOF
  35262. -#define C_ALLOCA 1
  35263. -_ACEOF
  35264. + ac_config_commands="$ac_config_commands libtool"
  35265. -{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  35266. -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  35267. -if test "${ac_cv_os_cray+set}" = set; then
  35268. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35269. -else
  35270. - cat >conftest.$ac_ext <<_ACEOF
  35271. -/* confdefs.h. */
  35272. -_ACEOF
  35273. -cat confdefs.h >>conftest.$ac_ext
  35274. -cat >>conftest.$ac_ext <<_ACEOF
  35275. -/* end confdefs.h. */
  35276. -#if defined CRAY && ! defined CRAY2
  35277. -webecray
  35278. -#else
  35279. -wenotbecray
  35280. -#endif
  35281. -_ACEOF
  35282. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35283. - $EGREP "webecray" >/dev/null 2>&1; then
  35284. - ac_cv_os_cray=yes
  35285. -else
  35286. - ac_cv_os_cray=no
  35287. -fi
  35288. -rm -f conftest*
  35289. -fi
  35290. -{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  35291. -echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  35292. -if test $ac_cv_os_cray = yes; then
  35293. - for ac_func in _getb67 GETB67 getb67; do
  35294. - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  35295. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  35296. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  35297. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  35298. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35299. -else
  35300. - cat >conftest.$ac_ext <<_ACEOF
  35301. -/* confdefs.h. */
  35302. -_ACEOF
  35303. -cat confdefs.h >>conftest.$ac_ext
  35304. -cat >>conftest.$ac_ext <<_ACEOF
  35305. -/* end confdefs.h. */
  35306. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  35307. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  35308. -#define $ac_func innocuous_$ac_func
  35309. +# Only expand once:
  35310. -/* System header to define __stub macros and hopefully few prototypes,
  35311. - which can conflict with char $ac_func (); below.
  35312. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35313. - <limits.h> exists even on freestanding compilers. */
  35314. -#ifdef __STDC__
  35315. -# include <limits.h>
  35316. -#else
  35317. -# include <assert.h>
  35318. -#endif
  35319. -#undef $ac_func
  35320. -/* Override any GCC internal prototype to avoid an error.
  35321. - Use char because int might match the return type of a GCC
  35322. - builtin and then its argument prototype would still apply. */
  35323. -#ifdef __cplusplus
  35324. -extern "C"
  35325. -#endif
  35326. -char $ac_func ();
  35327. -/* The GNU C library defines this for functions which it implements
  35328. - to always fail with ENOSYS. Some functions are actually named
  35329. - something starting with __ and the normal name is an alias. */
  35330. -#if defined __stub_$ac_func || defined __stub___$ac_func
  35331. -choke me
  35332. -#endif
  35333. -int
  35334. -main ()
  35335. -{
  35336. -return $ac_func ();
  35337. - ;
  35338. - return 0;
  35339. -}
  35340. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  35341. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  35342. +set x ${MAKE-make}
  35343. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  35344. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  35345. + $as_echo_n "(cached) " >&6
  35346. +else
  35347. + cat >conftest.make <<\_ACEOF
  35348. +SHELL = /bin/sh
  35349. +all:
  35350. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  35351. _ACEOF
  35352. -rm -f conftest.$ac_objext conftest$ac_exeext
  35353. -if { (ac_try="$ac_link"
  35354. -case "(($ac_try" in
  35355. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35356. - *) ac_try_echo=$ac_try;;
  35357. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  35358. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  35359. + *@@@%%%=?*=@@@%%%*)
  35360. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  35361. + *)
  35362. + eval ac_cv_prog_make_${ac_make}_set=no;;
  35363. esac
  35364. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35365. - (eval "$ac_link") 2>conftest.er1
  35366. - ac_status=$?
  35367. - grep -v '^ *+' conftest.er1 >conftest.err
  35368. - rm -f conftest.er1
  35369. - cat conftest.err >&5
  35370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35371. - (exit $ac_status); } && {
  35372. - test -z "$ac_c_werror_flag" ||
  35373. - test ! -s conftest.err
  35374. - } && test -s conftest$ac_exeext &&
  35375. - $as_test_x conftest$ac_exeext; then
  35376. - eval "$as_ac_var=yes"
  35377. -else
  35378. - echo "$as_me: failed program was:" >&5
  35379. -sed 's/^/| /' conftest.$ac_ext >&5
  35380. -
  35381. - eval "$as_ac_var=no"
  35382. +rm -f conftest.make
  35383. +fi
  35384. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  35385. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35386. +$as_echo "yes" >&6; }
  35387. + SET_MAKE=
  35388. +else
  35389. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35390. +$as_echo "no" >&6; }
  35391. + SET_MAKE="MAKE=${MAKE-make}"
  35392. fi
  35393. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35394. - conftest$ac_exeext conftest.$ac_ext
  35395. -fi
  35396. -ac_res=`eval echo '${'$as_ac_var'}'`
  35397. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  35398. -echo "${ECHO_T}$ac_res" >&6; }
  35399. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  35400. -cat >>confdefs.h <<_ACEOF
  35401. -#define CRAY_STACKSEG_END $ac_func
  35402. -_ACEOF
  35403. - break
  35404. -fi
  35405. - done
  35406. -fi
  35407. -{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  35408. -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  35409. -if test "${ac_cv_c_stack_direction+set}" = set; then
  35410. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35411. -else
  35412. - if test "$cross_compiling" = yes; then
  35413. - ac_cv_c_stack_direction=0
  35414. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  35415. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  35416. +if test "${ac_cv_c_const+set}" = set; then :
  35417. + $as_echo_n "(cached) " >&6
  35418. else
  35419. - cat >conftest.$ac_ext <<_ACEOF
  35420. -/* confdefs.h. */
  35421. -_ACEOF
  35422. -cat confdefs.h >>conftest.$ac_ext
  35423. -cat >>conftest.$ac_ext <<_ACEOF
  35424. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35425. /* end confdefs.h. */
  35426. -$ac_includes_default
  35427. -int
  35428. -find_stack_direction ()
  35429. -{
  35430. - static char *addr = 0;
  35431. - auto char dummy;
  35432. - if (addr == 0)
  35433. - {
  35434. - addr = &dummy;
  35435. - return find_stack_direction ();
  35436. - }
  35437. - else
  35438. - return (&dummy > addr) ? 1 : -1;
  35439. -}
  35440. int
  35441. main ()
  35442. {
  35443. - return find_stack_direction () < 0;
  35444. +/* FIXME: Include the comments suggested by Paul. */
  35445. +#ifndef __cplusplus
  35446. + /* Ultrix mips cc rejects this. */
  35447. + typedef int charset[2];
  35448. + const charset cs;
  35449. + /* SunOS 4.1.1 cc rejects this. */
  35450. + char const *const *pcpcc;
  35451. + char **ppc;
  35452. + /* NEC SVR4.0.2 mips cc rejects this. */
  35453. + struct point {int x, y;};
  35454. + static struct point const zero = {0,0};
  35455. + /* AIX XL C 1.02.0.0 rejects this.
  35456. + It does not let you subtract one const X* pointer from another in
  35457. + an arm of an if-expression whose if-part is not a constant
  35458. + expression */
  35459. + const char *g = "string";
  35460. + pcpcc = &g + (g ? g-g : 0);
  35461. + /* HPUX 7.0 cc rejects these. */
  35462. + ++pcpcc;
  35463. + ppc = (char**) pcpcc;
  35464. + pcpcc = (char const *const *) ppc;
  35465. + { /* SCO 3.2v4 cc rejects this. */
  35466. + char *t;
  35467. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  35468. +
  35469. + *t++ = 0;
  35470. + if (s) return 0;
  35471. + }
  35472. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  35473. + int x[] = {25, 17};
  35474. + const int *foo = &x[0];
  35475. + ++foo;
  35476. + }
  35477. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  35478. + typedef const int *iptr;
  35479. + iptr p = 0;
  35480. + ++p;
  35481. + }
  35482. + { /* AIX XL C 1.02.0.0 rejects this saying
  35483. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  35484. + struct s { int j; const int *ap[3]; };
  35485. + struct s *b; b->j = 5;
  35486. + }
  35487. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  35488. + const int foo = 10;
  35489. + if (!foo) return 0;
  35490. + }
  35491. + return !cs[0] && !zero.x;
  35492. +#endif
  35493. +
  35494. + ;
  35495. + return 0;
  35496. }
  35497. _ACEOF
  35498. -rm -f conftest$ac_exeext
  35499. -if { (ac_try="$ac_link"
  35500. -case "(($ac_try" in
  35501. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35502. - *) ac_try_echo=$ac_try;;
  35503. -esac
  35504. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35505. - (eval "$ac_link") 2>&5
  35506. - ac_status=$?
  35507. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35508. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  35509. - { (case "(($ac_try" in
  35510. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35511. - *) ac_try_echo=$ac_try;;
  35512. -esac
  35513. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35514. - (eval "$ac_try") 2>&5
  35515. - ac_status=$?
  35516. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35517. - (exit $ac_status); }; }; then
  35518. - ac_cv_c_stack_direction=1
  35519. +if ac_fn_c_try_compile "$LINENO"; then :
  35520. + ac_cv_c_const=yes
  35521. else
  35522. - echo "$as_me: program exited with status $ac_status" >&5
  35523. -echo "$as_me: failed program was:" >&5
  35524. -sed 's/^/| /' conftest.$ac_ext >&5
  35525. -
  35526. -( exit $ac_status )
  35527. -ac_cv_c_stack_direction=-1
  35528. + ac_cv_c_const=no
  35529. fi
  35530. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  35531. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35532. fi
  35533. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  35534. +$as_echo "$ac_cv_c_const" >&6; }
  35535. +if test $ac_cv_c_const = no; then
  35536. +$as_echo "#define const /**/" >>confdefs.h
  35537. fi
  35538. -{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  35539. -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  35540. -
  35541. -cat >>confdefs.h <<_ACEOF
  35542. -#define STACK_DIRECTION $ac_cv_c_stack_direction
  35543. -_ACEOF
  35544. -
  35545. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  35546. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  35547. +if test "${ac_cv_c_bigendian+set}" = set; then :
  35548. + $as_echo_n "(cached) " >&6
  35549. +else
  35550. + ac_cv_c_bigendian=unknown
  35551. + # See if we're dealing with a universal compiler.
  35552. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35553. +/* end confdefs.h. */
  35554. +#ifndef __APPLE_CC__
  35555. + not a universal capable compiler
  35556. + #endif
  35557. + typedef int dummy;
  35558. +
  35559. +_ACEOF
  35560. +if ac_fn_c_try_compile "$LINENO"; then :
  35561. +
  35562. + # Check for potential -arch flags. It is not universal unless
  35563. + # there are at least two -arch flags with different values.
  35564. + ac_arch=
  35565. + ac_prev=
  35566. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  35567. + if test -n "$ac_prev"; then
  35568. + case $ac_word in
  35569. + i?86 | x86_64 | ppc | ppc64)
  35570. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  35571. + ac_arch=$ac_word
  35572. + else
  35573. + ac_cv_c_bigendian=universal
  35574. + break
  35575. + fi
  35576. + ;;
  35577. + esac
  35578. + ac_prev=
  35579. + elif test "x$ac_word" = "x-arch"; then
  35580. + ac_prev=arch
  35581. + fi
  35582. + done
  35583. fi
  35584. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35585. + if test $ac_cv_c_bigendian = unknown; then
  35586. + # See if sys/param.h defines the BYTE_ORDER macro.
  35587. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35588. +/* end confdefs.h. */
  35589. +#include <sys/types.h>
  35590. + #include <sys/param.h>
  35591. +int
  35592. +main ()
  35593. +{
  35594. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  35595. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  35596. + && LITTLE_ENDIAN)
  35597. + bogus endian macros
  35598. + #endif
  35599. -
  35600. -
  35601. -
  35602. -
  35603. -for ac_func in setenv putenv fchown fchmod gethostbyname2
  35604. -do
  35605. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  35606. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  35607. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  35608. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  35609. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35610. -else
  35611. - cat >conftest.$ac_ext <<_ACEOF
  35612. -/* confdefs.h. */
  35613. + ;
  35614. + return 0;
  35615. +}
  35616. _ACEOF
  35617. -cat confdefs.h >>conftest.$ac_ext
  35618. -cat >>conftest.$ac_ext <<_ACEOF
  35619. +if ac_fn_c_try_compile "$LINENO"; then :
  35620. + # It does; now see whether it defined to BIG_ENDIAN or not.
  35621. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35622. /* end confdefs.h. */
  35623. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  35624. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  35625. -#define $ac_func innocuous_$ac_func
  35626. -
  35627. -/* System header to define __stub macros and hopefully few prototypes,
  35628. - which can conflict with char $ac_func (); below.
  35629. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35630. - <limits.h> exists even on freestanding compilers. */
  35631. -
  35632. -#ifdef __STDC__
  35633. -# include <limits.h>
  35634. -#else
  35635. -# include <assert.h>
  35636. -#endif
  35637. -
  35638. -#undef $ac_func
  35639. -
  35640. -/* Override any GCC internal prototype to avoid an error.
  35641. - Use char because int might match the return type of a GCC
  35642. - builtin and then its argument prototype would still apply. */
  35643. -#ifdef __cplusplus
  35644. -extern "C"
  35645. -#endif
  35646. -char $ac_func ();
  35647. -/* The GNU C library defines this for functions which it implements
  35648. - to always fail with ENOSYS. Some functions are actually named
  35649. - something starting with __ and the normal name is an alias. */
  35650. -#if defined __stub_$ac_func || defined __stub___$ac_func
  35651. -choke me
  35652. -#endif
  35653. +#include <sys/types.h>
  35654. + #include <sys/param.h>
  35655. int
  35656. main ()
  35657. {
  35658. -return $ac_func ();
  35659. +#if BYTE_ORDER != BIG_ENDIAN
  35660. + not big endian
  35661. + #endif
  35662. +
  35663. ;
  35664. return 0;
  35665. }
  35666. _ACEOF
  35667. -rm -f conftest.$ac_objext conftest$ac_exeext
  35668. -if { (ac_try="$ac_link"
  35669. -case "(($ac_try" in
  35670. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35671. - *) ac_try_echo=$ac_try;;
  35672. -esac
  35673. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35674. - (eval "$ac_link") 2>conftest.er1
  35675. - ac_status=$?
  35676. - grep -v '^ *+' conftest.er1 >conftest.err
  35677. - rm -f conftest.er1
  35678. - cat conftest.err >&5
  35679. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35680. - (exit $ac_status); } && {
  35681. - test -z "$ac_c_werror_flag" ||
  35682. - test ! -s conftest.err
  35683. - } && test -s conftest$ac_exeext &&
  35684. - $as_test_x conftest$ac_exeext; then
  35685. - eval "$as_ac_var=yes"
  35686. +if ac_fn_c_try_compile "$LINENO"; then :
  35687. + ac_cv_c_bigendian=yes
  35688. else
  35689. - echo "$as_me: failed program was:" >&5
  35690. -sed 's/^/| /' conftest.$ac_ext >&5
  35691. -
  35692. - eval "$as_ac_var=no"
  35693. + ac_cv_c_bigendian=no
  35694. fi
  35695. -
  35696. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35697. - conftest$ac_exeext conftest.$ac_ext
  35698. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35699. fi
  35700. -ac_res=`eval echo '${'$as_ac_var'}'`
  35701. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  35702. -echo "${ECHO_T}$ac_res" >&6; }
  35703. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  35704. - cat >>confdefs.h <<_ACEOF
  35705. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  35706. -_ACEOF
  35707. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35708. + fi
  35709. + if test $ac_cv_c_bigendian = unknown; then
  35710. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  35711. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35712. +/* end confdefs.h. */
  35713. +#include <limits.h>
  35714. -fi
  35715. -done
  35716. +int
  35717. +main ()
  35718. +{
  35719. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  35720. + bogus endian macros
  35721. + #endif
  35722. -{ echo "$as_me:$LINENO: checking for connect" >&5
  35723. -echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
  35724. -if test "${ac_cv_func_connect+set}" = set; then
  35725. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35726. -else
  35727. - cat >conftest.$ac_ext <<_ACEOF
  35728. -/* confdefs.h. */
  35729. + ;
  35730. + return 0;
  35731. +}
  35732. _ACEOF
  35733. -cat confdefs.h >>conftest.$ac_ext
  35734. -cat >>conftest.$ac_ext <<_ACEOF
  35735. +if ac_fn_c_try_compile "$LINENO"; then :
  35736. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  35737. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35738. /* end confdefs.h. */
  35739. -/* Define connect to an innocuous variant, in case <limits.h> declares connect.
  35740. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  35741. -#define connect innocuous_connect
  35742. -
  35743. -/* System header to define __stub macros and hopefully few prototypes,
  35744. - which can conflict with char connect (); below.
  35745. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35746. - <limits.h> exists even on freestanding compilers. */
  35747. -
  35748. -#ifdef __STDC__
  35749. -# include <limits.h>
  35750. -#else
  35751. -# include <assert.h>
  35752. -#endif
  35753. -
  35754. -#undef connect
  35755. -
  35756. -/* Override any GCC internal prototype to avoid an error.
  35757. - Use char because int might match the return type of a GCC
  35758. - builtin and then its argument prototype would still apply. */
  35759. -#ifdef __cplusplus
  35760. -extern "C"
  35761. -#endif
  35762. -char connect ();
  35763. -/* The GNU C library defines this for functions which it implements
  35764. - to always fail with ENOSYS. Some functions are actually named
  35765. - something starting with __ and the normal name is an alias. */
  35766. -#if defined __stub_connect || defined __stub___connect
  35767. -choke me
  35768. -#endif
  35769. +#include <limits.h>
  35770. int
  35771. main ()
  35772. {
  35773. -return connect ();
  35774. +#ifndef _BIG_ENDIAN
  35775. + not big endian
  35776. + #endif
  35777. +
  35778. ;
  35779. return 0;
  35780. }
  35781. _ACEOF
  35782. -rm -f conftest.$ac_objext conftest$ac_exeext
  35783. -if { (ac_try="$ac_link"
  35784. -case "(($ac_try" in
  35785. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35786. - *) ac_try_echo=$ac_try;;
  35787. -esac
  35788. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35789. - (eval "$ac_link") 2>conftest.er1
  35790. - ac_status=$?
  35791. - grep -v '^ *+' conftest.er1 >conftest.err
  35792. - rm -f conftest.er1
  35793. - cat conftest.err >&5
  35794. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35795. - (exit $ac_status); } && {
  35796. - test -z "$ac_c_werror_flag" ||
  35797. - test ! -s conftest.err
  35798. - } && test -s conftest$ac_exeext &&
  35799. - $as_test_x conftest$ac_exeext; then
  35800. - ac_cv_func_connect=yes
  35801. +if ac_fn_c_try_compile "$LINENO"; then :
  35802. + ac_cv_c_bigendian=yes
  35803. else
  35804. - echo "$as_me: failed program was:" >&5
  35805. -sed 's/^/| /' conftest.$ac_ext >&5
  35806. -
  35807. - ac_cv_func_connect=no
  35808. + ac_cv_c_bigendian=no
  35809. fi
  35810. -
  35811. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35812. - conftest$ac_exeext conftest.$ac_ext
  35813. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35814. fi
  35815. -{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  35816. -echo "${ECHO_T}$ac_cv_func_connect" >&6; }
  35817. -if test $ac_cv_func_connect = yes; then
  35818. - :
  35819. -else
  35820. -
  35821. -{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  35822. -echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
  35823. -if test "${ac_cv_lib_socket_connect+set}" = set; then
  35824. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35825. -else
  35826. - ac_check_lib_save_LIBS=$LIBS
  35827. -LIBS="-lsocket $LIBS"
  35828. -cat >conftest.$ac_ext <<_ACEOF
  35829. -/* confdefs.h. */
  35830. -_ACEOF
  35831. -cat confdefs.h >>conftest.$ac_ext
  35832. -cat >>conftest.$ac_ext <<_ACEOF
  35833. -/* end confdefs.h. */
  35834. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35835. + fi
  35836. + if test $ac_cv_c_bigendian = unknown; then
  35837. + # Compile a test program.
  35838. + if test "$cross_compiling" = yes; then :
  35839. + # Try to guess by grepping values from an object file.
  35840. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35841. +/* end confdefs.h. */
  35842. +short int ascii_mm[] =
  35843. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  35844. + short int ascii_ii[] =
  35845. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  35846. + int use_ascii (int i) {
  35847. + return ascii_mm[i] + ascii_ii[i];
  35848. + }
  35849. + short int ebcdic_ii[] =
  35850. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  35851. + short int ebcdic_mm[] =
  35852. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  35853. + int use_ebcdic (int i) {
  35854. + return ebcdic_mm[i] + ebcdic_ii[i];
  35855. + }
  35856. + extern int foo;
  35857. -/* Override any GCC internal prototype to avoid an error.
  35858. - Use char because int might match the return type of a GCC
  35859. - builtin and then its argument prototype would still apply. */
  35860. -#ifdef __cplusplus
  35861. -extern "C"
  35862. -#endif
  35863. -char connect ();
  35864. int
  35865. main ()
  35866. {
  35867. -return connect ();
  35868. +return use_ascii (foo) == use_ebcdic (foo);
  35869. ;
  35870. return 0;
  35871. }
  35872. _ACEOF
  35873. -rm -f conftest.$ac_objext conftest$ac_exeext
  35874. -if { (ac_try="$ac_link"
  35875. -case "(($ac_try" in
  35876. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35877. - *) ac_try_echo=$ac_try;;
  35878. -esac
  35879. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35880. - (eval "$ac_link") 2>conftest.er1
  35881. - ac_status=$?
  35882. - grep -v '^ *+' conftest.er1 >conftest.err
  35883. - rm -f conftest.er1
  35884. - cat conftest.err >&5
  35885. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35886. - (exit $ac_status); } && {
  35887. - test -z "$ac_c_werror_flag" ||
  35888. - test ! -s conftest.err
  35889. - } && test -s conftest$ac_exeext &&
  35890. - $as_test_x conftest$ac_exeext; then
  35891. - ac_cv_lib_socket_connect=yes
  35892. +if ac_fn_c_try_compile "$LINENO"; then :
  35893. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  35894. + ac_cv_c_bigendian=yes
  35895. + fi
  35896. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  35897. + if test "$ac_cv_c_bigendian" = unknown; then
  35898. + ac_cv_c_bigendian=no
  35899. + else
  35900. + # finding both strings is unlikely to happen, but who knows?
  35901. + ac_cv_c_bigendian=unknown
  35902. + fi
  35903. + fi
  35904. +fi
  35905. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35906. else
  35907. - echo "$as_me: failed program was:" >&5
  35908. -sed 's/^/| /' conftest.$ac_ext >&5
  35909. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35910. +/* end confdefs.h. */
  35911. +$ac_includes_default
  35912. +int
  35913. +main ()
  35914. +{
  35915. - ac_cv_lib_socket_connect=no
  35916. -fi
  35917. + /* Are we little or big endian? From Harbison&Steele. */
  35918. + union
  35919. + {
  35920. + long int l;
  35921. + char c[sizeof (long int)];
  35922. + } u;
  35923. + u.l = 1;
  35924. + return u.c[sizeof (long int) - 1] == 1;
  35925. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35926. - conftest$ac_exeext conftest.$ac_ext
  35927. -LIBS=$ac_check_lib_save_LIBS
  35928. -fi
  35929. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  35930. -echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
  35931. -if test $ac_cv_lib_socket_connect = yes; then
  35932. - cat >>confdefs.h <<_ACEOF
  35933. -#define HAVE_LIBSOCKET 1
  35934. + ;
  35935. + return 0;
  35936. +}
  35937. _ACEOF
  35938. -
  35939. - LIBS="-lsocket $LIBS"
  35940. -
  35941. +if ac_fn_c_try_run "$LINENO"; then :
  35942. + ac_cv_c_bigendian=no
  35943. +else
  35944. + ac_cv_c_bigendian=yes
  35945. +fi
  35946. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35947. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  35948. fi
  35949. + fi
  35950. fi
  35951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  35952. +$as_echo "$ac_cv_c_bigendian" >&6; }
  35953. + case $ac_cv_c_bigendian in #(
  35954. + yes)
  35955. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  35956. +;; #(
  35957. + no)
  35958. + ;; #(
  35959. + universal)
  35960. +
  35961. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  35962. -{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
  35963. -echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
  35964. -if test "${ac_cv_func_gethostbyname+set}" = set; then
  35965. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35966. + ;; #(
  35967. + *)
  35968. + as_fn_error "unknown endianness
  35969. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  35970. + esac
  35971. +
  35972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  35973. +$as_echo_n "checking for inline... " >&6; }
  35974. +if test "${ac_cv_c_inline+set}" = set; then :
  35975. + $as_echo_n "(cached) " >&6
  35976. else
  35977. - cat >conftest.$ac_ext <<_ACEOF
  35978. -/* confdefs.h. */
  35979. -_ACEOF
  35980. -cat confdefs.h >>conftest.$ac_ext
  35981. -cat >>conftest.$ac_ext <<_ACEOF
  35982. + ac_cv_c_inline=no
  35983. +for ac_kw in inline __inline__ __inline; do
  35984. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35985. /* end confdefs.h. */
  35986. -/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  35987. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  35988. -#define gethostbyname innocuous_gethostbyname
  35989. +#ifndef __cplusplus
  35990. +typedef int foo_t;
  35991. +static $ac_kw foo_t static_foo () {return 0; }
  35992. +$ac_kw foo_t foo () {return 0; }
  35993. +#endif
  35994. -/* System header to define __stub macros and hopefully few prototypes,
  35995. - which can conflict with char gethostbyname (); below.
  35996. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35997. - <limits.h> exists even on freestanding compilers. */
  35998. +_ACEOF
  35999. +if ac_fn_c_try_compile "$LINENO"; then :
  36000. + ac_cv_c_inline=$ac_kw
  36001. +fi
  36002. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36003. + test "$ac_cv_c_inline" != no && break
  36004. +done
  36005. -#ifdef __STDC__
  36006. -# include <limits.h>
  36007. -#else
  36008. -# include <assert.h>
  36009. +fi
  36010. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  36011. +$as_echo "$ac_cv_c_inline" >&6; }
  36012. +
  36013. +case $ac_cv_c_inline in
  36014. + inline | yes) ;;
  36015. + *)
  36016. + case $ac_cv_c_inline in
  36017. + no) ac_val=;;
  36018. + *) ac_val=$ac_cv_c_inline;;
  36019. + esac
  36020. + cat >>confdefs.h <<_ACEOF
  36021. +#ifndef __cplusplus
  36022. +#define inline $ac_val
  36023. #endif
  36024. +_ACEOF
  36025. + ;;
  36026. +esac
  36027. -#undef gethostbyname
  36028. -/* Override any GCC internal prototype to avoid an error.
  36029. - Use char because int might match the return type of a GCC
  36030. - builtin and then its argument prototype would still apply. */
  36031. -#ifdef __cplusplus
  36032. -extern "C"
  36033. -#endif
  36034. -char gethostbyname ();
  36035. -/* The GNU C library defines this for functions which it implements
  36036. - to always fail with ENOSYS. Some functions are actually named
  36037. - something starting with __ and the normal name is an alias. */
  36038. -#if defined __stub_gethostbyname || defined __stub___gethostbyname
  36039. -choke me
  36040. -#endif
  36041. +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  36042. +# for constant arguments. Useless!
  36043. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  36044. +$as_echo_n "checking for working alloca.h... " >&6; }
  36045. +if test "${ac_cv_working_alloca_h+set}" = set; then :
  36046. + $as_echo_n "(cached) " >&6
  36047. +else
  36048. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36049. +/* end confdefs.h. */
  36050. +#include <alloca.h>
  36051. int
  36052. main ()
  36053. {
  36054. -return gethostbyname ();
  36055. +char *p = (char *) alloca (2 * sizeof (int));
  36056. + if (p) return 0;
  36057. ;
  36058. return 0;
  36059. }
  36060. _ACEOF
  36061. -rm -f conftest.$ac_objext conftest$ac_exeext
  36062. -if { (ac_try="$ac_link"
  36063. -case "(($ac_try" in
  36064. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36065. - *) ac_try_echo=$ac_try;;
  36066. -esac
  36067. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36068. - (eval "$ac_link") 2>conftest.er1
  36069. - ac_status=$?
  36070. - grep -v '^ *+' conftest.er1 >conftest.err
  36071. - rm -f conftest.er1
  36072. - cat conftest.err >&5
  36073. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36074. - (exit $ac_status); } && {
  36075. - test -z "$ac_c_werror_flag" ||
  36076. - test ! -s conftest.err
  36077. - } && test -s conftest$ac_exeext &&
  36078. - $as_test_x conftest$ac_exeext; then
  36079. - ac_cv_func_gethostbyname=yes
  36080. +if ac_fn_c_try_link "$LINENO"; then :
  36081. + ac_cv_working_alloca_h=yes
  36082. else
  36083. - echo "$as_me: failed program was:" >&5
  36084. -sed 's/^/| /' conftest.$ac_ext >&5
  36085. -
  36086. - ac_cv_func_gethostbyname=no
  36087. + ac_cv_working_alloca_h=no
  36088. +fi
  36089. +rm -f core conftest.err conftest.$ac_objext \
  36090. + conftest$ac_exeext conftest.$ac_ext
  36091. fi
  36092. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  36093. +$as_echo "$ac_cv_working_alloca_h" >&6; }
  36094. +if test $ac_cv_working_alloca_h = yes; then
  36095. +
  36096. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  36097. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36098. - conftest$ac_exeext conftest.$ac_ext
  36099. fi
  36100. -{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  36101. -echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
  36102. -if test $ac_cv_func_gethostbyname = yes; then
  36103. - :
  36104. -else
  36105. -{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  36106. -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  36107. -if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  36108. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  36110. +$as_echo_n "checking for alloca... " >&6; }
  36111. +if test "${ac_cv_func_alloca_works+set}" = set; then :
  36112. + $as_echo_n "(cached) " >&6
  36113. else
  36114. - ac_check_lib_save_LIBS=$LIBS
  36115. -LIBS="-lnsl $LIBS"
  36116. -cat >conftest.$ac_ext <<_ACEOF
  36117. -/* confdefs.h. */
  36118. -_ACEOF
  36119. -cat confdefs.h >>conftest.$ac_ext
  36120. -cat >>conftest.$ac_ext <<_ACEOF
  36121. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36122. /* end confdefs.h. */
  36123. -
  36124. -/* Override any GCC internal prototype to avoid an error.
  36125. - Use char because int might match the return type of a GCC
  36126. - builtin and then its argument prototype would still apply. */
  36127. -#ifdef __cplusplus
  36128. -extern "C"
  36129. +#ifdef __GNUC__
  36130. +# define alloca __builtin_alloca
  36131. +#else
  36132. +# ifdef _MSC_VER
  36133. +# include <malloc.h>
  36134. +# define alloca _alloca
  36135. +# else
  36136. +# ifdef HAVE_ALLOCA_H
  36137. +# include <alloca.h>
  36138. +# else
  36139. +# ifdef _AIX
  36140. + #pragma alloca
  36141. +# else
  36142. +# ifndef alloca /* predefined by HP cc +Olibcalls */
  36143. +char *alloca ();
  36144. +# endif
  36145. +# endif
  36146. +# endif
  36147. +# endif
  36148. #endif
  36149. -char gethostbyname ();
  36150. +
  36151. int
  36152. main ()
  36153. {
  36154. -return gethostbyname ();
  36155. +char *p = (char *) alloca (1);
  36156. + if (p) return 0;
  36157. ;
  36158. return 0;
  36159. }
  36160. _ACEOF
  36161. -rm -f conftest.$ac_objext conftest$ac_exeext
  36162. -if { (ac_try="$ac_link"
  36163. -case "(($ac_try" in
  36164. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36165. - *) ac_try_echo=$ac_try;;
  36166. -esac
  36167. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36168. - (eval "$ac_link") 2>conftest.er1
  36169. - ac_status=$?
  36170. - grep -v '^ *+' conftest.er1 >conftest.err
  36171. - rm -f conftest.er1
  36172. - cat conftest.err >&5
  36173. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36174. - (exit $ac_status); } && {
  36175. - test -z "$ac_c_werror_flag" ||
  36176. - test ! -s conftest.err
  36177. - } && test -s conftest$ac_exeext &&
  36178. - $as_test_x conftest$ac_exeext; then
  36179. - ac_cv_lib_nsl_gethostbyname=yes
  36180. +if ac_fn_c_try_link "$LINENO"; then :
  36181. + ac_cv_func_alloca_works=yes
  36182. else
  36183. - echo "$as_me: failed program was:" >&5
  36184. -sed 's/^/| /' conftest.$ac_ext >&5
  36185. -
  36186. - ac_cv_lib_nsl_gethostbyname=no
  36187. + ac_cv_func_alloca_works=no
  36188. fi
  36189. -
  36190. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36191. - conftest$ac_exeext conftest.$ac_ext
  36192. -LIBS=$ac_check_lib_save_LIBS
  36193. +rm -f core conftest.err conftest.$ac_objext \
  36194. + conftest$ac_exeext conftest.$ac_ext
  36195. fi
  36196. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  36197. -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  36198. -if test $ac_cv_lib_nsl_gethostbyname = yes; then
  36199. - cat >>confdefs.h <<_ACEOF
  36200. -#define HAVE_LIBNSL 1
  36201. -_ACEOF
  36202. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  36203. +$as_echo "$ac_cv_func_alloca_works" >&6; }
  36204. - LIBS="-lnsl $LIBS"
  36205. -
  36206. -fi
  36207. +if test $ac_cv_func_alloca_works = yes; then
  36208. -fi
  36209. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  36210. -{ echo "$as_me:$LINENO: checking for hstrerror" >&5
  36211. -echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
  36212. -if test "${ac_cv_func_hstrerror+set}" = set; then
  36213. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36214. else
  36215. - cat >conftest.$ac_ext <<_ACEOF
  36216. -/* confdefs.h. */
  36217. -_ACEOF
  36218. -cat confdefs.h >>conftest.$ac_ext
  36219. -cat >>conftest.$ac_ext <<_ACEOF
  36220. -/* end confdefs.h. */
  36221. -/* Define hstrerror to an innocuous variant, in case <limits.h> declares hstrerror.
  36222. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36223. -#define hstrerror innocuous_hstrerror
  36224. + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  36225. +# that cause trouble. Some versions do not even contain alloca or
  36226. +# contain a buggy version. If you still want to use their alloca,
  36227. +# use ar to extract alloca.o from them instead of compiling alloca.c.
  36228. -/* System header to define __stub macros and hopefully few prototypes,
  36229. - which can conflict with char hstrerror (); below.
  36230. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36231. - <limits.h> exists even on freestanding compilers. */
  36232. +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  36233. -#ifdef __STDC__
  36234. -# include <limits.h>
  36235. -#else
  36236. -# include <assert.h>
  36237. -#endif
  36238. +$as_echo "#define C_ALLOCA 1" >>confdefs.h
  36239. -#undef hstrerror
  36240. -/* Override any GCC internal prototype to avoid an error.
  36241. - Use char because int might match the return type of a GCC
  36242. - builtin and then its argument prototype would still apply. */
  36243. -#ifdef __cplusplus
  36244. -extern "C"
  36245. -#endif
  36246. -char hstrerror ();
  36247. -/* The GNU C library defines this for functions which it implements
  36248. - to always fail with ENOSYS. Some functions are actually named
  36249. - something starting with __ and the normal name is an alias. */
  36250. -#if defined __stub_hstrerror || defined __stub___hstrerror
  36251. -choke me
  36252. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  36253. +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  36254. +if test "${ac_cv_os_cray+set}" = set; then :
  36255. + $as_echo_n "(cached) " >&6
  36256. +else
  36257. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36258. +/* end confdefs.h. */
  36259. +#if defined CRAY && ! defined CRAY2
  36260. +webecray
  36261. +#else
  36262. +wenotbecray
  36263. #endif
  36264. -int
  36265. -main ()
  36266. -{
  36267. -return hstrerror ();
  36268. - ;
  36269. - return 0;
  36270. -}
  36271. _ACEOF
  36272. -rm -f conftest.$ac_objext conftest$ac_exeext
  36273. -if { (ac_try="$ac_link"
  36274. -case "(($ac_try" in
  36275. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36276. - *) ac_try_echo=$ac_try;;
  36277. -esac
  36278. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36279. - (eval "$ac_link") 2>conftest.er1
  36280. - ac_status=$?
  36281. - grep -v '^ *+' conftest.er1 >conftest.err
  36282. - rm -f conftest.er1
  36283. - cat conftest.err >&5
  36284. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36285. - (exit $ac_status); } && {
  36286. - test -z "$ac_c_werror_flag" ||
  36287. - test ! -s conftest.err
  36288. - } && test -s conftest$ac_exeext &&
  36289. - $as_test_x conftest$ac_exeext; then
  36290. - ac_cv_func_hstrerror=yes
  36291. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36292. + $EGREP "webecray" >/dev/null 2>&1; then :
  36293. + ac_cv_os_cray=yes
  36294. else
  36295. - echo "$as_me: failed program was:" >&5
  36296. -sed 's/^/| /' conftest.$ac_ext >&5
  36297. + ac_cv_os_cray=no
  36298. +fi
  36299. +rm -f conftest*
  36300. +
  36301. +fi
  36302. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  36303. +$as_echo "$ac_cv_os_cray" >&6; }
  36304. +if test $ac_cv_os_cray = yes; then
  36305. + for ac_func in _getb67 GETB67 getb67; do
  36306. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  36307. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  36308. +eval as_val=\$$as_ac_var
  36309. + if test "x$as_val" = x""yes; then :
  36310. +
  36311. +cat >>confdefs.h <<_ACEOF
  36312. +#define CRAY_STACKSEG_END $ac_func
  36313. +_ACEOF
  36314. - ac_cv_func_hstrerror=no
  36315. + break
  36316. fi
  36317. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36318. - conftest$ac_exeext conftest.$ac_ext
  36319. + done
  36320. fi
  36321. -{ echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror" >&5
  36322. -echo "${ECHO_T}$ac_cv_func_hstrerror" >&6; }
  36323. -if test $ac_cv_func_hstrerror = yes; then
  36324. - :
  36325. -else
  36326. -{ echo "$as_me:$LINENO: checking for hstrerror in -lresolv" >&5
  36327. -echo $ECHO_N "checking for hstrerror in -lresolv... $ECHO_C" >&6; }
  36328. -if test "${ac_cv_lib_resolv_hstrerror+set}" = set; then
  36329. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  36331. +$as_echo_n "checking stack direction for C alloca... " >&6; }
  36332. +if test "${ac_cv_c_stack_direction+set}" = set; then :
  36333. + $as_echo_n "(cached) " >&6
  36334. else
  36335. - ac_check_lib_save_LIBS=$LIBS
  36336. -LIBS="-lresolv $LIBS"
  36337. -cat >conftest.$ac_ext <<_ACEOF
  36338. -/* confdefs.h. */
  36339. -_ACEOF
  36340. -cat confdefs.h >>conftest.$ac_ext
  36341. -cat >>conftest.$ac_ext <<_ACEOF
  36342. + if test "$cross_compiling" = yes; then :
  36343. + ac_cv_c_stack_direction=0
  36344. +else
  36345. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36346. /* end confdefs.h. */
  36347. +$ac_includes_default
  36348. +int
  36349. +find_stack_direction ()
  36350. +{
  36351. + static char *addr = 0;
  36352. + auto char dummy;
  36353. + if (addr == 0)
  36354. + {
  36355. + addr = &dummy;
  36356. + return find_stack_direction ();
  36357. + }
  36358. + else
  36359. + return (&dummy > addr) ? 1 : -1;
  36360. +}
  36361. -/* Override any GCC internal prototype to avoid an error.
  36362. - Use char because int might match the return type of a GCC
  36363. - builtin and then its argument prototype would still apply. */
  36364. -#ifdef __cplusplus
  36365. -extern "C"
  36366. -#endif
  36367. -char hstrerror ();
  36368. int
  36369. main ()
  36370. {
  36371. -return hstrerror ();
  36372. - ;
  36373. - return 0;
  36374. -}
  36375. -_ACEOF
  36376. -rm -f conftest.$ac_objext conftest$ac_exeext
  36377. -if { (ac_try="$ac_link"
  36378. -case "(($ac_try" in
  36379. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36380. - *) ac_try_echo=$ac_try;;
  36381. -esac
  36382. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36383. - (eval "$ac_link") 2>conftest.er1
  36384. - ac_status=$?
  36385. - grep -v '^ *+' conftest.er1 >conftest.err
  36386. - rm -f conftest.er1
  36387. - cat conftest.err >&5
  36388. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36389. - (exit $ac_status); } && {
  36390. - test -z "$ac_c_werror_flag" ||
  36391. - test ! -s conftest.err
  36392. - } && test -s conftest$ac_exeext &&
  36393. - $as_test_x conftest$ac_exeext; then
  36394. - ac_cv_lib_resolv_hstrerror=yes
  36395. + return find_stack_direction () < 0;
  36396. +}
  36397. +_ACEOF
  36398. +if ac_fn_c_try_run "$LINENO"; then :
  36399. + ac_cv_c_stack_direction=1
  36400. else
  36401. - echo "$as_me: failed program was:" >&5
  36402. -sed 's/^/| /' conftest.$ac_ext >&5
  36403. -
  36404. - ac_cv_lib_resolv_hstrerror=no
  36405. + ac_cv_c_stack_direction=-1
  36406. +fi
  36407. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  36408. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  36409. fi
  36410. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36411. - conftest$ac_exeext conftest.$ac_ext
  36412. -LIBS=$ac_check_lib_save_LIBS
  36413. fi
  36414. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_hstrerror" >&5
  36415. -echo "${ECHO_T}$ac_cv_lib_resolv_hstrerror" >&6; }
  36416. -if test $ac_cv_lib_resolv_hstrerror = yes; then
  36417. - cat >>confdefs.h <<_ACEOF
  36418. -#define HAVE_LIBRESOLV 1
  36419. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  36420. +$as_echo "$ac_cv_c_stack_direction" >&6; }
  36421. +cat >>confdefs.h <<_ACEOF
  36422. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  36423. _ACEOF
  36424. - LIBS="-lresolv $LIBS"
  36425. -
  36426. -fi
  36427. fi
  36428. -{ echo "$as_me:$LINENO: checking for nanosleep" >&5
  36429. -echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
  36430. -if test "${ac_cv_func_nanosleep+set}" = set; then
  36431. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36432. -else
  36433. - cat >conftest.$ac_ext <<_ACEOF
  36434. -/* confdefs.h. */
  36435. +for ac_func in setenv putenv fchown fchmod gethostbyname2
  36436. +do :
  36437. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  36438. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  36439. +eval as_val=\$$as_ac_var
  36440. + if test "x$as_val" = x""yes; then :
  36441. + cat >>confdefs.h <<_ACEOF
  36442. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  36443. _ACEOF
  36444. -cat confdefs.h >>conftest.$ac_ext
  36445. -cat >>conftest.$ac_ext <<_ACEOF
  36446. -/* end confdefs.h. */
  36447. -/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
  36448. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36449. -#define nanosleep innocuous_nanosleep
  36450. -/* System header to define __stub macros and hopefully few prototypes,
  36451. - which can conflict with char nanosleep (); below.
  36452. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36453. - <limits.h> exists even on freestanding compilers. */
  36454. +fi
  36455. +done
  36456. -#ifdef __STDC__
  36457. -# include <limits.h>
  36458. -#else
  36459. -# include <assert.h>
  36460. -#endif
  36461. +ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  36462. +if test "x$ac_cv_func_connect" = x""yes; then :
  36463. -#undef nanosleep
  36464. +else
  36465. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  36466. +$as_echo_n "checking for connect in -lsocket... " >&6; }
  36467. +if test "${ac_cv_lib_socket_connect+set}" = set; then :
  36468. + $as_echo_n "(cached) " >&6
  36469. +else
  36470. + ac_check_lib_save_LIBS=$LIBS
  36471. +LIBS="-lsocket $LIBS"
  36472. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36473. +/* end confdefs.h. */
  36474. /* Override any GCC internal prototype to avoid an error.
  36475. Use char because int might match the return type of a GCC
  36476. @@ -21620,70 +15398,49 @@
  36477. #ifdef __cplusplus
  36478. extern "C"
  36479. #endif
  36480. -char nanosleep ();
  36481. -/* The GNU C library defines this for functions which it implements
  36482. - to always fail with ENOSYS. Some functions are actually named
  36483. - something starting with __ and the normal name is an alias. */
  36484. -#if defined __stub_nanosleep || defined __stub___nanosleep
  36485. -choke me
  36486. -#endif
  36487. -
  36488. +char connect ();
  36489. int
  36490. main ()
  36491. {
  36492. -return nanosleep ();
  36493. +return connect ();
  36494. ;
  36495. return 0;
  36496. }
  36497. _ACEOF
  36498. -rm -f conftest.$ac_objext conftest$ac_exeext
  36499. -if { (ac_try="$ac_link"
  36500. -case "(($ac_try" in
  36501. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36502. - *) ac_try_echo=$ac_try;;
  36503. -esac
  36504. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36505. - (eval "$ac_link") 2>conftest.er1
  36506. - ac_status=$?
  36507. - grep -v '^ *+' conftest.er1 >conftest.err
  36508. - rm -f conftest.er1
  36509. - cat conftest.err >&5
  36510. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36511. - (exit $ac_status); } && {
  36512. - test -z "$ac_c_werror_flag" ||
  36513. - test ! -s conftest.err
  36514. - } && test -s conftest$ac_exeext &&
  36515. - $as_test_x conftest$ac_exeext; then
  36516. - ac_cv_func_nanosleep=yes
  36517. +if ac_fn_c_try_link "$LINENO"; then :
  36518. + ac_cv_lib_socket_connect=yes
  36519. else
  36520. - echo "$as_me: failed program was:" >&5
  36521. -sed 's/^/| /' conftest.$ac_ext >&5
  36522. + ac_cv_lib_socket_connect=no
  36523. +fi
  36524. +rm -f core conftest.err conftest.$ac_objext \
  36525. + conftest$ac_exeext conftest.$ac_ext
  36526. +LIBS=$ac_check_lib_save_LIBS
  36527. +fi
  36528. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  36529. +$as_echo "$ac_cv_lib_socket_connect" >&6; }
  36530. +if test "x$ac_cv_lib_socket_connect" = x""yes; then :
  36531. + cat >>confdefs.h <<_ACEOF
  36532. +#define HAVE_LIBSOCKET 1
  36533. +_ACEOF
  36534. +
  36535. + LIBS="-lsocket $LIBS"
  36536. - ac_cv_func_nanosleep=no
  36537. fi
  36538. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36539. - conftest$ac_exeext conftest.$ac_ext
  36540. fi
  36541. -{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
  36542. -echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
  36543. -if test $ac_cv_func_nanosleep = yes; then
  36544. - :
  36545. -else
  36546. +ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  36547. +if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  36548. -{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  36549. -echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
  36550. -if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  36551. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36552. +else
  36553. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  36554. +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  36555. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  36556. + $as_echo_n "(cached) " >&6
  36557. else
  36558. ac_check_lib_save_LIBS=$LIBS
  36559. -LIBS="-lrt $LIBS"
  36560. -cat >conftest.$ac_ext <<_ACEOF
  36561. -/* confdefs.h. */
  36562. -_ACEOF
  36563. -cat confdefs.h >>conftest.$ac_ext
  36564. -cat >>conftest.$ac_ext <<_ACEOF
  36565. +LIBS="-lnsl $LIBS"
  36566. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36567. /* end confdefs.h. */
  36568. /* Override any GCC internal prototype to avoid an error.
  36569. @@ -21692,68 +15449,49 @@
  36570. #ifdef __cplusplus
  36571. extern "C"
  36572. #endif
  36573. -char nanosleep ();
  36574. +char gethostbyname ();
  36575. int
  36576. main ()
  36577. {
  36578. -return nanosleep ();
  36579. +return gethostbyname ();
  36580. ;
  36581. return 0;
  36582. }
  36583. _ACEOF
  36584. -rm -f conftest.$ac_objext conftest$ac_exeext
  36585. -if { (ac_try="$ac_link"
  36586. -case "(($ac_try" in
  36587. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36588. - *) ac_try_echo=$ac_try;;
  36589. -esac
  36590. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36591. - (eval "$ac_link") 2>conftest.er1
  36592. - ac_status=$?
  36593. - grep -v '^ *+' conftest.er1 >conftest.err
  36594. - rm -f conftest.er1
  36595. - cat conftest.err >&5
  36596. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36597. - (exit $ac_status); } && {
  36598. - test -z "$ac_c_werror_flag" ||
  36599. - test ! -s conftest.err
  36600. - } && test -s conftest$ac_exeext &&
  36601. - $as_test_x conftest$ac_exeext; then
  36602. - ac_cv_lib_rt_nanosleep=yes
  36603. +if ac_fn_c_try_link "$LINENO"; then :
  36604. + ac_cv_lib_nsl_gethostbyname=yes
  36605. else
  36606. - echo "$as_me: failed program was:" >&5
  36607. -sed 's/^/| /' conftest.$ac_ext >&5
  36608. -
  36609. - ac_cv_lib_rt_nanosleep=no
  36610. + ac_cv_lib_nsl_gethostbyname=no
  36611. fi
  36612. -
  36613. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36614. - conftest$ac_exeext conftest.$ac_ext
  36615. +rm -f core conftest.err conftest.$ac_objext \
  36616. + conftest$ac_exeext conftest.$ac_ext
  36617. LIBS=$ac_check_lib_save_LIBS
  36618. fi
  36619. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  36620. -echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
  36621. -if test $ac_cv_lib_rt_nanosleep = yes; then
  36622. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  36623. +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  36624. +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  36625. cat >>confdefs.h <<_ACEOF
  36626. -#define HAVE_LIBRT 1
  36627. +#define HAVE_LIBNSL 1
  36628. _ACEOF
  36629. - LIBS="-lrt $LIBS"
  36630. + LIBS="-lnsl $LIBS"
  36631. -else
  36632. +fi
  36633. +
  36634. +fi
  36635. +
  36636. +ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  36637. +if test "x$ac_cv_func_hstrerror" = x""yes; then :
  36638. -{ echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
  36639. -echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
  36640. -if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
  36641. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36642. +else
  36643. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
  36644. +$as_echo_n "checking for hstrerror in -lresolv... " >&6; }
  36645. +if test "${ac_cv_lib_resolv_hstrerror+set}" = set; then :
  36646. + $as_echo_n "(cached) " >&6
  36647. else
  36648. ac_check_lib_save_LIBS=$LIBS
  36649. -LIBS="-lposix4 $LIBS"
  36650. -cat >conftest.$ac_ext <<_ACEOF
  36651. -/* confdefs.h. */
  36652. -_ACEOF
  36653. -cat confdefs.h >>conftest.$ac_ext
  36654. -cat >>conftest.$ac_ext <<_ACEOF
  36655. +LIBS="-lresolv $LIBS"
  36656. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36657. /* end confdefs.h. */
  36658. /* Override any GCC internal prototype to avoid an error.
  36659. @@ -21762,91 +15500,51 @@
  36660. #ifdef __cplusplus
  36661. extern "C"
  36662. #endif
  36663. -char nanosleep ();
  36664. +char hstrerror ();
  36665. int
  36666. main ()
  36667. {
  36668. -return nanosleep ();
  36669. +return hstrerror ();
  36670. ;
  36671. return 0;
  36672. }
  36673. _ACEOF
  36674. -rm -f conftest.$ac_objext conftest$ac_exeext
  36675. -if { (ac_try="$ac_link"
  36676. -case "(($ac_try" in
  36677. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36678. - *) ac_try_echo=$ac_try;;
  36679. -esac
  36680. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36681. - (eval "$ac_link") 2>conftest.er1
  36682. - ac_status=$?
  36683. - grep -v '^ *+' conftest.er1 >conftest.err
  36684. - rm -f conftest.er1
  36685. - cat conftest.err >&5
  36686. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36687. - (exit $ac_status); } && {
  36688. - test -z "$ac_c_werror_flag" ||
  36689. - test ! -s conftest.err
  36690. - } && test -s conftest$ac_exeext &&
  36691. - $as_test_x conftest$ac_exeext; then
  36692. - ac_cv_lib_posix4_nanosleep=yes
  36693. +if ac_fn_c_try_link "$LINENO"; then :
  36694. + ac_cv_lib_resolv_hstrerror=yes
  36695. else
  36696. - echo "$as_me: failed program was:" >&5
  36697. -sed 's/^/| /' conftest.$ac_ext >&5
  36698. -
  36699. - ac_cv_lib_posix4_nanosleep=no
  36700. + ac_cv_lib_resolv_hstrerror=no
  36701. fi
  36702. -
  36703. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36704. - conftest$ac_exeext conftest.$ac_ext
  36705. +rm -f core conftest.err conftest.$ac_objext \
  36706. + conftest$ac_exeext conftest.$ac_ext
  36707. LIBS=$ac_check_lib_save_LIBS
  36708. fi
  36709. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
  36710. -echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
  36711. -if test $ac_cv_lib_posix4_nanosleep = yes; then
  36712. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
  36713. +$as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
  36714. +if test "x$ac_cv_lib_resolv_hstrerror" = x""yes; then :
  36715. cat >>confdefs.h <<_ACEOF
  36716. -#define HAVE_LIBPOSIX4 1
  36717. +#define HAVE_LIBRESOLV 1
  36718. _ACEOF
  36719. - LIBS="-lposix4 $LIBS"
  36720. + LIBS="-lresolv $LIBS"
  36721. fi
  36722. fi
  36723. -fi
  36724. +ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  36725. +if test "x$ac_cv_func_nanosleep" = x""yes; then :
  36726. +else
  36727. -for ac_func in usleep
  36728. -do
  36729. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  36730. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  36731. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  36732. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  36733. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36734. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  36735. +$as_echo_n "checking for nanosleep in -lrt... " >&6; }
  36736. +if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
  36737. + $as_echo_n "(cached) " >&6
  36738. else
  36739. - cat >conftest.$ac_ext <<_ACEOF
  36740. -/* confdefs.h. */
  36741. -_ACEOF
  36742. -cat confdefs.h >>conftest.$ac_ext
  36743. -cat >>conftest.$ac_ext <<_ACEOF
  36744. + ac_check_lib_save_LIBS=$LIBS
  36745. +LIBS="-lrt $LIBS"
  36746. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36747. /* end confdefs.h. */
  36748. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  36749. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36750. -#define $ac_func innocuous_$ac_func
  36751. -
  36752. -/* System header to define __stub macros and hopefully few prototypes,
  36753. - which can conflict with char $ac_func (); below.
  36754. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36755. - <limits.h> exists even on freestanding compilers. */
  36756. -
  36757. -#ifdef __STDC__
  36758. -# include <limits.h>
  36759. -#else
  36760. -# include <assert.h>
  36761. -#endif
  36762. -
  36763. -#undef $ac_func
  36764. /* Override any GCC internal prototype to avoid an error.
  36765. Use char because int might match the return type of a GCC
  36766. @@ -21854,93 +15552,43 @@
  36767. #ifdef __cplusplus
  36768. extern "C"
  36769. #endif
  36770. -char $ac_func ();
  36771. -/* The GNU C library defines this for functions which it implements
  36772. - to always fail with ENOSYS. Some functions are actually named
  36773. - something starting with __ and the normal name is an alias. */
  36774. -#if defined __stub_$ac_func || defined __stub___$ac_func
  36775. -choke me
  36776. -#endif
  36777. -
  36778. +char nanosleep ();
  36779. int
  36780. main ()
  36781. {
  36782. -return $ac_func ();
  36783. +return nanosleep ();
  36784. ;
  36785. return 0;
  36786. }
  36787. _ACEOF
  36788. -rm -f conftest.$ac_objext conftest$ac_exeext
  36789. -if { (ac_try="$ac_link"
  36790. -case "(($ac_try" in
  36791. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36792. - *) ac_try_echo=$ac_try;;
  36793. -esac
  36794. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36795. - (eval "$ac_link") 2>conftest.er1
  36796. - ac_status=$?
  36797. - grep -v '^ *+' conftest.er1 >conftest.err
  36798. - rm -f conftest.er1
  36799. - cat conftest.err >&5
  36800. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36801. - (exit $ac_status); } && {
  36802. - test -z "$ac_c_werror_flag" ||
  36803. - test ! -s conftest.err
  36804. - } && test -s conftest$ac_exeext &&
  36805. - $as_test_x conftest$ac_exeext; then
  36806. - eval "$as_ac_var=yes"
  36807. +if ac_fn_c_try_link "$LINENO"; then :
  36808. + ac_cv_lib_rt_nanosleep=yes
  36809. else
  36810. - echo "$as_me: failed program was:" >&5
  36811. -sed 's/^/| /' conftest.$ac_ext >&5
  36812. -
  36813. - eval "$as_ac_var=no"
  36814. + ac_cv_lib_rt_nanosleep=no
  36815. fi
  36816. -
  36817. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36818. - conftest$ac_exeext conftest.$ac_ext
  36819. +rm -f core conftest.err conftest.$ac_objext \
  36820. + conftest$ac_exeext conftest.$ac_ext
  36821. +LIBS=$ac_check_lib_save_LIBS
  36822. fi
  36823. -ac_res=`eval echo '${'$as_ac_var'}'`
  36824. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  36825. -echo "${ECHO_T}$ac_res" >&6; }
  36826. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  36827. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  36828. +$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  36829. +if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
  36830. cat >>confdefs.h <<_ACEOF
  36831. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  36832. +#define HAVE_LIBRT 1
  36833. _ACEOF
  36834. -fi
  36835. -done
  36836. -
  36837. + LIBS="-lrt $LIBS"
  36838. -for ac_func in strtok_r
  36839. -do
  36840. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  36841. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  36842. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  36843. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  36844. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36845. else
  36846. - cat >conftest.$ac_ext <<_ACEOF
  36847. -/* confdefs.h. */
  36848. -_ACEOF
  36849. -cat confdefs.h >>conftest.$ac_ext
  36850. -cat >>conftest.$ac_ext <<_ACEOF
  36851. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
  36852. +$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
  36853. +if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then :
  36854. + $as_echo_n "(cached) " >&6
  36855. +else
  36856. + ac_check_lib_save_LIBS=$LIBS
  36857. +LIBS="-lposix4 $LIBS"
  36858. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36859. /* end confdefs.h. */
  36860. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  36861. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36862. -#define $ac_func innocuous_$ac_func
  36863. -
  36864. -/* System header to define __stub macros and hopefully few prototypes,
  36865. - which can conflict with char $ac_func (); below.
  36866. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36867. - <limits.h> exists even on freestanding compilers. */
  36868. -
  36869. -#ifdef __STDC__
  36870. -# include <limits.h>
  36871. -#else
  36872. -# include <assert.h>
  36873. -#endif
  36874. -
  36875. -#undef $ac_func
  36876. /* Override any GCC internal prototype to avoid an error.
  36877. Use char because int might match the return type of a GCC
  36878. @@ -21948,161 +15596,75 @@
  36879. #ifdef __cplusplus
  36880. extern "C"
  36881. #endif
  36882. -char $ac_func ();
  36883. -/* The GNU C library defines this for functions which it implements
  36884. - to always fail with ENOSYS. Some functions are actually named
  36885. - something starting with __ and the normal name is an alias. */
  36886. -#if defined __stub_$ac_func || defined __stub___$ac_func
  36887. -choke me
  36888. -#endif
  36889. -
  36890. +char nanosleep ();
  36891. int
  36892. main ()
  36893. {
  36894. -return $ac_func ();
  36895. +return nanosleep ();
  36896. ;
  36897. return 0;
  36898. }
  36899. _ACEOF
  36900. -rm -f conftest.$ac_objext conftest$ac_exeext
  36901. -if { (ac_try="$ac_link"
  36902. -case "(($ac_try" in
  36903. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36904. - *) ac_try_echo=$ac_try;;
  36905. -esac
  36906. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36907. - (eval "$ac_link") 2>conftest.er1
  36908. - ac_status=$?
  36909. - grep -v '^ *+' conftest.er1 >conftest.err
  36910. - rm -f conftest.er1
  36911. - cat conftest.err >&5
  36912. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36913. - (exit $ac_status); } && {
  36914. - test -z "$ac_c_werror_flag" ||
  36915. - test ! -s conftest.err
  36916. - } && test -s conftest$ac_exeext &&
  36917. - $as_test_x conftest$ac_exeext; then
  36918. - eval "$as_ac_var=yes"
  36919. +if ac_fn_c_try_link "$LINENO"; then :
  36920. + ac_cv_lib_posix4_nanosleep=yes
  36921. else
  36922. - echo "$as_me: failed program was:" >&5
  36923. -sed 's/^/| /' conftest.$ac_ext >&5
  36924. -
  36925. - eval "$as_ac_var=no"
  36926. + ac_cv_lib_posix4_nanosleep=no
  36927. fi
  36928. -
  36929. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36930. - conftest$ac_exeext conftest.$ac_ext
  36931. +rm -f core conftest.err conftest.$ac_objext \
  36932. + conftest$ac_exeext conftest.$ac_ext
  36933. +LIBS=$ac_check_lib_save_LIBS
  36934. fi
  36935. -ac_res=`eval echo '${'$as_ac_var'}'`
  36936. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  36937. -echo "${ECHO_T}$ac_res" >&6; }
  36938. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  36939. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
  36940. +$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
  36941. +if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then :
  36942. cat >>confdefs.h <<_ACEOF
  36943. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  36944. -_ACEOF
  36945. -
  36946. -fi
  36947. -done
  36948. -
  36949. -
  36950. -use_inet_pton=no
  36951. -{ echo "$as_me:$LINENO: checking for inet_pton" >&5
  36952. -echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
  36953. -if test "${ac_cv_func_inet_pton+set}" = set; then
  36954. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36955. -else
  36956. - cat >conftest.$ac_ext <<_ACEOF
  36957. -/* confdefs.h. */
  36958. +#define HAVE_LIBPOSIX4 1
  36959. _ACEOF
  36960. -cat confdefs.h >>conftest.$ac_ext
  36961. -cat >>conftest.$ac_ext <<_ACEOF
  36962. -/* end confdefs.h. */
  36963. -/* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  36964. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36965. -#define inet_pton innocuous_inet_pton
  36966. -
  36967. -/* System header to define __stub macros and hopefully few prototypes,
  36968. - which can conflict with char inet_pton (); below.
  36969. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36970. - <limits.h> exists even on freestanding compilers. */
  36971. -#ifdef __STDC__
  36972. -# include <limits.h>
  36973. -#else
  36974. -# include <assert.h>
  36975. -#endif
  36976. + LIBS="-lposix4 $LIBS"
  36977. -#undef inet_pton
  36978. +fi
  36979. -/* Override any GCC internal prototype to avoid an error.
  36980. - Use char because int might match the return type of a GCC
  36981. - builtin and then its argument prototype would still apply. */
  36982. -#ifdef __cplusplus
  36983. -extern "C"
  36984. -#endif
  36985. -char inet_pton ();
  36986. -/* The GNU C library defines this for functions which it implements
  36987. - to always fail with ENOSYS. Some functions are actually named
  36988. - something starting with __ and the normal name is an alias. */
  36989. -#if defined __stub_inet_pton || defined __stub___inet_pton
  36990. -choke me
  36991. -#endif
  36992. +fi
  36993. -int
  36994. -main ()
  36995. -{
  36996. -return inet_pton ();
  36997. - ;
  36998. - return 0;
  36999. -}
  37000. -_ACEOF
  37001. -rm -f conftest.$ac_objext conftest$ac_exeext
  37002. -if { (ac_try="$ac_link"
  37003. -case "(($ac_try" in
  37004. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37005. - *) ac_try_echo=$ac_try;;
  37006. -esac
  37007. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37008. - (eval "$ac_link") 2>conftest.er1
  37009. - ac_status=$?
  37010. - grep -v '^ *+' conftest.er1 >conftest.err
  37011. - rm -f conftest.er1
  37012. - cat conftest.err >&5
  37013. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37014. - (exit $ac_status); } && {
  37015. - test -z "$ac_c_werror_flag" ||
  37016. - test ! -s conftest.err
  37017. - } && test -s conftest$ac_exeext &&
  37018. - $as_test_x conftest$ac_exeext; then
  37019. - ac_cv_func_inet_pton=yes
  37020. -else
  37021. - echo "$as_me: failed program was:" >&5
  37022. -sed 's/^/| /' conftest.$ac_ext >&5
  37023. +fi
  37024. +
  37025. +for ac_func in usleep
  37026. +do :
  37027. + ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
  37028. +if test "x$ac_cv_func_usleep" = x""yes; then :
  37029. + cat >>confdefs.h <<_ACEOF
  37030. +#define HAVE_USLEEP 1
  37031. +_ACEOF
  37032. - ac_cv_func_inet_pton=no
  37033. fi
  37034. +done
  37035. +
  37036. +for ac_func in strtok_r
  37037. +do :
  37038. + ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  37039. +if test "x$ac_cv_func_strtok_r" = x""yes; then :
  37040. + cat >>confdefs.h <<_ACEOF
  37041. +#define HAVE_STRTOK_R 1
  37042. +_ACEOF
  37043. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37044. - conftest$ac_exeext conftest.$ac_ext
  37045. fi
  37046. -{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  37047. -echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
  37048. -if test $ac_cv_func_inet_pton = yes; then
  37049. +done
  37050. +
  37051. +
  37052. +use_inet_pton=no
  37053. +ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  37054. +if test "x$ac_cv_func_inet_pton" = x""yes; then :
  37055. use_inet_pton=yes
  37056. else
  37057. -
  37058. -{ echo "$as_me:$LINENO: checking for inet_pton in -lresolv" >&5
  37059. -echo $ECHO_N "checking for inet_pton in -lresolv... $ECHO_C" >&6; }
  37060. -if test "${ac_cv_lib_resolv_inet_pton+set}" = set; then
  37061. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37062. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lresolv" >&5
  37063. +$as_echo_n "checking for inet_pton in -lresolv... " >&6; }
  37064. +if test "${ac_cv_lib_resolv_inet_pton+set}" = set; then :
  37065. + $as_echo_n "(cached) " >&6
  37066. else
  37067. ac_check_lib_save_LIBS=$LIBS
  37068. LIBS="-lresolv $LIBS"
  37069. -cat >conftest.$ac_ext <<_ACEOF
  37070. -/* confdefs.h. */
  37071. -_ACEOF
  37072. -cat confdefs.h >>conftest.$ac_ext
  37073. -cat >>conftest.$ac_ext <<_ACEOF
  37074. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37075. /* end confdefs.h. */
  37076. /* Override any GCC internal prototype to avoid an error.
  37077. @@ -22120,39 +15682,18 @@
  37078. return 0;
  37079. }
  37080. _ACEOF
  37081. -rm -f conftest.$ac_objext conftest$ac_exeext
  37082. -if { (ac_try="$ac_link"
  37083. -case "(($ac_try" in
  37084. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37085. - *) ac_try_echo=$ac_try;;
  37086. -esac
  37087. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37088. - (eval "$ac_link") 2>conftest.er1
  37089. - ac_status=$?
  37090. - grep -v '^ *+' conftest.er1 >conftest.err
  37091. - rm -f conftest.er1
  37092. - cat conftest.err >&5
  37093. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37094. - (exit $ac_status); } && {
  37095. - test -z "$ac_c_werror_flag" ||
  37096. - test ! -s conftest.err
  37097. - } && test -s conftest$ac_exeext &&
  37098. - $as_test_x conftest$ac_exeext; then
  37099. +if ac_fn_c_try_link "$LINENO"; then :
  37100. ac_cv_lib_resolv_inet_pton=yes
  37101. else
  37102. - echo "$as_me: failed program was:" >&5
  37103. -sed 's/^/| /' conftest.$ac_ext >&5
  37104. -
  37105. - ac_cv_lib_resolv_inet_pton=no
  37106. + ac_cv_lib_resolv_inet_pton=no
  37107. fi
  37108. -
  37109. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37110. - conftest$ac_exeext conftest.$ac_ext
  37111. +rm -f core conftest.err conftest.$ac_objext \
  37112. + conftest$ac_exeext conftest.$ac_ext
  37113. LIBS=$ac_check_lib_save_LIBS
  37114. fi
  37115. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_pton" >&5
  37116. -echo "${ECHO_T}$ac_cv_lib_resolv_inet_pton" >&6; }
  37117. -if test $ac_cv_lib_resolv_inet_pton = yes; then
  37118. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_pton" >&5
  37119. +$as_echo "$ac_cv_lib_resolv_inet_pton" >&6; }
  37120. +if test "x$ac_cv_lib_resolv_inet_pton" = x""yes; then :
  37121. cat >>confdefs.h <<_ACEOF
  37122. #define HAVE_LIBRESOLV 1
  37123. _ACEOF
  37124. @@ -22167,109 +15708,22 @@
  37125. case $ac_cv_func_inet_pton/$ac_cv_lib_resolv_inet_pton in
  37126. no/no) ;;
  37127. *)
  37128. -cat >>confdefs.h <<\_ACEOF
  37129. -#define HAVE_INET_PTON 1
  37130. -_ACEOF
  37131. +$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  37132. esac
  37133. else
  37134. - { echo "$as_me:$LINENO: checking for inet_aton" >&5
  37135. -echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
  37136. -if test "${ac_cv_func_inet_aton+set}" = set; then
  37137. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37138. -else
  37139. - cat >conftest.$ac_ext <<_ACEOF
  37140. -/* confdefs.h. */
  37141. -_ACEOF
  37142. -cat confdefs.h >>conftest.$ac_ext
  37143. -cat >>conftest.$ac_ext <<_ACEOF
  37144. -/* end confdefs.h. */
  37145. -/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  37146. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  37147. -#define inet_aton innocuous_inet_aton
  37148. -
  37149. -/* System header to define __stub macros and hopefully few prototypes,
  37150. - which can conflict with char inet_aton (); below.
  37151. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37152. - <limits.h> exists even on freestanding compilers. */
  37153. -
  37154. -#ifdef __STDC__
  37155. -# include <limits.h>
  37156. -#else
  37157. -# include <assert.h>
  37158. -#endif
  37159. -
  37160. -#undef inet_aton
  37161. -
  37162. -/* Override any GCC internal prototype to avoid an error.
  37163. - Use char because int might match the return type of a GCC
  37164. - builtin and then its argument prototype would still apply. */
  37165. -#ifdef __cplusplus
  37166. -extern "C"
  37167. -#endif
  37168. -char inet_aton ();
  37169. -/* The GNU C library defines this for functions which it implements
  37170. - to always fail with ENOSYS. Some functions are actually named
  37171. - something starting with __ and the normal name is an alias. */
  37172. -#if defined __stub_inet_aton || defined __stub___inet_aton
  37173. -choke me
  37174. -#endif
  37175. -
  37176. -int
  37177. -main ()
  37178. -{
  37179. -return inet_aton ();
  37180. - ;
  37181. - return 0;
  37182. -}
  37183. -_ACEOF
  37184. -rm -f conftest.$ac_objext conftest$ac_exeext
  37185. -if { (ac_try="$ac_link"
  37186. -case "(($ac_try" in
  37187. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37188. - *) ac_try_echo=$ac_try;;
  37189. -esac
  37190. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37191. - (eval "$ac_link") 2>conftest.er1
  37192. - ac_status=$?
  37193. - grep -v '^ *+' conftest.er1 >conftest.err
  37194. - rm -f conftest.er1
  37195. - cat conftest.err >&5
  37196. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37197. - (exit $ac_status); } && {
  37198. - test -z "$ac_c_werror_flag" ||
  37199. - test ! -s conftest.err
  37200. - } && test -s conftest$ac_exeext &&
  37201. - $as_test_x conftest$ac_exeext; then
  37202. - ac_cv_func_inet_aton=yes
  37203. -else
  37204. - echo "$as_me: failed program was:" >&5
  37205. -sed 's/^/| /' conftest.$ac_ext >&5
  37206. -
  37207. - ac_cv_func_inet_aton=no
  37208. -fi
  37209. + ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  37210. +if test "x$ac_cv_func_inet_aton" = x""yes; then :
  37211. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37212. - conftest$ac_exeext conftest.$ac_ext
  37213. -fi
  37214. -{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  37215. -echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
  37216. -if test $ac_cv_func_inet_aton = yes; then
  37217. - :
  37218. else
  37219. -
  37220. -{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
  37221. -echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
  37222. -if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
  37223. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37224. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
  37225. +$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
  37226. +if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
  37227. + $as_echo_n "(cached) " >&6
  37228. else
  37229. ac_check_lib_save_LIBS=$LIBS
  37230. LIBS="-lresolv $LIBS"
  37231. -cat >conftest.$ac_ext <<_ACEOF
  37232. -/* confdefs.h. */
  37233. -_ACEOF
  37234. -cat confdefs.h >>conftest.$ac_ext
  37235. -cat >>conftest.$ac_ext <<_ACEOF
  37236. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37237. /* end confdefs.h. */
  37238. /* Override any GCC internal prototype to avoid an error.
  37239. @@ -22287,39 +15741,18 @@
  37240. return 0;
  37241. }
  37242. _ACEOF
  37243. -rm -f conftest.$ac_objext conftest$ac_exeext
  37244. -if { (ac_try="$ac_link"
  37245. -case "(($ac_try" in
  37246. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37247. - *) ac_try_echo=$ac_try;;
  37248. -esac
  37249. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37250. - (eval "$ac_link") 2>conftest.er1
  37251. - ac_status=$?
  37252. - grep -v '^ *+' conftest.er1 >conftest.err
  37253. - rm -f conftest.er1
  37254. - cat conftest.err >&5
  37255. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37256. - (exit $ac_status); } && {
  37257. - test -z "$ac_c_werror_flag" ||
  37258. - test ! -s conftest.err
  37259. - } && test -s conftest$ac_exeext &&
  37260. - $as_test_x conftest$ac_exeext; then
  37261. +if ac_fn_c_try_link "$LINENO"; then :
  37262. ac_cv_lib_resolv_inet_aton=yes
  37263. else
  37264. - echo "$as_me: failed program was:" >&5
  37265. -sed 's/^/| /' conftest.$ac_ext >&5
  37266. -
  37267. - ac_cv_lib_resolv_inet_aton=no
  37268. + ac_cv_lib_resolv_inet_aton=no
  37269. fi
  37270. -
  37271. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37272. - conftest$ac_exeext conftest.$ac_ext
  37273. +rm -f core conftest.err conftest.$ac_objext \
  37274. + conftest$ac_exeext conftest.$ac_ext
  37275. LIBS=$ac_check_lib_save_LIBS
  37276. fi
  37277. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
  37278. -echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
  37279. -if test $ac_cv_lib_resolv_inet_aton = yes; then
  37280. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
  37281. +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
  37282. +if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
  37283. cat >>confdefs.h <<_ACEOF
  37284. #define HAVE_LIBRESOLV 1
  37285. _ACEOF
  37286. @@ -22333,9 +15766,7 @@
  37287. case $ac_cv_func_inet_aton/$ac_cv_lib_resolv_inet_aton in
  37288. no/no) ;;
  37289. *)
  37290. -cat >>confdefs.h <<\_ACEOF
  37291. -#define HAVE_INET_ATON 1
  37292. -_ACEOF
  37293. +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  37294. esac
  37295. fi
  37296. @@ -22343,18 +15774,12 @@
  37297. case $ac_cv_func_nanosleep/$ac_cv_lib_rt_nanosleep/$ac_cv_lib_posix4_nanosleep in
  37298. no/no/no) ;;
  37299. *)
  37300. -cat >>confdefs.h <<\_ACEOF
  37301. -#define HAVE_NANOSLEEP 1
  37302. -_ACEOF
  37303. +$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
  37304. esac
  37305. -cat >conftest.$ac_ext <<_ACEOF
  37306. -/* confdefs.h. */
  37307. -_ACEOF
  37308. -cat confdefs.h >>conftest.$ac_ext
  37309. -cat >>conftest.$ac_ext <<_ACEOF
  37310. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37311. /* end confdefs.h. */
  37312. #include<sys/types.h>
  37313. @@ -22367,42 +15792,20 @@
  37314. return 0;
  37315. }
  37316. _ACEOF
  37317. -rm -f conftest.$ac_objext
  37318. -if { (ac_try="$ac_compile"
  37319. -case "(($ac_try" in
  37320. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37321. - *) ac_try_echo=$ac_try;;
  37322. -esac
  37323. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37324. - (eval "$ac_compile") 2>conftest.er1
  37325. - ac_status=$?
  37326. - grep -v '^ *+' conftest.er1 >conftest.err
  37327. - rm -f conftest.er1
  37328. - cat conftest.err >&5
  37329. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37330. - (exit $ac_status); } && {
  37331. - test -z "$ac_c_werror_flag" ||
  37332. - test ! -s conftest.err
  37333. - } && test -s conftest.$ac_objext; then
  37334. - :
  37335. -else
  37336. - echo "$as_me: failed program was:" >&5
  37337. -sed 's/^/| /' conftest.$ac_ext >&5
  37338. +if ac_fn_c_try_compile "$LINENO"; then :
  37339. +else
  37340. -cat >>confdefs.h <<\_ACEOF
  37341. -#define INADDR_LOOPBACK (u_int32_t)0x7f000001
  37342. -_ACEOF
  37343. +$as_echo "#define INADDR_LOOPBACK (u_int32_t)0x7f000001" >>confdefs.h
  37344. fi
  37345. -
  37346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37347. -{ echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
  37348. -echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
  37349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
  37350. +$as_echo_n "checking whether to enable ipv6... " >&6; }
  37351. # Check whether --enable-ipv6 was given.
  37352. -if test "${enable_ipv6+set}" = set; then
  37353. +if test "${enable_ipv6+set}" = set; then :
  37354. enableval=$enable_ipv6;
  37355. else
  37356. enable_ipv6=yes
  37357. @@ -22410,11 +15813,7 @@
  37358. if test $enable_ipv6 = yes; then
  37359. - cat >conftest.$ac_ext <<_ACEOF
  37360. -/* confdefs.h. */
  37361. -_ACEOF
  37362. -cat confdefs.h >>conftest.$ac_ext
  37363. -cat >>conftest.$ac_ext <<_ACEOF
  37364. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37365. /* end confdefs.h. */
  37366. #include <sys/types.h>
  37367. @@ -22429,65 +15828,35 @@
  37368. return 0;
  37369. }
  37370. _ACEOF
  37371. -rm -f conftest.$ac_objext
  37372. -if { (ac_try="$ac_compile"
  37373. -case "(($ac_try" in
  37374. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37375. - *) ac_try_echo=$ac_try;;
  37376. -esac
  37377. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37378. - (eval "$ac_compile") 2>conftest.er1
  37379. - ac_status=$?
  37380. - grep -v '^ *+' conftest.er1 >conftest.err
  37381. - rm -f conftest.er1
  37382. - cat conftest.err >&5
  37383. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37384. - (exit $ac_status); } && {
  37385. - test -z "$ac_c_werror_flag" ||
  37386. - test ! -s conftest.err
  37387. - } && test -s conftest.$ac_objext; then
  37388. +if ac_fn_c_try_compile "$LINENO"; then :
  37389. have_ipv6=yes
  37390. else
  37391. - echo "$as_me: failed program was:" >&5
  37392. -sed 's/^/| /' conftest.$ac_ext >&5
  37393. -
  37394. - have_ipv6=no
  37395. + have_ipv6=no
  37396. fi
  37397. -
  37398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37399. - { echo "$as_me:$LINENO: result: $have_ipv6" >&5
  37400. -echo "${ECHO_T}$have_ipv6" >&6; }
  37401. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
  37402. +$as_echo "$have_ipv6" >&6; }
  37403. if test $have_ipv6=yes; then
  37404. have_getaddrinfo=no
  37405. - { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
  37406. -echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
  37407. -if test "${ac_cv_func_getaddrinfo+set}" = set; then
  37408. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37409. + ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  37410. +if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  37411. + have_getaddrinfo=yes
  37412. +fi
  37413. +
  37414. + if test $have_getaddrinfo = no; then
  37415. + for lib in bsd socket inet; do
  37416. + as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
  37417. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
  37418. +$as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
  37419. +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  37420. + $as_echo_n "(cached) " >&6
  37421. else
  37422. - cat >conftest.$ac_ext <<_ACEOF
  37423. -/* confdefs.h. */
  37424. -_ACEOF
  37425. -cat confdefs.h >>conftest.$ac_ext
  37426. -cat >>conftest.$ac_ext <<_ACEOF
  37427. + ac_check_lib_save_LIBS=$LIBS
  37428. +LIBS="-l$lib $LIBS"
  37429. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37430. /* end confdefs.h. */
  37431. -/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
  37432. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  37433. -#define getaddrinfo innocuous_getaddrinfo
  37434. -
  37435. -/* System header to define __stub macros and hopefully few prototypes,
  37436. - which can conflict with char getaddrinfo (); below.
  37437. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37438. - <limits.h> exists even on freestanding compilers. */
  37439. -
  37440. -#ifdef __STDC__
  37441. -# include <limits.h>
  37442. -#else
  37443. -# include <assert.h>
  37444. -#endif
  37445. -
  37446. -#undef getaddrinfo
  37447. /* Override any GCC internal prototype to avoid an error.
  37448. Use char because int might match the return type of a GCC
  37449. @@ -22496,13 +15865,6 @@
  37450. extern "C"
  37451. #endif
  37452. char getaddrinfo ();
  37453. -/* The GNU C library defines this for functions which it implements
  37454. - to always fail with ENOSYS. Some functions are actually named
  37455. - something starting with __ and the normal name is an alias. */
  37456. -#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
  37457. -choke me
  37458. -#endif
  37459. -
  37460. int
  37461. main ()
  37462. {
  37463. @@ -22511,56 +15873,172 @@
  37464. return 0;
  37465. }
  37466. _ACEOF
  37467. -rm -f conftest.$ac_objext conftest$ac_exeext
  37468. -if { (ac_try="$ac_link"
  37469. -case "(($ac_try" in
  37470. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37471. - *) ac_try_echo=$ac_try;;
  37472. -esac
  37473. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37474. - (eval "$ac_link") 2>conftest.er1
  37475. - ac_status=$?
  37476. - grep -v '^ *+' conftest.er1 >conftest.err
  37477. - rm -f conftest.er1
  37478. - cat conftest.err >&5
  37479. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37480. - (exit $ac_status); } && {
  37481. - test -z "$ac_c_werror_flag" ||
  37482. - test ! -s conftest.err
  37483. - } && test -s conftest$ac_exeext &&
  37484. - $as_test_x conftest$ac_exeext; then
  37485. - ac_cv_func_getaddrinfo=yes
  37486. +if ac_fn_c_try_link "$LINENO"; then :
  37487. + eval "$as_ac_Lib=yes"
  37488. else
  37489. - echo "$as_me: failed program was:" >&5
  37490. -sed 's/^/| /' conftest.$ac_ext >&5
  37491. + eval "$as_ac_Lib=no"
  37492. +fi
  37493. +rm -f core conftest.err conftest.$ac_objext \
  37494. + conftest$ac_exeext conftest.$ac_ext
  37495. +LIBS=$ac_check_lib_save_LIBS
  37496. +fi
  37497. +eval ac_res=\$$as_ac_Lib
  37498. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  37499. +$as_echo "$ac_res" >&6; }
  37500. +eval as_val=\$$as_ac_Lib
  37501. + if test "x$as_val" = x""yes; then :
  37502. + LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
  37503. +fi
  37504. +
  37505. + done
  37506. + fi
  37507. +
  37508. + if test $have_getaddrinfo = yes; then
  37509. +
  37510. +$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
  37511. +
  37512. + fi
  37513. +
  37514. +
  37515. + ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  37516. +if test "x$ac_cv_func_inet_ntop" = x""yes; then :
  37517. +
  37518. +$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  37519. - ac_cv_func_getaddrinfo=no
  37520. fi
  37521. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37522. - conftest$ac_exeext conftest.$ac_ext
  37523. + fi
  37524. +else
  37525. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37526. +$as_echo "no" >&6; }
  37527. fi
  37528. -{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
  37529. -echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
  37530. -if test $ac_cv_func_getaddrinfo = yes; then
  37531. - have_getaddrinfo=yes
  37532. +
  37533. +
  37534. +
  37535. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37536. +/* end confdefs.h. */
  37537. +
  37538. + #include<sys/types.h>
  37539. + #include<sys/un.h>
  37540. +int
  37541. +main ()
  37542. +{
  37543. +struct sockaddr_un su; int i = SUN_LEN(&su);
  37544. + ;
  37545. + return 0;
  37546. +}
  37547. +_ACEOF
  37548. +if ac_fn_c_try_link "$LINENO"; then :
  37549. +
  37550. +$as_echo "#define HAVE_SUN_LEN 1" >>confdefs.h
  37551. +
  37552. +fi
  37553. +rm -f core conftest.err conftest.$ac_objext \
  37554. + conftest$ac_exeext conftest.$ac_ext
  37555. +
  37556. +
  37557. +ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  37558. +if test "x$ac_cv_func_getopt_long" = x""yes; then :
  37559. + have_getopt_long=yes
  37560. +else
  37561. + have_getopt_long=no
  37562. +fi
  37563. +
  37564. + if test "x$have_getopt_long" = xno; then
  37565. + NEED_GETOPT_TRUE=
  37566. + NEED_GETOPT_FALSE='#'
  37567. +else
  37568. + NEED_GETOPT_TRUE='#'
  37569. + NEED_GETOPT_FALSE=
  37570. +fi
  37571. +
  37572. +
  37573. +
  37574. +for ac_header in sys/filio.h sys/ioctl.h
  37575. +do :
  37576. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37577. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  37578. +eval as_val=\$$as_ac_Header
  37579. + if test "x$as_val" = x""yes; then :
  37580. + cat >>confdefs.h <<_ACEOF
  37581. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37582. +_ACEOF
  37583. +
  37584. +fi
  37585. +
  37586. +done
  37587. +
  37588. +
  37589. +
  37590. +# Check whether --enable-debugging was given.
  37591. +if test "${enable_debugging+set}" = set; then :
  37592. + enableval=$enable_debugging; enable_debuggin=${enableval}
  37593. +else
  37594. + enable_debugging=no
  37595. +fi
  37596. +
  37597. +
  37598. +if test "x$enable_debugging" = "xyes"; then
  37599. +
  37600. +$as_echo "#define ESDBG 1" >>confdefs.h
  37601. +
  37602. +fi
  37603. +
  37604. +
  37605. +# Check whether --enable-local_sound was given.
  37606. +if test "${enable_local_sound+set}" = set; then :
  37607. + enableval=$enable_local_sound; enable_local_sound=${enableval}
  37608. +else
  37609. + enable_local_sound=yes
  37610. +fi
  37611. +
  37612. +# Check whether --enable-oss was given.
  37613. +if test "${enable_oss+set}" = set; then :
  37614. + enableval=$enable_oss; enable_oss=${enableval}
  37615. +else
  37616. + enable_oss=yes
  37617. +fi
  37618. +
  37619. +# Check whether --enable-alsa was given.
  37620. +if test "${enable_alsa+set}" = set; then :
  37621. + enableval=$enable_alsa; enable_alsa=${enableval}
  37622. +else
  37623. + enable_alsa=yes
  37624. +fi
  37625. +
  37626. +# Check whether --enable-arts was given.
  37627. +if test "${enable_arts+set}" = set; then :
  37628. + enableval=$enable_arts; enable_arts=${enableval}
  37629. +else
  37630. + enable_arts=no
  37631. fi
  37632. - if test $have_getaddrinfo = no; then
  37633. - for lib in bsd socket inet; do
  37634. - as_ac_Lib=`echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
  37635. -{ echo "$as_me:$LINENO: checking for getaddrinfo in -l$lib" >&5
  37636. -echo $ECHO_N "checking for getaddrinfo in -l$lib... $ECHO_C" >&6; }
  37637. -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37638. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37639. +
  37640. +dsp_ok=no DL_LIB=
  37641. +
  37642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your platform supports esddsp" >&5
  37643. +$as_echo_n "checking if your platform supports esddsp... " >&6; }
  37644. +case "$host_os" in
  37645. + linux* | freebsd* | kfreebsd*-gnu | bsdi4* )
  37646. + dsp_ok=yes
  37647. + ;;
  37648. +esac
  37649. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsp_ok" >&5
  37650. +$as_echo "$dsp_ok" >&6; }
  37651. +
  37652. +if test "x$dsp_ok" = xyes; then
  37653. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  37654. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  37655. + DL_LIB=
  37656. +else
  37657. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37658. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37659. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37660. + $as_echo_n "(cached) " >&6
  37661. else
  37662. ac_check_lib_save_LIBS=$LIBS
  37663. -LIBS="-l$lib $LIBS"
  37664. -cat >conftest.$ac_ext <<_ACEOF
  37665. -/* confdefs.h. */
  37666. -_ACEOF
  37667. -cat confdefs.h >>conftest.$ac_ext
  37668. -cat >>conftest.$ac_ext <<_ACEOF
  37669. +LIBS="-ldl $LIBS"
  37670. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37671. /* end confdefs.h. */
  37672. /* Override any GCC internal prototype to avoid an error.
  37673. @@ -22569,538 +16047,520 @@
  37674. #ifdef __cplusplus
  37675. extern "C"
  37676. #endif
  37677. -char getaddrinfo ();
  37678. +char dlopen ();
  37679. int
  37680. main ()
  37681. {
  37682. -return getaddrinfo ();
  37683. +return dlopen ();
  37684. ;
  37685. return 0;
  37686. }
  37687. _ACEOF
  37688. -rm -f conftest.$ac_objext conftest$ac_exeext
  37689. -if { (ac_try="$ac_link"
  37690. -case "(($ac_try" in
  37691. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37692. - *) ac_try_echo=$ac_try;;
  37693. -esac
  37694. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37695. - (eval "$ac_link") 2>conftest.er1
  37696. - ac_status=$?
  37697. - grep -v '^ *+' conftest.er1 >conftest.err
  37698. - rm -f conftest.er1
  37699. - cat conftest.err >&5
  37700. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37701. - (exit $ac_status); } && {
  37702. - test -z "$ac_c_werror_flag" ||
  37703. - test ! -s conftest.err
  37704. - } && test -s conftest$ac_exeext &&
  37705. - $as_test_x conftest$ac_exeext; then
  37706. - eval "$as_ac_Lib=yes"
  37707. +if ac_fn_c_try_link "$LINENO"; then :
  37708. + ac_cv_lib_dl_dlopen=yes
  37709. else
  37710. - echo "$as_me: failed program was:" >&5
  37711. -sed 's/^/| /' conftest.$ac_ext >&5
  37712. + ac_cv_lib_dl_dlopen=no
  37713. +fi
  37714. +rm -f core conftest.err conftest.$ac_objext \
  37715. + conftest$ac_exeext conftest.$ac_ext
  37716. +LIBS=$ac_check_lib_save_LIBS
  37717. +fi
  37718. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37719. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37720. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37721. + DL_LIB=-ldl
  37722. +fi
  37723. - eval "$as_ac_Lib=no"
  37724. fi
  37725. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37726. - conftest$ac_exeext conftest.$ac_ext
  37727. -LIBS=$ac_check_lib_save_LIBS
  37728. + ESDDSP=esddsp
  37729. + LIBESDDSP=libesddsp.la
  37730. fi
  37731. -ac_res=`eval echo '${'$as_ac_Lib'}'`
  37732. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  37733. -echo "${ECHO_T}$ac_res" >&6; }
  37734. -if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  37735. - LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
  37736. + if test "x$dsp_ok" = xyes; then
  37737. + BUILD_ESDDSP_TRUE=
  37738. + BUILD_ESDDSP_FALSE='#'
  37739. +else
  37740. + BUILD_ESDDSP_TRUE='#'
  37741. + BUILD_ESDDSP_FALSE=
  37742. fi
  37743. - done
  37744. - fi
  37745. - if test $have_getaddrinfo = yes; then
  37746. +if test "x$enable_local_sound" = "xyes"; then
  37747. + found_sound=no
  37748. -cat >>confdefs.h <<\_ACEOF
  37749. -#define ENABLE_IPV6 1
  37750. +
  37751. + echo "---------------------------------------------------------------------"
  37752. + echo "--- Checking to see which audio header files your system uses.";
  37753. + echo "--- Most of these checks should fail. Do not be alarmed.";
  37754. + for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h
  37755. +do :
  37756. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37757. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  37758. +eval as_val=\$$as_ac_Header
  37759. + if test "x$as_val" = x""yes; then :
  37760. + cat >>confdefs.h <<_ACEOF
  37761. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37762. _ACEOF
  37763. - fi
  37764. +fi
  37765. +done
  37766. - { echo "$as_me:$LINENO: checking for inet_ntop" >&5
  37767. -echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
  37768. -if test "${ac_cv_func_inet_ntop+set}" = set; then
  37769. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37770. -else
  37771. - cat >conftest.$ac_ext <<_ACEOF
  37772. -/* confdefs.h. */
  37773. + for ac_header in sys/audioio.h sys/audio.io.h sun/audioio.h
  37774. +do :
  37775. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37776. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  37777. +eval as_val=\$$as_ac_Header
  37778. + if test "x$as_val" = x""yes; then :
  37779. + cat >>confdefs.h <<_ACEOF
  37780. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37781. _ACEOF
  37782. -cat confdefs.h >>conftest.$ac_ext
  37783. -cat >>conftest.$ac_ext <<_ACEOF
  37784. -/* end confdefs.h. */
  37785. -/* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  37786. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  37787. -#define inet_ntop innocuous_inet_ntop
  37788. -/* System header to define __stub macros and hopefully few prototypes,
  37789. - which can conflict with char inet_ntop (); below.
  37790. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37791. - <limits.h> exists even on freestanding compilers. */
  37792. +fi
  37793. -#ifdef __STDC__
  37794. -# include <limits.h>
  37795. -#else
  37796. -# include <assert.h>
  37797. -#endif
  37798. +done
  37799. -#undef inet_ntop
  37800. + for ac_header in dmedia/audio.h sys/soundlib.h sys/asoundlib.h alsa/asoundlib.h
  37801. +do :
  37802. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37803. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  37804. +eval as_val=\$$as_ac_Header
  37805. + if test "x$as_val" = x""yes; then :
  37806. + cat >>confdefs.h <<_ACEOF
  37807. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37808. +_ACEOF
  37809. -/* Override any GCC internal prototype to avoid an error.
  37810. - Use char because int might match the return type of a GCC
  37811. - builtin and then its argument prototype would still apply. */
  37812. -#ifdef __cplusplus
  37813. -extern "C"
  37814. -#endif
  37815. -char inet_ntop ();
  37816. -/* The GNU C library defines this for functions which it implements
  37817. - to always fail with ENOSYS. Some functions are actually named
  37818. - something starting with __ and the normal name is an alias. */
  37819. -#if defined __stub_inet_ntop || defined __stub___inet_ntop
  37820. -choke me
  37821. -#endif
  37822. +fi
  37823. -int
  37824. -main ()
  37825. -{
  37826. -return inet_ntop ();
  37827. - ;
  37828. - return 0;
  37829. -}
  37830. +done
  37831. +
  37832. + for ac_header in CoreAudio/CoreAudio.h
  37833. +do :
  37834. + ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
  37835. +if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then :
  37836. + cat >>confdefs.h <<_ACEOF
  37837. +#define HAVE_COREAUDIO_COREAUDIO_H 1
  37838. _ACEOF
  37839. -rm -f conftest.$ac_objext conftest$ac_exeext
  37840. -if { (ac_try="$ac_link"
  37841. -case "(($ac_try" in
  37842. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37843. - *) ac_try_echo=$ac_try;;
  37844. +
  37845. +fi
  37846. +
  37847. +done
  37848. +
  37849. + # mme_api.h directly includes other files from the mme subdir
  37850. + xCPPFLAGS="$CPPFLAGS"
  37851. + CPPFLAGS="$CPPFLAGS -I/usr/include/mme"
  37852. + for ac_header in mme/mme_api.h
  37853. +do :
  37854. + ac_fn_c_check_header_mongrel "$LINENO" "mme/mme_api.h" "ac_cv_header_mme_mme_api_h" "$ac_includes_default"
  37855. +if test "x$ac_cv_header_mme_mme_api_h" = x""yes; then :
  37856. + cat >>confdefs.h <<_ACEOF
  37857. +#define HAVE_MME_MME_API_H 1
  37858. +_ACEOF
  37859. +
  37860. +fi
  37861. +
  37862. +done
  37863. +
  37864. + CPPFLAGS="$xCPPFLAGS"
  37865. +
  37866. +# Check whether --with-arts-prefix was given.
  37867. +if test "${with_arts_prefix+set}" = set; then :
  37868. + withval=$with_arts_prefix; arts_prefix="$withval"
  37869. +else
  37870. + arts_prefix=""
  37871. +fi
  37872. +
  37873. +
  37874. +
  37875. +# Check whether --with-arts-exec-prefix was given.
  37876. +if test "${with_arts_exec_prefix+set}" = set; then :
  37877. + withval=$with_arts_exec_prefix; arts_exec_prefix="$withval"
  37878. +else
  37879. + arts_exec_prefix=""
  37880. +fi
  37881. +
  37882. +
  37883. +# Check whether --enable-artstest was given.
  37884. +if test "${enable_artstest+set}" = set; then :
  37885. + enableval=$enable_artstest;
  37886. +else
  37887. + enable_artstest=yes
  37888. +fi
  37889. +
  37890. +
  37891. + if test x$arts_exec_prefix != x ; then
  37892. + arts_args="$arts_args --exec-prefix=$arts_exec_prefix"
  37893. + if test x${ARTS_CONFIG+set} != xset ; then
  37894. + ARTS_CONFIG=$arts_exec_prefix/bin/artsc-config
  37895. + fi
  37896. + fi
  37897. + if test x$arts_prefix != x ; then
  37898. + arts_args="$arts_args --prefix=$arts_prefix"
  37899. + if test x${ARTS_CONFIG+set} != xset ; then
  37900. + ARTS_CONFIG=$arts_prefix/bin/artsc-config
  37901. + fi
  37902. + fi
  37903. +
  37904. + # Extract the first word of "artsc-config", so it can be a program name with args.
  37905. +set dummy artsc-config; ac_word=$2
  37906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37907. +$as_echo_n "checking for $ac_word... " >&6; }
  37908. +if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then :
  37909. + $as_echo_n "(cached) " >&6
  37910. +else
  37911. + case $ARTS_CONFIG in
  37912. + [\\/]* | ?:[\\/]*)
  37913. + ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
  37914. + ;;
  37915. + *)
  37916. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37917. +for as_dir in $PATH
  37918. +do
  37919. + IFS=$as_save_IFS
  37920. + test -z "$as_dir" && as_dir=.
  37921. + for ac_exec_ext in '' $ac_executable_extensions; do
  37922. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37923. + ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  37924. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37925. + break 2
  37926. + fi
  37927. +done
  37928. + done
  37929. +IFS=$as_save_IFS
  37930. +
  37931. + test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
  37932. + ;;
  37933. esac
  37934. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37935. - (eval "$ac_link") 2>conftest.er1
  37936. - ac_status=$?
  37937. - grep -v '^ *+' conftest.er1 >conftest.err
  37938. - rm -f conftest.er1
  37939. - cat conftest.err >&5
  37940. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37941. - (exit $ac_status); } && {
  37942. - test -z "$ac_c_werror_flag" ||
  37943. - test ! -s conftest.err
  37944. - } && test -s conftest$ac_exeext &&
  37945. - $as_test_x conftest$ac_exeext; then
  37946. - ac_cv_func_inet_ntop=yes
  37947. +fi
  37948. +ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
  37949. +if test -n "$ARTS_CONFIG"; then
  37950. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTS_CONFIG" >&5
  37951. +$as_echo "$ARTS_CONFIG" >&6; }
  37952. else
  37953. - echo "$as_me: failed program was:" >&5
  37954. -sed 's/^/| /' conftest.$ac_ext >&5
  37955. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37956. +$as_echo "no" >&6; }
  37957. +fi
  37958. +
  37959. +
  37960. + min_arts_version=0.9.5
  37961. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARTS artsc - version >= $min_arts_version" >&5
  37962. +$as_echo_n "checking for ARTS artsc - version >= $min_arts_version... " >&6; }
  37963. + no_arts=""
  37964. + if test "$ARTS_CONFIG" = "no" ; then
  37965. + no_arts=yes
  37966. + else
  37967. + # FIXME: thomas added this sed to get arts path instead of artsc
  37968. + # replace -I.../artsc with -I.../arts
  37969. + ARTS_CXXFLAGS=`$ARTS_CONFIG $artsconf_args --cflags | artsc-config --cflags | sed 's/\(-I.*\)artsc/\1arts/'`
  37970. + ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs | sed 's/artsc$/arts/'`
  37971. +
  37972. + arts_major_version=`$ARTS_CONFIG --version | \
  37973. + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  37974. + arts_minor_version=`$ARTS_CONFIG --version | \
  37975. + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  37976. + arts_micro_version=`$ARTS_CONFIG --version | \
  37977. + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  37978. + if test "x$enable_artstest" = "xyes" ; then
  37979. +
  37980. +
  37981. + ac_ext=cpp
  37982. +ac_cpp='$CXXCPP $CPPFLAGS'
  37983. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37984. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37985. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37986. +
  37987. +
  37988. + ac_save_CPPFLAGS="$CPPFLAGS"
  37989. + ac_save_LDFLAGS="$LDFLAGS"
  37990. + CPPFLAGS="$CPPFLAGS $ARTS_CXXFLAGS"
  37991. +
  37992. + LDFLAGS="$LDFLAGS $ARTS_CLIBS"
  37993. +
  37994. +
  37995. + rm -f conf.artstest
  37996. + if test "$cross_compiling" = yes; then :
  37997. + echo $ac_n "cross compiling; assumed OK... $ac_c"
  37998. +else
  37999. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38000. +/* end confdefs.h. */
  38001. +
  38002. +#include <stdio.h>
  38003. +#include <stdlib.h>
  38004. +#include <string.h>
  38005. +#include <artsflow.h>
  38006. +
  38007. +char*
  38008. +my_strdup (char *str)
  38009. +{
  38010. + char *new_str;
  38011. +
  38012. + if (str)
  38013. + {
  38014. + // thomas: the original test did not have the typecast
  38015. + new_str = (char *) malloc ((strlen (str) + 1) * sizeof(char));
  38016. + strcpy (new_str, str);
  38017. + }
  38018. + else
  38019. + new_str = NULL;
  38020. +
  38021. + return new_str;
  38022. +}
  38023. +
  38024. +int main ()
  38025. +{
  38026. + int major, minor, micro;
  38027. + char *tmp_version;
  38028. +
  38029. + system ("touch conf.artstest");
  38030. +
  38031. + /* HP/UX 9 (%@#!) writes to sscanf strings */
  38032. + tmp_version = my_strdup("$min_arts_version");
  38033. + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  38034. + printf("%s, bad version string\n", "$min_arts_version");
  38035. + exit(1);
  38036. + }
  38037. - ac_cv_func_inet_ntop=no
  38038. -fi
  38039. + if (($arts_major_version > major) ||
  38040. + (($arts_major_version == major) && ($arts_minor_version > minor)) ||
  38041. + (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
  38042. + {
  38043. + return 0;
  38044. + }
  38045. + else
  38046. + {
  38047. + printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
  38048. + printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
  38049. + printf("*** best to upgrade to the required version.\n");
  38050. + printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
  38051. + printf("*** to point to the correct copy of artsc-config, and remove the file\n");
  38052. + printf("*** config.cache before re-running configure\n");
  38053. + return 1;
  38054. + }
  38055. +}
  38056. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38057. - conftest$ac_exeext conftest.$ac_ext
  38058. -fi
  38059. -{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  38060. -echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
  38061. -if test $ac_cv_func_inet_ntop = yes; then
  38062. -cat >>confdefs.h <<\_ACEOF
  38063. -#define HAVE_INET_NTOP 1
  38064. _ACEOF
  38065. +if ac_fn_cxx_try_run "$LINENO"; then :
  38066. -fi
  38067. -
  38068. - fi
  38069. else
  38070. - { echo "$as_me:$LINENO: result: no" >&5
  38071. -echo "${ECHO_T}no" >&6; }
  38072. + no_arts=yes
  38073. fi
  38074. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38075. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38076. +fi
  38077. +
  38078. + ac_ext=c
  38079. +ac_cpp='$CPP $CPPFLAGS'
  38080. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38081. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38082. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38083. + CXXFLAGS="$ac_save_CXXFLAGS"
  38084. + LDFLAGS="$ac_save_LDFLAGS"
  38085. + CXXFLAGS="$CXXFLAGS"
  38086. + LDFLAGS="$LDFLAGS"
  38087. -cat >conftest.$ac_ext <<_ACEOF
  38088. -/* confdefs.h. */
  38089. -_ACEOF
  38090. -cat confdefs.h >>conftest.$ac_ext
  38091. -cat >>conftest.$ac_ext <<_ACEOF
  38092. + fi
  38093. + fi
  38094. + if test "x$no_arts" = x ; then
  38095. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38096. +$as_echo "yes" >&6; }
  38097. + HAVE_ARTS=yes
  38098. + else
  38099. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38100. +$as_echo "no" >&6; }
  38101. + if test "$ARTS_CONFIG" = "no" ; then
  38102. + echo "*** The artsc-config script installed by ARTS could not be found"
  38103. + echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
  38104. + echo "*** your path, or set the ARTS_CONFIG environment variable to the"
  38105. + echo "*** full path to artsc-config."
  38106. + else
  38107. + if test -f conf.artstest ; then
  38108. + :
  38109. + else
  38110. + echo "*** Could not run ARTS test program, checking why..."
  38111. + CFLAGS="$CFLAGS $ARTS_CXXFLAGS"
  38112. + LIBS="$LIBS $ARTS_LIBS"
  38113. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38114. /* end confdefs.h. */
  38115. - #include<sys/types.h>
  38116. - #include<sys/un.h>
  38117. +#include <stdio.h>
  38118. +#include <artsflow.h>
  38119. +
  38120. int
  38121. main ()
  38122. {
  38123. -struct sockaddr_un su; int i = SUN_LEN(&su);
  38124. + return 0;
  38125. ;
  38126. return 0;
  38127. }
  38128. _ACEOF
  38129. -rm -f conftest.$ac_objext conftest$ac_exeext
  38130. -if { (ac_try="$ac_link"
  38131. -case "(($ac_try" in
  38132. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38133. - *) ac_try_echo=$ac_try;;
  38134. -esac
  38135. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38136. - (eval "$ac_link") 2>conftest.er1
  38137. - ac_status=$?
  38138. - grep -v '^ *+' conftest.er1 >conftest.err
  38139. - rm -f conftest.er1
  38140. - cat conftest.err >&5
  38141. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38142. - (exit $ac_status); } && {
  38143. - test -z "$ac_c_werror_flag" ||
  38144. - test ! -s conftest.err
  38145. - } && test -s conftest$ac_exeext &&
  38146. - $as_test_x conftest$ac_exeext; then
  38147. -
  38148. -cat >>confdefs.h <<\_ACEOF
  38149. -#define HAVE_SUN_LEN 1
  38150. -_ACEOF
  38151. -
  38152. +if ac_fn_c_try_link "$LINENO"; then :
  38153. + echo "*** The test program compiled, but did not run. This usually means"
  38154. + echo "*** that the run-time linker is not finding ARTS or finding the wrong"
  38155. + echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
  38156. + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  38157. + echo "*** to the installed location Also, make sure you have run ldconfig if that"
  38158. + echo "*** is required on your system"
  38159. + echo "***"
  38160. + echo "*** If you have an old version installed, it is best to remove it, although"
  38161. + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  38162. else
  38163. - echo "$as_me: failed program was:" >&5
  38164. -sed 's/^/| /' conftest.$ac_ext >&5
  38165. -
  38166. -
  38167. + echo "*** The test program failed to compile or link. See the file config.log for the"
  38168. + echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
  38169. + echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
  38170. + echo "*** may want to edit the artsc-config script: $ARTS_CONFIG"
  38171. fi
  38172. +rm -f core conftest.err conftest.$ac_objext \
  38173. + conftest$ac_exeext conftest.$ac_ext
  38174. + CFLAGS="$ac_save_CFLAGS"
  38175. + LIBS="$ac_save_LIBS"
  38176. + fi
  38177. + fi
  38178. + ARTS_CXXFLAGS=""
  38179. + ARTS_LIBS=""
  38180. + HAVE_ARTS=no
  38181. + fi
  38182. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38183. - conftest$ac_exeext conftest.$ac_ext
  38184. + rm -f conf.artstest
  38185. -{ echo "$as_me:$LINENO: checking for getopt_long" >&5
  38186. -echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
  38187. -if test "${ac_cv_func_getopt_long+set}" = set; then
  38188. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38189. -else
  38190. - cat >conftest.$ac_ext <<_ACEOF
  38191. -/* confdefs.h. */
  38192. -_ACEOF
  38193. -cat confdefs.h >>conftest.$ac_ext
  38194. -cat >>conftest.$ac_ext <<_ACEOF
  38195. -/* end confdefs.h. */
  38196. -/* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
  38197. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38198. -#define getopt_long innocuous_getopt_long
  38199. -/* System header to define __stub macros and hopefully few prototypes,
  38200. - which can conflict with char getopt_long (); below.
  38201. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38202. - <limits.h> exists even on freestanding compilers. */
  38203. -#ifdef __STDC__
  38204. -# include <limits.h>
  38205. -#else
  38206. -# include <assert.h>
  38207. -#endif
  38208. + if test x"$enable_oss" = xyes ; then
  38209. + if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
  38210. + test "${ac_cv_header_soundcard_h}" = "yes" || \
  38211. + test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
  38212. -#undef getopt_long
  38213. + found_sound=yes
  38214. -/* Override any GCC internal prototype to avoid an error.
  38215. - Use char because int might match the return type of a GCC
  38216. - builtin and then its argument prototype would still apply. */
  38217. -#ifdef __cplusplus
  38218. -extern "C"
  38219. -#endif
  38220. -char getopt_long ();
  38221. -/* The GNU C library defines this for functions which it implements
  38222. - to always fail with ENOSYS. Some functions are actually named
  38223. - something starting with __ and the normal name is an alias. */
  38224. -#if defined __stub_getopt_long || defined __stub___getopt_long
  38225. -choke me
  38226. -#endif
  38227. +$as_echo "#define DRIVER_OSS 1" >>confdefs.h
  38228. -int
  38229. -main ()
  38230. -{
  38231. -return getopt_long ();
  38232. - ;
  38233. - return 0;
  38234. -}
  38235. -_ACEOF
  38236. -rm -f conftest.$ac_objext conftest$ac_exeext
  38237. -if { (ac_try="$ac_link"
  38238. -case "(($ac_try" in
  38239. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38240. - *) ac_try_echo=$ac_try;;
  38241. -esac
  38242. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38243. - (eval "$ac_link") 2>conftest.er1
  38244. - ac_status=$?
  38245. - grep -v '^ *+' conftest.er1 >conftest.err
  38246. - rm -f conftest.er1
  38247. - cat conftest.err >&5
  38248. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38249. - (exit $ac_status); } && {
  38250. - test -z "$ac_c_werror_flag" ||
  38251. - test ! -s conftest.err
  38252. - } && test -s conftest$ac_exeext &&
  38253. - $as_test_x conftest$ac_exeext; then
  38254. - ac_cv_func_getopt_long=yes
  38255. -else
  38256. - echo "$as_me: failed program was:" >&5
  38257. -sed 's/^/| /' conftest.$ac_ext >&5
  38258. + fi
  38259. + fi
  38260. - ac_cv_func_getopt_long=no
  38261. -fi
  38262. + if test "${ac_cv_header_sys_audio_h}" = "yes"; then
  38263. + case ${host_os} in
  38264. + hpux*)
  38265. + found_sound=yes
  38266. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38267. - conftest$ac_exeext conftest.$ac_ext
  38268. -fi
  38269. -{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
  38270. -echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
  38271. -if test $ac_cv_func_getopt_long = yes; then
  38272. - have_getopt_long=yes
  38273. -else
  38274. - have_getopt_long=no
  38275. -fi
  38276. +$as_echo "#define DRIVER_HPUX 1" >>confdefs.h
  38277. - if test "x$have_getopt_long" = xno; then
  38278. - NEED_GETOPT_TRUE=
  38279. - NEED_GETOPT_FALSE='#'
  38280. -else
  38281. - NEED_GETOPT_TRUE='#'
  38282. - NEED_GETOPT_FALSE=
  38283. -fi
  38284. + ;;
  38285. + aix*)
  38286. + found_sound=yes
  38287. +$as_echo "#define DRIVER_AIX 1" >>confdefs.h
  38288. + esac
  38289. + fi
  38290. + if test "${ac_cv_header_sys_audioio_h}" = "yes" || \
  38291. + test "${ac_cv_header_sys_audio_io_h}" = "yes" || \
  38292. + test "${ac_cv_header_sun_audioio_h}" = "yes"; then
  38293. + case ${host_os} in
  38294. + solaris*)
  38295. + found_sound=yes
  38296. +$as_echo "#define DRIVER_SOLARIS 1" >>confdefs.h
  38297. -for ac_header in sys/filio.h sys/ioctl.h
  38298. -do
  38299. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38300. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38301. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  38302. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38303. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38304. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38305. -fi
  38306. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38307. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38308. -echo "${ECHO_T}$ac_res" >&6; }
  38309. -else
  38310. - # Is the header compilable?
  38311. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38312. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  38313. -cat >conftest.$ac_ext <<_ACEOF
  38314. -/* confdefs.h. */
  38315. -_ACEOF
  38316. -cat confdefs.h >>conftest.$ac_ext
  38317. -cat >>conftest.$ac_ext <<_ACEOF
  38318. -/* end confdefs.h. */
  38319. -$ac_includes_default
  38320. -#include <$ac_header>
  38321. -_ACEOF
  38322. -rm -f conftest.$ac_objext
  38323. -if { (ac_try="$ac_compile"
  38324. -case "(($ac_try" in
  38325. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38326. - *) ac_try_echo=$ac_try;;
  38327. -esac
  38328. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38329. - (eval "$ac_compile") 2>conftest.er1
  38330. - ac_status=$?
  38331. - grep -v '^ *+' conftest.er1 >conftest.err
  38332. - rm -f conftest.er1
  38333. - cat conftest.err >&5
  38334. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38335. - (exit $ac_status); } && {
  38336. - test -z "$ac_c_werror_flag" ||
  38337. - test ! -s conftest.err
  38338. - } && test -s conftest.$ac_objext; then
  38339. - ac_header_compiler=yes
  38340. -else
  38341. - echo "$as_me: failed program was:" >&5
  38342. -sed 's/^/| /' conftest.$ac_ext >&5
  38343. + ;;
  38344. + esac
  38345. + fi
  38346. - ac_header_compiler=no
  38347. -fi
  38348. + case ${host_os} in
  38349. + os2*)
  38350. + found_sound=yes
  38351. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38352. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38353. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38354. +$as_echo "#define DRIVER_DART 1" >>confdefs.h
  38355. -# Is the header present?
  38356. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38357. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  38358. -cat >conftest.$ac_ext <<_ACEOF
  38359. -/* confdefs.h. */
  38360. -_ACEOF
  38361. -cat confdefs.h >>conftest.$ac_ext
  38362. -cat >>conftest.$ac_ext <<_ACEOF
  38363. -/* end confdefs.h. */
  38364. -#include <$ac_header>
  38365. -_ACEOF
  38366. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38367. -case "(($ac_try" in
  38368. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38369. - *) ac_try_echo=$ac_try;;
  38370. -esac
  38371. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38372. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38373. - ac_status=$?
  38374. - grep -v '^ *+' conftest.er1 >conftest.err
  38375. - rm -f conftest.er1
  38376. - cat conftest.err >&5
  38377. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38378. - (exit $ac_status); } >/dev/null && {
  38379. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38380. - test ! -s conftest.err
  38381. - }; then
  38382. - ac_header_preproc=yes
  38383. -else
  38384. - echo "$as_me: failed program was:" >&5
  38385. -sed 's/^/| /' conftest.$ac_ext >&5
  38386. + ;;
  38387. + esac
  38388. - ac_header_preproc=no
  38389. -fi
  38390. + if test "${ac_cv_header_dmedia_audio_h}" = "yes"; then
  38391. + case ${host_os} in
  38392. + irix*)
  38393. + found_sound=yes
  38394. -rm -f conftest.err conftest.$ac_ext
  38395. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38396. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  38397. +$as_echo "#define DRIVER_IRIX 1" >>confdefs.h
  38398. -# So? What about this header?
  38399. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38400. - yes:no: )
  38401. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38402. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38403. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38404. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38405. - ac_header_preproc=yes
  38406. - ;;
  38407. - no:yes:* )
  38408. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38409. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38410. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38411. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38412. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38413. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38414. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38415. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38416. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38417. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38418. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38419. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  38420. + esac
  38421. + fi
  38422. - ;;
  38423. -esac
  38424. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  38425. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38426. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38427. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38428. -else
  38429. - eval "$as_ac_Header=\$ac_header_preproc"
  38430. -fi
  38431. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38432. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38433. -echo "${ECHO_T}$ac_res" >&6; }
  38434. + if test "${ac_cv_header_mme_mme_api_h}" = "yes"; then
  38435. + case ${host_os} in
  38436. + osf*)
  38437. + found_sound=yes
  38438. -fi
  38439. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  38440. - cat >>confdefs.h <<_ACEOF
  38441. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38442. -_ACEOF
  38443. +$as_echo "#define DRIVER_OSF 1" >>confdefs.h
  38444. -fi
  38445. + CPPFLAGS="$CPPFLAGS -I/usr/include/mme"
  38446. + SOUND_LIBS=-lmme
  38447. + esac
  38448. + fi
  38449. -done
  38450. + if test "x$enable_alsa" = "xyes"; then
  38451. + if test "${ac_cv_header_sys_soundlib_h}" = "yes"; then
  38452. + found_sound=yes
  38453. +$as_echo "#define DRIVER_ALSA 1" >>confdefs.h
  38454. + fi
  38455. + if test "${ac_cv_header_alsa_asoundlib_h}" = "yes"; then
  38456. + found_sound=yes
  38457. -# Check whether --enable-debugging was given.
  38458. -if test "${enable_debugging+set}" = set; then
  38459. - enableval=$enable_debugging; enable_debuggin=${enableval}
  38460. -else
  38461. - enable_debugging=no
  38462. -fi
  38463. +$as_echo "#define DRIVER_ALSA_09 1" >>confdefs.h
  38464. + fi
  38465. + if test "${ac_cv_header_sys_asoundlib_h}" = "yes"; then
  38466. + found_sound=yes
  38467. -if test "x$enable_debugging" = "xyes"; then
  38468. +$as_echo "#define DRIVER_NEWALSA 1" >>confdefs.h
  38469. -cat >>confdefs.h <<\_ACEOF
  38470. -#define ESDBG 1
  38471. -_ACEOF
  38472. + fi
  38473. + fi
  38474. -fi
  38475. + if test "${ac_cv_header_CoreAudio_CoreAudio_h}" = "yes"; then
  38476. + found_sound=yes
  38477. +$as_echo "#define DRIVER_COREAUDIO 1" >>confdefs.h
  38478. -# Check whether --enable-local_sound was given.
  38479. -if test "${enable_local_sound+set}" = set; then
  38480. - enableval=$enable_local_sound; enable_local_sound=${enableval}
  38481. -else
  38482. - enable_local_sound=yes
  38483. -fi
  38484. + SOUND_LIBS="-Wl,-framework,CoreAudio"
  38485. + fi
  38486. -# Check whether --enable-oss was given.
  38487. -if test "${enable_oss+set}" = set; then
  38488. - enableval=$enable_oss; enable_oss=${enableval}
  38489. -else
  38490. - enable_oss=yes
  38491. -fi
  38492. + if test "x$enable_arts" = "xyes" ; then
  38493. + if test "x$HAVE_ARTS" = "xyes"; then
  38494. + found_sound=yes
  38495. + CFLAGS="$CFLAGS $ARTSC_CFLAGS"
  38496. + LIBS="$LIBS $ARTS_LIBS"
  38497. -# Check whether --enable-alsa was given.
  38498. -if test "${enable_alsa+set}" = set; then
  38499. - enableval=$enable_alsa; enable_alsa=${enableval}
  38500. -else
  38501. - enable_alsa=yes
  38502. -fi
  38503. +$as_echo "#define DRIVER_ARTS 1" >>confdefs.h
  38504. -# Check whether --enable-arts was given.
  38505. -if test "${enable_arts+set}" = set; then
  38506. - enableval=$enable_arts; enable_arts=${enableval}
  38507. -else
  38508. - enable_arts=no
  38509. -fi
  38510. + fi
  38511. + fi
  38512. + if test "$found_sound" = "no"; then
  38513. + as_fn_error "Could not find a support sound driver" "$LINENO" 5
  38514. + fi
  38515. -dsp_ok=no DL_LIB=
  38516. -{ echo "$as_me:$LINENO: checking if your platform supports esddsp" >&5
  38517. -echo $ECHO_N "checking if your platform supports esddsp... $ECHO_C" >&6; }
  38518. -case "$host_os" in
  38519. - linux* | freebsd* | kfreebsd*-gnu | bsdi4* )
  38520. - dsp_ok=yes
  38521. - ;;
  38522. -esac
  38523. -{ echo "$as_me:$LINENO: result: $dsp_ok" >&5
  38524. -echo "${ECHO_T}$dsp_ok" >&6; }
  38525. + echo "---------------------------------------------------------------------"
  38526. + echo "--- Checking to see which audio libraries are required for linking.";
  38527. + echo "--- Most of these checks should also fail. Do not be alarmed.";
  38528. + ac_fn_c_check_func "$LINENO" "_oss_ioctl" "ac_cv_func__oss_ioctl"
  38529. +if test "x$ac_cv_func__oss_ioctl" = x""yes; then :
  38530. -if test "x$dsp_ok" = xyes; then
  38531. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  38532. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  38533. -if test "${ac_cv_func_dlopen+set}" = set; then
  38534. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38535. else
  38536. - cat >conftest.$ac_ext <<_ACEOF
  38537. -/* confdefs.h. */
  38538. -_ACEOF
  38539. -cat confdefs.h >>conftest.$ac_ext
  38540. -cat >>conftest.$ac_ext <<_ACEOF
  38541. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
  38542. +$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
  38543. +if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
  38544. + $as_echo_n "(cached) " >&6
  38545. +else
  38546. + ac_check_lib_save_LIBS=$LIBS
  38547. +LIBS="-lossaudio $LIBS"
  38548. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38549. /* end confdefs.h. */
  38550. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  38551. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38552. -#define dlopen innocuous_dlopen
  38553. -
  38554. -/* System header to define __stub macros and hopefully few prototypes,
  38555. - which can conflict with char dlopen (); below.
  38556. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38557. - <limits.h> exists even on freestanding compilers. */
  38558. -
  38559. -#ifdef __STDC__
  38560. -# include <limits.h>
  38561. -#else
  38562. -# include <assert.h>
  38563. -#endif
  38564. -
  38565. -#undef dlopen
  38566. /* Override any GCC internal prototype to avoid an error.
  38567. Use char because int might match the return type of a GCC
  38568. @@ -23108,68 +16568,49 @@
  38569. #ifdef __cplusplus
  38570. extern "C"
  38571. #endif
  38572. -char dlopen ();
  38573. -/* The GNU C library defines this for functions which it implements
  38574. - to always fail with ENOSYS. Some functions are actually named
  38575. - something starting with __ and the normal name is an alias. */
  38576. -#if defined __stub_dlopen || defined __stub___dlopen
  38577. -choke me
  38578. -#endif
  38579. -
  38580. +char _oss_ioctl ();
  38581. int
  38582. main ()
  38583. {
  38584. -return dlopen ();
  38585. +return _oss_ioctl ();
  38586. ;
  38587. return 0;
  38588. }
  38589. _ACEOF
  38590. -rm -f conftest.$ac_objext conftest$ac_exeext
  38591. -if { (ac_try="$ac_link"
  38592. -case "(($ac_try" in
  38593. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38594. - *) ac_try_echo=$ac_try;;
  38595. -esac
  38596. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38597. - (eval "$ac_link") 2>conftest.er1
  38598. - ac_status=$?
  38599. - grep -v '^ *+' conftest.er1 >conftest.err
  38600. - rm -f conftest.er1
  38601. - cat conftest.err >&5
  38602. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38603. - (exit $ac_status); } && {
  38604. - test -z "$ac_c_werror_flag" ||
  38605. - test ! -s conftest.err
  38606. - } && test -s conftest$ac_exeext &&
  38607. - $as_test_x conftest$ac_exeext; then
  38608. - ac_cv_func_dlopen=yes
  38609. +if ac_fn_c_try_link "$LINENO"; then :
  38610. + ac_cv_lib_ossaudio__oss_ioctl=yes
  38611. else
  38612. - echo "$as_me: failed program was:" >&5
  38613. -sed 's/^/| /' conftest.$ac_ext >&5
  38614. + ac_cv_lib_ossaudio__oss_ioctl=no
  38615. +fi
  38616. +rm -f core conftest.err conftest.$ac_objext \
  38617. + conftest$ac_exeext conftest.$ac_ext
  38618. +LIBS=$ac_check_lib_save_LIBS
  38619. +fi
  38620. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
  38621. +$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
  38622. +if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
  38623. + cat >>confdefs.h <<_ACEOF
  38624. +#define HAVE_LIBOSSAUDIO 1
  38625. +_ACEOF
  38626. +
  38627. + LIBS="-lossaudio $LIBS"
  38628. - ac_cv_func_dlopen=no
  38629. fi
  38630. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38631. - conftest$ac_exeext conftest.$ac_ext
  38632. fi
  38633. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  38634. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  38635. -if test $ac_cv_func_dlopen = yes; then
  38636. - DL_LIB=
  38637. +
  38638. + ac_fn_c_check_func "$LINENO" "ALnewconfig" "ac_cv_func_ALnewconfig"
  38639. +if test "x$ac_cv_func_ALnewconfig" = x""yes; then :
  38640. +
  38641. else
  38642. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  38643. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  38644. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  38645. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38646. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALnewconfig in -laudio" >&5
  38647. +$as_echo_n "checking for ALnewconfig in -laudio... " >&6; }
  38648. +if test "${ac_cv_lib_audio_ALnewconfig+set}" = set; then :
  38649. + $as_echo_n "(cached) " >&6
  38650. else
  38651. ac_check_lib_save_LIBS=$LIBS
  38652. -LIBS="-ldl $LIBS"
  38653. -cat >conftest.$ac_ext <<_ACEOF
  38654. -/* confdefs.h. */
  38655. -_ACEOF
  38656. -cat confdefs.h >>conftest.$ac_ext
  38657. -cat >>conftest.$ac_ext <<_ACEOF
  38658. +LIBS="-laudio $LIBS"
  38659. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38660. /* end confdefs.h. */
  38661. /* Override any GCC internal prototype to avoid an error.
  38662. @@ -23178,4090 +16619,3262 @@
  38663. #ifdef __cplusplus
  38664. extern "C"
  38665. #endif
  38666. -char dlopen ();
  38667. +char ALnewconfig ();
  38668. int
  38669. main ()
  38670. {
  38671. -return dlopen ();
  38672. +return ALnewconfig ();
  38673. ;
  38674. return 0;
  38675. }
  38676. _ACEOF
  38677. -rm -f conftest.$ac_objext conftest$ac_exeext
  38678. -if { (ac_try="$ac_link"
  38679. -case "(($ac_try" in
  38680. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38681. - *) ac_try_echo=$ac_try;;
  38682. -esac
  38683. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38684. - (eval "$ac_link") 2>conftest.er1
  38685. - ac_status=$?
  38686. - grep -v '^ *+' conftest.er1 >conftest.err
  38687. - rm -f conftest.er1
  38688. - cat conftest.err >&5
  38689. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38690. - (exit $ac_status); } && {
  38691. - test -z "$ac_c_werror_flag" ||
  38692. - test ! -s conftest.err
  38693. - } && test -s conftest$ac_exeext &&
  38694. - $as_test_x conftest$ac_exeext; then
  38695. - ac_cv_lib_dl_dlopen=yes
  38696. +if ac_fn_c_try_link "$LINENO"; then :
  38697. + ac_cv_lib_audio_ALnewconfig=yes
  38698. else
  38699. - echo "$as_me: failed program was:" >&5
  38700. -sed 's/^/| /' conftest.$ac_ext >&5
  38701. -
  38702. - ac_cv_lib_dl_dlopen=no
  38703. + ac_cv_lib_audio_ALnewconfig=no
  38704. fi
  38705. -
  38706. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38707. - conftest$ac_exeext conftest.$ac_ext
  38708. +rm -f core conftest.err conftest.$ac_objext \
  38709. + conftest$ac_exeext conftest.$ac_ext
  38710. LIBS=$ac_check_lib_save_LIBS
  38711. fi
  38712. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  38713. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  38714. -if test $ac_cv_lib_dl_dlopen = yes; then
  38715. - DL_LIB=-ldl
  38716. -fi
  38717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_ALnewconfig" >&5
  38718. +$as_echo "$ac_cv_lib_audio_ALnewconfig" >&6; }
  38719. +if test "x$ac_cv_lib_audio_ALnewconfig" = x""yes; then :
  38720. + cat >>confdefs.h <<_ACEOF
  38721. +#define HAVE_LIBAUDIO 1
  38722. +_ACEOF
  38723. -fi
  38724. + LIBS="-laudio $LIBS"
  38725. - ESDDSP=esddsp
  38726. - LIBESDDSP=libesddsp.la
  38727. -fi
  38728. - if test "x$dsp_ok" = xyes; then
  38729. - BUILD_ESDDSP_TRUE=
  38730. - BUILD_ESDDSP_FALSE='#'
  38731. -else
  38732. - BUILD_ESDDSP_TRUE='#'
  38733. - BUILD_ESDDSP_FALSE=
  38734. fi
  38735. +fi
  38736. -if test "x$enable_local_sound" = "xyes"; then
  38737. - found_sound=no
  38738. -
  38739. -
  38740. - echo "---------------------------------------------------------------------"
  38741. - echo "--- Checking to see which audio header files your system uses.";
  38742. - echo "--- Most of these checks should fail. Do not be alarmed.";
  38743. -
  38744. -
  38745. -
  38746. + if test "x$enable_alsa" = "xyes"; then
  38747. + ac_fn_c_check_func "$LINENO" "snd_cards" "ac_cv_func_snd_cards"
  38748. +if test "x$ac_cv_func_snd_cards" = x""yes; then :
  38749. -for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h
  38750. -do
  38751. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38752. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38753. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  38754. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38755. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38756. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38757. -fi
  38758. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38759. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38760. -echo "${ECHO_T}$ac_res" >&6; }
  38761. else
  38762. - # Is the header compilable?
  38763. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38764. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  38765. -cat >conftest.$ac_ext <<_ACEOF
  38766. -/* confdefs.h. */
  38767. -_ACEOF
  38768. -cat confdefs.h >>conftest.$ac_ext
  38769. -cat >>conftest.$ac_ext <<_ACEOF
  38770. -/* end confdefs.h. */
  38771. -$ac_includes_default
  38772. -#include <$ac_header>
  38773. -_ACEOF
  38774. -rm -f conftest.$ac_objext
  38775. -if { (ac_try="$ac_compile"
  38776. -case "(($ac_try" in
  38777. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38778. - *) ac_try_echo=$ac_try;;
  38779. -esac
  38780. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38781. - (eval "$ac_compile") 2>conftest.er1
  38782. - ac_status=$?
  38783. - grep -v '^ *+' conftest.er1 >conftest.err
  38784. - rm -f conftest.er1
  38785. - cat conftest.err >&5
  38786. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38787. - (exit $ac_status); } && {
  38788. - test -z "$ac_c_werror_flag" ||
  38789. - test ! -s conftest.err
  38790. - } && test -s conftest.$ac_objext; then
  38791. - ac_header_compiler=yes
  38792. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_cards in -lsound" >&5
  38793. +$as_echo_n "checking for snd_cards in -lsound... " >&6; }
  38794. +if test "${ac_cv_lib_sound_snd_cards+set}" = set; then :
  38795. + $as_echo_n "(cached) " >&6
  38796. else
  38797. - echo "$as_me: failed program was:" >&5
  38798. -sed 's/^/| /' conftest.$ac_ext >&5
  38799. -
  38800. - ac_header_compiler=no
  38801. -fi
  38802. -
  38803. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38804. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38805. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38806. -
  38807. -# Is the header present?
  38808. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38809. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  38810. -cat >conftest.$ac_ext <<_ACEOF
  38811. -/* confdefs.h. */
  38812. -_ACEOF
  38813. -cat confdefs.h >>conftest.$ac_ext
  38814. -cat >>conftest.$ac_ext <<_ACEOF
  38815. + ac_check_lib_save_LIBS=$LIBS
  38816. +LIBS="-lsound $LIBS"
  38817. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38818. /* end confdefs.h. */
  38819. -#include <$ac_header>
  38820. +
  38821. +/* Override any GCC internal prototype to avoid an error.
  38822. + Use char because int might match the return type of a GCC
  38823. + builtin and then its argument prototype would still apply. */
  38824. +#ifdef __cplusplus
  38825. +extern "C"
  38826. +#endif
  38827. +char snd_cards ();
  38828. +int
  38829. +main ()
  38830. +{
  38831. +return snd_cards ();
  38832. + ;
  38833. + return 0;
  38834. +}
  38835. _ACEOF
  38836. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38837. -case "(($ac_try" in
  38838. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38839. - *) ac_try_echo=$ac_try;;
  38840. -esac
  38841. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38842. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38843. - ac_status=$?
  38844. - grep -v '^ *+' conftest.er1 >conftest.err
  38845. - rm -f conftest.er1
  38846. - cat conftest.err >&5
  38847. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38848. - (exit $ac_status); } >/dev/null && {
  38849. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38850. - test ! -s conftest.err
  38851. - }; then
  38852. - ac_header_preproc=yes
  38853. +if ac_fn_c_try_link "$LINENO"; then :
  38854. + ac_cv_lib_sound_snd_cards=yes
  38855. else
  38856. - echo "$as_me: failed program was:" >&5
  38857. -sed 's/^/| /' conftest.$ac_ext >&5
  38858. -
  38859. - ac_header_preproc=no
  38860. + ac_cv_lib_sound_snd_cards=no
  38861. fi
  38862. -
  38863. -rm -f conftest.err conftest.$ac_ext
  38864. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38865. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  38866. -
  38867. -# So? What about this header?
  38868. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38869. - yes:no: )
  38870. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38871. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38872. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38873. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38874. - ac_header_preproc=yes
  38875. - ;;
  38876. - no:yes:* )
  38877. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38878. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38879. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38880. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38881. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38882. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38883. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38884. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38885. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38886. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38887. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38888. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  38889. -
  38890. - ;;
  38891. -esac
  38892. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  38893. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38894. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38895. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38896. -else
  38897. - eval "$as_ac_Header=\$ac_header_preproc"
  38898. -fi
  38899. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38900. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38901. -echo "${ECHO_T}$ac_res" >&6; }
  38902. -
  38903. +rm -f core conftest.err conftest.$ac_objext \
  38904. + conftest$ac_exeext conftest.$ac_ext
  38905. +LIBS=$ac_check_lib_save_LIBS
  38906. fi
  38907. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  38908. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sound_snd_cards" >&5
  38909. +$as_echo "$ac_cv_lib_sound_snd_cards" >&6; }
  38910. +if test "x$ac_cv_lib_sound_snd_cards" = x""yes; then :
  38911. cat >>confdefs.h <<_ACEOF
  38912. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38913. +#define HAVE_LIBSOUND 1
  38914. _ACEOF
  38915. -fi
  38916. -
  38917. -done
  38918. + LIBS="-lsound $LIBS"
  38919. +fi
  38920. +fi
  38921. + ac_fn_c_check_func "$LINENO" "snd_cards" "ac_cv_func_snd_cards"
  38922. +if test "x$ac_cv_func_snd_cards" = x""yes; then :
  38923. -for ac_header in sys/audioio.h sys/audio.io.h sun/audioio.h
  38924. -do
  38925. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38926. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38927. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  38928. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38929. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38930. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38931. -fi
  38932. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38933. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38934. -echo "${ECHO_T}$ac_res" >&6; }
  38935. else
  38936. - # Is the header compilable?
  38937. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38938. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  38939. -cat >conftest.$ac_ext <<_ACEOF
  38940. -/* confdefs.h. */
  38941. -_ACEOF
  38942. -cat confdefs.h >>conftest.$ac_ext
  38943. -cat >>conftest.$ac_ext <<_ACEOF
  38944. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_cards in -lasound" >&5
  38945. +$as_echo_n "checking for snd_cards in -lasound... " >&6; }
  38946. +if test "${ac_cv_lib_asound_snd_cards+set}" = set; then :
  38947. + $as_echo_n "(cached) " >&6
  38948. +else
  38949. + ac_check_lib_save_LIBS=$LIBS
  38950. +LIBS="-lasound $LIBS"
  38951. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38952. /* end confdefs.h. */
  38953. -$ac_includes_default
  38954. -#include <$ac_header>
  38955. +
  38956. +/* Override any GCC internal prototype to avoid an error.
  38957. + Use char because int might match the return type of a GCC
  38958. + builtin and then its argument prototype would still apply. */
  38959. +#ifdef __cplusplus
  38960. +extern "C"
  38961. +#endif
  38962. +char snd_cards ();
  38963. +int
  38964. +main ()
  38965. +{
  38966. +return snd_cards ();
  38967. + ;
  38968. + return 0;
  38969. +}
  38970. _ACEOF
  38971. -rm -f conftest.$ac_objext
  38972. -if { (ac_try="$ac_compile"
  38973. -case "(($ac_try" in
  38974. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38975. - *) ac_try_echo=$ac_try;;
  38976. -esac
  38977. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38978. - (eval "$ac_compile") 2>conftest.er1
  38979. - ac_status=$?
  38980. - grep -v '^ *+' conftest.er1 >conftest.err
  38981. - rm -f conftest.er1
  38982. - cat conftest.err >&5
  38983. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38984. - (exit $ac_status); } && {
  38985. - test -z "$ac_c_werror_flag" ||
  38986. - test ! -s conftest.err
  38987. - } && test -s conftest.$ac_objext; then
  38988. - ac_header_compiler=yes
  38989. +if ac_fn_c_try_link "$LINENO"; then :
  38990. + ac_cv_lib_asound_snd_cards=yes
  38991. else
  38992. - echo "$as_me: failed program was:" >&5
  38993. -sed 's/^/| /' conftest.$ac_ext >&5
  38994. + ac_cv_lib_asound_snd_cards=no
  38995. +fi
  38996. +rm -f core conftest.err conftest.$ac_objext \
  38997. + conftest$ac_exeext conftest.$ac_ext
  38998. +LIBS=$ac_check_lib_save_LIBS
  38999. +fi
  39000. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_cards" >&5
  39001. +$as_echo "$ac_cv_lib_asound_snd_cards" >&6; }
  39002. +if test "x$ac_cv_lib_asound_snd_cards" = x""yes; then :
  39003. + cat >>confdefs.h <<_ACEOF
  39004. +#define HAVE_LIBASOUND 1
  39005. +_ACEOF
  39006. +
  39007. + LIBS="-lasound $LIBS"
  39008. - ac_header_compiler=no
  39009. fi
  39010. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39011. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39012. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39013. +fi
  39014. -# Is the header present?
  39015. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39016. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39017. -cat >conftest.$ac_ext <<_ACEOF
  39018. -/* confdefs.h. */
  39019. -_ACEOF
  39020. -cat confdefs.h >>conftest.$ac_ext
  39021. -cat >>conftest.$ac_ext <<_ACEOF
  39022. + ac_fn_c_check_func "$LINENO" "snd_pcm_pause" "ac_cv_func_snd_pcm_pause"
  39023. +if test "x$ac_cv_func_snd_pcm_pause" = x""yes; then :
  39024. +
  39025. +else
  39026. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_pause in -lasound" >&5
  39027. +$as_echo_n "checking for snd_pcm_pause in -lasound... " >&6; }
  39028. +if test "${ac_cv_lib_asound_snd_pcm_pause+set}" = set; then :
  39029. + $as_echo_n "(cached) " >&6
  39030. +else
  39031. + ac_check_lib_save_LIBS=$LIBS
  39032. +LIBS="-lasound $LIBS"
  39033. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39034. /* end confdefs.h. */
  39035. -#include <$ac_header>
  39036. +
  39037. +/* Override any GCC internal prototype to avoid an error.
  39038. + Use char because int might match the return type of a GCC
  39039. + builtin and then its argument prototype would still apply. */
  39040. +#ifdef __cplusplus
  39041. +extern "C"
  39042. +#endif
  39043. +char snd_pcm_pause ();
  39044. +int
  39045. +main ()
  39046. +{
  39047. +return snd_pcm_pause ();
  39048. + ;
  39049. + return 0;
  39050. +}
  39051. _ACEOF
  39052. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39053. -case "(($ac_try" in
  39054. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39055. - *) ac_try_echo=$ac_try;;
  39056. -esac
  39057. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39058. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39059. - ac_status=$?
  39060. - grep -v '^ *+' conftest.er1 >conftest.err
  39061. - rm -f conftest.er1
  39062. - cat conftest.err >&5
  39063. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39064. - (exit $ac_status); } >/dev/null && {
  39065. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39066. - test ! -s conftest.err
  39067. - }; then
  39068. - ac_header_preproc=yes
  39069. +if ac_fn_c_try_link "$LINENO"; then :
  39070. + ac_cv_lib_asound_snd_pcm_pause=yes
  39071. else
  39072. - echo "$as_me: failed program was:" >&5
  39073. -sed 's/^/| /' conftest.$ac_ext >&5
  39074. -
  39075. - ac_header_preproc=no
  39076. + ac_cv_lib_asound_snd_pcm_pause=no
  39077. fi
  39078. -
  39079. -rm -f conftest.err conftest.$ac_ext
  39080. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39081. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39082. -
  39083. -# So? What about this header?
  39084. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39085. - yes:no: )
  39086. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39087. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39088. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39089. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39090. - ac_header_preproc=yes
  39091. - ;;
  39092. - no:yes:* )
  39093. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39094. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39095. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39096. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39097. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39098. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39099. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39100. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39101. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39102. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39103. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39104. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39105. -
  39106. - ;;
  39107. -esac
  39108. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39109. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39110. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39111. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39112. -else
  39113. - eval "$as_ac_Header=\$ac_header_preproc"
  39114. -fi
  39115. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39116. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39117. -echo "${ECHO_T}$ac_res" >&6; }
  39118. -
  39119. +rm -f core conftest.err conftest.$ac_objext \
  39120. + conftest$ac_exeext conftest.$ac_ext
  39121. +LIBS=$ac_check_lib_save_LIBS
  39122. fi
  39123. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39124. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_pause" >&5
  39125. +$as_echo "$ac_cv_lib_asound_snd_pcm_pause" >&6; }
  39126. +if test "x$ac_cv_lib_asound_snd_pcm_pause" = x""yes; then :
  39127. cat >>confdefs.h <<_ACEOF
  39128. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39129. +#define HAVE_LIBASOUND 1
  39130. _ACEOF
  39131. + LIBS="-lasound $LIBS"
  39132. +
  39133. fi
  39134. -done
  39135. +fi
  39136. + saved_cflags="$CFLAGS"
  39137. + CFLAGS="$CFLAGS -Werror"
  39138. + echo -n "checking for alsa new PCM API... "
  39139. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39140. +/* end confdefs.h. */
  39141. + #include <alsa/asoundlib.h>
  39142. +
  39143. +int
  39144. +main ()
  39145. +{
  39146. + snd_pcm_t *pcm;
  39147. + snd_pcm_hw_params_t *params;
  39148. + unsigned int val;
  39149. + int dir;
  39150. + /* intentionally not uses pointers, trying to replicate bug 129709 */
  39151. + snd_pcm_hw_params_set_rate_near(pcm, params, val, &dir);
  39152. -for ac_header in dmedia/audio.h sys/soundlib.h sys/asoundlib.h alsa/asoundlib.h
  39153. -do
  39154. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39155. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39156. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39157. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39158. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39159. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39160. -fi
  39161. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39162. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39163. -echo "${ECHO_T}$ac_res" >&6; }
  39164. -else
  39165. - # Is the header compilable?
  39166. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39167. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39168. -cat >conftest.$ac_ext <<_ACEOF
  39169. -/* confdefs.h. */
  39170. -_ACEOF
  39171. -cat confdefs.h >>conftest.$ac_ext
  39172. -cat >>conftest.$ac_ext <<_ACEOF
  39173. -/* end confdefs.h. */
  39174. -$ac_includes_default
  39175. -#include <$ac_header>
  39176. + ;
  39177. + return 0;
  39178. +}
  39179. _ACEOF
  39180. -rm -f conftest.$ac_objext
  39181. -if { (ac_try="$ac_compile"
  39182. -case "(($ac_try" in
  39183. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39184. - *) ac_try_echo=$ac_try;;
  39185. -esac
  39186. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39187. - (eval "$ac_compile") 2>conftest.er1
  39188. - ac_status=$?
  39189. - grep -v '^ *+' conftest.er1 >conftest.err
  39190. - rm -f conftest.er1
  39191. - cat conftest.err >&5
  39192. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39193. - (exit $ac_status); } && {
  39194. - test -z "$ac_c_werror_flag" ||
  39195. - test ! -s conftest.err
  39196. - } && test -s conftest.$ac_objext; then
  39197. - ac_header_compiler=yes
  39198. +if ac_fn_c_try_link "$LINENO"; then :
  39199. + echo "no"
  39200. else
  39201. - echo "$as_me: failed program was:" >&5
  39202. -sed 's/^/| /' conftest.$ac_ext >&5
  39203. - ac_header_compiler=no
  39204. +$as_echo "#define DRIVER_ALSA_09_NEW_PCM_API 1" >>confdefs.h
  39205. + echo "yes"
  39206. fi
  39207. +rm -f core conftest.err conftest.$ac_objext \
  39208. + conftest$ac_exeext conftest.$ac_ext
  39209. +
  39210. + CFLAGS="$saved_cflags"
  39211. + fi
  39212. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39213. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39214. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39215. -# Is the header present?
  39216. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39217. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39218. -cat >conftest.$ac_ext <<_ACEOF
  39219. -/* confdefs.h. */
  39220. -_ACEOF
  39221. -cat confdefs.h >>conftest.$ac_ext
  39222. -cat >>conftest.$ac_ext <<_ACEOF
  39223. -/* end confdefs.h. */
  39224. -#include <$ac_header>
  39225. -_ACEOF
  39226. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39227. -case "(($ac_try" in
  39228. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39229. - *) ac_try_echo=$ac_try;;
  39230. -esac
  39231. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39232. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39233. - ac_status=$?
  39234. - grep -v '^ *+' conftest.er1 >conftest.err
  39235. - rm -f conftest.er1
  39236. - cat conftest.err >&5
  39237. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39238. - (exit $ac_status); } >/dev/null && {
  39239. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39240. - test ! -s conftest.err
  39241. - }; then
  39242. - ac_header_preproc=yes
  39243. else
  39244. - echo "$as_me: failed program was:" >&5
  39245. -sed 's/^/| /' conftest.$ac_ext >&5
  39246. - ac_header_preproc=no
  39247. -fi
  39248. +$as_echo "#define DRIVER_NONE 1" >>confdefs.h
  39249. -rm -f conftest.err conftest.$ac_ext
  39250. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39251. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39252. +fi
  39253. -# So? What about this header?
  39254. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39255. - yes:no: )
  39256. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39257. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39258. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39259. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39260. - ac_header_preproc=yes
  39261. - ;;
  39262. - no:yes:* )
  39263. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39264. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39265. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39266. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39267. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39268. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39269. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39270. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39271. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39272. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39273. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39274. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39275. - ;;
  39276. -esac
  39277. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39278. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39279. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39280. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39281. -else
  39282. - eval "$as_ac_Header=\$ac_header_preproc"
  39283. -fi
  39284. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39285. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39286. -echo "${ECHO_T}$ac_res" >&6; }
  39287. +# Check whether --with-esd-dir was given.
  39288. +if test "${with_esd_dir+set}" = set; then :
  39289. + withval=$with_esd_dir;
  39290. fi
  39291. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39292. - cat >>confdefs.h <<_ACEOF
  39293. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39294. -_ACEOF
  39295. +
  39296. +if test "x$with_esd_dir" = "x" ; then
  39297. + ESD_DIR='$(prefix)/bin'
  39298. + ESD_PC_DIR='${prefix}/bin'
  39299. +else
  39300. + ESD_DIR=$with_esd_dir
  39301. + ESD_PC_DIR=$with_esd_dir
  39302. fi
  39303. -done
  39304. -for ac_header in CoreAudio/CoreAudio.h
  39305. -do
  39306. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39307. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39308. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39309. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39310. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39311. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39312. -fi
  39313. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39314. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39315. -echo "${ECHO_T}$ac_res" >&6; }
  39316. -else
  39317. - # Is the header compilable?
  39318. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39319. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39320. -cat >conftest.$ac_ext <<_ACEOF
  39321. -/* confdefs.h. */
  39322. -_ACEOF
  39323. -cat confdefs.h >>conftest.$ac_ext
  39324. -cat >>conftest.$ac_ext <<_ACEOF
  39325. -/* end confdefs.h. */
  39326. -$ac_includes_default
  39327. -#include <$ac_header>
  39328. -_ACEOF
  39329. -rm -f conftest.$ac_objext
  39330. -if { (ac_try="$ac_compile"
  39331. -case "(($ac_try" in
  39332. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39333. - *) ac_try_echo=$ac_try;;
  39334. -esac
  39335. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39336. - (eval "$ac_compile") 2>conftest.er1
  39337. - ac_status=$?
  39338. - grep -v '^ *+' conftest.er1 >conftest.err
  39339. - rm -f conftest.er1
  39340. - cat conftest.err >&5
  39341. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39342. - (exit $ac_status); } && {
  39343. - test -z "$ac_c_werror_flag" ||
  39344. - test ! -s conftest.err
  39345. - } && test -s conftest.$ac_objext; then
  39346. - ac_header_compiler=yes
  39347. -else
  39348. - echo "$as_me: failed program was:" >&5
  39349. -sed 's/^/| /' conftest.$ac_ext >&5
  39350. - ac_header_compiler=no
  39351. -fi
  39352. +build_esdplay=false
  39353. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39354. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39355. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39356. -# Is the header present?
  39357. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39358. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39359. -cat >conftest.$ac_ext <<_ACEOF
  39360. -/* confdefs.h. */
  39361. -_ACEOF
  39362. -cat confdefs.h >>conftest.$ac_ext
  39363. -cat >>conftest.$ac_ext <<_ACEOF
  39364. -/* end confdefs.h. */
  39365. -#include <$ac_header>
  39366. -_ACEOF
  39367. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39368. -case "(($ac_try" in
  39369. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39370. - *) ac_try_echo=$ac_try;;
  39371. -esac
  39372. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39373. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39374. - ac_status=$?
  39375. - grep -v '^ *+' conftest.er1 >conftest.err
  39376. - rm -f conftest.er1
  39377. - cat conftest.err >&5
  39378. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39379. - (exit $ac_status); } >/dev/null && {
  39380. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39381. - test ! -s conftest.err
  39382. - }; then
  39383. - ac_header_preproc=yes
  39384. +
  39385. +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  39386. + if test -n "$ac_tool_prefix"; then
  39387. + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  39388. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  39389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39390. +$as_echo_n "checking for $ac_word... " >&6; }
  39391. +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  39392. + $as_echo_n "(cached) " >&6
  39393. else
  39394. - echo "$as_me: failed program was:" >&5
  39395. -sed 's/^/| /' conftest.$ac_ext >&5
  39396. + case $PKG_CONFIG in
  39397. + [\\/]* | ?:[\\/]*)
  39398. + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  39399. + ;;
  39400. + *)
  39401. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39402. +for as_dir in $PATH
  39403. +do
  39404. + IFS=$as_save_IFS
  39405. + test -z "$as_dir" && as_dir=.
  39406. + for ac_exec_ext in '' $ac_executable_extensions; do
  39407. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39408. + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  39409. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39410. + break 2
  39411. + fi
  39412. +done
  39413. + done
  39414. +IFS=$as_save_IFS
  39415. - ac_header_preproc=no
  39416. + ;;
  39417. +esac
  39418. +fi
  39419. +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  39420. +if test -n "$PKG_CONFIG"; then
  39421. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  39422. +$as_echo "$PKG_CONFIG" >&6; }
  39423. +else
  39424. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39425. +$as_echo "no" >&6; }
  39426. fi
  39427. -rm -f conftest.err conftest.$ac_ext
  39428. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39429. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39430. -# So? What about this header?
  39431. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39432. - yes:no: )
  39433. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39434. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39435. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39436. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39437. - ac_header_preproc=yes
  39438. - ;;
  39439. - no:yes:* )
  39440. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39441. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39442. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39443. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39444. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39445. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39446. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39447. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39448. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39449. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39450. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39451. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39452. +fi
  39453. +if test -z "$ac_cv_path_PKG_CONFIG"; then
  39454. + ac_pt_PKG_CONFIG=$PKG_CONFIG
  39455. + # Extract the first word of "pkg-config", so it can be a program name with args.
  39456. +set dummy pkg-config; ac_word=$2
  39457. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39458. +$as_echo_n "checking for $ac_word... " >&6; }
  39459. +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  39460. + $as_echo_n "(cached) " >&6
  39461. +else
  39462. + case $ac_pt_PKG_CONFIG in
  39463. + [\\/]* | ?:[\\/]*)
  39464. + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  39465. + ;;
  39466. + *)
  39467. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39468. +for as_dir in $PATH
  39469. +do
  39470. + IFS=$as_save_IFS
  39471. + test -z "$as_dir" && as_dir=.
  39472. + for ac_exec_ext in '' $ac_executable_extensions; do
  39473. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39474. + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  39475. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39476. + break 2
  39477. + fi
  39478. +done
  39479. + done
  39480. +IFS=$as_save_IFS
  39481. - ;;
  39482. + ;;
  39483. esac
  39484. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39485. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39486. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39487. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39488. -else
  39489. - eval "$as_ac_Header=\$ac_header_preproc"
  39490. -fi
  39491. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39492. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39493. -echo "${ECHO_T}$ac_res" >&6; }
  39494. -
  39495. fi
  39496. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39497. - cat >>confdefs.h <<_ACEOF
  39498. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39499. -_ACEOF
  39500. -
  39501. +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  39502. +if test -n "$ac_pt_PKG_CONFIG"; then
  39503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  39504. +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  39505. +else
  39506. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39507. +$as_echo "no" >&6; }
  39508. fi
  39509. -done
  39510. -
  39511. - # mme_api.h directly includes other files from the mme subdir
  39512. - xCPPFLAGS="$CPPFLAGS"
  39513. - CPPFLAGS="$CPPFLAGS -I/usr/include/mme"
  39514. -
  39515. -for ac_header in mme/mme_api.h
  39516. -do
  39517. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39518. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39519. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39520. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39521. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39522. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39523. -fi
  39524. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39525. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39526. -echo "${ECHO_T}$ac_res" >&6; }
  39527. -else
  39528. - # Is the header compilable?
  39529. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39530. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39531. -cat >conftest.$ac_ext <<_ACEOF
  39532. -/* confdefs.h. */
  39533. -_ACEOF
  39534. -cat confdefs.h >>conftest.$ac_ext
  39535. -cat >>conftest.$ac_ext <<_ACEOF
  39536. -/* end confdefs.h. */
  39537. -$ac_includes_default
  39538. -#include <$ac_header>
  39539. -_ACEOF
  39540. -rm -f conftest.$ac_objext
  39541. -if { (ac_try="$ac_compile"
  39542. -case "(($ac_try" in
  39543. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39544. - *) ac_try_echo=$ac_try;;
  39545. + if test "x$ac_pt_PKG_CONFIG" = x; then
  39546. + PKG_CONFIG=""
  39547. + else
  39548. + case $cross_compiling:$ac_tool_warned in
  39549. +yes:)
  39550. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  39551. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  39552. +ac_tool_warned=yes ;;
  39553. esac
  39554. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39555. - (eval "$ac_compile") 2>conftest.er1
  39556. - ac_status=$?
  39557. - grep -v '^ *+' conftest.er1 >conftest.err
  39558. - rm -f conftest.er1
  39559. - cat conftest.err >&5
  39560. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39561. - (exit $ac_status); } && {
  39562. - test -z "$ac_c_werror_flag" ||
  39563. - test ! -s conftest.err
  39564. - } && test -s conftest.$ac_objext; then
  39565. - ac_header_compiler=yes
  39566. + PKG_CONFIG=$ac_pt_PKG_CONFIG
  39567. + fi
  39568. else
  39569. - echo "$as_me: failed program was:" >&5
  39570. -sed 's/^/| /' conftest.$ac_ext >&5
  39571. + PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  39572. +fi
  39573. +
  39574. +fi
  39575. +if test -n "$PKG_CONFIG"; then
  39576. + _pkg_min_version=0.9.0
  39577. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  39578. +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  39579. + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  39580. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39581. +$as_echo "yes" >&6; }
  39582. + else
  39583. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39584. +$as_echo "no" >&6; }
  39585. + PKG_CONFIG=""
  39586. + fi
  39587. - ac_header_compiler=no
  39588. fi
  39589. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39590. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39591. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39592. +pkg_failed=no
  39593. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUDIOFILE" >&5
  39594. +$as_echo_n "checking for AUDIOFILE... " >&6; }
  39595. -# Is the header present?
  39596. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39597. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39598. -cat >conftest.$ac_ext <<_ACEOF
  39599. -/* confdefs.h. */
  39600. -_ACEOF
  39601. -cat confdefs.h >>conftest.$ac_ext
  39602. -cat >>conftest.$ac_ext <<_ACEOF
  39603. -/* end confdefs.h. */
  39604. -#include <$ac_header>
  39605. -_ACEOF
  39606. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39607. -case "(($ac_try" in
  39608. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39609. - *) ac_try_echo=$ac_try;;
  39610. -esac
  39611. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39612. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39613. +if test -n "$PKG_CONFIG"; then
  39614. + if test -n "$AUDIOFILE_CFLAGS"; then
  39615. + pkg_cv_AUDIOFILE_CFLAGS="$AUDIOFILE_CFLAGS"
  39616. + else
  39617. + if test -n "$PKG_CONFIG" && \
  39618. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audiofile >= 0.2.3\""; } >&5
  39619. + ($PKG_CONFIG --exists --print-errors "audiofile >= 0.2.3") 2>&5
  39620. ac_status=$?
  39621. - grep -v '^ *+' conftest.er1 >conftest.err
  39622. - rm -f conftest.er1
  39623. - cat conftest.err >&5
  39624. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39625. - (exit $ac_status); } >/dev/null && {
  39626. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39627. - test ! -s conftest.err
  39628. - }; then
  39629. - ac_header_preproc=yes
  39630. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39631. + test $ac_status = 0; }; then
  39632. + pkg_cv_AUDIOFILE_CFLAGS=`$PKG_CONFIG --cflags "audiofile >= 0.2.3" 2>/dev/null`
  39633. else
  39634. - echo "$as_me: failed program was:" >&5
  39635. -sed 's/^/| /' conftest.$ac_ext >&5
  39636. -
  39637. - ac_header_preproc=no
  39638. + pkg_failed=yes
  39639. +fi
  39640. + fi
  39641. +else
  39642. + pkg_failed=untried
  39643. +fi
  39644. +if test -n "$PKG_CONFIG"; then
  39645. + if test -n "$AUDIOFILE_LIBS"; then
  39646. + pkg_cv_AUDIOFILE_LIBS="$AUDIOFILE_LIBS"
  39647. + else
  39648. + if test -n "$PKG_CONFIG" && \
  39649. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audiofile >= 0.2.3\""; } >&5
  39650. + ($PKG_CONFIG --exists --print-errors "audiofile >= 0.2.3") 2>&5
  39651. + ac_status=$?
  39652. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39653. + test $ac_status = 0; }; then
  39654. + pkg_cv_AUDIOFILE_LIBS=`$PKG_CONFIG --libs "audiofile >= 0.2.3" 2>/dev/null`
  39655. +else
  39656. + pkg_failed=yes
  39657. +fi
  39658. + fi
  39659. +else
  39660. + pkg_failed=untried
  39661. fi
  39662. -rm -f conftest.err conftest.$ac_ext
  39663. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39664. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39665. -
  39666. -# So? What about this header?
  39667. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39668. - yes:no: )
  39669. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39670. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39671. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39672. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39673. - ac_header_preproc=yes
  39674. - ;;
  39675. - no:yes:* )
  39676. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39677. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39678. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39679. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39680. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39681. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39682. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39683. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39684. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39685. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39686. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39687. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39688. - ;;
  39689. -esac
  39690. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39691. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39692. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39693. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39694. -else
  39695. - eval "$as_ac_Header=\$ac_header_preproc"
  39696. -fi
  39697. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39698. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39699. -echo "${ECHO_T}$ac_res" >&6; }
  39700. -fi
  39701. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39702. - cat >>confdefs.h <<_ACEOF
  39703. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39704. -_ACEOF
  39705. +if test $pkg_failed = yes; then
  39706. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  39707. + _pkg_short_errors_supported=yes
  39708. +else
  39709. + _pkg_short_errors_supported=no
  39710. fi
  39711. + if test $_pkg_short_errors_supported = yes; then
  39712. + AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audiofile >= 0.2.3"`
  39713. + else
  39714. + AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audiofile >= 0.2.3"`
  39715. + fi
  39716. + # Put the nasty error message in config.log where it belongs
  39717. + echo "$AUDIOFILE_PKG_ERRORS" >&5
  39718. -done
  39719. + as_fn_error "Package requirements (audiofile >= 0.2.3) were not met:
  39720. - CPPFLAGS="$xCPPFLAGS"
  39721. +$AUDIOFILE_PKG_ERRORS
  39722. -# Check whether --with-arts-prefix was given.
  39723. -if test "${with_arts_prefix+set}" = set; then
  39724. - withval=$with_arts_prefix; arts_prefix="$withval"
  39725. -else
  39726. - arts_prefix=""
  39727. -fi
  39728. +Consider adjusting the PKG_CONFIG_PATH environment variable if you
  39729. +installed software in a non-standard prefix.
  39730. +Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
  39731. +and AUDIOFILE_LIBS to avoid the need to call pkg-config.
  39732. +See the pkg-config man page for more details.
  39733. +" "$LINENO" 5
  39734. +elif test $pkg_failed = untried; then
  39735. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39736. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39737. +as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  39738. +is in your PATH or set the PKG_CONFIG environment variable to the full
  39739. +path to pkg-config.
  39740. +Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
  39741. +and AUDIOFILE_LIBS to avoid the need to call pkg-config.
  39742. +See the pkg-config man page for more details.
  39743. -# Check whether --with-arts-exec-prefix was given.
  39744. -if test "${with_arts_exec_prefix+set}" = set; then
  39745. - withval=$with_arts_exec_prefix; arts_exec_prefix="$withval"
  39746. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  39747. +See \`config.log' for more details." "$LINENO" 5; }
  39748. else
  39749. - arts_exec_prefix=""
  39750. + AUDIOFILE_CFLAGS=$pkg_cv_AUDIOFILE_CFLAGS
  39751. + AUDIOFILE_LIBS=$pkg_cv_AUDIOFILE_LIBS
  39752. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39753. +$as_echo "yes" >&6; }
  39754. + :
  39755. fi
  39756. +CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS"
  39757. +LIBS="$LIBS $AUDIOFILE_LIBS"
  39758. +
  39759. +build_esdplay=true
  39760. -# Check whether --enable-artstest was given.
  39761. -if test "${enable_artstest+set}" = set; then
  39762. - enableval=$enable_artstest;
  39763. + if $build_esdplay; then
  39764. + BUILD_ESDPLAY_TRUE=
  39765. + BUILD_ESDPLAY_FALSE='#'
  39766. else
  39767. - enable_artstest=yes
  39768. + BUILD_ESDPLAY_TRUE='#'
  39769. + BUILD_ESDPLAY_FALSE=
  39770. fi
  39771. - if test x$arts_exec_prefix != x ; then
  39772. - arts_args="$arts_args --exec-prefix=$arts_exec_prefix"
  39773. - if test x${ARTS_CONFIG+set} != xset ; then
  39774. - ARTS_CONFIG=$arts_exec_prefix/bin/artsc-config
  39775. - fi
  39776. - fi
  39777. - if test x$arts_prefix != x ; then
  39778. - arts_args="$arts_args --prefix=$arts_prefix"
  39779. - if test x${ARTS_CONFIG+set} != xset ; then
  39780. - ARTS_CONFIG=$arts_prefix/bin/artsc-config
  39781. - fi
  39782. - fi
  39783. +echo "---------------------------------------------------------------------"
  39784. +echo "--- Checking for the documentation generation tools. NOTE: These "
  39785. +echo "--- are NOT required for proper compilation of the esound package."
  39786. - # Extract the first word of "artsc-config", so it can be a program name with args.
  39787. -set dummy artsc-config; ac_word=$2
  39788. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  39789. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  39790. -if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
  39791. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39792. +# Extract the first word of "jw", so it can be a program name with args.
  39793. +set dummy jw; ac_word=$2
  39794. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39795. +$as_echo_n "checking for $ac_word... " >&6; }
  39796. +if test "${ac_cv_prog_JW+set}" = set; then :
  39797. + $as_echo_n "(cached) " >&6
  39798. else
  39799. - case $ARTS_CONFIG in
  39800. - [\\/]* | ?:[\\/]*)
  39801. - ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
  39802. - ;;
  39803. - *)
  39804. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39805. + if test -n "$JW"; then
  39806. + ac_cv_prog_JW="$JW" # Let the user override the test.
  39807. +else
  39808. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39809. for as_dir in $PATH
  39810. do
  39811. IFS=$as_save_IFS
  39812. test -z "$as_dir" && as_dir=.
  39813. - for ac_exec_ext in '' $ac_executable_extensions; do
  39814. + for ac_exec_ext in '' $ac_executable_extensions; do
  39815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39816. - ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  39817. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  39818. + ac_cv_prog_JW="jw"
  39819. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39820. break 2
  39821. fi
  39822. done
  39823. -done
  39824. + done
  39825. IFS=$as_save_IFS
  39826. - test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
  39827. - ;;
  39828. -esac
  39829. + test -z "$ac_cv_prog_JW" && ac_cv_prog_JW="false"
  39830. fi
  39831. -ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
  39832. -if test -n "$ARTS_CONFIG"; then
  39833. - { echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
  39834. -echo "${ECHO_T}$ARTS_CONFIG" >&6; }
  39835. +fi
  39836. +JW=$ac_cv_prog_JW
  39837. +if test -n "$JW"; then
  39838. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JW" >&5
  39839. +$as_echo "$JW" >&6; }
  39840. else
  39841. - { echo "$as_me:$LINENO: result: no" >&5
  39842. -echo "${ECHO_T}no" >&6; }
  39843. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39844. +$as_echo "no" >&6; }
  39845. fi
  39846. - min_arts_version=0.9.5
  39847. - { echo "$as_me:$LINENO: checking for ARTS artsc - version >= $min_arts_version" >&5
  39848. -echo $ECHO_N "checking for ARTS artsc - version >= $min_arts_version... $ECHO_C" >&6; }
  39849. - no_arts=""
  39850. - if test "$ARTS_CONFIG" = "no" ; then
  39851. - no_arts=yes
  39852. - else
  39853. - # FIXME: thomas added this sed to get arts path instead of artsc
  39854. - # replace -I.../artsc with -I.../arts
  39855. - ARTS_CXXFLAGS=`$ARTS_CONFIG $artsconf_args --cflags | artsc-config --cflags | sed 's/\(-I.*\)artsc/\1arts/'`
  39856. - ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs | sed 's/artsc$/arts/'`
  39857. -
  39858. - arts_major_version=`$ARTS_CONFIG --version | \
  39859. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  39860. - arts_minor_version=`$ARTS_CONFIG --version | \
  39861. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  39862. - arts_micro_version=`$ARTS_CONFIG --version | \
  39863. - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  39864. - if test "x$enable_artstest" = "xyes" ; then
  39865. -
  39866. -
  39867. - ac_ext=cpp
  39868. -ac_cpp='$CXXCPP $CPPFLAGS'
  39869. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39870. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39871. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39872. -
  39873. -
  39874. - ac_save_CPPFLAGS="$CPPFLAGS"
  39875. - ac_save_LDFLAGS="$LDFLAGS"
  39876. - CPPFLAGS="$CPPFLAGS $ARTS_CXXFLAGS"
  39877. -
  39878. - LDFLAGS="$LDFLAGS $ARTS_CLIBS"
  39879. -
  39880. -
  39881. - rm -f conf.artstest
  39882. - if test "$cross_compiling" = yes; then
  39883. - echo $ac_n "cross compiling; assumed OK... $ac_c"
  39884. + if test "x$JW" != xfalse; then
  39885. + HAVE_JW_TRUE=
  39886. + HAVE_JW_FALSE='#'
  39887. else
  39888. - cat >conftest.$ac_ext <<_ACEOF
  39889. -/* confdefs.h. */
  39890. -_ACEOF
  39891. -cat confdefs.h >>conftest.$ac_ext
  39892. -cat >>conftest.$ac_ext <<_ACEOF
  39893. -/* end confdefs.h. */
  39894. + HAVE_JW_TRUE='#'
  39895. + HAVE_JW_FALSE=
  39896. +fi
  39897. -#include <stdio.h>
  39898. -#include <stdlib.h>
  39899. -#include <string.h>
  39900. -#include <artsflow.h>
  39901. -char*
  39902. -my_strdup (char *str)
  39903. -{
  39904. - char *new_str;
  39905. +echo "---------------------------------------------------------------------"
  39906. - if (str)
  39907. - {
  39908. - // thomas: the original test did not have the typecast
  39909. - new_str = (char *) malloc ((strlen (str) + 1) * sizeof(char));
  39910. - strcpy (new_str, str);
  39911. - }
  39912. - else
  39913. - new_str = NULL;
  39914. - return new_str;
  39915. -}
  39916. +# Check whether --with-libwrap was given.
  39917. +if test "${with_libwrap+set}" = set; then :
  39918. + withval=$with_libwrap;
  39919. +else
  39920. + wrap_ok=no
  39921. +fi
  39922. -int main ()
  39923. -{
  39924. - int major, minor, micro;
  39925. - char *tmp_version;
  39926. - system ("touch conf.artstest");
  39927. +WRAP_LIB=
  39928. +if test "x$with_libwrap" = "xyes"; then
  39929. + esound_save_LIBS="$LIBS"
  39930. + LIBS="$LIBS -lwrap"
  39931. - /* HP/UX 9 (%@#!) writes to sscanf strings */
  39932. - tmp_version = my_strdup("$min_arts_version");
  39933. - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  39934. - printf("%s, bad version string\n", "$min_arts_version");
  39935. - exit(1);
  39936. - }
  39937. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcp_wrapper library and headers" >&5
  39938. +$as_echo_n "checking for tcp_wrapper library and headers... " >&6; }
  39939. - if (($arts_major_version > major) ||
  39940. - (($arts_major_version == major) && ($arts_minor_version > minor)) ||
  39941. - (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
  39942. - {
  39943. - return 0;
  39944. - }
  39945. - else
  39946. - {
  39947. - printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
  39948. - printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
  39949. - printf("*** best to upgrade to the required version.\n");
  39950. - printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
  39951. - printf("*** to point to the correct copy of artsc-config, and remove the file\n");
  39952. - printf("*** config.cache before re-running configure\n");
  39953. - return 1;
  39954. - }
  39955. + wrap_ok=no
  39956. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39957. +/* end confdefs.h. */
  39958. +#include <tcpd.h>
  39959. +#include <syslog.h>
  39960. +int allow_severity = LOG_INFO;
  39961. +int deny_severity = LOG_WARNING;
  39962. +int
  39963. +main ()
  39964. +{
  39965. +struct request_info *request; return hosts_access (request);
  39966. + ;
  39967. + return 0;
  39968. }
  39969. +_ACEOF
  39970. +if ac_fn_c_try_link "$LINENO"; then :
  39971. +$as_echo "#define USE_LIBWRAP 1" >>confdefs.h
  39972. -_ACEOF
  39973. -rm -f conftest$ac_exeext
  39974. -if { (ac_try="$ac_link"
  39975. -case "(($ac_try" in
  39976. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39977. - *) ac_try_echo=$ac_try;;
  39978. -esac
  39979. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39980. - (eval "$ac_link") 2>&5
  39981. - ac_status=$?
  39982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39983. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39984. - { (case "(($ac_try" in
  39985. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39986. - *) ac_try_echo=$ac_try;;
  39987. -esac
  39988. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39989. - (eval "$ac_try") 2>&5
  39990. - ac_status=$?
  39991. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39992. - (exit $ac_status); }; }; then
  39993. - :
  39994. + WRAP_LIB="-lwrap"
  39995. + wrap_ok=yes
  39996. else
  39997. - echo "$as_me: program exited with status $ac_status" >&5
  39998. -echo "$as_me: failed program was:" >&5
  39999. -sed 's/^/| /' conftest.$ac_ext >&5
  40000. + LIBS="$LIBS -lnsl"
  40001. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40002. +/* end confdefs.h. */
  40003. +#include <tcpd.h>
  40004. +#include <syslog.h>
  40005. +int allow_severity = LOG_INFO;
  40006. +int deny_severity = LOG_WARNING;
  40007. +int
  40008. +main ()
  40009. +{
  40010. +struct request_info *request; return hosts_access (request);
  40011. + ;
  40012. + return 0;
  40013. +}
  40014. +_ACEOF
  40015. +if ac_fn_c_try_link "$LINENO"; then :
  40016. +
  40017. +$as_echo "#define USE_LIBWRAP 1" >>confdefs.h
  40018. -( exit $ac_status )
  40019. -no_arts=yes
  40020. + WRAP_LIB="-lwrap -lnsl"
  40021. + wrap_ok=yes
  40022. fi
  40023. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40024. +rm -f core conftest.err conftest.$ac_objext \
  40025. + conftest$ac_exeext conftest.$ac_ext
  40026. fi
  40027. +rm -f core conftest.err conftest.$ac_objext \
  40028. + conftest$ac_exeext conftest.$ac_ext
  40029. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wrap_ok" >&5
  40030. +$as_echo "$wrap_ok" >&6; }
  40031. - ac_ext=c
  40032. -ac_cpp='$CPP $CPPFLAGS'
  40033. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40034. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40035. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40036. + LIBS="$esound_save_LIBS"
  40037. +fi
  40038. - CXXFLAGS="$ac_save_CXXFLAGS"
  40039. - LDFLAGS="$ac_save_LDFLAGS"
  40040. - CXXFLAGS="$CXXFLAGS"
  40041. - LDFLAGS="$LDFLAGS"
  40042. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
  40043. +$as_echo_n "checking to see if compiler understands -Wall... " >&6; }
  40044. - fi
  40045. - fi
  40046. - if test "x$no_arts" = x ; then
  40047. - { echo "$as_me:$LINENO: result: yes" >&5
  40048. -echo "${ECHO_T}yes" >&6; }
  40049. - HAVE_ARTS=yes
  40050. - else
  40051. - { echo "$as_me:$LINENO: result: no" >&5
  40052. -echo "${ECHO_T}no" >&6; }
  40053. - if test "$ARTS_CONFIG" = "no" ; then
  40054. - echo "*** The artsc-config script installed by ARTS could not be found"
  40055. - echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
  40056. - echo "*** your path, or set the ARTS_CONFIG environment variable to the"
  40057. - echo "*** full path to artsc-config."
  40058. - else
  40059. - if test -f conf.artstest ; then
  40060. - :
  40061. - else
  40062. - echo "*** Could not run ARTS test program, checking why..."
  40063. - CFLAGS="$CFLAGS $ARTS_CXXFLAGS"
  40064. - LIBS="$LIBS $ARTS_LIBS"
  40065. - cat >conftest.$ac_ext <<_ACEOF
  40066. -/* confdefs.h. */
  40067. -_ACEOF
  40068. -cat confdefs.h >>conftest.$ac_ext
  40069. -cat >>conftest.$ac_ext <<_ACEOF
  40070. -/* end confdefs.h. */
  40071. + save_CFLAGS="$CFLAGS"
  40072. + CFLAGS="$CFLAGS -Wall"
  40073. -#include <stdio.h>
  40074. -#include <artsflow.h>
  40075. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40076. +/* end confdefs.h. */
  40077. int
  40078. main ()
  40079. {
  40080. - return 0;
  40081. +
  40082. ;
  40083. return 0;
  40084. }
  40085. _ACEOF
  40086. -rm -f conftest.$ac_objext conftest$ac_exeext
  40087. -if { (ac_try="$ac_link"
  40088. -case "(($ac_try" in
  40089. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40090. - *) ac_try_echo=$ac_try;;
  40091. -esac
  40092. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40093. - (eval "$ac_link") 2>conftest.er1
  40094. - ac_status=$?
  40095. - grep -v '^ *+' conftest.er1 >conftest.err
  40096. - rm -f conftest.er1
  40097. - cat conftest.err >&5
  40098. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40099. - (exit $ac_status); } && {
  40100. - test -z "$ac_c_werror_flag" ||
  40101. - test ! -s conftest.err
  40102. - } && test -s conftest$ac_exeext &&
  40103. - $as_test_x conftest$ac_exeext; then
  40104. - echo "*** The test program compiled, but did not run. This usually means"
  40105. - echo "*** that the run-time linker is not finding ARTS or finding the wrong"
  40106. - echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
  40107. - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  40108. - echo "*** to the installed location Also, make sure you have run ldconfig if that"
  40109. - echo "*** is required on your system"
  40110. - echo "***"
  40111. - echo "*** If you have an old version installed, it is best to remove it, although"
  40112. - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  40113. +if ac_fn_c_try_compile "$LINENO"; then :
  40114. + flag_ok=yes
  40115. else
  40116. - echo "$as_me: failed program was:" >&5
  40117. -sed 's/^/| /' conftest.$ac_ext >&5
  40118. -
  40119. - echo "*** The test program failed to compile or link. See the file config.log for the"
  40120. - echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
  40121. - echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
  40122. - echo "*** may want to edit the artsc-config script: $ARTS_CONFIG"
  40123. + flag_ok=no
  40124. fi
  40125. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40126. + CFLAGS="$save_CFLAGS"
  40127. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40128. - conftest$ac_exeext conftest.$ac_ext
  40129. - CFLAGS="$ac_save_CFLAGS"
  40130. - LIBS="$ac_save_LIBS"
  40131. - fi
  40132. - fi
  40133. - ARTS_CXXFLAGS=""
  40134. - ARTS_LIBS=""
  40135. - HAVE_ARTS=no
  40136. + if test "X$flag_ok" = Xyes ; then
  40137. + CFLAGS="$CFLAGS -Wall"
  40138. + true
  40139. + else
  40140. +
  40141. + true
  40142. fi
  40143. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
  40144. +$as_echo "$flag_ok" >&6; }
  40145. - rm -f conf.artstest
  40146. +# set | sort; # just for double checking the script...
  40147. - if test x"$enable_oss" = xyes ; then
  40148. - if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
  40149. - test "${ac_cv_header_soundcard_h}" = "yes" || \
  40150. - test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
  40151. - found_sound=yes
  40152. -cat >>confdefs.h <<\_ACEOF
  40153. -#define DRIVER_OSS 1
  40154. -_ACEOF
  40155. - fi
  40156. - fi
  40157. - if test "${ac_cv_header_sys_audio_h}" = "yes"; then
  40158. - case ${host_os} in
  40159. - hpux*)
  40160. - found_sound=yes
  40161. -cat >>confdefs.h <<\_ACEOF
  40162. -#define DRIVER_HPUX 1
  40163. -_ACEOF
  40164. - ;;
  40165. - aix*)
  40166. - found_sound=yes
  40167. +ac_config_files="$ac_config_files Makefile esd-config esound.spec esound.pc esddsp docs/Makefile docs/esd.1 docs/esdcat.1 docs/esd-config.1 docs/esdctl.1 docs/esddsp.1 docs/esdfilt.1 docs/esdloop.1 docs/esdmon.1 docs/esdplay.1 docs/esdrec.1 docs/esdsample.1"
  40168. +
  40169. +cat >confcache <<\_ACEOF
  40170. +# This file is a shell script that caches the results of configure
  40171. +# tests run on this system so they can be shared between configure
  40172. +# scripts and configure runs, see configure's option --config-cache.
  40173. +# It is not useful on other systems. If it contains results you don't
  40174. +# want to keep, you may remove or edit it.
  40175. +#
  40176. +# config.status only pays attention to the cache file if you give it
  40177. +# the --recheck option to rerun configure.
  40178. +#
  40179. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  40180. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  40181. +# following values.
  40182. -cat >>confdefs.h <<\_ACEOF
  40183. -#define DRIVER_AIX 1
  40184. _ACEOF
  40185. +# The following way of writing the cache mishandles newlines in values,
  40186. +# but we know of no workaround that is simple, portable, and efficient.
  40187. +# So, we kill variables containing newlines.
  40188. +# Ultrix sh set writes to stderr and can't be redirected directly,
  40189. +# and sets the high bit in the cache file unless we assign to the vars.
  40190. +(
  40191. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  40192. + eval ac_val=\$$ac_var
  40193. + case $ac_val in #(
  40194. + *${as_nl}*)
  40195. + case $ac_var in #(
  40196. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  40197. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  40198. esac
  40199. - fi
  40200. + case $ac_var in #(
  40201. + _ | IFS | as_nl) ;; #(
  40202. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  40203. + *) { eval $ac_var=; unset $ac_var;} ;;
  40204. + esac ;;
  40205. + esac
  40206. + done
  40207. - if test "${ac_cv_header_sys_audioio_h}" = "yes" || \
  40208. - test "${ac_cv_header_sys_audio_io_h}" = "yes" || \
  40209. - test "${ac_cv_header_sun_audioio_h}" = "yes"; then
  40210. - case ${host_os} in
  40211. - solaris*)
  40212. - found_sound=yes
  40213. + (set) 2>&1 |
  40214. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  40215. + *${as_nl}ac_space=\ *)
  40216. + # `set' does not quote correctly, so add quotes: double-quote
  40217. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  40218. + sed -n \
  40219. + "s/'/'\\\\''/g;
  40220. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  40221. + ;; #(
  40222. + *)
  40223. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  40224. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  40225. + ;;
  40226. + esac |
  40227. + sort
  40228. +) |
  40229. + sed '
  40230. + /^ac_cv_env_/b end
  40231. + t clear
  40232. + :clear
  40233. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  40234. + t end
  40235. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  40236. + :end' >>confcache
  40237. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  40238. + if test -w "$cache_file"; then
  40239. + test "x$cache_file" != "x/dev/null" &&
  40240. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  40241. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  40242. + cat confcache >$cache_file
  40243. + else
  40244. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  40245. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  40246. + fi
  40247. +fi
  40248. +rm -f confcache
  40249. -cat >>confdefs.h <<\_ACEOF
  40250. -#define DRIVER_SOLARIS 1
  40251. -_ACEOF
  40252. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  40253. +# Let make expand exec_prefix.
  40254. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  40255. - ;;
  40256. - esac
  40257. - fi
  40258. +DEFS=-DHAVE_CONFIG_H
  40259. - case ${host_os} in
  40260. - os2*)
  40261. - found_sound=yes
  40262. +ac_libobjs=
  40263. +ac_ltlibobjs=
  40264. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  40265. + # 1. Remove the extension, and $U if already installed.
  40266. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  40267. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  40268. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  40269. + # will be set to the directory where LIBOBJS objects are built.
  40270. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  40271. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  40272. +done
  40273. +LIBOBJS=$ac_libobjs
  40274. -cat >>confdefs.h <<\_ACEOF
  40275. -#define DRIVER_DART 1
  40276. -_ACEOF
  40277. +LTLIBOBJS=$ac_ltlibobjs
  40278. - ;;
  40279. - esac
  40280. - if test "${ac_cv_header_dmedia_audio_h}" = "yes"; then
  40281. - case ${host_os} in
  40282. - irix*)
  40283. - found_sound=yes
  40284. + if test -n "$EXEEXT"; then
  40285. + am__EXEEXT_TRUE=
  40286. + am__EXEEXT_FALSE='#'
  40287. +else
  40288. + am__EXEEXT_TRUE='#'
  40289. + am__EXEEXT_FALSE=
  40290. +fi
  40291. -cat >>confdefs.h <<\_ACEOF
  40292. -#define DRIVER_IRIX 1
  40293. -_ACEOF
  40294. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  40295. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  40296. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40297. +fi
  40298. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  40299. + as_fn_error "conditional \"AMDEP\" was never defined.
  40300. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40301. +fi
  40302. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  40303. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  40304. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40305. +fi
  40306. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  40307. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  40308. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40309. +fi
  40310. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  40311. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  40312. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40313. +fi
  40314. - esac
  40315. - fi
  40316. +if test -z "${NEED_GETOPT_TRUE}" && test -z "${NEED_GETOPT_FALSE}"; then
  40317. + as_fn_error "conditional \"NEED_GETOPT\" was never defined.
  40318. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40319. +fi
  40320. +if test -z "${BUILD_ESDDSP_TRUE}" && test -z "${BUILD_ESDDSP_FALSE}"; then
  40321. + as_fn_error "conditional \"BUILD_ESDDSP\" was never defined.
  40322. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40323. +fi
  40324. +if test -z "${BUILD_ESDPLAY_TRUE}" && test -z "${BUILD_ESDPLAY_FALSE}"; then
  40325. + as_fn_error "conditional \"BUILD_ESDPLAY\" was never defined.
  40326. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40327. +fi
  40328. +if test -z "${HAVE_JW_TRUE}" && test -z "${HAVE_JW_FALSE}"; then
  40329. + as_fn_error "conditional \"HAVE_JW\" was never defined.
  40330. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40331. +fi
  40332. - if test "${ac_cv_header_mme_mme_api_h}" = "yes"; then
  40333. - case ${host_os} in
  40334. - osf*)
  40335. - found_sound=yes
  40336. +: ${CONFIG_STATUS=./config.status}
  40337. +ac_write_fail=0
  40338. +ac_clean_files_save=$ac_clean_files
  40339. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  40340. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  40341. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  40342. +as_write_fail=0
  40343. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  40344. +#! $SHELL
  40345. +# Generated by $as_me.
  40346. +# Run this file to recreate the current configuration.
  40347. +# Compiler output produced by configure, useful for debugging
  40348. +# configure, is in config.log if it exists.
  40349. -cat >>confdefs.h <<\_ACEOF
  40350. -#define DRIVER_OSF 1
  40351. -_ACEOF
  40352. +debug=false
  40353. +ac_cs_recheck=false
  40354. +ac_cs_silent=false
  40355. - CPPFLAGS="$CPPFLAGS -I/usr/include/mme"
  40356. - SOUND_LIBS=-lmme
  40357. - esac
  40358. - fi
  40359. +SHELL=\${CONFIG_SHELL-$SHELL}
  40360. +export SHELL
  40361. +_ASEOF
  40362. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  40363. +## -------------------- ##
  40364. +## M4sh Initialization. ##
  40365. +## -------------------- ##
  40366. - if test "x$enable_alsa" = "xyes"; then
  40367. - if test "${ac_cv_header_sys_soundlib_h}" = "yes"; then
  40368. - found_sound=yes
  40369. +# Be more Bourne compatible
  40370. +DUALCASE=1; export DUALCASE # for MKS sh
  40371. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  40372. + emulate sh
  40373. + NULLCMD=:
  40374. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  40375. + # is contrary to our usage. Disable this feature.
  40376. + alias -g '${1+"$@"}'='"$@"'
  40377. + setopt NO_GLOB_SUBST
  40378. +else
  40379. + case `(set -o) 2>/dev/null` in #(
  40380. + *posix*) :
  40381. + set -o posix ;; #(
  40382. + *) :
  40383. + ;;
  40384. +esac
  40385. +fi
  40386. -cat >>confdefs.h <<\_ACEOF
  40387. -#define DRIVER_ALSA 1
  40388. -_ACEOF
  40389. - fi
  40390. - if test "${ac_cv_header_alsa_asoundlib_h}" = "yes"; then
  40391. - found_sound=yes
  40392. +as_nl='
  40393. +'
  40394. +export as_nl
  40395. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  40396. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40397. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40398. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40399. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  40400. +# but without wasting forks for bash or zsh.
  40401. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  40402. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  40403. + as_echo='print -r --'
  40404. + as_echo_n='print -rn --'
  40405. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  40406. + as_echo='printf %s\n'
  40407. + as_echo_n='printf %s'
  40408. +else
  40409. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  40410. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  40411. + as_echo_n='/usr/ucb/echo -n'
  40412. + else
  40413. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  40414. + as_echo_n_body='eval
  40415. + arg=$1;
  40416. + case $arg in #(
  40417. + *"$as_nl"*)
  40418. + expr "X$arg" : "X\\(.*\\)$as_nl";
  40419. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  40420. + esac;
  40421. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  40422. + '
  40423. + export as_echo_n_body
  40424. + as_echo_n='sh -c $as_echo_n_body as_echo'
  40425. + fi
  40426. + export as_echo_body
  40427. + as_echo='sh -c $as_echo_body as_echo'
  40428. +fi
  40429. -cat >>confdefs.h <<\_ACEOF
  40430. -#define DRIVER_ALSA_09 1
  40431. -_ACEOF
  40432. +# The user is always right.
  40433. +if test "${PATH_SEPARATOR+set}" != set; then
  40434. + PATH_SEPARATOR=:
  40435. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  40436. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  40437. + PATH_SEPARATOR=';'
  40438. + }
  40439. +fi
  40440. - fi
  40441. - if test "${ac_cv_header_sys_asoundlib_h}" = "yes"; then
  40442. - found_sound=yes
  40443. -cat >>confdefs.h <<\_ACEOF
  40444. -#define DRIVER_NEWALSA 1
  40445. -_ACEOF
  40446. +# IFS
  40447. +# We need space, tab and new line, in precisely that order. Quoting is
  40448. +# there to prevent editors from complaining about space-tab.
  40449. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  40450. +# splitting by setting IFS to empty value.)
  40451. +IFS=" "" $as_nl"
  40452. - fi
  40453. - fi
  40454. +# Find who we are. Look in the path if we contain no directory separator.
  40455. +case $0 in #((
  40456. + *[\\/]* ) as_myself=$0 ;;
  40457. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40458. +for as_dir in $PATH
  40459. +do
  40460. + IFS=$as_save_IFS
  40461. + test -z "$as_dir" && as_dir=.
  40462. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  40463. + done
  40464. +IFS=$as_save_IFS
  40465. - if test "${ac_cv_header_CoreAudio_CoreAudio_h}" = "yes"; then
  40466. - found_sound=yes
  40467. + ;;
  40468. +esac
  40469. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  40470. +# in which case we are not to be found in the path.
  40471. +if test "x$as_myself" = x; then
  40472. + as_myself=$0
  40473. +fi
  40474. +if test ! -f "$as_myself"; then
  40475. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  40476. + exit 1
  40477. +fi
  40478. -cat >>confdefs.h <<\_ACEOF
  40479. -#define DRIVER_COREAUDIO 1
  40480. -_ACEOF
  40481. +# Unset variables that we do not need and which cause bugs (e.g. in
  40482. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  40483. +# suppresses any "Segmentation fault" message there. '((' could
  40484. +# trigger a bug in pdksh 5.2.14.
  40485. +for as_var in BASH_ENV ENV MAIL MAILPATH
  40486. +do eval test x\${$as_var+set} = xset \
  40487. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  40488. +done
  40489. +PS1='$ '
  40490. +PS2='> '
  40491. +PS4='+ '
  40492. - SOUND_LIBS="-Wl,-framework,CoreAudio"
  40493. - fi
  40494. +# NLS nuisances.
  40495. +LC_ALL=C
  40496. +export LC_ALL
  40497. +LANGUAGE=C
  40498. +export LANGUAGE
  40499. - if test "x$enable_arts" = "xyes" ; then
  40500. - if test "x$HAVE_ARTS" = "xyes"; then
  40501. - found_sound=yes
  40502. - CFLAGS="$CFLAGS $ARTSC_CFLAGS"
  40503. - LIBS="$LIBS $ARTS_LIBS"
  40504. +# CDPATH.
  40505. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  40506. -cat >>confdefs.h <<\_ACEOF
  40507. -#define DRIVER_ARTS 1
  40508. -_ACEOF
  40509. - fi
  40510. - fi
  40511. +# as_fn_error ERROR [LINENO LOG_FD]
  40512. +# ---------------------------------
  40513. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  40514. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  40515. +# script with status $?, using 1 if that was 0.
  40516. +as_fn_error ()
  40517. +{
  40518. + as_status=$?; test $as_status -eq 0 && as_status=1
  40519. + if test "$3"; then
  40520. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  40521. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  40522. + fi
  40523. + $as_echo "$as_me: error: $1" >&2
  40524. + as_fn_exit $as_status
  40525. +} # as_fn_error
  40526. +
  40527. +
  40528. +# as_fn_set_status STATUS
  40529. +# -----------------------
  40530. +# Set $? to STATUS, without forking.
  40531. +as_fn_set_status ()
  40532. +{
  40533. + return $1
  40534. +} # as_fn_set_status
  40535. +
  40536. +# as_fn_exit STATUS
  40537. +# -----------------
  40538. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  40539. +as_fn_exit ()
  40540. +{
  40541. + set +e
  40542. + as_fn_set_status $1
  40543. + exit $1
  40544. +} # as_fn_exit
  40545. +
  40546. +# as_fn_unset VAR
  40547. +# ---------------
  40548. +# Portably unset VAR.
  40549. +as_fn_unset ()
  40550. +{
  40551. + { eval $1=; unset $1;}
  40552. +}
  40553. +as_unset=as_fn_unset
  40554. +# as_fn_append VAR VALUE
  40555. +# ----------------------
  40556. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  40557. +# advantage of any shell optimizations that allow amortized linear growth over
  40558. +# repeated appends, instead of the typical quadratic growth present in naive
  40559. +# implementations.
  40560. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  40561. + eval 'as_fn_append ()
  40562. + {
  40563. + eval $1+=\$2
  40564. + }'
  40565. +else
  40566. + as_fn_append ()
  40567. + {
  40568. + eval $1=\$$1\$2
  40569. + }
  40570. +fi # as_fn_append
  40571. - if test "$found_sound" = "no"; then
  40572. - { { echo "$as_me:$LINENO: error: Could not find a support sound driver" >&5
  40573. -echo "$as_me: error: Could not find a support sound driver" >&2;}
  40574. - { (exit 1); exit 1; }; }
  40575. - fi
  40576. +# as_fn_arith ARG...
  40577. +# ------------------
  40578. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  40579. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  40580. +# must be portable across $(()) and expr.
  40581. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  40582. + eval 'as_fn_arith ()
  40583. + {
  40584. + as_val=$(( $* ))
  40585. + }'
  40586. +else
  40587. + as_fn_arith ()
  40588. + {
  40589. + as_val=`expr "$@" || test $? -eq 1`
  40590. + }
  40591. +fi # as_fn_arith
  40592. - echo "---------------------------------------------------------------------"
  40593. - echo "--- Checking to see which audio libraries are required for linking.";
  40594. - echo "--- Most of these checks should also fail. Do not be alarmed.";
  40595. - { echo "$as_me:$LINENO: checking for _oss_ioctl" >&5
  40596. -echo $ECHO_N "checking for _oss_ioctl... $ECHO_C" >&6; }
  40597. -if test "${ac_cv_func__oss_ioctl+set}" = set; then
  40598. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40599. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  40600. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  40601. + as_expr=expr
  40602. else
  40603. - cat >conftest.$ac_ext <<_ACEOF
  40604. -/* confdefs.h. */
  40605. -_ACEOF
  40606. -cat confdefs.h >>conftest.$ac_ext
  40607. -cat >>conftest.$ac_ext <<_ACEOF
  40608. -/* end confdefs.h. */
  40609. -/* Define _oss_ioctl to an innocuous variant, in case <limits.h> declares _oss_ioctl.
  40610. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40611. -#define _oss_ioctl innocuous__oss_ioctl
  40612. + as_expr=false
  40613. +fi
  40614. -/* System header to define __stub macros and hopefully few prototypes,
  40615. - which can conflict with char _oss_ioctl (); below.
  40616. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40617. - <limits.h> exists even on freestanding compilers. */
  40618. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  40619. + as_basename=basename
  40620. +else
  40621. + as_basename=false
  40622. +fi
  40623. -#ifdef __STDC__
  40624. -# include <limits.h>
  40625. -#else
  40626. -# include <assert.h>
  40627. -#endif
  40628. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  40629. + as_dirname=dirname
  40630. +else
  40631. + as_dirname=false
  40632. +fi
  40633. -#undef _oss_ioctl
  40634. +as_me=`$as_basename -- "$0" ||
  40635. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  40636. + X"$0" : 'X\(//\)$' \| \
  40637. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  40638. +$as_echo X/"$0" |
  40639. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  40640. + s//\1/
  40641. + q
  40642. + }
  40643. + /^X\/\(\/\/\)$/{
  40644. + s//\1/
  40645. + q
  40646. + }
  40647. + /^X\/\(\/\).*/{
  40648. + s//\1/
  40649. + q
  40650. + }
  40651. + s/.*/./; q'`
  40652. -/* Override any GCC internal prototype to avoid an error.
  40653. - Use char because int might match the return type of a GCC
  40654. - builtin and then its argument prototype would still apply. */
  40655. -#ifdef __cplusplus
  40656. -extern "C"
  40657. -#endif
  40658. -char _oss_ioctl ();
  40659. -/* The GNU C library defines this for functions which it implements
  40660. - to always fail with ENOSYS. Some functions are actually named
  40661. - something starting with __ and the normal name is an alias. */
  40662. -#if defined __stub__oss_ioctl || defined __stub____oss_ioctl
  40663. -choke me
  40664. -#endif
  40665. +# Avoid depending upon Character Ranges.
  40666. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  40667. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  40668. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  40669. +as_cr_digits='0123456789'
  40670. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  40671. -int
  40672. -main ()
  40673. -{
  40674. -return _oss_ioctl ();
  40675. - ;
  40676. - return 0;
  40677. -}
  40678. -_ACEOF
  40679. -rm -f conftest.$ac_objext conftest$ac_exeext
  40680. -if { (ac_try="$ac_link"
  40681. -case "(($ac_try" in
  40682. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40683. - *) ac_try_echo=$ac_try;;
  40684. +ECHO_C= ECHO_N= ECHO_T=
  40685. +case `echo -n x` in #(((((
  40686. +-n*)
  40687. + case `echo 'xy\c'` in
  40688. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  40689. + xy) ECHO_C='\c';;
  40690. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  40691. + ECHO_T=' ';;
  40692. + esac;;
  40693. +*)
  40694. + ECHO_N='-n';;
  40695. esac
  40696. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40697. - (eval "$ac_link") 2>conftest.er1
  40698. - ac_status=$?
  40699. - grep -v '^ *+' conftest.er1 >conftest.err
  40700. - rm -f conftest.er1
  40701. - cat conftest.err >&5
  40702. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40703. - (exit $ac_status); } && {
  40704. - test -z "$ac_c_werror_flag" ||
  40705. - test ! -s conftest.err
  40706. - } && test -s conftest$ac_exeext &&
  40707. - $as_test_x conftest$ac_exeext; then
  40708. - ac_cv_func__oss_ioctl=yes
  40709. -else
  40710. - echo "$as_me: failed program was:" >&5
  40711. -sed 's/^/| /' conftest.$ac_ext >&5
  40712. - ac_cv_func__oss_ioctl=no
  40713. -fi
  40714. -
  40715. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40716. - conftest$ac_exeext conftest.$ac_ext
  40717. +rm -f conf$$ conf$$.exe conf$$.file
  40718. +if test -d conf$$.dir; then
  40719. + rm -f conf$$.dir/conf$$.file
  40720. +else
  40721. + rm -f conf$$.dir
  40722. + mkdir conf$$.dir 2>/dev/null
  40723. fi
  40724. -{ echo "$as_me:$LINENO: result: $ac_cv_func__oss_ioctl" >&5
  40725. -echo "${ECHO_T}$ac_cv_func__oss_ioctl" >&6; }
  40726. -if test $ac_cv_func__oss_ioctl = yes; then
  40727. - :
  40728. +if (echo >conf$$.file) 2>/dev/null; then
  40729. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  40730. + as_ln_s='ln -s'
  40731. + # ... but there are two gotchas:
  40732. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  40733. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  40734. + # In both cases, we have to default to `cp -p'.
  40735. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  40736. + as_ln_s='cp -p'
  40737. + elif ln conf$$.file conf$$ 2>/dev/null; then
  40738. + as_ln_s=ln
  40739. + else
  40740. + as_ln_s='cp -p'
  40741. + fi
  40742. else
  40743. + as_ln_s='cp -p'
  40744. +fi
  40745. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  40746. +rmdir conf$$.dir 2>/dev/null
  40747. -{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
  40748. -echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
  40749. -if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
  40750. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40751. -else
  40752. - ac_check_lib_save_LIBS=$LIBS
  40753. -LIBS="-lossaudio $LIBS"
  40754. -cat >conftest.$ac_ext <<_ACEOF
  40755. -/* confdefs.h. */
  40756. -_ACEOF
  40757. -cat confdefs.h >>conftest.$ac_ext
  40758. -cat >>conftest.$ac_ext <<_ACEOF
  40759. -/* end confdefs.h. */
  40760. -/* Override any GCC internal prototype to avoid an error.
  40761. - Use char because int might match the return type of a GCC
  40762. - builtin and then its argument prototype would still apply. */
  40763. -#ifdef __cplusplus
  40764. -extern "C"
  40765. -#endif
  40766. -char _oss_ioctl ();
  40767. -int
  40768. -main ()
  40769. +# as_fn_mkdir_p
  40770. +# -------------
  40771. +# Create "$as_dir" as a directory, including parents if necessary.
  40772. +as_fn_mkdir_p ()
  40773. {
  40774. -return _oss_ioctl ();
  40775. - ;
  40776. - return 0;
  40777. -}
  40778. -_ACEOF
  40779. -rm -f conftest.$ac_objext conftest$ac_exeext
  40780. -if { (ac_try="$ac_link"
  40781. -case "(($ac_try" in
  40782. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40783. - *) ac_try_echo=$ac_try;;
  40784. -esac
  40785. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40786. - (eval "$ac_link") 2>conftest.er1
  40787. - ac_status=$?
  40788. - grep -v '^ *+' conftest.er1 >conftest.err
  40789. - rm -f conftest.er1
  40790. - cat conftest.err >&5
  40791. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40792. - (exit $ac_status); } && {
  40793. - test -z "$ac_c_werror_flag" ||
  40794. - test ! -s conftest.err
  40795. - } && test -s conftest$ac_exeext &&
  40796. - $as_test_x conftest$ac_exeext; then
  40797. - ac_cv_lib_ossaudio__oss_ioctl=yes
  40798. -else
  40799. - echo "$as_me: failed program was:" >&5
  40800. -sed 's/^/| /' conftest.$ac_ext >&5
  40801. - ac_cv_lib_ossaudio__oss_ioctl=no
  40802. -fi
  40803. + case $as_dir in #(
  40804. + -*) as_dir=./$as_dir;;
  40805. + esac
  40806. + test -d "$as_dir" || eval $as_mkdir_p || {
  40807. + as_dirs=
  40808. + while :; do
  40809. + case $as_dir in #(
  40810. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  40811. + *) as_qdir=$as_dir;;
  40812. + esac
  40813. + as_dirs="'$as_qdir' $as_dirs"
  40814. + as_dir=`$as_dirname -- "$as_dir" ||
  40815. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40816. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40817. + X"$as_dir" : 'X\(//\)$' \| \
  40818. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  40819. +$as_echo X"$as_dir" |
  40820. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40821. + s//\1/
  40822. + q
  40823. + }
  40824. + /^X\(\/\/\)[^/].*/{
  40825. + s//\1/
  40826. + q
  40827. + }
  40828. + /^X\(\/\/\)$/{
  40829. + s//\1/
  40830. + q
  40831. + }
  40832. + /^X\(\/\).*/{
  40833. + s//\1/
  40834. + q
  40835. + }
  40836. + s/.*/./; q'`
  40837. + test -d "$as_dir" && break
  40838. + done
  40839. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  40840. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  40841. +
  40842. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40843. - conftest$ac_exeext conftest.$ac_ext
  40844. -LIBS=$ac_check_lib_save_LIBS
  40845. +} # as_fn_mkdir_p
  40846. +if mkdir -p . 2>/dev/null; then
  40847. + as_mkdir_p='mkdir -p "$as_dir"'
  40848. +else
  40849. + test -d ./-p && rmdir ./-p
  40850. + as_mkdir_p=false
  40851. fi
  40852. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
  40853. -echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
  40854. -if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
  40855. - cat >>confdefs.h <<_ACEOF
  40856. -#define HAVE_LIBOSSAUDIO 1
  40857. -_ACEOF
  40858. -
  40859. - LIBS="-lossaudio $LIBS"
  40860. +if test -x / >/dev/null 2>&1; then
  40861. + as_test_x='test -x'
  40862. +else
  40863. + if ls -dL / >/dev/null 2>&1; then
  40864. + as_ls_L_option=L
  40865. + else
  40866. + as_ls_L_option=
  40867. + fi
  40868. + as_test_x='
  40869. + eval sh -c '\''
  40870. + if test -d "$1"; then
  40871. + test -d "$1/.";
  40872. + else
  40873. + case $1 in #(
  40874. + -*)set "./$1";;
  40875. + esac;
  40876. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  40877. + ???[sx]*):;;*)false;;esac;fi
  40878. + '\'' sh
  40879. + '
  40880. fi
  40881. +as_executable_p=$as_test_x
  40882. -fi
  40883. +# Sed expression to map a string onto a valid CPP name.
  40884. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  40885. - { echo "$as_me:$LINENO: checking for ALnewconfig" >&5
  40886. -echo $ECHO_N "checking for ALnewconfig... $ECHO_C" >&6; }
  40887. -if test "${ac_cv_func_ALnewconfig+set}" = set; then
  40888. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40889. -else
  40890. - cat >conftest.$ac_ext <<_ACEOF
  40891. -/* confdefs.h. */
  40892. -_ACEOF
  40893. -cat confdefs.h >>conftest.$ac_ext
  40894. -cat >>conftest.$ac_ext <<_ACEOF
  40895. -/* end confdefs.h. */
  40896. -/* Define ALnewconfig to an innocuous variant, in case <limits.h> declares ALnewconfig.
  40897. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40898. -#define ALnewconfig innocuous_ALnewconfig
  40899. +# Sed expression to map a string onto a valid variable name.
  40900. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  40901. -/* System header to define __stub macros and hopefully few prototypes,
  40902. - which can conflict with char ALnewconfig (); below.
  40903. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40904. - <limits.h> exists even on freestanding compilers. */
  40905. -#ifdef __STDC__
  40906. -# include <limits.h>
  40907. -#else
  40908. -# include <assert.h>
  40909. -#endif
  40910. +exec 6>&1
  40911. +## ----------------------------------- ##
  40912. +## Main body of $CONFIG_STATUS script. ##
  40913. +## ----------------------------------- ##
  40914. +_ASEOF
  40915. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  40916. -#undef ALnewconfig
  40917. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40918. +# Save the log message, to keep $0 and so on meaningful, and to
  40919. +# report actual input values of CONFIG_FILES etc. instead of their
  40920. +# values after options handling.
  40921. +ac_log="
  40922. +This file was extended by esound $as_me 0.2.41, which was
  40923. +generated by GNU Autoconf 2.65. Invocation command line was
  40924. -/* Override any GCC internal prototype to avoid an error.
  40925. - Use char because int might match the return type of a GCC
  40926. - builtin and then its argument prototype would still apply. */
  40927. -#ifdef __cplusplus
  40928. -extern "C"
  40929. -#endif
  40930. -char ALnewconfig ();
  40931. -/* The GNU C library defines this for functions which it implements
  40932. - to always fail with ENOSYS. Some functions are actually named
  40933. - something starting with __ and the normal name is an alias. */
  40934. -#if defined __stub_ALnewconfig || defined __stub___ALnewconfig
  40935. -choke me
  40936. -#endif
  40937. + CONFIG_FILES = $CONFIG_FILES
  40938. + CONFIG_HEADERS = $CONFIG_HEADERS
  40939. + CONFIG_LINKS = $CONFIG_LINKS
  40940. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  40941. + $ $0 $@
  40942. +
  40943. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  40944. +"
  40945. -int
  40946. -main ()
  40947. -{
  40948. -return ALnewconfig ();
  40949. - ;
  40950. - return 0;
  40951. -}
  40952. _ACEOF
  40953. -rm -f conftest.$ac_objext conftest$ac_exeext
  40954. -if { (ac_try="$ac_link"
  40955. -case "(($ac_try" in
  40956. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40957. - *) ac_try_echo=$ac_try;;
  40958. +
  40959. +case $ac_config_files in *"
  40960. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  40961. esac
  40962. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40963. - (eval "$ac_link") 2>conftest.er1
  40964. - ac_status=$?
  40965. - grep -v '^ *+' conftest.er1 >conftest.err
  40966. - rm -f conftest.er1
  40967. - cat conftest.err >&5
  40968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40969. - (exit $ac_status); } && {
  40970. - test -z "$ac_c_werror_flag" ||
  40971. - test ! -s conftest.err
  40972. - } && test -s conftest$ac_exeext &&
  40973. - $as_test_x conftest$ac_exeext; then
  40974. - ac_cv_func_ALnewconfig=yes
  40975. -else
  40976. - echo "$as_me: failed program was:" >&5
  40977. -sed 's/^/| /' conftest.$ac_ext >&5
  40978. - ac_cv_func_ALnewconfig=no
  40979. -fi
  40980. +case $ac_config_headers in *"
  40981. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  40982. +esac
  40983. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40984. - conftest$ac_exeext conftest.$ac_ext
  40985. -fi
  40986. -{ echo "$as_me:$LINENO: result: $ac_cv_func_ALnewconfig" >&5
  40987. -echo "${ECHO_T}$ac_cv_func_ALnewconfig" >&6; }
  40988. -if test $ac_cv_func_ALnewconfig = yes; then
  40989. - :
  40990. -else
  40991. -{ echo "$as_me:$LINENO: checking for ALnewconfig in -laudio" >&5
  40992. -echo $ECHO_N "checking for ALnewconfig in -laudio... $ECHO_C" >&6; }
  40993. -if test "${ac_cv_lib_audio_ALnewconfig+set}" = set; then
  40994. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40995. -else
  40996. - ac_check_lib_save_LIBS=$LIBS
  40997. -LIBS="-laudio $LIBS"
  40998. -cat >conftest.$ac_ext <<_ACEOF
  40999. -/* confdefs.h. */
  41000. -_ACEOF
  41001. -cat confdefs.h >>conftest.$ac_ext
  41002. -cat >>conftest.$ac_ext <<_ACEOF
  41003. -/* end confdefs.h. */
  41004. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41005. +# Files that config.status was made for.
  41006. +config_files="$ac_config_files"
  41007. +config_headers="$ac_config_headers"
  41008. +config_commands="$ac_config_commands"
  41009. -/* Override any GCC internal prototype to avoid an error.
  41010. - Use char because int might match the return type of a GCC
  41011. - builtin and then its argument prototype would still apply. */
  41012. -#ifdef __cplusplus
  41013. -extern "C"
  41014. -#endif
  41015. -char ALnewconfig ();
  41016. -int
  41017. -main ()
  41018. -{
  41019. -return ALnewconfig ();
  41020. - ;
  41021. - return 0;
  41022. -}
  41023. _ACEOF
  41024. -rm -f conftest.$ac_objext conftest$ac_exeext
  41025. -if { (ac_try="$ac_link"
  41026. -case "(($ac_try" in
  41027. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41028. - *) ac_try_echo=$ac_try;;
  41029. -esac
  41030. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41031. - (eval "$ac_link") 2>conftest.er1
  41032. - ac_status=$?
  41033. - grep -v '^ *+' conftest.er1 >conftest.err
  41034. - rm -f conftest.er1
  41035. - cat conftest.err >&5
  41036. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41037. - (exit $ac_status); } && {
  41038. - test -z "$ac_c_werror_flag" ||
  41039. - test ! -s conftest.err
  41040. - } && test -s conftest$ac_exeext &&
  41041. - $as_test_x conftest$ac_exeext; then
  41042. - ac_cv_lib_audio_ALnewconfig=yes
  41043. -else
  41044. - echo "$as_me: failed program was:" >&5
  41045. -sed 's/^/| /' conftest.$ac_ext >&5
  41046. -
  41047. - ac_cv_lib_audio_ALnewconfig=no
  41048. -fi
  41049. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41050. - conftest$ac_exeext conftest.$ac_ext
  41051. -LIBS=$ac_check_lib_save_LIBS
  41052. -fi
  41053. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_ALnewconfig" >&5
  41054. -echo "${ECHO_T}$ac_cv_lib_audio_ALnewconfig" >&6; }
  41055. -if test $ac_cv_lib_audio_ALnewconfig = yes; then
  41056. - cat >>confdefs.h <<_ACEOF
  41057. -#define HAVE_LIBAUDIO 1
  41058. -_ACEOF
  41059. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41060. +ac_cs_usage="\
  41061. +\`$as_me' instantiates files and other configuration actions
  41062. +from templates according to the current configuration. Unless the files
  41063. +and actions are specified as TAGs, all are instantiated by default.
  41064. - LIBS="-laudio $LIBS"
  41065. +Usage: $0 [OPTION]... [TAG]...
  41066. -fi
  41067. + -h, --help print this help, then exit
  41068. + -V, --version print version number and configuration settings, then exit
  41069. + --config print configuration, then exit
  41070. + -q, --quiet, --silent
  41071. + do not print progress messages
  41072. + -d, --debug don't remove temporary files
  41073. + --recheck update $as_me by reconfiguring in the same conditions
  41074. + --file=FILE[:TEMPLATE]
  41075. + instantiate the configuration file FILE
  41076. + --header=FILE[:TEMPLATE]
  41077. + instantiate the configuration header FILE
  41078. -fi
  41079. +Configuration files:
  41080. +$config_files
  41081. - if test "x$enable_alsa" = "xyes"; then
  41082. - { echo "$as_me:$LINENO: checking for snd_cards" >&5
  41083. -echo $ECHO_N "checking for snd_cards... $ECHO_C" >&6; }
  41084. -if test "${ac_cv_func_snd_cards+set}" = set; then
  41085. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41086. -else
  41087. - cat >conftest.$ac_ext <<_ACEOF
  41088. -/* confdefs.h. */
  41089. -_ACEOF
  41090. -cat confdefs.h >>conftest.$ac_ext
  41091. -cat >>conftest.$ac_ext <<_ACEOF
  41092. -/* end confdefs.h. */
  41093. -/* Define snd_cards to an innocuous variant, in case <limits.h> declares snd_cards.
  41094. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  41095. -#define snd_cards innocuous_snd_cards
  41096. +Configuration headers:
  41097. +$config_headers
  41098. -/* System header to define __stub macros and hopefully few prototypes,
  41099. - which can conflict with char snd_cards (); below.
  41100. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  41101. - <limits.h> exists even on freestanding compilers. */
  41102. +Configuration commands:
  41103. +$config_commands
  41104. -#ifdef __STDC__
  41105. -# include <limits.h>
  41106. -#else
  41107. -# include <assert.h>
  41108. -#endif
  41109. +Report bugs to the package provider."
  41110. -#undef snd_cards
  41111. +_ACEOF
  41112. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41113. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  41114. +ac_cs_version="\\
  41115. +esound config.status 0.2.41
  41116. +configured by $0, generated by GNU Autoconf 2.65,
  41117. + with options \\"\$ac_cs_config\\"
  41118. -/* Override any GCC internal prototype to avoid an error.
  41119. - Use char because int might match the return type of a GCC
  41120. - builtin and then its argument prototype would still apply. */
  41121. -#ifdef __cplusplus
  41122. -extern "C"
  41123. -#endif
  41124. -char snd_cards ();
  41125. -/* The GNU C library defines this for functions which it implements
  41126. - to always fail with ENOSYS. Some functions are actually named
  41127. - something starting with __ and the normal name is an alias. */
  41128. -#if defined __stub_snd_cards || defined __stub___snd_cards
  41129. -choke me
  41130. -#endif
  41131. +Copyright (C) 2009 Free Software Foundation, Inc.
  41132. +This config.status script is free software; the Free Software Foundation
  41133. +gives unlimited permission to copy, distribute and modify it."
  41134. -int
  41135. -main ()
  41136. -{
  41137. -return snd_cards ();
  41138. - ;
  41139. - return 0;
  41140. -}
  41141. +ac_pwd='$ac_pwd'
  41142. +srcdir='$srcdir'
  41143. +INSTALL='$INSTALL'
  41144. +MKDIR_P='$MKDIR_P'
  41145. +AWK='$AWK'
  41146. +test -n "\$AWK" || AWK=awk
  41147. _ACEOF
  41148. -rm -f conftest.$ac_objext conftest$ac_exeext
  41149. -if { (ac_try="$ac_link"
  41150. -case "(($ac_try" in
  41151. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41152. - *) ac_try_echo=$ac_try;;
  41153. -esac
  41154. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41155. - (eval "$ac_link") 2>conftest.er1
  41156. - ac_status=$?
  41157. - grep -v '^ *+' conftest.er1 >conftest.err
  41158. - rm -f conftest.er1
  41159. - cat conftest.err >&5
  41160. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41161. - (exit $ac_status); } && {
  41162. - test -z "$ac_c_werror_flag" ||
  41163. - test ! -s conftest.err
  41164. - } && test -s conftest$ac_exeext &&
  41165. - $as_test_x conftest$ac_exeext; then
  41166. - ac_cv_func_snd_cards=yes
  41167. -else
  41168. - echo "$as_me: failed program was:" >&5
  41169. -sed 's/^/| /' conftest.$ac_ext >&5
  41170. - ac_cv_func_snd_cards=no
  41171. -fi
  41172. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41173. +# The default lists apply if the user does not specify any file.
  41174. +ac_need_defaults=:
  41175. +while test $# != 0
  41176. +do
  41177. + case $1 in
  41178. + --*=*)
  41179. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  41180. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  41181. + ac_shift=:
  41182. + ;;
  41183. + *)
  41184. + ac_option=$1
  41185. + ac_optarg=$2
  41186. + ac_shift=shift
  41187. + ;;
  41188. + esac
  41189. +
  41190. + case $ac_option in
  41191. + # Handling of the options.
  41192. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  41193. + ac_cs_recheck=: ;;
  41194. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  41195. + $as_echo "$ac_cs_version"; exit ;;
  41196. + --config | --confi | --conf | --con | --co | --c )
  41197. + $as_echo "$ac_cs_config"; exit ;;
  41198. + --debug | --debu | --deb | --de | --d | -d )
  41199. + debug=: ;;
  41200. + --file | --fil | --fi | --f )
  41201. + $ac_shift
  41202. + case $ac_optarg in
  41203. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  41204. + esac
  41205. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  41206. + ac_need_defaults=false;;
  41207. + --header | --heade | --head | --hea )
  41208. + $ac_shift
  41209. + case $ac_optarg in
  41210. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  41211. + esac
  41212. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  41213. + ac_need_defaults=false;;
  41214. + --he | --h)
  41215. + # Conflict between --help and --header
  41216. + as_fn_error "ambiguous option: \`$1'
  41217. +Try \`$0 --help' for more information.";;
  41218. + --help | --hel | -h )
  41219. + $as_echo "$ac_cs_usage"; exit ;;
  41220. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  41221. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  41222. + ac_cs_silent=: ;;
  41223. +
  41224. + # This is an error.
  41225. + -*) as_fn_error "unrecognized option: \`$1'
  41226. +Try \`$0 --help' for more information." ;;
  41227. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41228. - conftest$ac_exeext conftest.$ac_ext
  41229. -fi
  41230. -{ echo "$as_me:$LINENO: result: $ac_cv_func_snd_cards" >&5
  41231. -echo "${ECHO_T}$ac_cv_func_snd_cards" >&6; }
  41232. -if test $ac_cv_func_snd_cards = yes; then
  41233. - :
  41234. -else
  41235. + *) as_fn_append ac_config_targets " $1"
  41236. + ac_need_defaults=false ;;
  41237. -{ echo "$as_me:$LINENO: checking for snd_cards in -lsound" >&5
  41238. -echo $ECHO_N "checking for snd_cards in -lsound... $ECHO_C" >&6; }
  41239. -if test "${ac_cv_lib_sound_snd_cards+set}" = set; then
  41240. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41241. -else
  41242. - ac_check_lib_save_LIBS=$LIBS
  41243. -LIBS="-lsound $LIBS"
  41244. -cat >conftest.$ac_ext <<_ACEOF
  41245. -/* confdefs.h. */
  41246. -_ACEOF
  41247. -cat confdefs.h >>conftest.$ac_ext
  41248. -cat >>conftest.$ac_ext <<_ACEOF
  41249. -/* end confdefs.h. */
  41250. + esac
  41251. + shift
  41252. +done
  41253. -/* Override any GCC internal prototype to avoid an error.
  41254. - Use char because int might match the return type of a GCC
  41255. - builtin and then its argument prototype would still apply. */
  41256. -#ifdef __cplusplus
  41257. -extern "C"
  41258. -#endif
  41259. -char snd_cards ();
  41260. -int
  41261. -main ()
  41262. -{
  41263. -return snd_cards ();
  41264. - ;
  41265. - return 0;
  41266. -}
  41267. -_ACEOF
  41268. -rm -f conftest.$ac_objext conftest$ac_exeext
  41269. -if { (ac_try="$ac_link"
  41270. -case "(($ac_try" in
  41271. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41272. - *) ac_try_echo=$ac_try;;
  41273. -esac
  41274. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41275. - (eval "$ac_link") 2>conftest.er1
  41276. - ac_status=$?
  41277. - grep -v '^ *+' conftest.er1 >conftest.err
  41278. - rm -f conftest.er1
  41279. - cat conftest.err >&5
  41280. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41281. - (exit $ac_status); } && {
  41282. - test -z "$ac_c_werror_flag" ||
  41283. - test ! -s conftest.err
  41284. - } && test -s conftest$ac_exeext &&
  41285. - $as_test_x conftest$ac_exeext; then
  41286. - ac_cv_lib_sound_snd_cards=yes
  41287. -else
  41288. - echo "$as_me: failed program was:" >&5
  41289. -sed 's/^/| /' conftest.$ac_ext >&5
  41290. +ac_configure_extra_args=
  41291. - ac_cv_lib_sound_snd_cards=no
  41292. +if $ac_cs_silent; then
  41293. + exec 6>/dev/null
  41294. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  41295. fi
  41296. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41297. - conftest$ac_exeext conftest.$ac_ext
  41298. -LIBS=$ac_check_lib_save_LIBS
  41299. -fi
  41300. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_sound_snd_cards" >&5
  41301. -echo "${ECHO_T}$ac_cv_lib_sound_snd_cards" >&6; }
  41302. -if test $ac_cv_lib_sound_snd_cards = yes; then
  41303. - cat >>confdefs.h <<_ACEOF
  41304. -#define HAVE_LIBSOUND 1
  41305. _ACEOF
  41306. -
  41307. - LIBS="-lsound $LIBS"
  41308. -
  41309. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41310. +if \$ac_cs_recheck; then
  41311. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  41312. + shift
  41313. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  41314. + CONFIG_SHELL='$SHELL'
  41315. + export CONFIG_SHELL
  41316. + exec "\$@"
  41317. fi
  41318. -fi
  41319. +_ACEOF
  41320. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41321. +exec 5>>config.log
  41322. +{
  41323. + echo
  41324. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  41325. +## Running $as_me. ##
  41326. +_ASBOX
  41327. + $as_echo "$ac_log"
  41328. +} >&5
  41329. - { echo "$as_me:$LINENO: checking for snd_cards" >&5
  41330. -echo $ECHO_N "checking for snd_cards... $ECHO_C" >&6; }
  41331. -if test "${ac_cv_func_snd_cards+set}" = set; then
  41332. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41333. -else
  41334. - cat >conftest.$ac_ext <<_ACEOF
  41335. -/* confdefs.h. */
  41336. _ACEOF
  41337. -cat confdefs.h >>conftest.$ac_ext
  41338. -cat >>conftest.$ac_ext <<_ACEOF
  41339. -/* end confdefs.h. */
  41340. -/* Define snd_cards to an innocuous variant, in case <limits.h> declares snd_cards.
  41341. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  41342. -#define snd_cards innocuous_snd_cards
  41343. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41344. +#
  41345. +# INIT-COMMANDS
  41346. +#
  41347. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  41348. -/* System header to define __stub macros and hopefully few prototypes,
  41349. - which can conflict with char snd_cards (); below.
  41350. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  41351. - <limits.h> exists even on freestanding compilers. */
  41352. -#ifdef __STDC__
  41353. -# include <limits.h>
  41354. -#else
  41355. -# include <assert.h>
  41356. -#endif
  41357. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  41358. +# if CDPATH is set.
  41359. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41360. -#undef snd_cards
  41361. +sed_quote_subst='$sed_quote_subst'
  41362. +double_quote_subst='$double_quote_subst'
  41363. +delay_variable_subst='$delay_variable_subst'
  41364. +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  41365. +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  41366. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  41367. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  41368. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  41369. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  41370. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  41371. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  41372. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  41373. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41374. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  41375. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  41376. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41377. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  41378. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  41379. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  41380. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  41381. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  41382. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41383. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41384. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  41385. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  41386. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  41387. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  41388. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  41389. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  41390. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  41391. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  41392. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  41393. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41394. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41395. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  41396. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  41397. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  41398. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41399. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  41400. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  41401. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41402. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41403. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41404. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  41405. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41406. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  41407. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  41408. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  41409. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  41410. +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"`'
  41411. +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"`'
  41412. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  41413. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  41414. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  41415. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  41416. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41417. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  41418. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  41419. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  41420. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  41421. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  41422. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  41423. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  41424. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  41425. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  41426. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  41427. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  41428. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41429. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41430. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  41431. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  41432. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41433. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41434. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  41435. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41436. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41437. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41438. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41439. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41440. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41441. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41442. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41443. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41444. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41445. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41446. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  41447. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  41448. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  41449. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  41450. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41451. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  41452. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  41453. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  41454. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  41455. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  41456. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41457. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41458. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41459. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41460. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41461. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  41462. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  41463. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  41464. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  41465. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41466. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41467. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  41468. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41469. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41470. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41471. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41472. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41473. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41474. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  41475. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  41476. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41477. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41478. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  41479. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  41480. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  41481. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  41482. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41483. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41484. +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  41485. +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  41486. +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  41487. +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  41488. +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  41489. +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  41490. +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41491. +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41492. +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41493. +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41494. +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41495. +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41496. +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41497. +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41498. +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41499. +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41500. +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41501. +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41502. +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41503. +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41504. +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41505. +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41506. +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41507. +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41508. +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41509. +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41510. +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41511. +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41512. +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41513. +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41514. +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41515. +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41516. +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41517. +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41518. +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41519. +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41520. +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41521. +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41522. +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41523. +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41524. +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41525. +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41526. +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41527. +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41528. +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41529. +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41530. +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41531. +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41532. +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41533. +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41534. +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41535. +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41536. +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41537. +
  41538. +LTCC='$LTCC'
  41539. +LTCFLAGS='$LTCFLAGS'
  41540. +compiler='$compiler_DEFAULT'
  41541. +
  41542. +# Quote evaled strings.
  41543. +for var in SED \
  41544. +GREP \
  41545. +EGREP \
  41546. +FGREP \
  41547. +LD \
  41548. +NM \
  41549. +LN_S \
  41550. +lt_SP2NL \
  41551. +lt_NL2SP \
  41552. +reload_flag \
  41553. +deplibs_check_method \
  41554. +file_magic_cmd \
  41555. +AR \
  41556. +AR_FLAGS \
  41557. +STRIP \
  41558. +RANLIB \
  41559. +CC \
  41560. +CFLAGS \
  41561. +compiler \
  41562. +lt_cv_sys_global_symbol_pipe \
  41563. +lt_cv_sys_global_symbol_to_cdecl \
  41564. +lt_cv_sys_global_symbol_to_c_name_address \
  41565. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  41566. +SHELL \
  41567. +ECHO \
  41568. +lt_prog_compiler_no_builtin_flag \
  41569. +lt_prog_compiler_wl \
  41570. +lt_prog_compiler_pic \
  41571. +lt_prog_compiler_static \
  41572. +lt_cv_prog_compiler_c_o \
  41573. +need_locks \
  41574. +DSYMUTIL \
  41575. +NMEDIT \
  41576. +LIPO \
  41577. +OTOOL \
  41578. +OTOOL64 \
  41579. +shrext_cmds \
  41580. +export_dynamic_flag_spec \
  41581. +whole_archive_flag_spec \
  41582. +compiler_needs_object \
  41583. +with_gnu_ld \
  41584. +allow_undefined_flag \
  41585. +no_undefined_flag \
  41586. +hardcode_libdir_flag_spec \
  41587. +hardcode_libdir_flag_spec_ld \
  41588. +hardcode_libdir_separator \
  41589. +fix_srcfile_path \
  41590. +exclude_expsyms \
  41591. +include_expsyms \
  41592. +file_list_spec \
  41593. +variables_saved_for_relink \
  41594. +libname_spec \
  41595. +library_names_spec \
  41596. +soname_spec \
  41597. +finish_eval \
  41598. +old_striplib \
  41599. +striplib \
  41600. +compiler_lib_search_dirs \
  41601. +predep_objects \
  41602. +postdep_objects \
  41603. +predeps \
  41604. +postdeps \
  41605. +compiler_lib_search_path \
  41606. +LD_CXX \
  41607. +compiler_CXX \
  41608. +lt_prog_compiler_no_builtin_flag_CXX \
  41609. +lt_prog_compiler_wl_CXX \
  41610. +lt_prog_compiler_pic_CXX \
  41611. +lt_prog_compiler_static_CXX \
  41612. +lt_cv_prog_compiler_c_o_CXX \
  41613. +export_dynamic_flag_spec_CXX \
  41614. +whole_archive_flag_spec_CXX \
  41615. +compiler_needs_object_CXX \
  41616. +with_gnu_ld_CXX \
  41617. +allow_undefined_flag_CXX \
  41618. +no_undefined_flag_CXX \
  41619. +hardcode_libdir_flag_spec_CXX \
  41620. +hardcode_libdir_flag_spec_ld_CXX \
  41621. +hardcode_libdir_separator_CXX \
  41622. +fix_srcfile_path_CXX \
  41623. +exclude_expsyms_CXX \
  41624. +include_expsyms_CXX \
  41625. +file_list_spec_CXX \
  41626. +compiler_lib_search_dirs_CXX \
  41627. +predep_objects_CXX \
  41628. +postdep_objects_CXX \
  41629. +predeps_CXX \
  41630. +postdeps_CXX \
  41631. +compiler_lib_search_path_CXX; do
  41632. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41633. + *[\\\\\\\`\\"\\\$]*)
  41634. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  41635. + ;;
  41636. + *)
  41637. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41638. + ;;
  41639. + esac
  41640. +done
  41641. -/* Override any GCC internal prototype to avoid an error.
  41642. - Use char because int might match the return type of a GCC
  41643. - builtin and then its argument prototype would still apply. */
  41644. -#ifdef __cplusplus
  41645. -extern "C"
  41646. -#endif
  41647. -char snd_cards ();
  41648. -/* The GNU C library defines this for functions which it implements
  41649. - to always fail with ENOSYS. Some functions are actually named
  41650. - something starting with __ and the normal name is an alias. */
  41651. -#if defined __stub_snd_cards || defined __stub___snd_cards
  41652. -choke me
  41653. -#endif
  41654. +# Double-quote double-evaled strings.
  41655. +for var in reload_cmds \
  41656. +old_postinstall_cmds \
  41657. +old_postuninstall_cmds \
  41658. +old_archive_cmds \
  41659. +extract_expsyms_cmds \
  41660. +old_archive_from_new_cmds \
  41661. +old_archive_from_expsyms_cmds \
  41662. +archive_cmds \
  41663. +archive_expsym_cmds \
  41664. +module_cmds \
  41665. +module_expsym_cmds \
  41666. +export_symbols_cmds \
  41667. +prelink_cmds \
  41668. +postinstall_cmds \
  41669. +postuninstall_cmds \
  41670. +finish_cmds \
  41671. +sys_lib_search_path_spec \
  41672. +sys_lib_dlsearch_path_spec \
  41673. +old_archive_cmds_CXX \
  41674. +old_archive_from_new_cmds_CXX \
  41675. +old_archive_from_expsyms_cmds_CXX \
  41676. +archive_cmds_CXX \
  41677. +archive_expsym_cmds_CXX \
  41678. +module_cmds_CXX \
  41679. +module_expsym_cmds_CXX \
  41680. +export_symbols_cmds_CXX \
  41681. +prelink_cmds_CXX; do
  41682. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41683. + *[\\\\\\\`\\"\\\$]*)
  41684. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  41685. + ;;
  41686. + *)
  41687. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41688. + ;;
  41689. + esac
  41690. +done
  41691. -int
  41692. -main ()
  41693. -{
  41694. -return snd_cards ();
  41695. - ;
  41696. - return 0;
  41697. -}
  41698. -_ACEOF
  41699. -rm -f conftest.$ac_objext conftest$ac_exeext
  41700. -if { (ac_try="$ac_link"
  41701. -case "(($ac_try" in
  41702. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41703. - *) ac_try_echo=$ac_try;;
  41704. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  41705. +case \$lt_ECHO in
  41706. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  41707. + ;;
  41708. esac
  41709. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41710. - (eval "$ac_link") 2>conftest.er1
  41711. - ac_status=$?
  41712. - grep -v '^ *+' conftest.er1 >conftest.err
  41713. - rm -f conftest.er1
  41714. - cat conftest.err >&5
  41715. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41716. - (exit $ac_status); } && {
  41717. - test -z "$ac_c_werror_flag" ||
  41718. - test ! -s conftest.err
  41719. - } && test -s conftest$ac_exeext &&
  41720. - $as_test_x conftest$ac_exeext; then
  41721. - ac_cv_func_snd_cards=yes
  41722. -else
  41723. - echo "$as_me: failed program was:" >&5
  41724. -sed 's/^/| /' conftest.$ac_ext >&5
  41725. - ac_cv_func_snd_cards=no
  41726. -fi
  41727. +ac_aux_dir='$ac_aux_dir'
  41728. +xsi_shell='$xsi_shell'
  41729. +lt_shell_append='$lt_shell_append'
  41730. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41731. - conftest$ac_exeext conftest.$ac_ext
  41732. +# See if we are running on zsh, and set the options which allow our
  41733. +# commands through without removal of \ escapes INIT.
  41734. +if test -n "\${ZSH_VERSION+set}" ; then
  41735. + setopt NO_GLOB_SUBST
  41736. fi
  41737. -{ echo "$as_me:$LINENO: result: $ac_cv_func_snd_cards" >&5
  41738. -echo "${ECHO_T}$ac_cv_func_snd_cards" >&6; }
  41739. -if test $ac_cv_func_snd_cards = yes; then
  41740. - :
  41741. -else
  41742. -{ echo "$as_me:$LINENO: checking for snd_cards in -lasound" >&5
  41743. -echo $ECHO_N "checking for snd_cards in -lasound... $ECHO_C" >&6; }
  41744. -if test "${ac_cv_lib_asound_snd_cards+set}" = set; then
  41745. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41746. -else
  41747. - ac_check_lib_save_LIBS=$LIBS
  41748. -LIBS="-lasound $LIBS"
  41749. -cat >conftest.$ac_ext <<_ACEOF
  41750. -/* confdefs.h. */
  41751. -_ACEOF
  41752. -cat confdefs.h >>conftest.$ac_ext
  41753. -cat >>conftest.$ac_ext <<_ACEOF
  41754. -/* end confdefs.h. */
  41755. -/* Override any GCC internal prototype to avoid an error.
  41756. - Use char because int might match the return type of a GCC
  41757. - builtin and then its argument prototype would still apply. */
  41758. -#ifdef __cplusplus
  41759. -extern "C"
  41760. -#endif
  41761. -char snd_cards ();
  41762. -int
  41763. -main ()
  41764. -{
  41765. -return snd_cards ();
  41766. - ;
  41767. - return 0;
  41768. -}
  41769. -_ACEOF
  41770. -rm -f conftest.$ac_objext conftest$ac_exeext
  41771. -if { (ac_try="$ac_link"
  41772. -case "(($ac_try" in
  41773. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41774. - *) ac_try_echo=$ac_try;;
  41775. -esac
  41776. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41777. - (eval "$ac_link") 2>conftest.er1
  41778. - ac_status=$?
  41779. - grep -v '^ *+' conftest.er1 >conftest.err
  41780. - rm -f conftest.er1
  41781. - cat conftest.err >&5
  41782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41783. - (exit $ac_status); } && {
  41784. - test -z "$ac_c_werror_flag" ||
  41785. - test ! -s conftest.err
  41786. - } && test -s conftest$ac_exeext &&
  41787. - $as_test_x conftest$ac_exeext; then
  41788. - ac_cv_lib_asound_snd_cards=yes
  41789. -else
  41790. - echo "$as_me: failed program was:" >&5
  41791. -sed 's/^/| /' conftest.$ac_ext >&5
  41792. + PACKAGE='$PACKAGE'
  41793. + VERSION='$VERSION'
  41794. + TIMESTAMP='$TIMESTAMP'
  41795. + RM='$RM'
  41796. + ofile='$ofile'
  41797. - ac_cv_lib_asound_snd_cards=no
  41798. -fi
  41799. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41800. - conftest$ac_exeext conftest.$ac_ext
  41801. -LIBS=$ac_check_lib_save_LIBS
  41802. -fi
  41803. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_cards" >&5
  41804. -echo "${ECHO_T}$ac_cv_lib_asound_snd_cards" >&6; }
  41805. -if test $ac_cv_lib_asound_snd_cards = yes; then
  41806. - cat >>confdefs.h <<_ACEOF
  41807. -#define HAVE_LIBASOUND 1
  41808. -_ACEOF
  41809. - LIBS="-lasound $LIBS"
  41810. -fi
  41811. -fi
  41812. - { echo "$as_me:$LINENO: checking for snd_pcm_pause" >&5
  41813. -echo $ECHO_N "checking for snd_pcm_pause... $ECHO_C" >&6; }
  41814. -if test "${ac_cv_func_snd_pcm_pause+set}" = set; then
  41815. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41816. -else
  41817. - cat >conftest.$ac_ext <<_ACEOF
  41818. -/* confdefs.h. */
  41819. _ACEOF
  41820. -cat confdefs.h >>conftest.$ac_ext
  41821. -cat >>conftest.$ac_ext <<_ACEOF
  41822. -/* end confdefs.h. */
  41823. -/* Define snd_pcm_pause to an innocuous variant, in case <limits.h> declares snd_pcm_pause.
  41824. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  41825. -#define snd_pcm_pause innocuous_snd_pcm_pause
  41826. -
  41827. -/* System header to define __stub macros and hopefully few prototypes,
  41828. - which can conflict with char snd_pcm_pause (); below.
  41829. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  41830. - <limits.h> exists even on freestanding compilers. */
  41831. -
  41832. -#ifdef __STDC__
  41833. -# include <limits.h>
  41834. -#else
  41835. -# include <assert.h>
  41836. -#endif
  41837. -
  41838. -#undef snd_pcm_pause
  41839. -
  41840. -/* Override any GCC internal prototype to avoid an error.
  41841. - Use char because int might match the return type of a GCC
  41842. - builtin and then its argument prototype would still apply. */
  41843. -#ifdef __cplusplus
  41844. -extern "C"
  41845. -#endif
  41846. -char snd_pcm_pause ();
  41847. -/* The GNU C library defines this for functions which it implements
  41848. - to always fail with ENOSYS. Some functions are actually named
  41849. - something starting with __ and the normal name is an alias. */
  41850. -#if defined __stub_snd_pcm_pause || defined __stub___snd_pcm_pause
  41851. -choke me
  41852. -#endif
  41853. -int
  41854. -main ()
  41855. -{
  41856. -return snd_pcm_pause ();
  41857. - ;
  41858. - return 0;
  41859. -}
  41860. -_ACEOF
  41861. -rm -f conftest.$ac_objext conftest$ac_exeext
  41862. -if { (ac_try="$ac_link"
  41863. -case "(($ac_try" in
  41864. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41865. - *) ac_try_echo=$ac_try;;
  41866. -esac
  41867. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41868. - (eval "$ac_link") 2>conftest.er1
  41869. - ac_status=$?
  41870. - grep -v '^ *+' conftest.er1 >conftest.err
  41871. - rm -f conftest.er1
  41872. - cat conftest.err >&5
  41873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41874. - (exit $ac_status); } && {
  41875. - test -z "$ac_c_werror_flag" ||
  41876. - test ! -s conftest.err
  41877. - } && test -s conftest$ac_exeext &&
  41878. - $as_test_x conftest$ac_exeext; then
  41879. - ac_cv_func_snd_pcm_pause=yes
  41880. -else
  41881. - echo "$as_me: failed program was:" >&5
  41882. -sed 's/^/| /' conftest.$ac_ext >&5
  41883. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41884. - ac_cv_func_snd_pcm_pause=no
  41885. -fi
  41886. +# Handling of arguments.
  41887. +for ac_config_target in $ac_config_targets
  41888. +do
  41889. + case $ac_config_target in
  41890. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  41891. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  41892. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  41893. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  41894. + "esd-config") CONFIG_FILES="$CONFIG_FILES esd-config" ;;
  41895. + "esound.spec") CONFIG_FILES="$CONFIG_FILES esound.spec" ;;
  41896. + "esound.pc") CONFIG_FILES="$CONFIG_FILES esound.pc" ;;
  41897. + "esddsp") CONFIG_FILES="$CONFIG_FILES esddsp" ;;
  41898. + "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  41899. + "docs/esd.1") CONFIG_FILES="$CONFIG_FILES docs/esd.1" ;;
  41900. + "docs/esdcat.1") CONFIG_FILES="$CONFIG_FILES docs/esdcat.1" ;;
  41901. + "docs/esd-config.1") CONFIG_FILES="$CONFIG_FILES docs/esd-config.1" ;;
  41902. + "docs/esdctl.1") CONFIG_FILES="$CONFIG_FILES docs/esdctl.1" ;;
  41903. + "docs/esddsp.1") CONFIG_FILES="$CONFIG_FILES docs/esddsp.1" ;;
  41904. + "docs/esdfilt.1") CONFIG_FILES="$CONFIG_FILES docs/esdfilt.1" ;;
  41905. + "docs/esdloop.1") CONFIG_FILES="$CONFIG_FILES docs/esdloop.1" ;;
  41906. + "docs/esdmon.1") CONFIG_FILES="$CONFIG_FILES docs/esdmon.1" ;;
  41907. + "docs/esdplay.1") CONFIG_FILES="$CONFIG_FILES docs/esdplay.1" ;;
  41908. + "docs/esdrec.1") CONFIG_FILES="$CONFIG_FILES docs/esdrec.1" ;;
  41909. + "docs/esdsample.1") CONFIG_FILES="$CONFIG_FILES docs/esdsample.1" ;;
  41910. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41911. - conftest$ac_exeext conftest.$ac_ext
  41912. -fi
  41913. -{ echo "$as_me:$LINENO: result: $ac_cv_func_snd_pcm_pause" >&5
  41914. -echo "${ECHO_T}$ac_cv_func_snd_pcm_pause" >&6; }
  41915. -if test $ac_cv_func_snd_pcm_pause = yes; then
  41916. - :
  41917. -else
  41918. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  41919. + esac
  41920. +done
  41921. -{ echo "$as_me:$LINENO: checking for snd_pcm_pause in -lasound" >&5
  41922. -echo $ECHO_N "checking for snd_pcm_pause in -lasound... $ECHO_C" >&6; }
  41923. -if test "${ac_cv_lib_asound_snd_pcm_pause+set}" = set; then
  41924. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41925. -else
  41926. - ac_check_lib_save_LIBS=$LIBS
  41927. -LIBS="-lasound $LIBS"
  41928. -cat >conftest.$ac_ext <<_ACEOF
  41929. -/* confdefs.h. */
  41930. -_ACEOF
  41931. -cat confdefs.h >>conftest.$ac_ext
  41932. -cat >>conftest.$ac_ext <<_ACEOF
  41933. -/* end confdefs.h. */
  41934. -/* Override any GCC internal prototype to avoid an error.
  41935. - Use char because int might match the return type of a GCC
  41936. - builtin and then its argument prototype would still apply. */
  41937. -#ifdef __cplusplus
  41938. -extern "C"
  41939. -#endif
  41940. -char snd_pcm_pause ();
  41941. -int
  41942. -main ()
  41943. +# If the user did not use the arguments to specify the items to instantiate,
  41944. +# then the envvar interface is used. Set only those that are not.
  41945. +# We use the long form for the default assignment because of an extremely
  41946. +# bizarre bug on SunOS 4.1.3.
  41947. +if $ac_need_defaults; then
  41948. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  41949. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  41950. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  41951. +fi
  41952. +
  41953. +# Have a temporary directory for convenience. Make it in the build tree
  41954. +# simply because there is no reason against having it here, and in addition,
  41955. +# creating and moving files from /tmp can sometimes cause problems.
  41956. +# Hook for its removal unless debugging.
  41957. +# Note that there is a small window in which the directory will not be cleaned:
  41958. +# after its creation but before its name has been assigned to `$tmp'.
  41959. +$debug ||
  41960. {
  41961. -return snd_pcm_pause ();
  41962. - ;
  41963. - return 0;
  41964. + tmp=
  41965. + trap 'exit_status=$?
  41966. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  41967. +' 0
  41968. + trap 'as_fn_exit 1' 1 2 13 15
  41969. }
  41970. -_ACEOF
  41971. -rm -f conftest.$ac_objext conftest$ac_exeext
  41972. -if { (ac_try="$ac_link"
  41973. -case "(($ac_try" in
  41974. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41975. - *) ac_try_echo=$ac_try;;
  41976. -esac
  41977. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41978. - (eval "$ac_link") 2>conftest.er1
  41979. - ac_status=$?
  41980. - grep -v '^ *+' conftest.er1 >conftest.err
  41981. - rm -f conftest.er1
  41982. - cat conftest.err >&5
  41983. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41984. - (exit $ac_status); } && {
  41985. - test -z "$ac_c_werror_flag" ||
  41986. - test ! -s conftest.err
  41987. - } && test -s conftest$ac_exeext &&
  41988. - $as_test_x conftest$ac_exeext; then
  41989. - ac_cv_lib_asound_snd_pcm_pause=yes
  41990. -else
  41991. - echo "$as_me: failed program was:" >&5
  41992. -sed 's/^/| /' conftest.$ac_ext >&5
  41993. +# Create a (secure) tmp directory for tmp files.
  41994. - ac_cv_lib_asound_snd_pcm_pause=no
  41995. -fi
  41996. +{
  41997. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  41998. + test -n "$tmp" && test -d "$tmp"
  41999. +} ||
  42000. +{
  42001. + tmp=./conf$$-$RANDOM
  42002. + (umask 077 && mkdir "$tmp")
  42003. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  42004. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42005. - conftest$ac_exeext conftest.$ac_ext
  42006. -LIBS=$ac_check_lib_save_LIBS
  42007. -fi
  42008. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_pause" >&5
  42009. -echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_pause" >&6; }
  42010. -if test $ac_cv_lib_asound_snd_pcm_pause = yes; then
  42011. - cat >>confdefs.h <<_ACEOF
  42012. -#define HAVE_LIBASOUND 1
  42013. -_ACEOF
  42014. +# Set up the scripts for CONFIG_FILES section.
  42015. +# No need to generate them if there are no CONFIG_FILES.
  42016. +# This happens for instance with `./config.status config.h'.
  42017. +if test -n "$CONFIG_FILES"; then
  42018. - LIBS="-lasound $LIBS"
  42019. +ac_cr=`echo X | tr X '\015'`
  42020. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  42021. +# But we know of no other shell where ac_cr would be empty at this
  42022. +# point, so we can use a bashism as a fallback.
  42023. +if test "x$ac_cr" = x; then
  42024. + eval ac_cr=\$\'\\r\'
  42025. fi
  42026. -
  42027. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  42028. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  42029. + ac_cs_awk_cr='\r'
  42030. +else
  42031. + ac_cs_awk_cr=$ac_cr
  42032. fi
  42033. -
  42034. - saved_cflags="$CFLAGS"
  42035. - CFLAGS="$CFLAGS -Werror"
  42036. - echo -n "checking for alsa new PCM API... "
  42037. - cat >conftest.$ac_ext <<_ACEOF
  42038. -/* confdefs.h. */
  42039. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  42040. _ACEOF
  42041. -cat confdefs.h >>conftest.$ac_ext
  42042. -cat >>conftest.$ac_ext <<_ACEOF
  42043. -/* end confdefs.h. */
  42044. - #include <alsa/asoundlib.h>
  42045. -int
  42046. -main ()
  42047. {
  42048. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  42049. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  42050. + echo "_ACEOF"
  42051. +} >conf$$subs.sh ||
  42052. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  42053. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  42054. +ac_delim='%!_!# '
  42055. +for ac_last_try in false false false false false :; do
  42056. + . ./conf$$subs.sh ||
  42057. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  42058. - snd_pcm_t *pcm;
  42059. - snd_pcm_hw_params_t *params;
  42060. - unsigned int val;
  42061. - int dir;
  42062. - /* intentionally not uses pointers, trying to replicate bug 129709 */
  42063. - snd_pcm_hw_params_set_rate_near(pcm, params, val, &dir);
  42064. -
  42065. - ;
  42066. - return 0;
  42067. -}
  42068. -_ACEOF
  42069. -rm -f conftest.$ac_objext conftest$ac_exeext
  42070. -if { (ac_try="$ac_link"
  42071. -case "(($ac_try" in
  42072. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42073. - *) ac_try_echo=$ac_try;;
  42074. -esac
  42075. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42076. - (eval "$ac_link") 2>conftest.er1
  42077. - ac_status=$?
  42078. - grep -v '^ *+' conftest.er1 >conftest.err
  42079. - rm -f conftest.er1
  42080. - cat conftest.err >&5
  42081. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42082. - (exit $ac_status); } && {
  42083. - test -z "$ac_c_werror_flag" ||
  42084. - test ! -s conftest.err
  42085. - } && test -s conftest$ac_exeext &&
  42086. - $as_test_x conftest$ac_exeext; then
  42087. - echo "no"
  42088. -else
  42089. - echo "$as_me: failed program was:" >&5
  42090. -sed 's/^/| /' conftest.$ac_ext >&5
  42091. -
  42092. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  42093. + if test $ac_delim_n = $ac_delim_num; then
  42094. + break
  42095. + elif $ac_last_try; then
  42096. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  42097. + else
  42098. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  42099. + fi
  42100. +done
  42101. +rm -f conf$$subs.sh
  42102. -cat >>confdefs.h <<\_ACEOF
  42103. -#define DRIVER_ALSA_09_NEW_PCM_API 1
  42104. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42105. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  42106. _ACEOF
  42107. - echo "yes"
  42108. -fi
  42109. -
  42110. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42111. - conftest$ac_exeext conftest.$ac_ext
  42112. +sed -n '
  42113. +h
  42114. +s/^/S["/; s/!.*/"]=/
  42115. +p
  42116. +g
  42117. +s/^[^!]*!//
  42118. +:repl
  42119. +t repl
  42120. +s/'"$ac_delim"'$//
  42121. +t delim
  42122. +:nl
  42123. +h
  42124. +s/\(.\{148\}\)..*/\1/
  42125. +t more1
  42126. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  42127. +p
  42128. +n
  42129. +b repl
  42130. +:more1
  42131. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  42132. +p
  42133. +g
  42134. +s/.\{148\}//
  42135. +t nl
  42136. +:delim
  42137. +h
  42138. +s/\(.\{148\}\)..*/\1/
  42139. +t more2
  42140. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  42141. +p
  42142. +b
  42143. +:more2
  42144. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  42145. +p
  42146. +g
  42147. +s/.\{148\}//
  42148. +t delim
  42149. +' <conf$$subs.awk | sed '
  42150. +/^[^""]/{
  42151. + N
  42152. + s/\n//
  42153. +}
  42154. +' >>$CONFIG_STATUS || ac_write_fail=1
  42155. +rm -f conf$$subs.awk
  42156. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42157. +_ACAWK
  42158. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  42159. + for (key in S) S_is_set[key] = 1
  42160. + FS = ""
  42161. - CFLAGS="$saved_cflags"
  42162. - fi
  42163. +}
  42164. +{
  42165. + line = $ 0
  42166. + nfields = split(line, field, "@")
  42167. + substed = 0
  42168. + len = length(field[1])
  42169. + for (i = 2; i < nfields; i++) {
  42170. + key = field[i]
  42171. + keylen = length(key)
  42172. + if (S_is_set[key]) {
  42173. + value = S[key]
  42174. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  42175. + len += length(value) + length(field[++i])
  42176. + substed = 1
  42177. + } else
  42178. + len += 1 + keylen
  42179. + }
  42180. + print line
  42181. +}
  42182. +_ACAWK
  42183. +_ACEOF
  42184. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42185. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  42186. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  42187. else
  42188. -
  42189. -cat >>confdefs.h <<\_ACEOF
  42190. -#define DRIVER_NONE 1
  42191. + cat
  42192. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  42193. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  42194. _ACEOF
  42195. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  42196. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  42197. +# trailing colons and then remove the whole line if VPATH becomes empty
  42198. +# (actually we leave an empty line to preserve line numbers).
  42199. +if test "x$srcdir" = x.; then
  42200. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  42201. +s/:*\$(srcdir):*/:/
  42202. +s/:*\${srcdir}:*/:/
  42203. +s/:*@srcdir@:*/:/
  42204. +s/^\([^=]*=[ ]*\):*/\1/
  42205. +s/:*$//
  42206. +s/^[^=]*=[ ]*$//
  42207. +}'
  42208. fi
  42209. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42210. +fi # test -n "$CONFIG_FILES"
  42211. +# Set up the scripts for CONFIG_HEADERS section.
  42212. +# No need to generate them if there are no CONFIG_HEADERS.
  42213. +# This happens for instance with `./config.status Makefile'.
  42214. +if test -n "$CONFIG_HEADERS"; then
  42215. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  42216. +BEGIN {
  42217. +_ACEOF
  42218. -# Check whether --with-esd-dir was given.
  42219. -if test "${with_esd_dir+set}" = set; then
  42220. - withval=$with_esd_dir;
  42221. -fi
  42222. -
  42223. -
  42224. -if test "x$with_esd_dir" = "x" ; then
  42225. - ESD_DIR='$(prefix)/bin'
  42226. - ESD_PC_DIR='${prefix}/bin'
  42227. -else
  42228. - ESD_DIR=$with_esd_dir
  42229. - ESD_PC_DIR=$with_esd_dir
  42230. -fi
  42231. -
  42232. -
  42233. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  42234. +# here-document in config.status, that substitutes the proper values into
  42235. +# config.h.in to produce config.h.
  42236. +# Create a delimiter string that does not exist in confdefs.h, to ease
  42237. +# handling of long lines.
  42238. +ac_delim='%!_!# '
  42239. +for ac_last_try in false false :; do
  42240. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  42241. + if test -z "$ac_t"; then
  42242. + break
  42243. + elif $ac_last_try; then
  42244. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  42245. + else
  42246. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  42247. + fi
  42248. +done
  42249. -build_esdplay=false
  42250. +# For the awk script, D is an array of macro values keyed by name,
  42251. +# likewise P contains macro parameters if any. Preserve backslash
  42252. +# newline sequences.
  42253. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  42254. +sed -n '
  42255. +s/.\{148\}/&'"$ac_delim"'/g
  42256. +t rset
  42257. +:rset
  42258. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  42259. +t def
  42260. +d
  42261. +:def
  42262. +s/\\$//
  42263. +t bsnl
  42264. +s/["\\]/\\&/g
  42265. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  42266. +D["\1"]=" \3"/p
  42267. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  42268. +d
  42269. +:bsnl
  42270. +s/["\\]/\\&/g
  42271. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  42272. +D["\1"]=" \3\\\\\\n"\\/p
  42273. +t cont
  42274. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  42275. +t cont
  42276. +d
  42277. +:cont
  42278. +n
  42279. +s/.\{148\}/&'"$ac_delim"'/g
  42280. +t clear
  42281. +:clear
  42282. +s/\\$//
  42283. +t bsnlc
  42284. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  42285. +d
  42286. +:bsnlc
  42287. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  42288. +b cont
  42289. +' <confdefs.h | sed '
  42290. +s/'"$ac_delim"'/"\\\
  42291. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  42292. +
  42293. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42294. + for (key in D) D_is_set[key] = 1
  42295. + FS = ""
  42296. +}
  42297. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  42298. + line = \$ 0
  42299. + split(line, arg, " ")
  42300. + if (arg[1] == "#") {
  42301. + defundef = arg[2]
  42302. + mac1 = arg[3]
  42303. + } else {
  42304. + defundef = substr(arg[1], 2)
  42305. + mac1 = arg[2]
  42306. + }
  42307. + split(mac1, mac2, "(") #)
  42308. + macro = mac2[1]
  42309. + prefix = substr(line, 1, index(line, defundef) - 1)
  42310. + if (D_is_set[macro]) {
  42311. + # Preserve the white space surrounding the "#".
  42312. + print prefix "define", macro P[macro] D[macro]
  42313. + next
  42314. + } else {
  42315. + # Replace #undef with comments. This is necessary, for example,
  42316. + # in the case of _POSIX_SOURCE, which is predefined and required
  42317. + # on some systems where configure will not decide to define it.
  42318. + if (defundef == "undef") {
  42319. + print "/*", prefix defundef, macro, "*/"
  42320. + next
  42321. + }
  42322. + }
  42323. +}
  42324. +{ print }
  42325. +_ACAWK
  42326. +_ACEOF
  42327. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42328. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  42329. +fi # test -n "$CONFIG_HEADERS"
  42330. -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  42331. - if test -n "$ac_tool_prefix"; then
  42332. - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  42333. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  42334. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  42335. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  42336. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  42337. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42338. -else
  42339. - case $PKG_CONFIG in
  42340. - [\\/]* | ?:[\\/]*)
  42341. - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  42342. - ;;
  42343. - *)
  42344. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42345. -for as_dir in $PATH
  42346. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  42347. +shift
  42348. +for ac_tag
  42349. do
  42350. - IFS=$as_save_IFS
  42351. - test -z "$as_dir" && as_dir=.
  42352. - for ac_exec_ext in '' $ac_executable_extensions; do
  42353. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42354. - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  42355. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42356. - break 2
  42357. - fi
  42358. -done
  42359. -done
  42360. -IFS=$as_save_IFS
  42361. + case $ac_tag in
  42362. + :[FHLC]) ac_mode=$ac_tag; continue;;
  42363. + esac
  42364. + case $ac_mode$ac_tag in
  42365. + :[FHL]*:*);;
  42366. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  42367. + :[FH]-) ac_tag=-:-;;
  42368. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  42369. + esac
  42370. + ac_save_IFS=$IFS
  42371. + IFS=:
  42372. + set x $ac_tag
  42373. + IFS=$ac_save_IFS
  42374. + shift
  42375. + ac_file=$1
  42376. + shift
  42377. - ;;
  42378. -esac
  42379. -fi
  42380. -PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  42381. -if test -n "$PKG_CONFIG"; then
  42382. - { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  42383. -echo "${ECHO_T}$PKG_CONFIG" >&6; }
  42384. -else
  42385. - { echo "$as_me:$LINENO: result: no" >&5
  42386. -echo "${ECHO_T}no" >&6; }
  42387. -fi
  42388. + case $ac_mode in
  42389. + :L) ac_source=$1;;
  42390. + :[FH])
  42391. + ac_file_inputs=
  42392. + for ac_f
  42393. + do
  42394. + case $ac_f in
  42395. + -) ac_f="$tmp/stdin";;
  42396. + *) # Look for the file first in the build tree, then in the source tree
  42397. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  42398. + # because $ac_f cannot contain `:'.
  42399. + test -f "$ac_f" ||
  42400. + case $ac_f in
  42401. + [\\/$]*) false;;
  42402. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  42403. + esac ||
  42404. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  42405. + esac
  42406. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  42407. + as_fn_append ac_file_inputs " '$ac_f'"
  42408. + done
  42409. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  42410. + # use $as_me), people would be surprised to read:
  42411. + # /* config.h. Generated by config.status. */
  42412. + configure_input='Generated from '`
  42413. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  42414. + `' by configure.'
  42415. + if test x"$ac_file" != x-; then
  42416. + configure_input="$ac_file. $configure_input"
  42417. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  42418. +$as_echo "$as_me: creating $ac_file" >&6;}
  42419. + fi
  42420. + # Neutralize special characters interpreted by sed in replacement strings.
  42421. + case $configure_input in #(
  42422. + *\&* | *\|* | *\\* )
  42423. + ac_sed_conf_input=`$as_echo "$configure_input" |
  42424. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  42425. + *) ac_sed_conf_input=$configure_input;;
  42426. + esac
  42427. -fi
  42428. -if test -z "$ac_cv_path_PKG_CONFIG"; then
  42429. - ac_pt_PKG_CONFIG=$PKG_CONFIG
  42430. - # Extract the first word of "pkg-config", so it can be a program name with args.
  42431. -set dummy pkg-config; ac_word=$2
  42432. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  42433. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  42434. -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  42435. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42436. -else
  42437. - case $ac_pt_PKG_CONFIG in
  42438. - [\\/]* | ?:[\\/]*)
  42439. - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  42440. - ;;
  42441. - *)
  42442. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42443. -for as_dir in $PATH
  42444. -do
  42445. - IFS=$as_save_IFS
  42446. - test -z "$as_dir" && as_dir=.
  42447. - for ac_exec_ext in '' $ac_executable_extensions; do
  42448. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42449. - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  42450. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42451. - break 2
  42452. - fi
  42453. -done
  42454. -done
  42455. -IFS=$as_save_IFS
  42456. + case $ac_tag in
  42457. + *:-:* | *:-) cat >"$tmp/stdin" \
  42458. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  42459. + esac
  42460. + ;;
  42461. + esac
  42462. +
  42463. + ac_dir=`$as_dirname -- "$ac_file" ||
  42464. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42465. + X"$ac_file" : 'X\(//\)[^/]' \| \
  42466. + X"$ac_file" : 'X\(//\)$' \| \
  42467. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  42468. +$as_echo X"$ac_file" |
  42469. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42470. + s//\1/
  42471. + q
  42472. + }
  42473. + /^X\(\/\/\)[^/].*/{
  42474. + s//\1/
  42475. + q
  42476. + }
  42477. + /^X\(\/\/\)$/{
  42478. + s//\1/
  42479. + q
  42480. + }
  42481. + /^X\(\/\).*/{
  42482. + s//\1/
  42483. + q
  42484. + }
  42485. + s/.*/./; q'`
  42486. + as_dir="$ac_dir"; as_fn_mkdir_p
  42487. + ac_builddir=.
  42488. - ;;
  42489. +case "$ac_dir" in
  42490. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42491. +*)
  42492. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  42493. + # A ".." for each directory in $ac_dir_suffix.
  42494. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  42495. + case $ac_top_builddir_sub in
  42496. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42497. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  42498. + esac ;;
  42499. esac
  42500. -fi
  42501. -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  42502. -if test -n "$ac_pt_PKG_CONFIG"; then
  42503. - { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  42504. -echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  42505. -else
  42506. - { echo "$as_me:$LINENO: result: no" >&5
  42507. -echo "${ECHO_T}no" >&6; }
  42508. -fi
  42509. +ac_abs_top_builddir=$ac_pwd
  42510. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  42511. +# for backward compatibility:
  42512. +ac_top_builddir=$ac_top_build_prefix
  42513. - if test "x$ac_pt_PKG_CONFIG" = x; then
  42514. - PKG_CONFIG=""
  42515. - else
  42516. - case $cross_compiling:$ac_tool_warned in
  42517. -yes:)
  42518. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  42519. -whose name does not start with the host triplet. If you think this
  42520. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  42521. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  42522. -whose name does not start with the host triplet. If you think this
  42523. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  42524. -ac_tool_warned=yes ;;
  42525. +case $srcdir in
  42526. + .) # We are building in place.
  42527. + ac_srcdir=.
  42528. + ac_top_srcdir=$ac_top_builddir_sub
  42529. + ac_abs_top_srcdir=$ac_pwd ;;
  42530. + [\\/]* | ?:[\\/]* ) # Absolute name.
  42531. + ac_srcdir=$srcdir$ac_dir_suffix;
  42532. + ac_top_srcdir=$srcdir
  42533. + ac_abs_top_srcdir=$srcdir ;;
  42534. + *) # Relative name.
  42535. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  42536. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  42537. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  42538. esac
  42539. - PKG_CONFIG=$ac_pt_PKG_CONFIG
  42540. - fi
  42541. -else
  42542. - PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  42543. -fi
  42544. -
  42545. -fi
  42546. -if test -n "$PKG_CONFIG"; then
  42547. - _pkg_min_version=0.9.0
  42548. - { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  42549. -echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  42550. - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  42551. - { echo "$as_me:$LINENO: result: yes" >&5
  42552. -echo "${ECHO_T}yes" >&6; }
  42553. - else
  42554. - { echo "$as_me:$LINENO: result: no" >&5
  42555. -echo "${ECHO_T}no" >&6; }
  42556. - PKG_CONFIG=""
  42557. - fi
  42558. -
  42559. -fi
  42560. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  42561. -pkg_failed=no
  42562. -{ echo "$as_me:$LINENO: checking for AUDIOFILE" >&5
  42563. -echo $ECHO_N "checking for AUDIOFILE... $ECHO_C" >&6; }
  42564. -if test -n "$AUDIOFILE_CFLAGS"; then
  42565. - pkg_cv_AUDIOFILE_CFLAGS="$AUDIOFILE_CFLAGS"
  42566. - elif test -n "$PKG_CONFIG"; then
  42567. - if test -n "$PKG_CONFIG" && \
  42568. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audiofile >= 0.2.3\"") >&5
  42569. - ($PKG_CONFIG --exists --print-errors "audiofile >= 0.2.3") 2>&5
  42570. - ac_status=$?
  42571. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42572. - (exit $ac_status); }; then
  42573. - pkg_cv_AUDIOFILE_CFLAGS=`$PKG_CONFIG --cflags "audiofile >= 0.2.3" 2>/dev/null`
  42574. -else
  42575. - pkg_failed=yes
  42576. -fi
  42577. - else
  42578. - pkg_failed=untried
  42579. -fi
  42580. -if test -n "$AUDIOFILE_LIBS"; then
  42581. - pkg_cv_AUDIOFILE_LIBS="$AUDIOFILE_LIBS"
  42582. - elif test -n "$PKG_CONFIG"; then
  42583. - if test -n "$PKG_CONFIG" && \
  42584. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audiofile >= 0.2.3\"") >&5
  42585. - ($PKG_CONFIG --exists --print-errors "audiofile >= 0.2.3") 2>&5
  42586. - ac_status=$?
  42587. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42588. - (exit $ac_status); }; then
  42589. - pkg_cv_AUDIOFILE_LIBS=`$PKG_CONFIG --libs "audiofile >= 0.2.3" 2>/dev/null`
  42590. -else
  42591. - pkg_failed=yes
  42592. -fi
  42593. - else
  42594. - pkg_failed=untried
  42595. -fi
  42596. + case $ac_mode in
  42597. + :F)
  42598. + #
  42599. + # CONFIG_FILE
  42600. + #
  42601. + case $INSTALL in
  42602. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  42603. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  42604. + esac
  42605. + ac_MKDIR_P=$MKDIR_P
  42606. + case $MKDIR_P in
  42607. + [\\/$]* | ?:[\\/]* ) ;;
  42608. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  42609. + esac
  42610. +_ACEOF
  42611. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42612. +# If the template does not know about datarootdir, expand it.
  42613. +# FIXME: This hack should be removed a few years after 2.60.
  42614. +ac_datarootdir_hack=; ac_datarootdir_seen=
  42615. +ac_sed_dataroot='
  42616. +/datarootdir/ {
  42617. + p
  42618. + q
  42619. +}
  42620. +/@datadir@/p
  42621. +/@docdir@/p
  42622. +/@infodir@/p
  42623. +/@localedir@/p
  42624. +/@mandir@/p'
  42625. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  42626. +*datarootdir*) ac_datarootdir_seen=yes;;
  42627. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  42628. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  42629. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  42630. +_ACEOF
  42631. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42632. + ac_datarootdir_hack='
  42633. + s&@datadir@&$datadir&g
  42634. + s&@docdir@&$docdir&g
  42635. + s&@infodir@&$infodir&g
  42636. + s&@localedir@&$localedir&g
  42637. + s&@mandir@&$mandir&g
  42638. + s&\\\${datarootdir}&$datarootdir&g' ;;
  42639. +esac
  42640. +_ACEOF
  42641. -if test $pkg_failed = yes; then
  42642. +# Neutralize VPATH when `$srcdir' = `.'.
  42643. +# Shell code in configure.ac might set extrasub.
  42644. +# FIXME: do we really want to maintain this feature?
  42645. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42646. +ac_sed_extra="$ac_vpsub
  42647. +$extrasub
  42648. +_ACEOF
  42649. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42650. +:t
  42651. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  42652. +s|@configure_input@|$ac_sed_conf_input|;t t
  42653. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  42654. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  42655. +s&@srcdir@&$ac_srcdir&;t t
  42656. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  42657. +s&@top_srcdir@&$ac_top_srcdir&;t t
  42658. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  42659. +s&@builddir@&$ac_builddir&;t t
  42660. +s&@abs_builddir@&$ac_abs_builddir&;t t
  42661. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  42662. +s&@INSTALL@&$ac_INSTALL&;t t
  42663. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  42664. +$ac_datarootdir_hack
  42665. +"
  42666. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  42667. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42668. -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  42669. - _pkg_short_errors_supported=yes
  42670. -else
  42671. - _pkg_short_errors_supported=no
  42672. -fi
  42673. - if test $_pkg_short_errors_supported = yes; then
  42674. - AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "audiofile >= 0.2.3" 2>&1`
  42675. - else
  42676. - AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "audiofile >= 0.2.3" 2>&1`
  42677. - fi
  42678. - # Put the nasty error message in config.log where it belongs
  42679. - echo "$AUDIOFILE_PKG_ERRORS" >&5
  42680. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  42681. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  42682. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  42683. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42684. +which seems to be undefined. Please make sure it is defined." >&5
  42685. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42686. +which seems to be undefined. Please make sure it is defined." >&2;}
  42687. - { { echo "$as_me:$LINENO: error: Package requirements (audiofile >= 0.2.3) were not met:
  42688. + rm -f "$tmp/stdin"
  42689. + case $ac_file in
  42690. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  42691. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  42692. + esac \
  42693. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42694. + ;;
  42695. + :H)
  42696. + #
  42697. + # CONFIG_HEADER
  42698. + #
  42699. + if test x"$ac_file" != x-; then
  42700. + {
  42701. + $as_echo "/* $configure_input */" \
  42702. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  42703. + } >"$tmp/config.h" \
  42704. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42705. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  42706. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  42707. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  42708. + else
  42709. + rm -f "$ac_file"
  42710. + mv "$tmp/config.h" "$ac_file" \
  42711. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42712. + fi
  42713. + else
  42714. + $as_echo "/* $configure_input */" \
  42715. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  42716. + || as_fn_error "could not create -" "$LINENO" 5
  42717. + fi
  42718. +# Compute "$ac_file"'s index in $config_headers.
  42719. +_am_arg="$ac_file"
  42720. +_am_stamp_count=1
  42721. +for _am_header in $config_headers :; do
  42722. + case $_am_header in
  42723. + $_am_arg | $_am_arg:* )
  42724. + break ;;
  42725. + * )
  42726. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  42727. + esac
  42728. +done
  42729. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  42730. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42731. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  42732. + X"$_am_arg" : 'X\(//\)$' \| \
  42733. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  42734. +$as_echo X"$_am_arg" |
  42735. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42736. + s//\1/
  42737. + q
  42738. + }
  42739. + /^X\(\/\/\)[^/].*/{
  42740. + s//\1/
  42741. + q
  42742. + }
  42743. + /^X\(\/\/\)$/{
  42744. + s//\1/
  42745. + q
  42746. + }
  42747. + /^X\(\/\).*/{
  42748. + s//\1/
  42749. + q
  42750. + }
  42751. + s/.*/./; q'`/stamp-h$_am_stamp_count
  42752. + ;;
  42753. -$AUDIOFILE_PKG_ERRORS
  42754. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  42755. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  42756. + ;;
  42757. + esac
  42758. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  42759. -installed software in a non-standard prefix.
  42760. -Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
  42761. -and AUDIOFILE_LIBS to avoid the need to call pkg-config.
  42762. -See the pkg-config man page for more details.
  42763. -" >&5
  42764. -echo "$as_me: error: Package requirements (audiofile >= 0.2.3) were not met:
  42765. + case $ac_file$ac_mode in
  42766. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  42767. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  42768. + # are listed without --file. Let's play safe and only enable the eval
  42769. + # if we detect the quoting.
  42770. + case $CONFIG_FILES in
  42771. + *\'*) eval set x "$CONFIG_FILES" ;;
  42772. + *) set x $CONFIG_FILES ;;
  42773. + esac
  42774. + shift
  42775. + for mf
  42776. + do
  42777. + # Strip MF so we end up with the name of the file.
  42778. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  42779. + # Check whether this is an Automake generated Makefile or not.
  42780. + # We used to match only the files named `Makefile.in', but
  42781. + # some people rename them; so instead we look at the file content.
  42782. + # Grep'ing the first line is not enough: some people post-process
  42783. + # each Makefile.in and add a new line on top of each file to say so.
  42784. + # Grep'ing the whole file is not good either: AIX grep has a line
  42785. + # limit of 2048, but all sed's we know have understand at least 4000.
  42786. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  42787. + dirpart=`$as_dirname -- "$mf" ||
  42788. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42789. + X"$mf" : 'X\(//\)[^/]' \| \
  42790. + X"$mf" : 'X\(//\)$' \| \
  42791. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  42792. +$as_echo X"$mf" |
  42793. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42794. + s//\1/
  42795. + q
  42796. + }
  42797. + /^X\(\/\/\)[^/].*/{
  42798. + s//\1/
  42799. + q
  42800. + }
  42801. + /^X\(\/\/\)$/{
  42802. + s//\1/
  42803. + q
  42804. + }
  42805. + /^X\(\/\).*/{
  42806. + s//\1/
  42807. + q
  42808. + }
  42809. + s/.*/./; q'`
  42810. + else
  42811. + continue
  42812. + fi
  42813. + # Extract the definition of DEPDIR, am__include, and am__quote
  42814. + # from the Makefile without running `make'.
  42815. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  42816. + test -z "$DEPDIR" && continue
  42817. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  42818. + test -z "am__include" && continue
  42819. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  42820. + # When using ansi2knr, U may be empty or an underscore; expand it
  42821. + U=`sed -n 's/^U = //p' < "$mf"`
  42822. + # Find all dependency output files, they are included files with
  42823. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  42824. + # simplest approach to changing $(DEPDIR) to its actual value in the
  42825. + # expansion.
  42826. + for file in `sed -n "
  42827. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  42828. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  42829. + # Make sure the directory exists.
  42830. + test -f "$dirpart/$file" && continue
  42831. + fdir=`$as_dirname -- "$file" ||
  42832. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42833. + X"$file" : 'X\(//\)[^/]' \| \
  42834. + X"$file" : 'X\(//\)$' \| \
  42835. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  42836. +$as_echo X"$file" |
  42837. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42838. + s//\1/
  42839. + q
  42840. + }
  42841. + /^X\(\/\/\)[^/].*/{
  42842. + s//\1/
  42843. + q
  42844. + }
  42845. + /^X\(\/\/\)$/{
  42846. + s//\1/
  42847. + q
  42848. + }
  42849. + /^X\(\/\).*/{
  42850. + s//\1/
  42851. + q
  42852. + }
  42853. + s/.*/./; q'`
  42854. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  42855. + # echo "creating $dirpart/$file"
  42856. + echo '# dummy' > "$dirpart/$file"
  42857. + done
  42858. + done
  42859. +}
  42860. + ;;
  42861. + "libtool":C)
  42862. -$AUDIOFILE_PKG_ERRORS
  42863. + # See if we are running on zsh, and set the options which allow our
  42864. + # commands through without removal of \ escapes.
  42865. + if test -n "${ZSH_VERSION+set}" ; then
  42866. + setopt NO_GLOB_SUBST
  42867. + fi
  42868. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  42869. -installed software in a non-standard prefix.
  42870. + cfgfile="${ofile}T"
  42871. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  42872. + $RM "$cfgfile"
  42873. -Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
  42874. -and AUDIOFILE_LIBS to avoid the need to call pkg-config.
  42875. -See the pkg-config man page for more details.
  42876. -" >&2;}
  42877. - { (exit 1); exit 1; }; }
  42878. -elif test $pkg_failed = untried; then
  42879. - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  42880. -is in your PATH or set the PKG_CONFIG environment variable to the full
  42881. -path to pkg-config.
  42882. + cat <<_LT_EOF >> "$cfgfile"
  42883. +#! $SHELL
  42884. -Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
  42885. -and AUDIOFILE_LIBS to avoid the need to call pkg-config.
  42886. -See the pkg-config man page for more details.
  42887. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  42888. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  42889. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  42890. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  42891. +#
  42892. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  42893. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  42894. +# Written by Gordon Matzigkeit, 1996
  42895. +#
  42896. +# This file is part of GNU Libtool.
  42897. +#
  42898. +# GNU Libtool is free software; you can redistribute it and/or
  42899. +# modify it under the terms of the GNU General Public License as
  42900. +# published by the Free Software Foundation; either version 2 of
  42901. +# the License, or (at your option) any later version.
  42902. +#
  42903. +# As a special exception to the GNU General Public License,
  42904. +# if you distribute this file as part of a program or library that
  42905. +# is built using GNU Libtool, you may include this file under the
  42906. +# same distribution terms that you use for the rest of that program.
  42907. +#
  42908. +# GNU Libtool is distributed in the hope that it will be useful,
  42909. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  42910. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42911. +# GNU General Public License for more details.
  42912. +#
  42913. +# You should have received a copy of the GNU General Public License
  42914. +# along with GNU Libtool; see the file COPYING. If not, a copy
  42915. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  42916. +# obtained by writing to the Free Software Foundation, Inc.,
  42917. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  42918. -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  42919. -See \`config.log' for more details." >&5
  42920. -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  42921. -is in your PATH or set the PKG_CONFIG environment variable to the full
  42922. -path to pkg-config.
  42923. -Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
  42924. -and AUDIOFILE_LIBS to avoid the need to call pkg-config.
  42925. -See the pkg-config man page for more details.
  42926. +# The names of the tagged configurations supported by this script.
  42927. +available_tags="CXX "
  42928. -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  42929. -See \`config.log' for more details." >&2;}
  42930. - { (exit 1); exit 1; }; }
  42931. -else
  42932. - AUDIOFILE_CFLAGS=$pkg_cv_AUDIOFILE_CFLAGS
  42933. - AUDIOFILE_LIBS=$pkg_cv_AUDIOFILE_LIBS
  42934. - { echo "$as_me:$LINENO: result: yes" >&5
  42935. -echo "${ECHO_T}yes" >&6; }
  42936. - :
  42937. -fi
  42938. +# ### BEGIN LIBTOOL CONFIG
  42939. -CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS"
  42940. -LIBS="$LIBS $AUDIOFILE_LIBS"
  42941. +# Assembler program.
  42942. +AS=$AS
  42943. -build_esdplay=true
  42944. +# DLL creation program.
  42945. +DLLTOOL=$DLLTOOL
  42946. - if $build_esdplay; then
  42947. - BUILD_ESDPLAY_TRUE=
  42948. - BUILD_ESDPLAY_FALSE='#'
  42949. -else
  42950. - BUILD_ESDPLAY_TRUE='#'
  42951. - BUILD_ESDPLAY_FALSE=
  42952. -fi
  42953. +# Object dumper program.
  42954. +OBJDUMP=$OBJDUMP
  42955. +# Which release of libtool.m4 was used?
  42956. +macro_version=$macro_version
  42957. +macro_revision=$macro_revision
  42958. -echo "---------------------------------------------------------------------"
  42959. -echo "--- Checking for the documentation generation tools. NOTE: These "
  42960. -echo "--- are NOT required for proper compilation of the esound package."
  42961. +# Whether or not to build shared libraries.
  42962. +build_libtool_libs=$enable_shared
  42963. -# Extract the first word of "jw", so it can be a program name with args.
  42964. -set dummy jw; ac_word=$2
  42965. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  42966. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  42967. -if test "${ac_cv_prog_JW+set}" = set; then
  42968. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42969. -else
  42970. - if test -n "$JW"; then
  42971. - ac_cv_prog_JW="$JW" # Let the user override the test.
  42972. -else
  42973. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42974. -for as_dir in $PATH
  42975. -do
  42976. - IFS=$as_save_IFS
  42977. - test -z "$as_dir" && as_dir=.
  42978. - for ac_exec_ext in '' $ac_executable_extensions; do
  42979. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42980. - ac_cv_prog_JW="jw"
  42981. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42982. - break 2
  42983. - fi
  42984. -done
  42985. -done
  42986. -IFS=$as_save_IFS
  42987. +# Whether or not to build static libraries.
  42988. +build_old_libs=$enable_static
  42989. - test -z "$ac_cv_prog_JW" && ac_cv_prog_JW="false"
  42990. -fi
  42991. -fi
  42992. -JW=$ac_cv_prog_JW
  42993. -if test -n "$JW"; then
  42994. - { echo "$as_me:$LINENO: result: $JW" >&5
  42995. -echo "${ECHO_T}$JW" >&6; }
  42996. -else
  42997. - { echo "$as_me:$LINENO: result: no" >&5
  42998. -echo "${ECHO_T}no" >&6; }
  42999. -fi
  43000. +# What type of objects to build.
  43001. +pic_mode=$pic_mode
  43002. +# Whether or not to optimize for fast installation.
  43003. +fast_install=$enable_fast_install
  43004. - if test "x$JW" != xfalse; then
  43005. - HAVE_JW_TRUE=
  43006. - HAVE_JW_FALSE='#'
  43007. -else
  43008. - HAVE_JW_TRUE='#'
  43009. - HAVE_JW_FALSE=
  43010. -fi
  43011. +# The host system.
  43012. +host_alias=$host_alias
  43013. +host=$host
  43014. +host_os=$host_os
  43015. +# The build system.
  43016. +build_alias=$build_alias
  43017. +build=$build
  43018. +build_os=$build_os
  43019. -echo "---------------------------------------------------------------------"
  43020. +# A sed program that does not truncate output.
  43021. +SED=$lt_SED
  43022. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  43023. +Xsed="\$SED -e 1s/^X//"
  43024. -# Check whether --with-libwrap was given.
  43025. -if test "${with_libwrap+set}" = set; then
  43026. - withval=$with_libwrap;
  43027. -else
  43028. - wrap_ok=no
  43029. -fi
  43030. +# A grep program that handles long lines.
  43031. +GREP=$lt_GREP
  43032. +# An ERE matcher.
  43033. +EGREP=$lt_EGREP
  43034. -WRAP_LIB=
  43035. -if test "x$with_libwrap" = "xyes"; then
  43036. - esound_save_LIBS="$LIBS"
  43037. - LIBS="$LIBS -lwrap"
  43038. +# A literal string matcher.
  43039. +FGREP=$lt_FGREP
  43040. - { echo "$as_me:$LINENO: checking for tcp_wrapper library and headers" >&5
  43041. -echo $ECHO_N "checking for tcp_wrapper library and headers... $ECHO_C" >&6; }
  43042. +# A BSD- or MS-compatible name lister.
  43043. +NM=$lt_NM
  43044. - wrap_ok=no
  43045. - cat >conftest.$ac_ext <<_ACEOF
  43046. -/* confdefs.h. */
  43047. -_ACEOF
  43048. -cat confdefs.h >>conftest.$ac_ext
  43049. -cat >>conftest.$ac_ext <<_ACEOF
  43050. -/* end confdefs.h. */
  43051. -#include <tcpd.h>
  43052. -#include <syslog.h>
  43053. -int allow_severity = LOG_INFO;
  43054. -int deny_severity = LOG_WARNING;
  43055. -int
  43056. -main ()
  43057. -{
  43058. -struct request_info *request; return hosts_access (request);
  43059. - ;
  43060. - return 0;
  43061. -}
  43062. -_ACEOF
  43063. -rm -f conftest.$ac_objext conftest$ac_exeext
  43064. -if { (ac_try="$ac_link"
  43065. -case "(($ac_try" in
  43066. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43067. - *) ac_try_echo=$ac_try;;
  43068. -esac
  43069. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43070. - (eval "$ac_link") 2>conftest.er1
  43071. - ac_status=$?
  43072. - grep -v '^ *+' conftest.er1 >conftest.err
  43073. - rm -f conftest.er1
  43074. - cat conftest.err >&5
  43075. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43076. - (exit $ac_status); } && {
  43077. - test -z "$ac_c_werror_flag" ||
  43078. - test ! -s conftest.err
  43079. - } && test -s conftest$ac_exeext &&
  43080. - $as_test_x conftest$ac_exeext; then
  43081. +# Whether we need soft or hard links.
  43082. +LN_S=$lt_LN_S
  43083. -cat >>confdefs.h <<\_ACEOF
  43084. -#define USE_LIBWRAP 1
  43085. -_ACEOF
  43086. +# What is the maximum length of a command?
  43087. +max_cmd_len=$max_cmd_len
  43088. - WRAP_LIB="-lwrap"
  43089. - wrap_ok=yes
  43090. -else
  43091. - echo "$as_me: failed program was:" >&5
  43092. -sed 's/^/| /' conftest.$ac_ext >&5
  43093. +# Object file suffix (normally "o").
  43094. +objext=$ac_objext
  43095. - LIBS="$LIBS -lnsl"
  43096. - cat >conftest.$ac_ext <<_ACEOF
  43097. -/* confdefs.h. */
  43098. -_ACEOF
  43099. -cat confdefs.h >>conftest.$ac_ext
  43100. -cat >>conftest.$ac_ext <<_ACEOF
  43101. -/* end confdefs.h. */
  43102. -#include <tcpd.h>
  43103. -#include <syslog.h>
  43104. -int allow_severity = LOG_INFO;
  43105. -int deny_severity = LOG_WARNING;
  43106. -int
  43107. -main ()
  43108. -{
  43109. -struct request_info *request; return hosts_access (request);
  43110. - ;
  43111. - return 0;
  43112. -}
  43113. -_ACEOF
  43114. -rm -f conftest.$ac_objext conftest$ac_exeext
  43115. -if { (ac_try="$ac_link"
  43116. -case "(($ac_try" in
  43117. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43118. - *) ac_try_echo=$ac_try;;
  43119. -esac
  43120. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43121. - (eval "$ac_link") 2>conftest.er1
  43122. - ac_status=$?
  43123. - grep -v '^ *+' conftest.er1 >conftest.err
  43124. - rm -f conftest.er1
  43125. - cat conftest.err >&5
  43126. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43127. - (exit $ac_status); } && {
  43128. - test -z "$ac_c_werror_flag" ||
  43129. - test ! -s conftest.err
  43130. - } && test -s conftest$ac_exeext &&
  43131. - $as_test_x conftest$ac_exeext; then
  43132. +# Executable file suffix (normally "").
  43133. +exeext=$exeext
  43134. -cat >>confdefs.h <<\_ACEOF
  43135. -#define USE_LIBWRAP 1
  43136. -_ACEOF
  43137. +# whether the shell understands "unset".
  43138. +lt_unset=$lt_unset
  43139. - WRAP_LIB="-lwrap -lnsl"
  43140. - wrap_ok=yes
  43141. -else
  43142. - echo "$as_me: failed program was:" >&5
  43143. -sed 's/^/| /' conftest.$ac_ext >&5
  43144. +# turn spaces into newlines.
  43145. +SP2NL=$lt_lt_SP2NL
  43146. +# turn newlines into spaces.
  43147. +NL2SP=$lt_lt_NL2SP
  43148. -fi
  43149. +# How to create reloadable object files.
  43150. +reload_flag=$lt_reload_flag
  43151. +reload_cmds=$lt_reload_cmds
  43152. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43153. - conftest$ac_exeext conftest.$ac_ext
  43154. -fi
  43155. +# Method to check whether dependent libraries are shared objects.
  43156. +deplibs_check_method=$lt_deplibs_check_method
  43157. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43158. - conftest$ac_exeext conftest.$ac_ext
  43159. +# Command to use when deplibs_check_method == "file_magic".
  43160. +file_magic_cmd=$lt_file_magic_cmd
  43161. - { echo "$as_me:$LINENO: result: $wrap_ok" >&5
  43162. -echo "${ECHO_T}$wrap_ok" >&6; }
  43163. +# The archiver.
  43164. +AR=$lt_AR
  43165. +AR_FLAGS=$lt_AR_FLAGS
  43166. - LIBS="$esound_save_LIBS"
  43167. -fi
  43168. +# A symbol stripping program.
  43169. +STRIP=$lt_STRIP
  43170. +# Commands used to install an old-style archive.
  43171. +RANLIB=$lt_RANLIB
  43172. +old_postinstall_cmds=$lt_old_postinstall_cmds
  43173. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  43174. - { echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
  43175. -echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6; }
  43176. +# A C compiler.
  43177. +LTCC=$lt_CC
  43178. - save_CFLAGS="$CFLAGS"
  43179. - CFLAGS="$CFLAGS -Wall"
  43180. +# LTCC compiler flags.
  43181. +LTCFLAGS=$lt_CFLAGS
  43182. - cat >conftest.$ac_ext <<_ACEOF
  43183. -/* confdefs.h. */
  43184. -_ACEOF
  43185. -cat confdefs.h >>conftest.$ac_ext
  43186. -cat >>conftest.$ac_ext <<_ACEOF
  43187. -/* end confdefs.h. */
  43188. +# Take the output of nm and produce a listing of raw symbols and C names.
  43189. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  43190. -int
  43191. -main ()
  43192. -{
  43193. +# Transform the output of nm in a proper C declaration.
  43194. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  43195. - ;
  43196. - return 0;
  43197. -}
  43198. -_ACEOF
  43199. -rm -f conftest.$ac_objext
  43200. -if { (ac_try="$ac_compile"
  43201. -case "(($ac_try" in
  43202. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43203. - *) ac_try_echo=$ac_try;;
  43204. -esac
  43205. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43206. - (eval "$ac_compile") 2>conftest.er1
  43207. - ac_status=$?
  43208. - grep -v '^ *+' conftest.er1 >conftest.err
  43209. - rm -f conftest.er1
  43210. - cat conftest.err >&5
  43211. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43212. - (exit $ac_status); } && {
  43213. - test -z "$ac_c_werror_flag" ||
  43214. - test ! -s conftest.err
  43215. - } && test -s conftest.$ac_objext; then
  43216. - flag_ok=yes
  43217. -else
  43218. - echo "$as_me: failed program was:" >&5
  43219. -sed 's/^/| /' conftest.$ac_ext >&5
  43220. +# Transform the output of nm in a C name address pair.
  43221. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43222. - flag_ok=no
  43223. -fi
  43224. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  43225. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  43226. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43227. - CFLAGS="$save_CFLAGS"
  43228. +# The name of the directory that contains temporary libtool files.
  43229. +objdir=$objdir
  43230. - if test "X$flag_ok" = Xyes ; then
  43231. - CFLAGS="$CFLAGS -Wall"
  43232. - true
  43233. - else
  43234. +# Shell to use when invoking shell scripts.
  43235. +SHELL=$lt_SHELL
  43236. - true
  43237. - fi
  43238. - { echo "$as_me:$LINENO: result: $flag_ok" >&5
  43239. -echo "${ECHO_T}$flag_ok" >&6; }
  43240. +# An echo program that does not interpret backslashes.
  43241. +ECHO=$lt_ECHO
  43242. +# Used to examine libraries when file_magic_cmd begins with "file".
  43243. +MAGIC_CMD=$MAGIC_CMD
  43244. -# set | sort; # just for double checking the script...
  43245. +# Must we lock files when doing compilation?
  43246. +need_locks=$lt_need_locks
  43247. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  43248. +DSYMUTIL=$lt_DSYMUTIL
  43249. +# Tool to change global to local symbols on Mac OS X.
  43250. +NMEDIT=$lt_NMEDIT
  43251. +# Tool to manipulate fat objects and archives on Mac OS X.
  43252. +LIPO=$lt_LIPO
  43253. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  43254. +OTOOL=$lt_OTOOL
  43255. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  43256. +OTOOL64=$lt_OTOOL64
  43257. +# Old archive suffix (normally "a").
  43258. +libext=$libext
  43259. +# Shared library suffix (normally ".so").
  43260. +shrext_cmds=$lt_shrext_cmds
  43261. +# The commands to extract the exported symbol list from a shared archive.
  43262. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43263. -ac_config_files="$ac_config_files Makefile esd-config esound.spec esound.pc esddsp docs/Makefile docs/esd.1 docs/esdcat.1 docs/esd-config.1 docs/esdctl.1 docs/esddsp.1 docs/esdfilt.1 docs/esdloop.1 docs/esdmon.1 docs/esdplay.1 docs/esdrec.1 docs/esdsample.1"
  43264. +# Variables whose values should be saved in libtool wrapper scripts and
  43265. +# restored at link time.
  43266. +variables_saved_for_relink=$lt_variables_saved_for_relink
  43267. -cat >confcache <<\_ACEOF
  43268. -# This file is a shell script that caches the results of configure
  43269. -# tests run on this system so they can be shared between configure
  43270. -# scripts and configure runs, see configure's option --config-cache.
  43271. -# It is not useful on other systems. If it contains results you don't
  43272. -# want to keep, you may remove or edit it.
  43273. -#
  43274. -# config.status only pays attention to the cache file if you give it
  43275. -# the --recheck option to rerun configure.
  43276. -#
  43277. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  43278. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  43279. -# following values.
  43280. +# Do we need the "lib" prefix for modules?
  43281. +need_lib_prefix=$need_lib_prefix
  43282. -_ACEOF
  43283. +# Do we need a version for libraries?
  43284. +need_version=$need_version
  43285. -# The following way of writing the cache mishandles newlines in values,
  43286. -# but we know of no workaround that is simple, portable, and efficient.
  43287. -# So, we kill variables containing newlines.
  43288. -# Ultrix sh set writes to stderr and can't be redirected directly,
  43289. -# and sets the high bit in the cache file unless we assign to the vars.
  43290. -(
  43291. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  43292. - eval ac_val=\$$ac_var
  43293. - case $ac_val in #(
  43294. - *${as_nl}*)
  43295. - case $ac_var in #(
  43296. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  43297. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  43298. - esac
  43299. - case $ac_var in #(
  43300. - _ | IFS | as_nl) ;; #(
  43301. - *) $as_unset $ac_var ;;
  43302. - esac ;;
  43303. - esac
  43304. - done
  43305. +# Library versioning type.
  43306. +version_type=$version_type
  43307. - (set) 2>&1 |
  43308. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  43309. - *${as_nl}ac_space=\ *)
  43310. - # `set' does not quote correctly, so add quotes (double-quote
  43311. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  43312. - sed -n \
  43313. - "s/'/'\\\\''/g;
  43314. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  43315. - ;; #(
  43316. - *)
  43317. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  43318. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  43319. - ;;
  43320. - esac |
  43321. - sort
  43322. -) |
  43323. - sed '
  43324. - /^ac_cv_env_/b end
  43325. - t clear
  43326. - :clear
  43327. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  43328. - t end
  43329. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  43330. - :end' >>confcache
  43331. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  43332. - if test -w "$cache_file"; then
  43333. - test "x$cache_file" != "x/dev/null" &&
  43334. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  43335. -echo "$as_me: updating cache $cache_file" >&6;}
  43336. - cat confcache >$cache_file
  43337. - else
  43338. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  43339. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  43340. - fi
  43341. -fi
  43342. -rm -f confcache
  43343. +# Shared library runtime path variable.
  43344. +runpath_var=$runpath_var
  43345. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  43346. -# Let make expand exec_prefix.
  43347. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  43348. +# Shared library path variable.
  43349. +shlibpath_var=$shlibpath_var
  43350. -DEFS=-DHAVE_CONFIG_H
  43351. +# Is shlibpath searched before the hard-coded library search path?
  43352. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43353. -ac_libobjs=
  43354. -ac_ltlibobjs=
  43355. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  43356. - # 1. Remove the extension, and $U if already installed.
  43357. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  43358. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  43359. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  43360. - # will be set to the directory where LIBOBJS objects are built.
  43361. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  43362. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  43363. -done
  43364. -LIBOBJS=$ac_libobjs
  43365. +# Format of library name prefix.
  43366. +libname_spec=$lt_libname_spec
  43367. -LTLIBOBJS=$ac_ltlibobjs
  43368. +# List of archive names. First name is the real one, the rest are links.
  43369. +# The last name is the one that the linker finds with -lNAME
  43370. +library_names_spec=$lt_library_names_spec
  43371. +# The coded name of the library, if different from the real name.
  43372. +soname_spec=$lt_soname_spec
  43373. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  43374. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  43375. -Usually this means the macro was only invoked conditionally." >&5
  43376. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  43377. -Usually this means the macro was only invoked conditionally." >&2;}
  43378. - { (exit 1); exit 1; }; }
  43379. -fi
  43380. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  43381. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  43382. -Usually this means the macro was only invoked conditionally." >&5
  43383. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  43384. -Usually this means the macro was only invoked conditionally." >&2;}
  43385. - { (exit 1); exit 1; }; }
  43386. -fi
  43387. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  43388. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  43389. -Usually this means the macro was only invoked conditionally." >&5
  43390. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  43391. -Usually this means the macro was only invoked conditionally." >&2;}
  43392. - { (exit 1); exit 1; }; }
  43393. -fi
  43394. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  43395. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  43396. -Usually this means the macro was only invoked conditionally." >&5
  43397. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  43398. -Usually this means the macro was only invoked conditionally." >&2;}
  43399. - { (exit 1); exit 1; }; }
  43400. -fi
  43401. -if test -z "${NEED_GETOPT_TRUE}" && test -z "${NEED_GETOPT_FALSE}"; then
  43402. - { { echo "$as_me:$LINENO: error: conditional \"NEED_GETOPT\" was never defined.
  43403. -Usually this means the macro was only invoked conditionally." >&5
  43404. -echo "$as_me: error: conditional \"NEED_GETOPT\" was never defined.
  43405. -Usually this means the macro was only invoked conditionally." >&2;}
  43406. - { (exit 1); exit 1; }; }
  43407. -fi
  43408. -if test -z "${BUILD_ESDDSP_TRUE}" && test -z "${BUILD_ESDDSP_FALSE}"; then
  43409. - { { echo "$as_me:$LINENO: error: conditional \"BUILD_ESDDSP\" was never defined.
  43410. -Usually this means the macro was only invoked conditionally." >&5
  43411. -echo "$as_me: error: conditional \"BUILD_ESDDSP\" was never defined.
  43412. -Usually this means the macro was only invoked conditionally." >&2;}
  43413. - { (exit 1); exit 1; }; }
  43414. -fi
  43415. -if test -z "${BUILD_ESDPLAY_TRUE}" && test -z "${BUILD_ESDPLAY_FALSE}"; then
  43416. - { { echo "$as_me:$LINENO: error: conditional \"BUILD_ESDPLAY\" was never defined.
  43417. -Usually this means the macro was only invoked conditionally." >&5
  43418. -echo "$as_me: error: conditional \"BUILD_ESDPLAY\" was never defined.
  43419. -Usually this means the macro was only invoked conditionally." >&2;}
  43420. - { (exit 1); exit 1; }; }
  43421. -fi
  43422. -if test -z "${HAVE_JW_TRUE}" && test -z "${HAVE_JW_FALSE}"; then
  43423. - { { echo "$as_me:$LINENO: error: conditional \"HAVE_JW\" was never defined.
  43424. -Usually this means the macro was only invoked conditionally." >&5
  43425. -echo "$as_me: error: conditional \"HAVE_JW\" was never defined.
  43426. -Usually this means the macro was only invoked conditionally." >&2;}
  43427. - { (exit 1); exit 1; }; }
  43428. -fi
  43429. +# Command to use after installation of a shared archive.
  43430. +postinstall_cmds=$lt_postinstall_cmds
  43431. -: ${CONFIG_STATUS=./config.status}
  43432. -ac_clean_files_save=$ac_clean_files
  43433. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  43434. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  43435. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  43436. -cat >$CONFIG_STATUS <<_ACEOF
  43437. -#! $SHELL
  43438. -# Generated by $as_me.
  43439. -# Run this file to recreate the current configuration.
  43440. -# Compiler output produced by configure, useful for debugging
  43441. -# configure, is in config.log if it exists.
  43442. +# Command to use after uninstallation of a shared archive.
  43443. +postuninstall_cmds=$lt_postuninstall_cmds
  43444. -debug=false
  43445. -ac_cs_recheck=false
  43446. -ac_cs_silent=false
  43447. -SHELL=\${CONFIG_SHELL-$SHELL}
  43448. -_ACEOF
  43449. +# Commands used to finish a libtool library installation in a directory.
  43450. +finish_cmds=$lt_finish_cmds
  43451. -cat >>$CONFIG_STATUS <<\_ACEOF
  43452. -## --------------------- ##
  43453. -## M4sh Initialization. ##
  43454. -## --------------------- ##
  43455. +# As "finish_cmds", except a single script fragment to be evaled but
  43456. +# not shown.
  43457. +finish_eval=$lt_finish_eval
  43458. -# Be more Bourne compatible
  43459. -DUALCASE=1; export DUALCASE # for MKS sh
  43460. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  43461. - emulate sh
  43462. - NULLCMD=:
  43463. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  43464. - # is contrary to our usage. Disable this feature.
  43465. - alias -g '${1+"$@"}'='"$@"'
  43466. - setopt NO_GLOB_SUBST
  43467. -else
  43468. - case `(set -o) 2>/dev/null` in
  43469. - *posix*) set -o posix ;;
  43470. -esac
  43471. +# Whether we should hardcode library paths into libraries.
  43472. +hardcode_into_libs=$hardcode_into_libs
  43473. -fi
  43474. +# Compile-time system search path for libraries.
  43475. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43476. +# Run-time system search path for libraries.
  43477. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43478. +# Whether dlopen is supported.
  43479. +dlopen_support=$enable_dlopen
  43480. +# Whether dlopen of programs is supported.
  43481. +dlopen_self=$enable_dlopen_self
  43482. -# PATH needs CR
  43483. -# Avoid depending upon Character Ranges.
  43484. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  43485. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  43486. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  43487. -as_cr_digits='0123456789'
  43488. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  43489. +# Whether dlopen of statically linked programs is supported.
  43490. +dlopen_self_static=$enable_dlopen_self_static
  43491. -# The user is always right.
  43492. -if test "${PATH_SEPARATOR+set}" != set; then
  43493. - echo "#! /bin/sh" >conf$$.sh
  43494. - echo "exit 0" >>conf$$.sh
  43495. - chmod +x conf$$.sh
  43496. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  43497. - PATH_SEPARATOR=';'
  43498. - else
  43499. - PATH_SEPARATOR=:
  43500. - fi
  43501. - rm -f conf$$.sh
  43502. -fi
  43503. +# Commands to strip libraries.
  43504. +old_striplib=$lt_old_striplib
  43505. +striplib=$lt_striplib
  43506. -# Support unset when possible.
  43507. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  43508. - as_unset=unset
  43509. -else
  43510. - as_unset=false
  43511. -fi
  43512. +# The linker used to build libraries.
  43513. +LD=$lt_LD
  43514. -# IFS
  43515. -# We need space, tab and new line, in precisely that order. Quoting is
  43516. -# there to prevent editors from complaining about space-tab.
  43517. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  43518. -# splitting by setting IFS to empty value.)
  43519. -as_nl='
  43520. -'
  43521. -IFS=" "" $as_nl"
  43522. +# Commands used to build an old-style archive.
  43523. +old_archive_cmds=$lt_old_archive_cmds
  43524. -# Find who we are. Look in the path if we contain no directory separator.
  43525. -case $0 in
  43526. - *[\\/]* ) as_myself=$0 ;;
  43527. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43528. -for as_dir in $PATH
  43529. -do
  43530. - IFS=$as_save_IFS
  43531. - test -z "$as_dir" && as_dir=.
  43532. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  43533. -done
  43534. -IFS=$as_save_IFS
  43535. +# A language specific compiler.
  43536. +CC=$lt_compiler
  43537. - ;;
  43538. -esac
  43539. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  43540. -# in which case we are not to be found in the path.
  43541. -if test "x$as_myself" = x; then
  43542. - as_myself=$0
  43543. -fi
  43544. -if test ! -f "$as_myself"; then
  43545. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  43546. - { (exit 1); exit 1; }
  43547. -fi
  43548. +# Is the compiler the GNU compiler?
  43549. +with_gcc=$GCC
  43550. -# Work around bugs in pre-3.0 UWIN ksh.
  43551. -for as_var in ENV MAIL MAILPATH
  43552. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  43553. -done
  43554. -PS1='$ '
  43555. -PS2='> '
  43556. -PS4='+ '
  43557. +# Compiler flag to turn off builtin functions.
  43558. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  43559. -# NLS nuisances.
  43560. -for as_var in \
  43561. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  43562. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  43563. - LC_TELEPHONE LC_TIME
  43564. -do
  43565. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43566. - eval $as_var=C; export $as_var
  43567. - else
  43568. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  43569. - fi
  43570. -done
  43571. +# How to pass a linker flag through the compiler.
  43572. +wl=$lt_lt_prog_compiler_wl
  43573. -# Required to use basename.
  43574. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43575. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43576. - as_expr=expr
  43577. -else
  43578. - as_expr=false
  43579. -fi
  43580. +# Additional compiler flags for building library objects.
  43581. +pic_flag=$lt_lt_prog_compiler_pic
  43582. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  43583. - as_basename=basename
  43584. -else
  43585. - as_basename=false
  43586. -fi
  43587. +# Compiler flag to prevent dynamic linking.
  43588. +link_static_flag=$lt_lt_prog_compiler_static
  43589. +# Does compiler simultaneously support -c and -o options?
  43590. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  43591. -# Name of the executable.
  43592. -as_me=`$as_basename -- "$0" ||
  43593. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  43594. - X"$0" : 'X\(//\)$' \| \
  43595. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  43596. -echo X/"$0" |
  43597. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  43598. - s//\1/
  43599. - q
  43600. - }
  43601. - /^X\/\(\/\/\)$/{
  43602. - s//\1/
  43603. - q
  43604. - }
  43605. - /^X\/\(\/\).*/{
  43606. - s//\1/
  43607. - q
  43608. - }
  43609. - s/.*/./; q'`
  43610. +# Whether or not to add -lc for building shared libraries.
  43611. +build_libtool_need_lc=$archive_cmds_need_lc
  43612. -# CDPATH.
  43613. -$as_unset CDPATH
  43614. +# Whether or not to disallow shared libs when runtime libs are static.
  43615. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  43616. +# Compiler flag to allow reflexive dlopens.
  43617. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  43618. +# Compiler flag to generate shared objects directly from archives.
  43619. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  43620. - as_lineno_1=$LINENO
  43621. - as_lineno_2=$LINENO
  43622. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  43623. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  43624. -
  43625. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  43626. - # uniformly replaced by the line number. The first 'sed' inserts a
  43627. - # line-number line after each line using $LINENO; the second 'sed'
  43628. - # does the real work. The second script uses 'N' to pair each
  43629. - # line-number line with the line containing $LINENO, and appends
  43630. - # trailing '-' during substitution so that $LINENO is not a special
  43631. - # case at line end.
  43632. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  43633. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  43634. - # E. McMahon (1931-1989) for sed's syntax. :-)
  43635. - sed -n '
  43636. - p
  43637. - /[$]LINENO/=
  43638. - ' <$as_myself |
  43639. - sed '
  43640. - s/[$]LINENO.*/&-/
  43641. - t lineno
  43642. - b
  43643. - :lineno
  43644. - N
  43645. - :loop
  43646. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  43647. - t loop
  43648. - s/-\n.*//
  43649. - ' >$as_me.lineno &&
  43650. - chmod +x "$as_me.lineno" ||
  43651. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  43652. - { (exit 1); exit 1; }; }
  43653. +# Whether the compiler copes with passing no objects directly.
  43654. +compiler_needs_object=$lt_compiler_needs_object
  43655. - # Don't try to exec as it changes $[0], causing all sort of problems
  43656. - # (the dirname of $[0] is not the place where we might find the
  43657. - # original and so on. Autoconf is especially sensitive to this).
  43658. - . "./$as_me.lineno"
  43659. - # Exit status is that of the last command.
  43660. - exit
  43661. -}
  43662. +# Create an old-style archive from a shared archive.
  43663. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  43664. +# Create a temporary old-style archive to link instead of a shared archive.
  43665. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  43666. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  43667. - as_dirname=dirname
  43668. -else
  43669. - as_dirname=false
  43670. -fi
  43671. +# Commands used to build a shared archive.
  43672. +archive_cmds=$lt_archive_cmds
  43673. +archive_expsym_cmds=$lt_archive_expsym_cmds
  43674. -ECHO_C= ECHO_N= ECHO_T=
  43675. -case `echo -n x` in
  43676. --n*)
  43677. - case `echo 'x\c'` in
  43678. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  43679. - *) ECHO_C='\c';;
  43680. - esac;;
  43681. -*)
  43682. - ECHO_N='-n';;
  43683. -esac
  43684. +# Commands used to build a loadable module if different from building
  43685. +# a shared archive.
  43686. +module_cmds=$lt_module_cmds
  43687. +module_expsym_cmds=$lt_module_expsym_cmds
  43688. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43689. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43690. - as_expr=expr
  43691. -else
  43692. - as_expr=false
  43693. -fi
  43694. +# Whether we are building with GNU ld or not.
  43695. +with_gnu_ld=$lt_with_gnu_ld
  43696. -rm -f conf$$ conf$$.exe conf$$.file
  43697. -if test -d conf$$.dir; then
  43698. - rm -f conf$$.dir/conf$$.file
  43699. -else
  43700. - rm -f conf$$.dir
  43701. - mkdir conf$$.dir
  43702. -fi
  43703. -echo >conf$$.file
  43704. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  43705. - as_ln_s='ln -s'
  43706. - # ... but there are two gotchas:
  43707. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  43708. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  43709. - # In both cases, we have to default to `cp -p'.
  43710. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  43711. - as_ln_s='cp -p'
  43712. -elif ln conf$$.file conf$$ 2>/dev/null; then
  43713. - as_ln_s=ln
  43714. -else
  43715. - as_ln_s='cp -p'
  43716. -fi
  43717. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  43718. -rmdir conf$$.dir 2>/dev/null
  43719. +# Flag that allows shared libraries with undefined symbols to be built.
  43720. +allow_undefined_flag=$lt_allow_undefined_flag
  43721. -if mkdir -p . 2>/dev/null; then
  43722. - as_mkdir_p=:
  43723. -else
  43724. - test -d ./-p && rmdir ./-p
  43725. - as_mkdir_p=false
  43726. -fi
  43727. +# Flag that enforces no undefined symbols.
  43728. +no_undefined_flag=$lt_no_undefined_flag
  43729. -if test -x / >/dev/null 2>&1; then
  43730. - as_test_x='test -x'
  43731. -else
  43732. - if ls -dL / >/dev/null 2>&1; then
  43733. - as_ls_L_option=L
  43734. - else
  43735. - as_ls_L_option=
  43736. - fi
  43737. - as_test_x='
  43738. - eval sh -c '\''
  43739. - if test -d "$1"; then
  43740. - test -d "$1/.";
  43741. - else
  43742. - case $1 in
  43743. - -*)set "./$1";;
  43744. - esac;
  43745. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  43746. - ???[sx]*):;;*)false;;esac;fi
  43747. - '\'' sh
  43748. - '
  43749. -fi
  43750. -as_executable_p=$as_test_x
  43751. +# Flag to hardcode \$libdir into a binary during linking.
  43752. +# This must work even if \$libdir does not exist
  43753. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  43754. -# Sed expression to map a string onto a valid CPP name.
  43755. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  43756. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  43757. +# during linking. This must work even if \$libdir does not exist.
  43758. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  43759. -# Sed expression to map a string onto a valid variable name.
  43760. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  43761. +# Whether we need a single "-rpath" flag with a separated argument.
  43762. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  43763. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43764. +# DIR into the resulting binary.
  43765. +hardcode_direct=$hardcode_direct
  43766. -exec 6>&1
  43767. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43768. +# DIR into the resulting binary and the resulting library dependency is
  43769. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  43770. +# library is relocated.
  43771. +hardcode_direct_absolute=$hardcode_direct_absolute
  43772. -# Save the log message, to keep $[0] and so on meaningful, and to
  43773. -# report actual input values of CONFIG_FILES etc. instead of their
  43774. -# values after options handling.
  43775. -ac_log="
  43776. -This file was extended by esound $as_me 0.2.41, which was
  43777. -generated by GNU Autoconf 2.61. Invocation command line was
  43778. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  43779. +# into the resulting binary.
  43780. +hardcode_minus_L=$hardcode_minus_L
  43781. - CONFIG_FILES = $CONFIG_FILES
  43782. - CONFIG_HEADERS = $CONFIG_HEADERS
  43783. - CONFIG_LINKS = $CONFIG_LINKS
  43784. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  43785. - $ $0 $@
  43786. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  43787. +# into the resulting binary.
  43788. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  43789. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  43790. -"
  43791. +# Set to "yes" if building a shared library automatically hardcodes DIR
  43792. +# into the library and all subsequent libraries and executables linked
  43793. +# against it.
  43794. +hardcode_automatic=$hardcode_automatic
  43795. -_ACEOF
  43796. +# Set to yes if linker adds runtime paths of dependent libraries
  43797. +# to runtime path list.
  43798. +inherit_rpath=$inherit_rpath
  43799. -cat >>$CONFIG_STATUS <<_ACEOF
  43800. -# Files that config.status was made for.
  43801. -config_files="$ac_config_files"
  43802. -config_headers="$ac_config_headers"
  43803. -config_commands="$ac_config_commands"
  43804. +# Whether libtool must link a program against all its dependency libraries.
  43805. +link_all_deplibs=$link_all_deplibs
  43806. -_ACEOF
  43807. +# Fix the shell variable \$srcfile for the compiler.
  43808. +fix_srcfile_path=$lt_fix_srcfile_path
  43809. -cat >>$CONFIG_STATUS <<\_ACEOF
  43810. -ac_cs_usage="\
  43811. -\`$as_me' instantiates files from templates according to the
  43812. -current configuration.
  43813. +# Set to "yes" if exported symbols are required.
  43814. +always_export_symbols=$always_export_symbols
  43815. -Usage: $0 [OPTIONS] [FILE]...
  43816. +# The commands to list exported symbols.
  43817. +export_symbols_cmds=$lt_export_symbols_cmds
  43818. - -h, --help print this help, then exit
  43819. - -V, --version print version number and configuration settings, then exit
  43820. - -q, --quiet do not print progress messages
  43821. - -d, --debug don't remove temporary files
  43822. - --recheck update $as_me by reconfiguring in the same conditions
  43823. - --file=FILE[:TEMPLATE]
  43824. - instantiate the configuration file FILE
  43825. - --header=FILE[:TEMPLATE]
  43826. - instantiate the configuration header FILE
  43827. +# Symbols that should not be listed in the preloaded symbols.
  43828. +exclude_expsyms=$lt_exclude_expsyms
  43829. -Configuration files:
  43830. -$config_files
  43831. +# Symbols that must always be exported.
  43832. +include_expsyms=$lt_include_expsyms
  43833. -Configuration headers:
  43834. -$config_headers
  43835. +# Commands necessary for linking programs (against libraries) with templates.
  43836. +prelink_cmds=$lt_prelink_cmds
  43837. -Configuration commands:
  43838. -$config_commands
  43839. +# Specify filename containing input files.
  43840. +file_list_spec=$lt_file_list_spec
  43841. -Report bugs to <bug-autoconf@gnu.org>."
  43842. +# How to hardcode a shared library path into an executable.
  43843. +hardcode_action=$hardcode_action
  43844. -_ACEOF
  43845. -cat >>$CONFIG_STATUS <<_ACEOF
  43846. -ac_cs_version="\\
  43847. -esound config.status 0.2.41
  43848. -configured by $0, generated by GNU Autoconf 2.61,
  43849. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  43850. +# The directories searched by this compiler when creating a shared library.
  43851. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  43852. -Copyright (C) 2006 Free Software Foundation, Inc.
  43853. -This config.status script is free software; the Free Software Foundation
  43854. -gives unlimited permission to copy, distribute and modify it."
  43855. +# Dependencies to place before and after the objects being linked to
  43856. +# create a shared library.
  43857. +predep_objects=$lt_predep_objects
  43858. +postdep_objects=$lt_postdep_objects
  43859. +predeps=$lt_predeps
  43860. +postdeps=$lt_postdeps
  43861. -ac_pwd='$ac_pwd'
  43862. -srcdir='$srcdir'
  43863. -INSTALL='$INSTALL'
  43864. -MKDIR_P='$MKDIR_P'
  43865. -_ACEOF
  43866. +# The library search path used internally by the compiler when linking
  43867. +# a shared library.
  43868. +compiler_lib_search_path=$lt_compiler_lib_search_path
  43869. -cat >>$CONFIG_STATUS <<\_ACEOF
  43870. -# If no file are specified by the user, then we need to provide default
  43871. -# value. By we need to know if files were specified by the user.
  43872. -ac_need_defaults=:
  43873. -while test $# != 0
  43874. -do
  43875. - case $1 in
  43876. - --*=*)
  43877. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  43878. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  43879. - ac_shift=:
  43880. - ;;
  43881. - *)
  43882. - ac_option=$1
  43883. - ac_optarg=$2
  43884. - ac_shift=shift
  43885. +# ### END LIBTOOL CONFIG
  43886. +
  43887. +_LT_EOF
  43888. +
  43889. + case $host_os in
  43890. + aix3*)
  43891. + cat <<\_LT_EOF >> "$cfgfile"
  43892. +# AIX sometimes has problems with the GCC collect2 program. For some
  43893. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  43894. +# vanish in a puff of smoke.
  43895. +if test "X${COLLECT_NAMES+set}" != Xset; then
  43896. + COLLECT_NAMES=
  43897. + export COLLECT_NAMES
  43898. +fi
  43899. +_LT_EOF
  43900. ;;
  43901. esac
  43902. - case $ac_option in
  43903. - # Handling of the options.
  43904. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  43905. - ac_cs_recheck=: ;;
  43906. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  43907. - echo "$ac_cs_version"; exit ;;
  43908. - --debug | --debu | --deb | --de | --d | -d )
  43909. - debug=: ;;
  43910. - --file | --fil | --fi | --f )
  43911. - $ac_shift
  43912. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  43913. - ac_need_defaults=false;;
  43914. - --header | --heade | --head | --hea )
  43915. - $ac_shift
  43916. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  43917. - ac_need_defaults=false;;
  43918. - --he | --h)
  43919. - # Conflict between --help and --header
  43920. - { echo "$as_me: error: ambiguous option: $1
  43921. -Try \`$0 --help' for more information." >&2
  43922. - { (exit 1); exit 1; }; };;
  43923. - --help | --hel | -h )
  43924. - echo "$ac_cs_usage"; exit ;;
  43925. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  43926. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  43927. - ac_cs_silent=: ;;
  43928. - # This is an error.
  43929. - -*) { echo "$as_me: error: unrecognized option: $1
  43930. -Try \`$0 --help' for more information." >&2
  43931. - { (exit 1); exit 1; }; } ;;
  43932. +ltmain="$ac_aux_dir/ltmain.sh"
  43933. - *) ac_config_targets="$ac_config_targets $1"
  43934. - ac_need_defaults=false ;;
  43935. - esac
  43936. - shift
  43937. -done
  43938. + # We use sed instead of cat because bash on DJGPP gets confused if
  43939. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  43940. + # text mode, it properly converts lines to CR/LF. This bash problem
  43941. + # is reportedly fixed, but why not run on old versions too?
  43942. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  43943. + || (rm -f "$cfgfile"; exit 1)
  43944. -ac_configure_extra_args=
  43945. + case $xsi_shell in
  43946. + yes)
  43947. + cat << \_LT_EOF >> "$cfgfile"
  43948. -if $ac_cs_silent; then
  43949. - exec 6>/dev/null
  43950. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  43951. -fi
  43952. +# func_dirname file append nondir_replacement
  43953. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  43954. +# otherwise set result to NONDIR_REPLACEMENT.
  43955. +func_dirname ()
  43956. +{
  43957. + case ${1} in
  43958. + */*) func_dirname_result="${1%/*}${2}" ;;
  43959. + * ) func_dirname_result="${3}" ;;
  43960. + esac
  43961. +}
  43962. -_ACEOF
  43963. -cat >>$CONFIG_STATUS <<_ACEOF
  43964. -if \$ac_cs_recheck; then
  43965. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  43966. - CONFIG_SHELL=$SHELL
  43967. - export CONFIG_SHELL
  43968. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  43969. -fi
  43970. +# func_basename file
  43971. +func_basename ()
  43972. +{
  43973. + func_basename_result="${1##*/}"
  43974. +}
  43975. -_ACEOF
  43976. -cat >>$CONFIG_STATUS <<\_ACEOF
  43977. -exec 5>>config.log
  43978. +# func_dirname_and_basename file append nondir_replacement
  43979. +# perform func_basename and func_dirname in a single function
  43980. +# call:
  43981. +# dirname: Compute the dirname of FILE. If nonempty,
  43982. +# add APPEND to the result, otherwise set result
  43983. +# to NONDIR_REPLACEMENT.
  43984. +# value returned in "$func_dirname_result"
  43985. +# basename: Compute filename of FILE.
  43986. +# value retuned in "$func_basename_result"
  43987. +# Implementation must be kept synchronized with func_dirname
  43988. +# and func_basename. For efficiency, we do not delegate to
  43989. +# those functions but instead duplicate the functionality here.
  43990. +func_dirname_and_basename ()
  43991. {
  43992. - echo
  43993. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  43994. -## Running $as_me. ##
  43995. -_ASBOX
  43996. - echo "$ac_log"
  43997. -} >&5
  43998. + case ${1} in
  43999. + */*) func_dirname_result="${1%/*}${2}" ;;
  44000. + * ) func_dirname_result="${3}" ;;
  44001. + esac
  44002. + func_basename_result="${1##*/}"
  44003. +}
  44004. -_ACEOF
  44005. -cat >>$CONFIG_STATUS <<_ACEOF
  44006. -#
  44007. -# INIT-COMMANDS
  44008. -#
  44009. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  44010. +# func_stripname prefix suffix name
  44011. +# strip PREFIX and SUFFIX off of NAME.
  44012. +# PREFIX and SUFFIX must not contain globbing or regex special
  44013. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  44014. +# dot (in which case that matches only a dot).
  44015. +func_stripname ()
  44016. +{
  44017. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  44018. + # positional parameters, so assign one to ordinary parameter first.
  44019. + func_stripname_result=${3}
  44020. + func_stripname_result=${func_stripname_result#"${1}"}
  44021. + func_stripname_result=${func_stripname_result%"${2}"}
  44022. +}
  44023. -_ACEOF
  44024. +# func_opt_split
  44025. +func_opt_split ()
  44026. +{
  44027. + func_opt_split_opt=${1%%=*}
  44028. + func_opt_split_arg=${1#*=}
  44029. +}
  44030. -cat >>$CONFIG_STATUS <<\_ACEOF
  44031. +# func_lo2o object
  44032. +func_lo2o ()
  44033. +{
  44034. + case ${1} in
  44035. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  44036. + *) func_lo2o_result=${1} ;;
  44037. + esac
  44038. +}
  44039. -# Handling of arguments.
  44040. -for ac_config_target in $ac_config_targets
  44041. -do
  44042. - case $ac_config_target in
  44043. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  44044. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  44045. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  44046. - "esd-config") CONFIG_FILES="$CONFIG_FILES esd-config" ;;
  44047. - "esound.spec") CONFIG_FILES="$CONFIG_FILES esound.spec" ;;
  44048. - "esound.pc") CONFIG_FILES="$CONFIG_FILES esound.pc" ;;
  44049. - "esddsp") CONFIG_FILES="$CONFIG_FILES esddsp" ;;
  44050. - "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  44051. - "docs/esd.1") CONFIG_FILES="$CONFIG_FILES docs/esd.1" ;;
  44052. - "docs/esdcat.1") CONFIG_FILES="$CONFIG_FILES docs/esdcat.1" ;;
  44053. - "docs/esd-config.1") CONFIG_FILES="$CONFIG_FILES docs/esd-config.1" ;;
  44054. - "docs/esdctl.1") CONFIG_FILES="$CONFIG_FILES docs/esdctl.1" ;;
  44055. - "docs/esddsp.1") CONFIG_FILES="$CONFIG_FILES docs/esddsp.1" ;;
  44056. - "docs/esdfilt.1") CONFIG_FILES="$CONFIG_FILES docs/esdfilt.1" ;;
  44057. - "docs/esdloop.1") CONFIG_FILES="$CONFIG_FILES docs/esdloop.1" ;;
  44058. - "docs/esdmon.1") CONFIG_FILES="$CONFIG_FILES docs/esdmon.1" ;;
  44059. - "docs/esdplay.1") CONFIG_FILES="$CONFIG_FILES docs/esdplay.1" ;;
  44060. - "docs/esdrec.1") CONFIG_FILES="$CONFIG_FILES docs/esdrec.1" ;;
  44061. - "docs/esdsample.1") CONFIG_FILES="$CONFIG_FILES docs/esdsample.1" ;;
  44062. +# func_xform libobj-or-source
  44063. +func_xform ()
  44064. +{
  44065. + func_xform_result=${1%.*}.lo
  44066. +}
  44067. +
  44068. +# func_arith arithmetic-term...
  44069. +func_arith ()
  44070. +{
  44071. + func_arith_result=$(( $* ))
  44072. +}
  44073. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  44074. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  44075. - { (exit 1); exit 1; }; };;
  44076. +# func_len string
  44077. +# STRING may not start with a hyphen.
  44078. +func_len ()
  44079. +{
  44080. + func_len_result=${#1}
  44081. +}
  44082. +
  44083. +_LT_EOF
  44084. + ;;
  44085. + *) # Bourne compatible functions.
  44086. + cat << \_LT_EOF >> "$cfgfile"
  44087. +
  44088. +# func_dirname file append nondir_replacement
  44089. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  44090. +# otherwise set result to NONDIR_REPLACEMENT.
  44091. +func_dirname ()
  44092. +{
  44093. + # Extract subdirectory from the argument.
  44094. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  44095. + if test "X$func_dirname_result" = "X${1}"; then
  44096. + func_dirname_result="${3}"
  44097. + else
  44098. + func_dirname_result="$func_dirname_result${2}"
  44099. + fi
  44100. +}
  44101. +
  44102. +# func_basename file
  44103. +func_basename ()
  44104. +{
  44105. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  44106. +}
  44107. +
  44108. +
  44109. +# func_stripname prefix suffix name
  44110. +# strip PREFIX and SUFFIX off of NAME.
  44111. +# PREFIX and SUFFIX must not contain globbing or regex special
  44112. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  44113. +# dot (in which case that matches only a dot).
  44114. +# func_strip_suffix prefix name
  44115. +func_stripname ()
  44116. +{
  44117. + case ${2} in
  44118. + .*) func_stripname_result=`$ECHO "X${3}" \
  44119. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  44120. + *) func_stripname_result=`$ECHO "X${3}" \
  44121. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  44122. esac
  44123. -done
  44124. +}
  44125. +# sed scripts:
  44126. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  44127. +my_sed_long_arg='1s/^-[^=]*=//'
  44128. -# If the user did not use the arguments to specify the items to instantiate,
  44129. -# then the envvar interface is used. Set only those that are not.
  44130. -# We use the long form for the default assignment because of an extremely
  44131. -# bizarre bug on SunOS 4.1.3.
  44132. -if $ac_need_defaults; then
  44133. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  44134. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  44135. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  44136. -fi
  44137. +# func_opt_split
  44138. +func_opt_split ()
  44139. +{
  44140. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  44141. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  44142. +}
  44143. -# Have a temporary directory for convenience. Make it in the build tree
  44144. -# simply because there is no reason against having it here, and in addition,
  44145. -# creating and moving files from /tmp can sometimes cause problems.
  44146. -# Hook for its removal unless debugging.
  44147. -# Note that there is a small window in which the directory will not be cleaned:
  44148. -# after its creation but before its name has been assigned to `$tmp'.
  44149. -$debug ||
  44150. +# func_lo2o object
  44151. +func_lo2o ()
  44152. {
  44153. - tmp=
  44154. - trap 'exit_status=$?
  44155. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  44156. -' 0
  44157. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  44158. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  44159. }
  44160. -# Create a (secure) tmp directory for tmp files.
  44161. +# func_xform libobj-or-source
  44162. +func_xform ()
  44163. {
  44164. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  44165. - test -n "$tmp" && test -d "$tmp"
  44166. -} ||
  44167. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  44168. +}
  44169. +
  44170. +# func_arith arithmetic-term...
  44171. +func_arith ()
  44172. {
  44173. - tmp=./conf$$-$RANDOM
  44174. - (umask 077 && mkdir "$tmp")
  44175. -} ||
  44176. + func_arith_result=`expr "$@"`
  44177. +}
  44178. +
  44179. +# func_len string
  44180. +# STRING may not start with a hyphen.
  44181. +func_len ()
  44182. {
  44183. - echo "$me: cannot create a temporary directory in ." >&2
  44184. - { (exit 1); exit 1; }
  44185. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  44186. }
  44187. -#
  44188. -# Set up the sed scripts for CONFIG_FILES section.
  44189. -#
  44190. +_LT_EOF
  44191. +esac
  44192. -# No need to generate the scripts if there are no CONFIG_FILES.
  44193. -# This happens for instance when ./config.status config.h
  44194. -if test -n "$CONFIG_FILES"; then
  44195. +case $lt_shell_append in
  44196. + yes)
  44197. + cat << \_LT_EOF >> "$cfgfile"
  44198. -_ACEOF
  44199. +# func_append var value
  44200. +# Append VALUE to the end of shell variable VAR.
  44201. +func_append ()
  44202. +{
  44203. + eval "$1+=\$2"
  44204. +}
  44205. +_LT_EOF
  44206. + ;;
  44207. + *)
  44208. + cat << \_LT_EOF >> "$cfgfile"
  44209. +# func_append var value
  44210. +# Append VALUE to the end of shell variable VAR.
  44211. +func_append ()
  44212. +{
  44213. + eval "$1=\$$1\$2"
  44214. +}
  44215. +_LT_EOF
  44216. + ;;
  44217. + esac
  44218. -ac_delim='%!_!# '
  44219. -for ac_last_try in false false false false false :; do
  44220. - cat >conf$$subs.sed <<_ACEOF
  44221. -SHELL!$SHELL$ac_delim
  44222. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  44223. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  44224. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  44225. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  44226. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  44227. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  44228. -exec_prefix!$exec_prefix$ac_delim
  44229. -prefix!$prefix$ac_delim
  44230. -program_transform_name!$program_transform_name$ac_delim
  44231. -bindir!$bindir$ac_delim
  44232. -sbindir!$sbindir$ac_delim
  44233. -libexecdir!$libexecdir$ac_delim
  44234. -datarootdir!$datarootdir$ac_delim
  44235. -datadir!$datadir$ac_delim
  44236. -sysconfdir!$sysconfdir$ac_delim
  44237. -sharedstatedir!$sharedstatedir$ac_delim
  44238. -localstatedir!$localstatedir$ac_delim
  44239. -includedir!$includedir$ac_delim
  44240. -oldincludedir!$oldincludedir$ac_delim
  44241. -docdir!$docdir$ac_delim
  44242. -infodir!$infodir$ac_delim
  44243. -htmldir!$htmldir$ac_delim
  44244. -dvidir!$dvidir$ac_delim
  44245. -pdfdir!$pdfdir$ac_delim
  44246. -psdir!$psdir$ac_delim
  44247. -libdir!$libdir$ac_delim
  44248. -localedir!$localedir$ac_delim
  44249. -mandir!$mandir$ac_delim
  44250. -DEFS!$DEFS$ac_delim
  44251. -ECHO_C!$ECHO_C$ac_delim
  44252. -ECHO_N!$ECHO_N$ac_delim
  44253. -ECHO_T!$ECHO_T$ac_delim
  44254. -LIBS!$LIBS$ac_delim
  44255. -build_alias!$build_alias$ac_delim
  44256. -host_alias!$host_alias$ac_delim
  44257. -target_alias!$target_alias$ac_delim
  44258. -build!$build$ac_delim
  44259. -build_cpu!$build_cpu$ac_delim
  44260. -build_vendor!$build_vendor$ac_delim
  44261. -build_os!$build_os$ac_delim
  44262. -host!$host$ac_delim
  44263. -host_cpu!$host_cpu$ac_delim
  44264. -host_vendor!$host_vendor$ac_delim
  44265. -host_os!$host_os$ac_delim
  44266. -target!$target$ac_delim
  44267. -target_cpu!$target_cpu$ac_delim
  44268. -target_vendor!$target_vendor$ac_delim
  44269. -target_os!$target_os$ac_delim
  44270. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  44271. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  44272. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  44273. -am__isrc!$am__isrc$ac_delim
  44274. -CYGPATH_W!$CYGPATH_W$ac_delim
  44275. -PACKAGE!$PACKAGE$ac_delim
  44276. -VERSION!$VERSION$ac_delim
  44277. -ACLOCAL!$ACLOCAL$ac_delim
  44278. -AUTOCONF!$AUTOCONF$ac_delim
  44279. -AUTOMAKE!$AUTOMAKE$ac_delim
  44280. -AUTOHEADER!$AUTOHEADER$ac_delim
  44281. -MAKEINFO!$MAKEINFO$ac_delim
  44282. -install_sh!$install_sh$ac_delim
  44283. -STRIP!$STRIP$ac_delim
  44284. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  44285. -mkdir_p!$mkdir_p$ac_delim
  44286. -AWK!$AWK$ac_delim
  44287. -SET_MAKE!$SET_MAKE$ac_delim
  44288. -am__leading_dot!$am__leading_dot$ac_delim
  44289. -AMTAR!$AMTAR$ac_delim
  44290. -am__tar!$am__tar$ac_delim
  44291. -am__untar!$am__untar$ac_delim
  44292. -MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  44293. -MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  44294. -MAINT!$MAINT$ac_delim
  44295. -ESD_MAJOR_VERSION!$ESD_MAJOR_VERSION$ac_delim
  44296. -ESD_MINOR_VERSION!$ESD_MINOR_VERSION$ac_delim
  44297. -ESD_MICRO_VERSION!$ESD_MICRO_VERSION$ac_delim
  44298. -ESD_VERSION!$ESD_VERSION$ac_delim
  44299. -ESD_VERSION_INFO!$ESD_VERSION_INFO$ac_delim
  44300. -CC!$CC$ac_delim
  44301. -CFLAGS!$CFLAGS$ac_delim
  44302. -LDFLAGS!$LDFLAGS$ac_delim
  44303. -CPPFLAGS!$CPPFLAGS$ac_delim
  44304. -ac_ct_CC!$ac_ct_CC$ac_delim
  44305. -EXEEXT!$EXEEXT$ac_delim
  44306. -OBJEXT!$OBJEXT$ac_delim
  44307. -DEPDIR!$DEPDIR$ac_delim
  44308. -am__include!$am__include$ac_delim
  44309. -am__quote!$am__quote$ac_delim
  44310. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  44311. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  44312. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  44313. -CCDEPMODE!$CCDEPMODE$ac_delim
  44314. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  44315. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  44316. -CXX!$CXX$ac_delim
  44317. -CXXFLAGS!$CXXFLAGS$ac_delim
  44318. -_ACEOF
  44319. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  44320. - break
  44321. - elif $ac_last_try; then
  44322. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  44323. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  44324. - { (exit 1); exit 1; }; }
  44325. - else
  44326. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44327. - fi
  44328. -done
  44329. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  44330. + || (rm -f "$cfgfile"; exit 1)
  44331. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  44332. -if test -n "$ac_eof"; then
  44333. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  44334. - ac_eof=`expr $ac_eof + 1`
  44335. -fi
  44336. + mv -f "$cfgfile" "$ofile" ||
  44337. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  44338. + chmod +x "$ofile"
  44339. -cat >>$CONFIG_STATUS <<_ACEOF
  44340. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  44341. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44342. -_ACEOF
  44343. -sed '
  44344. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  44345. -s/^/s,@/; s/!/@,|#_!!_#|/
  44346. -:n
  44347. -t n
  44348. -s/'"$ac_delim"'$/,g/; t
  44349. -s/$/\\/; p
  44350. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  44351. -' >>$CONFIG_STATUS <conf$$subs.sed
  44352. -rm -f conf$$subs.sed
  44353. -cat >>$CONFIG_STATUS <<_ACEOF
  44354. -CEOF$ac_eof
  44355. -_ACEOF
  44356. + cat <<_LT_EOF >> "$ofile"
  44357. -ac_delim='%!_!# '
  44358. -for ac_last_try in false false false false false :; do
  44359. - cat >conf$$subs.sed <<_ACEOF
  44360. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  44361. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  44362. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  44363. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  44364. -CPP!$CPP$ac_delim
  44365. -SED!$SED$ac_delim
  44366. -GREP!$GREP$ac_delim
  44367. -EGREP!$EGREP$ac_delim
  44368. -LN_S!$LN_S$ac_delim
  44369. -ECHO!$ECHO$ac_delim
  44370. -AR!$AR$ac_delim
  44371. -RANLIB!$RANLIB$ac_delim
  44372. -DSYMUTIL!$DSYMUTIL$ac_delim
  44373. -NMEDIT!$NMEDIT$ac_delim
  44374. -DLLTOOL!$DLLTOOL$ac_delim
  44375. -AS!$AS$ac_delim
  44376. -OBJDUMP!$OBJDUMP$ac_delim
  44377. -CXXCPP!$CXXCPP$ac_delim
  44378. -F77!$F77$ac_delim
  44379. -FFLAGS!$FFLAGS$ac_delim
  44380. -ac_ct_F77!$ac_ct_F77$ac_delim
  44381. -LIBTOOL!$LIBTOOL$ac_delim
  44382. -ALLOCA!$ALLOCA$ac_delim
  44383. -NEED_GETOPT_TRUE!$NEED_GETOPT_TRUE$ac_delim
  44384. -NEED_GETOPT_FALSE!$NEED_GETOPT_FALSE$ac_delim
  44385. -BUILD_ESDDSP_TRUE!$BUILD_ESDDSP_TRUE$ac_delim
  44386. -BUILD_ESDDSP_FALSE!$BUILD_ESDDSP_FALSE$ac_delim
  44387. -ARTS_CONFIG!$ARTS_CONFIG$ac_delim
  44388. -ARTS_CXXFLAGS!$ARTS_CXXFLAGS$ac_delim
  44389. -ARTS_LIBS!$ARTS_LIBS$ac_delim
  44390. -ESD_DIR!$ESD_DIR$ac_delim
  44391. -ESD_PC_DIR!$ESD_PC_DIR$ac_delim
  44392. -PKG_CONFIG!$PKG_CONFIG$ac_delim
  44393. -AUDIOFILE_CFLAGS!$AUDIOFILE_CFLAGS$ac_delim
  44394. -AUDIOFILE_LIBS!$AUDIOFILE_LIBS$ac_delim
  44395. -BUILD_ESDPLAY_TRUE!$BUILD_ESDPLAY_TRUE$ac_delim
  44396. -BUILD_ESDPLAY_FALSE!$BUILD_ESDPLAY_FALSE$ac_delim
  44397. -JW!$JW$ac_delim
  44398. -HAVE_JW_TRUE!$HAVE_JW_TRUE$ac_delim
  44399. -HAVE_JW_FALSE!$HAVE_JW_FALSE$ac_delim
  44400. -WRAP_LIB!$WRAP_LIB$ac_delim
  44401. -SOUND_LIBS!$SOUND_LIBS$ac_delim
  44402. -DL_LIB!$DL_LIB$ac_delim
  44403. -DOCS!$DOCS$ac_delim
  44404. -DISTDOCS!$DISTDOCS$ac_delim
  44405. -LIBOBJS!$LIBOBJS$ac_delim
  44406. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  44407. -_ACEOF
  44408. +# ### BEGIN LIBTOOL TAG CONFIG: CXX
  44409. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
  44410. - break
  44411. - elif $ac_last_try; then
  44412. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  44413. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  44414. - { (exit 1); exit 1; }; }
  44415. - else
  44416. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44417. - fi
  44418. -done
  44419. +# The linker used to build libraries.
  44420. +LD=$lt_LD_CXX
  44421. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  44422. -if test -n "$ac_eof"; then
  44423. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  44424. - ac_eof=`expr $ac_eof + 1`
  44425. -fi
  44426. -
  44427. -cat >>$CONFIG_STATUS <<_ACEOF
  44428. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  44429. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  44430. -_ACEOF
  44431. -sed '
  44432. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  44433. -s/^/s,@/; s/!/@,|#_!!_#|/
  44434. -:n
  44435. -t n
  44436. -s/'"$ac_delim"'$/,g/; t
  44437. -s/$/\\/; p
  44438. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  44439. -' >>$CONFIG_STATUS <conf$$subs.sed
  44440. -rm -f conf$$subs.sed
  44441. -cat >>$CONFIG_STATUS <<_ACEOF
  44442. -:end
  44443. -s/|#_!!_#|//g
  44444. -CEOF$ac_eof
  44445. -_ACEOF
  44446. +# Commands used to build an old-style archive.
  44447. +old_archive_cmds=$lt_old_archive_cmds_CXX
  44448. +# A language specific compiler.
  44449. +CC=$lt_compiler_CXX
  44450. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  44451. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  44452. -# trailing colons and then remove the whole line if VPATH becomes empty
  44453. -# (actually we leave an empty line to preserve line numbers).
  44454. -if test "x$srcdir" = x.; then
  44455. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  44456. -s/:*\$(srcdir):*/:/
  44457. -s/:*\${srcdir}:*/:/
  44458. -s/:*@srcdir@:*/:/
  44459. -s/^\([^=]*=[ ]*\):*/\1/
  44460. -s/:*$//
  44461. -s/^[^=]*=[ ]*$//
  44462. -}'
  44463. -fi
  44464. +# Is the compiler the GNU compiler?
  44465. +with_gcc=$GCC_CXX
  44466. -cat >>$CONFIG_STATUS <<\_ACEOF
  44467. -fi # test -n "$CONFIG_FILES"
  44468. +# Compiler flag to turn off builtin functions.
  44469. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  44470. +# How to pass a linker flag through the compiler.
  44471. +wl=$lt_lt_prog_compiler_wl_CXX
  44472. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  44473. -do
  44474. - case $ac_tag in
  44475. - :[FHLC]) ac_mode=$ac_tag; continue;;
  44476. - esac
  44477. - case $ac_mode$ac_tag in
  44478. - :[FHL]*:*);;
  44479. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  44480. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  44481. - { (exit 1); exit 1; }; };;
  44482. - :[FH]-) ac_tag=-:-;;
  44483. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  44484. - esac
  44485. - ac_save_IFS=$IFS
  44486. - IFS=:
  44487. - set x $ac_tag
  44488. - IFS=$ac_save_IFS
  44489. - shift
  44490. - ac_file=$1
  44491. - shift
  44492. +# Additional compiler flags for building library objects.
  44493. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  44494. - case $ac_mode in
  44495. - :L) ac_source=$1;;
  44496. - :[FH])
  44497. - ac_file_inputs=
  44498. - for ac_f
  44499. - do
  44500. - case $ac_f in
  44501. - -) ac_f="$tmp/stdin";;
  44502. - *) # Look for the file first in the build tree, then in the source tree
  44503. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  44504. - # because $ac_f cannot contain `:'.
  44505. - test -f "$ac_f" ||
  44506. - case $ac_f in
  44507. - [\\/$]*) false;;
  44508. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  44509. - esac ||
  44510. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  44511. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  44512. - { (exit 1); exit 1; }; };;
  44513. - esac
  44514. - ac_file_inputs="$ac_file_inputs $ac_f"
  44515. - done
  44516. +# Compiler flag to prevent dynamic linking.
  44517. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  44518. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  44519. - # use $as_me), people would be surprised to read:
  44520. - # /* config.h. Generated by config.status. */
  44521. - configure_input="Generated from "`IFS=:
  44522. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  44523. - if test x"$ac_file" != x-; then
  44524. - configure_input="$ac_file. $configure_input"
  44525. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  44526. -echo "$as_me: creating $ac_file" >&6;}
  44527. - fi
  44528. +# Does compiler simultaneously support -c and -o options?
  44529. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  44530. - case $ac_tag in
  44531. - *:-:* | *:-) cat >"$tmp/stdin";;
  44532. - esac
  44533. - ;;
  44534. - esac
  44535. +# Whether or not to add -lc for building shared libraries.
  44536. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  44537. - ac_dir=`$as_dirname -- "$ac_file" ||
  44538. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44539. - X"$ac_file" : 'X\(//\)[^/]' \| \
  44540. - X"$ac_file" : 'X\(//\)$' \| \
  44541. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  44542. -echo X"$ac_file" |
  44543. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44544. - s//\1/
  44545. - q
  44546. - }
  44547. - /^X\(\/\/\)[^/].*/{
  44548. - s//\1/
  44549. - q
  44550. - }
  44551. - /^X\(\/\/\)$/{
  44552. - s//\1/
  44553. - q
  44554. - }
  44555. - /^X\(\/\).*/{
  44556. - s//\1/
  44557. - q
  44558. - }
  44559. - s/.*/./; q'`
  44560. - { as_dir="$ac_dir"
  44561. - case $as_dir in #(
  44562. - -*) as_dir=./$as_dir;;
  44563. - esac
  44564. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  44565. - as_dirs=
  44566. - while :; do
  44567. - case $as_dir in #(
  44568. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  44569. - *) as_qdir=$as_dir;;
  44570. - esac
  44571. - as_dirs="'$as_qdir' $as_dirs"
  44572. - as_dir=`$as_dirname -- "$as_dir" ||
  44573. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44574. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44575. - X"$as_dir" : 'X\(//\)$' \| \
  44576. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  44577. -echo X"$as_dir" |
  44578. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44579. - s//\1/
  44580. - q
  44581. - }
  44582. - /^X\(\/\/\)[^/].*/{
  44583. - s//\1/
  44584. - q
  44585. - }
  44586. - /^X\(\/\/\)$/{
  44587. - s//\1/
  44588. - q
  44589. - }
  44590. - /^X\(\/\).*/{
  44591. - s//\1/
  44592. - q
  44593. - }
  44594. - s/.*/./; q'`
  44595. - test -d "$as_dir" && break
  44596. - done
  44597. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  44598. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  44599. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  44600. - { (exit 1); exit 1; }; }; }
  44601. - ac_builddir=.
  44602. +# Whether or not to disallow shared libs when runtime libs are static.
  44603. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  44604. +
  44605. +# Compiler flag to allow reflexive dlopens.
  44606. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  44607. +
  44608. +# Compiler flag to generate shared objects directly from archives.
  44609. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  44610. +
  44611. +# Whether the compiler copes with passing no objects directly.
  44612. +compiler_needs_object=$lt_compiler_needs_object_CXX
  44613. +
  44614. +# Create an old-style archive from a shared archive.
  44615. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  44616. +
  44617. +# Create a temporary old-style archive to link instead of a shared archive.
  44618. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  44619. +
  44620. +# Commands used to build a shared archive.
  44621. +archive_cmds=$lt_archive_cmds_CXX
  44622. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  44623. +
  44624. +# Commands used to build a loadable module if different from building
  44625. +# a shared archive.
  44626. +module_cmds=$lt_module_cmds_CXX
  44627. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  44628. +
  44629. +# Whether we are building with GNU ld or not.
  44630. +with_gnu_ld=$lt_with_gnu_ld_CXX
  44631. +
  44632. +# Flag that allows shared libraries with undefined symbols to be built.
  44633. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  44634. +
  44635. +# Flag that enforces no undefined symbols.
  44636. +no_undefined_flag=$lt_no_undefined_flag_CXX
  44637. +
  44638. +# Flag to hardcode \$libdir into a binary during linking.
  44639. +# This must work even if \$libdir does not exist
  44640. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  44641. +
  44642. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  44643. +# during linking. This must work even if \$libdir does not exist.
  44644. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  44645. -case "$ac_dir" in
  44646. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44647. -*)
  44648. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  44649. - # A ".." for each directory in $ac_dir_suffix.
  44650. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  44651. - case $ac_top_builddir_sub in
  44652. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44653. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  44654. - esac ;;
  44655. -esac
  44656. -ac_abs_top_builddir=$ac_pwd
  44657. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  44658. -# for backward compatibility:
  44659. -ac_top_builddir=$ac_top_build_prefix
  44660. +# Whether we need a single "-rpath" flag with a separated argument.
  44661. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  44662. -case $srcdir in
  44663. - .) # We are building in place.
  44664. - ac_srcdir=.
  44665. - ac_top_srcdir=$ac_top_builddir_sub
  44666. - ac_abs_top_srcdir=$ac_pwd ;;
  44667. - [\\/]* | ?:[\\/]* ) # Absolute name.
  44668. - ac_srcdir=$srcdir$ac_dir_suffix;
  44669. - ac_top_srcdir=$srcdir
  44670. - ac_abs_top_srcdir=$srcdir ;;
  44671. - *) # Relative name.
  44672. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  44673. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  44674. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  44675. -esac
  44676. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  44677. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44678. +# DIR into the resulting binary.
  44679. +hardcode_direct=$hardcode_direct_CXX
  44680. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44681. +# DIR into the resulting binary and the resulting library dependency is
  44682. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  44683. +# library is relocated.
  44684. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  44685. - case $ac_mode in
  44686. - :F)
  44687. - #
  44688. - # CONFIG_FILE
  44689. - #
  44690. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  44691. +# into the resulting binary.
  44692. +hardcode_minus_L=$hardcode_minus_L_CXX
  44693. - case $INSTALL in
  44694. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  44695. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  44696. - esac
  44697. - ac_MKDIR_P=$MKDIR_P
  44698. - case $MKDIR_P in
  44699. - [\\/$]* | ?:[\\/]* ) ;;
  44700. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  44701. - esac
  44702. -_ACEOF
  44703. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  44704. +# into the resulting binary.
  44705. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  44706. -cat >>$CONFIG_STATUS <<\_ACEOF
  44707. -# If the template does not know about datarootdir, expand it.
  44708. -# FIXME: This hack should be removed a few years after 2.60.
  44709. -ac_datarootdir_hack=; ac_datarootdir_seen=
  44710. +# Set to "yes" if building a shared library automatically hardcodes DIR
  44711. +# into the library and all subsequent libraries and executables linked
  44712. +# against it.
  44713. +hardcode_automatic=$hardcode_automatic_CXX
  44714. -case `sed -n '/datarootdir/ {
  44715. - p
  44716. - q
  44717. -}
  44718. -/@datadir@/p
  44719. -/@docdir@/p
  44720. -/@infodir@/p
  44721. -/@localedir@/p
  44722. -/@mandir@/p
  44723. -' $ac_file_inputs` in
  44724. -*datarootdir*) ac_datarootdir_seen=yes;;
  44725. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  44726. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  44727. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  44728. -_ACEOF
  44729. -cat >>$CONFIG_STATUS <<_ACEOF
  44730. - ac_datarootdir_hack='
  44731. - s&@datadir@&$datadir&g
  44732. - s&@docdir@&$docdir&g
  44733. - s&@infodir@&$infodir&g
  44734. - s&@localedir@&$localedir&g
  44735. - s&@mandir@&$mandir&g
  44736. - s&\\\${datarootdir}&$datarootdir&g' ;;
  44737. -esac
  44738. -_ACEOF
  44739. +# Set to yes if linker adds runtime paths of dependent libraries
  44740. +# to runtime path list.
  44741. +inherit_rpath=$inherit_rpath_CXX
  44742. -# Neutralize VPATH when `$srcdir' = `.'.
  44743. -# Shell code in configure.ac might set extrasub.
  44744. -# FIXME: do we really want to maintain this feature?
  44745. -cat >>$CONFIG_STATUS <<_ACEOF
  44746. - sed "$ac_vpsub
  44747. -$extrasub
  44748. -_ACEOF
  44749. -cat >>$CONFIG_STATUS <<\_ACEOF
  44750. -:t
  44751. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44752. -s&@configure_input@&$configure_input&;t t
  44753. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  44754. -s&@srcdir@&$ac_srcdir&;t t
  44755. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  44756. -s&@top_srcdir@&$ac_top_srcdir&;t t
  44757. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  44758. -s&@builddir@&$ac_builddir&;t t
  44759. -s&@abs_builddir@&$ac_abs_builddir&;t t
  44760. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  44761. -s&@INSTALL@&$ac_INSTALL&;t t
  44762. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  44763. -$ac_datarootdir_hack
  44764. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  44765. +# Whether libtool must link a program against all its dependency libraries.
  44766. +link_all_deplibs=$link_all_deplibs_CXX
  44767. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  44768. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  44769. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  44770. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44771. -which seems to be undefined. Please make sure it is defined." >&5
  44772. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44773. -which seems to be undefined. Please make sure it is defined." >&2;}
  44774. +# Fix the shell variable \$srcfile for the compiler.
  44775. +fix_srcfile_path=$lt_fix_srcfile_path_CXX
  44776. - rm -f "$tmp/stdin"
  44777. - case $ac_file in
  44778. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  44779. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  44780. - esac
  44781. - ;;
  44782. - :H)
  44783. - #
  44784. - # CONFIG_HEADER
  44785. - #
  44786. -_ACEOF
  44787. +# Set to "yes" if exported symbols are required.
  44788. +always_export_symbols=$always_export_symbols_CXX
  44789. -# Transform confdefs.h into a sed script `conftest.defines', that
  44790. -# substitutes the proper values into config.h.in to produce config.h.
  44791. -rm -f conftest.defines conftest.tail
  44792. -# First, append a space to every undef/define line, to ease matching.
  44793. -echo 's/$/ /' >conftest.defines
  44794. -# Then, protect against being on the right side of a sed subst, or in
  44795. -# an unquoted here document, in config.status. If some macros were
  44796. -# called several times there might be several #defines for the same
  44797. -# symbol, which is useless. But do not sort them, since the last
  44798. -# AC_DEFINE must be honored.
  44799. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  44800. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  44801. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  44802. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  44803. -# just an empty string.
  44804. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  44805. -ac_dB='\\)[ (].*,\\1define\\2'
  44806. -ac_dC=' '
  44807. -ac_dD=' ,'
  44808. +# The commands to list exported symbols.
  44809. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  44810. -uniq confdefs.h |
  44811. - sed -n '
  44812. - t rset
  44813. - :rset
  44814. - s/^[ ]*#[ ]*define[ ][ ]*//
  44815. - t ok
  44816. - d
  44817. - :ok
  44818. - s/[\\&,]/\\&/g
  44819. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  44820. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  44821. - ' >>conftest.defines
  44822. -
  44823. -# Remove the space that was appended to ease matching.
  44824. -# Then replace #undef with comments. This is necessary, for
  44825. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  44826. -# on some systems where configure will not decide to define it.
  44827. -# (The regexp can be short, since the line contains either #define or #undef.)
  44828. -echo 's/ $//
  44829. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  44830. -
  44831. -# Break up conftest.defines:
  44832. -ac_max_sed_lines=50
  44833. -
  44834. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  44835. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  44836. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  44837. -# et cetera.
  44838. -ac_in='$ac_file_inputs'
  44839. -ac_out='"$tmp/out1"'
  44840. -ac_nxt='"$tmp/out2"'
  44841. +# Symbols that should not be listed in the preloaded symbols.
  44842. +exclude_expsyms=$lt_exclude_expsyms_CXX
  44843. -while :
  44844. -do
  44845. - # Write a here document:
  44846. - cat >>$CONFIG_STATUS <<_ACEOF
  44847. - # First, check the format of the line:
  44848. - cat >"\$tmp/defines.sed" <<\\CEOF
  44849. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  44850. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  44851. -b
  44852. -:def
  44853. -_ACEOF
  44854. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  44855. - echo 'CEOF
  44856. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  44857. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  44858. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  44859. - grep . conftest.tail >/dev/null || break
  44860. - rm -f conftest.defines
  44861. - mv conftest.tail conftest.defines
  44862. -done
  44863. -rm -f conftest.defines conftest.tail
  44864. +# Symbols that must always be exported.
  44865. +include_expsyms=$lt_include_expsyms_CXX
  44866. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  44867. -cat >>$CONFIG_STATUS <<\_ACEOF
  44868. - if test x"$ac_file" != x-; then
  44869. - echo "/* $configure_input */" >"$tmp/config.h"
  44870. - cat "$ac_result" >>"$tmp/config.h"
  44871. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  44872. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  44873. -echo "$as_me: $ac_file is unchanged" >&6;}
  44874. - else
  44875. - rm -f $ac_file
  44876. - mv "$tmp/config.h" $ac_file
  44877. - fi
  44878. - else
  44879. - echo "/* $configure_input */"
  44880. - cat "$ac_result"
  44881. - fi
  44882. - rm -f "$tmp/out12"
  44883. -# Compute $ac_file's index in $config_headers.
  44884. -_am_arg=$ac_file
  44885. -_am_stamp_count=1
  44886. -for _am_header in $config_headers :; do
  44887. - case $_am_header in
  44888. - $_am_arg | $_am_arg:* )
  44889. - break ;;
  44890. - * )
  44891. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  44892. - esac
  44893. -done
  44894. -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  44895. -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44896. - X"$_am_arg" : 'X\(//\)[^/]' \| \
  44897. - X"$_am_arg" : 'X\(//\)$' \| \
  44898. - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  44899. -echo X"$_am_arg" |
  44900. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44901. - s//\1/
  44902. - q
  44903. - }
  44904. - /^X\(\/\/\)[^/].*/{
  44905. - s//\1/
  44906. - q
  44907. - }
  44908. - /^X\(\/\/\)$/{
  44909. - s//\1/
  44910. - q
  44911. - }
  44912. - /^X\(\/\).*/{
  44913. - s//\1/
  44914. - q
  44915. - }
  44916. - s/.*/./; q'`/stamp-h$_am_stamp_count
  44917. - ;;
  44918. +# Commands necessary for linking programs (against libraries) with templates.
  44919. +prelink_cmds=$lt_prelink_cmds_CXX
  44920. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  44921. -echo "$as_me: executing $ac_file commands" >&6;}
  44922. - ;;
  44923. - esac
  44924. +# Specify filename containing input files.
  44925. +file_list_spec=$lt_file_list_spec_CXX
  44926. +# How to hardcode a shared library path into an executable.
  44927. +hardcode_action=$hardcode_action_CXX
  44928. +
  44929. +# The directories searched by this compiler when creating a shared library.
  44930. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  44931. +
  44932. +# Dependencies to place before and after the objects being linked to
  44933. +# create a shared library.
  44934. +predep_objects=$lt_predep_objects_CXX
  44935. +postdep_objects=$lt_postdep_objects_CXX
  44936. +predeps=$lt_predeps_CXX
  44937. +postdeps=$lt_postdeps_CXX
  44938. +
  44939. +# The library search path used internally by the compiler when linking
  44940. +# a shared library.
  44941. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  44942. +
  44943. +# ### END LIBTOOL TAG CONFIG: CXX
  44944. +_LT_EOF
  44945. - case $ac_file$ac_mode in
  44946. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  44947. - # Strip MF so we end up with the name of the file.
  44948. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  44949. - # Check whether this is an Automake generated Makefile or not.
  44950. - # We used to match only the files named `Makefile.in', but
  44951. - # some people rename them; so instead we look at the file content.
  44952. - # Grep'ing the first line is not enough: some people post-process
  44953. - # each Makefile.in and add a new line on top of each file to say so.
  44954. - # Grep'ing the whole file is not good either: AIX grep has a line
  44955. - # limit of 2048, but all sed's we know have understand at least 4000.
  44956. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  44957. - dirpart=`$as_dirname -- "$mf" ||
  44958. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44959. - X"$mf" : 'X\(//\)[^/]' \| \
  44960. - X"$mf" : 'X\(//\)$' \| \
  44961. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  44962. -echo X"$mf" |
  44963. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44964. - s//\1/
  44965. - q
  44966. - }
  44967. - /^X\(\/\/\)[^/].*/{
  44968. - s//\1/
  44969. - q
  44970. - }
  44971. - /^X\(\/\/\)$/{
  44972. - s//\1/
  44973. - q
  44974. - }
  44975. - /^X\(\/\).*/{
  44976. - s//\1/
  44977. - q
  44978. - }
  44979. - s/.*/./; q'`
  44980. - else
  44981. - continue
  44982. - fi
  44983. - # Extract the definition of DEPDIR, am__include, and am__quote
  44984. - # from the Makefile without running `make'.
  44985. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  44986. - test -z "$DEPDIR" && continue
  44987. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  44988. - test -z "am__include" && continue
  44989. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  44990. - # When using ansi2knr, U may be empty or an underscore; expand it
  44991. - U=`sed -n 's/^U = //p' < "$mf"`
  44992. - # Find all dependency output files, they are included files with
  44993. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  44994. - # simplest approach to changing $(DEPDIR) to its actual value in the
  44995. - # expansion.
  44996. - for file in `sed -n "
  44997. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  44998. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  44999. - # Make sure the directory exists.
  45000. - test -f "$dirpart/$file" && continue
  45001. - fdir=`$as_dirname -- "$file" ||
  45002. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45003. - X"$file" : 'X\(//\)[^/]' \| \
  45004. - X"$file" : 'X\(//\)$' \| \
  45005. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  45006. -echo X"$file" |
  45007. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45008. - s//\1/
  45009. - q
  45010. - }
  45011. - /^X\(\/\/\)[^/].*/{
  45012. - s//\1/
  45013. - q
  45014. - }
  45015. - /^X\(\/\/\)$/{
  45016. - s//\1/
  45017. - q
  45018. - }
  45019. - /^X\(\/\).*/{
  45020. - s//\1/
  45021. - q
  45022. - }
  45023. - s/.*/./; q'`
  45024. - { as_dir=$dirpart/$fdir
  45025. - case $as_dir in #(
  45026. - -*) as_dir=./$as_dir;;
  45027. - esac
  45028. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  45029. - as_dirs=
  45030. - while :; do
  45031. - case $as_dir in #(
  45032. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  45033. - *) as_qdir=$as_dir;;
  45034. - esac
  45035. - as_dirs="'$as_qdir' $as_dirs"
  45036. - as_dir=`$as_dirname -- "$as_dir" ||
  45037. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45038. - X"$as_dir" : 'X\(//\)[^/]' \| \
  45039. - X"$as_dir" : 'X\(//\)$' \| \
  45040. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  45041. -echo X"$as_dir" |
  45042. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45043. - s//\1/
  45044. - q
  45045. - }
  45046. - /^X\(\/\/\)[^/].*/{
  45047. - s//\1/
  45048. - q
  45049. - }
  45050. - /^X\(\/\/\)$/{
  45051. - s//\1/
  45052. - q
  45053. - }
  45054. - /^X\(\/\).*/{
  45055. - s//\1/
  45056. - q
  45057. - }
  45058. - s/.*/./; q'`
  45059. - test -d "$as_dir" && break
  45060. - done
  45061. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  45062. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  45063. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  45064. - { (exit 1); exit 1; }; }; }
  45065. - # echo "creating $dirpart/$file"
  45066. - echo '# dummy' > "$dirpart/$file"
  45067. - done
  45068. -done
  45069. ;;
  45070. esac
  45071. done # for ac_tag
  45072. -{ (exit 0); exit 0; }
  45073. +as_fn_exit 0
  45074. _ACEOF
  45075. -chmod +x $CONFIG_STATUS
  45076. ac_clean_files=$ac_clean_files_save
  45077. +test $ac_write_fail = 0 ||
  45078. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  45079. +
  45080. # configure is writing to config.log, and then calls config.status.
  45081. # config.status does its own redirection, appending to config.log.
  45082. @@ -27281,7 +19894,11 @@
  45083. exec 5>>config.log
  45084. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  45085. # would make configure fail if this is the last instruction.
  45086. - $ac_cs_success || { (exit 1); exit 1; }
  45087. + $ac_cs_success || as_fn_exit $?
  45088. +fi
  45089. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  45090. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  45091. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  45092. fi
  45093. diff -Nur esound-0.2.41.orig/depcomp esound-0.2.41/depcomp
  45094. --- esound-0.2.41.orig/depcomp 2008-11-18 21:54:40.000000000 +0100
  45095. +++ esound-0.2.41/depcomp 2011-02-24 20:05:04.063550591 +0100
  45096. @@ -1,10 +1,10 @@
  45097. #! /bin/sh
  45098. # depcomp - compile a program generating dependencies as side-effects
  45099. -scriptversion=2007-03-29.01
  45100. +scriptversion=2009-04-28.21; # UTC
  45101. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
  45102. -# Foundation, Inc.
  45103. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  45104. +# Software Foundation, Inc.
  45105. # This program is free software; you can redistribute it and/or modify
  45106. # it under the terms of the GNU General Public License as published by
  45107. @@ -17,9 +17,7 @@
  45108. # GNU General Public License for more details.
  45109. # You should have received a copy of the GNU General Public License
  45110. -# along with this program; if not, write to the Free Software
  45111. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  45112. -# 02110-1301, USA.
  45113. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  45114. # As a special exception to the GNU General Public License, if you
  45115. # distribute this file as part of a program that contains a
  45116. @@ -87,6 +85,15 @@
  45117. depmode=dashmstdout
  45118. fi
  45119. +cygpath_u="cygpath -u -f -"
  45120. +if test "$depmode" = msvcmsys; then
  45121. + # This is just like msvisualcpp but w/o cygpath translation.
  45122. + # Just convert the backslash-escaped backslashes to single forward
  45123. + # slashes to satisfy depend.m4
  45124. + cygpath_u="sed s,\\\\\\\\,/,g"
  45125. + depmode=msvisualcpp
  45126. +fi
  45127. +
  45128. case "$depmode" in
  45129. gcc3)
  45130. ## gcc 3 implements dependency tracking that does exactly what
  45131. @@ -192,14 +199,14 @@
  45132. ' < "$tmpdepfile" \
  45133. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  45134. tr '
  45135. -' ' ' >> $depfile
  45136. - echo >> $depfile
  45137. +' ' ' >> "$depfile"
  45138. + echo >> "$depfile"
  45139. # The second pass generates a dummy entry for each header file.
  45140. tr ' ' '
  45141. ' < "$tmpdepfile" \
  45142. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  45143. - >> $depfile
  45144. + >> "$depfile"
  45145. else
  45146. # The sourcefile does not contain any dependencies, so just
  45147. # store a dummy comment line, to avoid errors with the Makefile
  45148. @@ -328,7 +335,12 @@
  45149. if test -f "$tmpdepfile"; then
  45150. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  45151. # Add `dependent.h:' lines.
  45152. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  45153. + sed -ne '2,${
  45154. + s/^ *//
  45155. + s/ \\*$//
  45156. + s/$/:/
  45157. + p
  45158. + }' "$tmpdepfile" >> "$depfile"
  45159. else
  45160. echo "#dummy" > "$depfile"
  45161. fi
  45162. @@ -404,7 +416,7 @@
  45163. # Remove the call to Libtool.
  45164. if test "$libtool" = yes; then
  45165. - while test $1 != '--mode=compile'; do
  45166. + while test "X$1" != 'X--mode=compile'; do
  45167. shift
  45168. done
  45169. shift
  45170. @@ -455,32 +467,39 @@
  45171. "$@" || exit $?
  45172. # Remove any Libtool call
  45173. if test "$libtool" = yes; then
  45174. - while test $1 != '--mode=compile'; do
  45175. + while test "X$1" != 'X--mode=compile'; do
  45176. shift
  45177. done
  45178. shift
  45179. fi
  45180. # X makedepend
  45181. shift
  45182. - cleared=no
  45183. - for arg in "$@"; do
  45184. + cleared=no eat=no
  45185. + for arg
  45186. + do
  45187. case $cleared in
  45188. no)
  45189. set ""; shift
  45190. cleared=yes ;;
  45191. esac
  45192. + if test $eat = yes; then
  45193. + eat=no
  45194. + continue
  45195. + fi
  45196. case "$arg" in
  45197. -D*|-I*)
  45198. set fnord "$@" "$arg"; shift ;;
  45199. # Strip any option that makedepend may not understand. Remove
  45200. # the object too, otherwise makedepend will parse it as a source file.
  45201. + -arch)
  45202. + eat=yes ;;
  45203. -*|$object)
  45204. ;;
  45205. *)
  45206. set fnord "$@" "$arg"; shift ;;
  45207. esac
  45208. done
  45209. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  45210. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  45211. touch "$tmpdepfile"
  45212. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  45213. rm -f "$depfile"
  45214. @@ -500,7 +519,7 @@
  45215. # Remove the call to Libtool.
  45216. if test "$libtool" = yes; then
  45217. - while test $1 != '--mode=compile'; do
  45218. + while test "X$1" != 'X--mode=compile'; do
  45219. shift
  45220. done
  45221. shift
  45222. @@ -538,13 +557,27 @@
  45223. msvisualcpp)
  45224. # Important note: in order to support this mode, a compiler *must*
  45225. - # always write the preprocessed file to stdout, regardless of -o,
  45226. - # because we must use -o when running libtool.
  45227. + # always write the preprocessed file to stdout.
  45228. "$@" || exit $?
  45229. +
  45230. + # Remove the call to Libtool.
  45231. + if test "$libtool" = yes; then
  45232. + while test "X$1" != 'X--mode=compile'; do
  45233. + shift
  45234. + done
  45235. + shift
  45236. + fi
  45237. +
  45238. IFS=" "
  45239. for arg
  45240. do
  45241. case "$arg" in
  45242. + -o)
  45243. + shift
  45244. + ;;
  45245. + $object)
  45246. + shift
  45247. + ;;
  45248. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  45249. set fnord "$@"
  45250. shift
  45251. @@ -557,16 +590,23 @@
  45252. ;;
  45253. esac
  45254. done
  45255. - "$@" -E |
  45256. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  45257. + "$@" -E 2>/dev/null |
  45258. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  45259. rm -f "$depfile"
  45260. echo "$object : \\" > "$depfile"
  45261. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  45262. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  45263. echo " " >> "$depfile"
  45264. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  45265. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  45266. rm -f "$tmpdepfile"
  45267. ;;
  45268. +msvcmsys)
  45269. + # This case exists only to let depend.m4 do its work. It works by
  45270. + # looking at the text of this script. This case will never be run,
  45271. + # since it is checked for above.
  45272. + exit 1
  45273. + ;;
  45274. +
  45275. none)
  45276. exec "$@"
  45277. ;;
  45278. @@ -585,5 +625,6 @@
  45279. # eval: (add-hook 'write-file-hooks 'time-stamp)
  45280. # time-stamp-start: "scriptversion="
  45281. # time-stamp-format: "%:y-%02m-%02d.%02H"
  45282. -# time-stamp-end: "$"
  45283. +# time-stamp-time-zone: "UTC"
  45284. +# time-stamp-end: "; # UTC"
  45285. # End:
  45286. diff -Nur esound-0.2.41.orig/docs/Makefile.in esound-0.2.41/docs/Makefile.in
  45287. --- esound-0.2.41.orig/docs/Makefile.in 2008-11-18 21:54:40.000000000 +0100
  45288. +++ esound-0.2.41/docs/Makefile.in 2011-02-24 20:05:04.013552574 +0100
  45289. @@ -1,8 +1,9 @@
  45290. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  45291. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45292. # @configure_input@
  45293. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45294. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  45295. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45296. +# Inc.
  45297. # This Makefile.in is free software; the Free Software Foundation
  45298. # gives unlimited permission to copy and/or distribute it,
  45299. # with or without modifications, as long as this notice is preserved.
  45300. @@ -16,8 +17,9 @@
  45301. VPATH = @srcdir@
  45302. pkgdatadir = $(datadir)/@PACKAGE@
  45303. -pkglibdir = $(libdir)/@PACKAGE@
  45304. pkgincludedir = $(includedir)/@PACKAGE@
  45305. +pkglibdir = $(libdir)/@PACKAGE@
  45306. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45307. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45308. install_sh_DATA = $(install_sh) -c -m 644
  45309. install_sh_PROGRAM = $(install_sh) -c
  45310. @@ -44,15 +46,39 @@
  45311. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  45312. am__aclocal_m4_deps = $(top_srcdir)/m4/as-arts.m4 \
  45313. $(top_srcdir)/m4/as-compiler-flag.m4 \
  45314. - $(top_srcdir)/configure.ac
  45315. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  45316. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  45317. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
  45318. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  45319. $(ACLOCAL_M4)
  45320. mkinstalldirs = $(install_sh) -d
  45321. CONFIG_HEADER = $(top_builddir)/config.h
  45322. CONFIG_CLEAN_FILES = esd.1 esdcat.1 esd-config.1 esdctl.1 esddsp.1 \
  45323. esdfilt.1 esdloop.1 esdmon.1 esdplay.1 esdrec.1 esdsample.1
  45324. +CONFIG_CLEAN_VPATH_FILES =
  45325. SOURCES =
  45326. DIST_SOURCES =
  45327. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  45328. +am__vpath_adj = case $$p in \
  45329. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  45330. + *) f=$$p;; \
  45331. + esac;
  45332. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  45333. +am__install_max = 40
  45334. +am__nobase_strip_setup = \
  45335. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  45336. +am__nobase_strip = \
  45337. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  45338. +am__nobase_list = $(am__nobase_strip_setup); \
  45339. + for p in $$list; do echo "$$p $$p"; done | \
  45340. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  45341. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  45342. + if (++n[$$2] == $(am__install_max)) \
  45343. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  45344. + END { for (dir in files) print dir, files[dir] }'
  45345. +am__base_list = \
  45346. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  45347. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  45348. man1dir = $(mandir)/man1
  45349. am__installdirs = "$(DESTDIR)$(man1dir)"
  45350. NROFF = nroff
  45351. @@ -90,7 +116,7 @@
  45352. DL_LIB = @DL_LIB@
  45353. DOCS = @DOCS@
  45354. DSYMUTIL = @DSYMUTIL@
  45355. -ECHO = @ECHO@
  45356. +DUMPBIN = @DUMPBIN@
  45357. ECHO_C = @ECHO_C@
  45358. ECHO_N = @ECHO_N@
  45359. ECHO_T = @ECHO_T@
  45360. @@ -103,8 +129,7 @@
  45361. ESD_VERSION = @ESD_VERSION@
  45362. ESD_VERSION_INFO = @ESD_VERSION_INFO@
  45363. EXEEXT = @EXEEXT@
  45364. -F77 = @F77@
  45365. -FFLAGS = @FFLAGS@
  45366. +FGREP = @FGREP@
  45367. GREP = @GREP@
  45368. INSTALL = @INSTALL@
  45369. INSTALL_DATA = @INSTALL_DATA@
  45370. @@ -112,23 +137,29 @@
  45371. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45372. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45373. JW = @JW@
  45374. +LD = @LD@
  45375. LDFLAGS = @LDFLAGS@
  45376. LIBOBJS = @LIBOBJS@
  45377. LIBS = @LIBS@
  45378. LIBTOOL = @LIBTOOL@
  45379. +LIPO = @LIPO@
  45380. LN_S = @LN_S@
  45381. LTLIBOBJS = @LTLIBOBJS@
  45382. MAINT = @MAINT@
  45383. MAKEINFO = @MAKEINFO@
  45384. MKDIR_P = @MKDIR_P@
  45385. +NM = @NM@
  45386. NMEDIT = @NMEDIT@
  45387. OBJDUMP = @OBJDUMP@
  45388. OBJEXT = @OBJEXT@
  45389. +OTOOL = @OTOOL@
  45390. +OTOOL64 = @OTOOL64@
  45391. PACKAGE = @PACKAGE@
  45392. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45393. PACKAGE_NAME = @PACKAGE_NAME@
  45394. PACKAGE_STRING = @PACKAGE_STRING@
  45395. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45396. +PACKAGE_URL = @PACKAGE_URL@
  45397. PACKAGE_VERSION = @PACKAGE_VERSION@
  45398. PATH_SEPARATOR = @PATH_SEPARATOR@
  45399. PKG_CONFIG = @PKG_CONFIG@
  45400. @@ -146,7 +177,7 @@
  45401. abs_top_srcdir = @abs_top_srcdir@
  45402. ac_ct_CC = @ac_ct_CC@
  45403. ac_ct_CXX = @ac_ct_CXX@
  45404. -ac_ct_F77 = @ac_ct_F77@
  45405. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45406. am__include = @am__include@
  45407. am__leading_dot = @am__leading_dot@
  45408. am__quote = @am__quote@
  45409. @@ -177,6 +208,7 @@
  45410. libexecdir = @libexecdir@
  45411. localedir = @localedir@
  45412. localstatedir = @localstatedir@
  45413. +lt_ECHO = @lt_ECHO@
  45414. mandir = @mandir@
  45415. mkdir_p = @mkdir_p@
  45416. oldincludedir = @oldincludedir@
  45417. @@ -193,6 +225,7 @@
  45418. target_cpu = @target_cpu@
  45419. target_os = @target_os@
  45420. target_vendor = @target_vendor@
  45421. +top_build_prefix = @top_build_prefix@
  45422. top_builddir = @top_builddir@
  45423. top_srcdir = @top_srcdir@
  45424. @BUILD_ESDDSP_TRUE@ESDDSP_MAN = esddsp.1
  45425. @@ -216,14 +249,14 @@
  45426. @for dep in $?; do \
  45427. case '$(am__configure_deps)' in \
  45428. *$$dep*) \
  45429. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45430. - && exit 0; \
  45431. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45432. + && { if test -f $@; then exit 0; else break; fi; }; \
  45433. exit 1;; \
  45434. esac; \
  45435. done; \
  45436. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
  45437. - cd $(top_srcdir) && \
  45438. - $(AUTOMAKE) --gnu docs/Makefile
  45439. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
  45440. + $(am__cd) $(top_srcdir) && \
  45441. + $(AUTOMAKE) --gnu docs/Makefile
  45442. .PRECIOUS: Makefile
  45443. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45444. @case '$?' in \
  45445. @@ -241,6 +274,7 @@
  45446. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45447. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45448. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45449. +$(am__aclocal_m4_deps):
  45450. esd.1: $(top_builddir)/config.status $(srcdir)/esd.1.in
  45451. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  45452. esdcat.1: $(top_builddir)/config.status $(srcdir)/esdcat.1.in
  45453. @@ -269,51 +303,44 @@
  45454. clean-libtool:
  45455. -rm -rf .libs _libs
  45456. -install-man1: $(man1_MANS) $(man_MANS)
  45457. +install-man1: $(man_MANS)
  45458. @$(NORMAL_INSTALL)
  45459. test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
  45460. - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
  45461. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  45462. - for i in $$l2; do \
  45463. - case "$$i" in \
  45464. - *.1*) list="$$list $$i" ;; \
  45465. - esac; \
  45466. + @list=''; test -n "$(man1dir)" || exit 0; \
  45467. + { for i in $$list; do echo "$$i"; done; \
  45468. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  45469. + sed -n '/\.1[a-z]*$$/p'; \
  45470. + } | while read p; do \
  45471. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  45472. + echo "$$d$$p"; echo "$$p"; \
  45473. + done | \
  45474. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  45475. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  45476. + sed 'N;N;s,\n, ,g' | { \
  45477. + list=; while read file base inst; do \
  45478. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  45479. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
  45480. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
  45481. + fi; \
  45482. done; \
  45483. - for i in $$list; do \
  45484. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  45485. - else file=$$i; fi; \
  45486. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  45487. - case "$$ext" in \
  45488. - 1*) ;; \
  45489. - *) ext='1' ;; \
  45490. - esac; \
  45491. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  45492. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  45493. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  45494. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
  45495. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
  45496. - done
  45497. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  45498. + while read files; do \
  45499. + test -z "$$files" || { \
  45500. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
  45501. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
  45502. + done; }
  45503. +
  45504. uninstall-man1:
  45505. @$(NORMAL_UNINSTALL)
  45506. - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
  45507. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  45508. - for i in $$l2; do \
  45509. - case "$$i" in \
  45510. - *.1*) list="$$list $$i" ;; \
  45511. - esac; \
  45512. - done; \
  45513. - for i in $$list; do \
  45514. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  45515. - case "$$ext" in \
  45516. - 1*) ;; \
  45517. - *) ext='1' ;; \
  45518. - esac; \
  45519. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  45520. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  45521. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  45522. - echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
  45523. - rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
  45524. - done
  45525. + @list=''; test -n "$(man1dir)" || exit 0; \
  45526. + files=`{ for i in $$list; do echo "$$i"; done; \
  45527. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  45528. + sed -n '/\.1[a-z]*$$/p'; \
  45529. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  45530. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  45531. + test -z "$$files" || { \
  45532. + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
  45533. + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
  45534. tags: TAGS
  45535. TAGS:
  45536. @@ -322,6 +349,19 @@
  45537. distdir: $(DISTFILES)
  45538. + @list='$(MANS)'; if test -n "$$list"; then \
  45539. + list=`for p in $$list; do \
  45540. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  45541. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  45542. + if test -n "$$list" && \
  45543. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  45544. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  45545. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  45546. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  45547. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  45548. + exit 1; \
  45549. + else :; fi; \
  45550. + else :; fi
  45551. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45552. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45553. list='$(DISTFILES)'; \
  45554. @@ -337,13 +377,17 @@
  45555. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45556. if test -d $$d/$$file; then \
  45557. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45558. + if test -d "$(distdir)/$$file"; then \
  45559. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45560. + fi; \
  45561. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45562. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45563. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45564. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45565. fi; \
  45566. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45567. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45568. else \
  45569. - test -f $(distdir)/$$file \
  45570. - || cp -p $$d/$$file $(distdir)/$$file \
  45571. + test -f "$(distdir)/$$file" \
  45572. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45573. || exit 1; \
  45574. fi; \
  45575. done
  45576. @@ -375,6 +419,7 @@
  45577. distclean-generic:
  45578. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45579. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45580. maintainer-clean-generic:
  45581. @echo "This command is intended for maintainers to use"
  45582. @@ -393,6 +438,8 @@
  45583. html: html-am
  45584. +html-am:
  45585. +
  45586. info: info-am
  45587. info-am:
  45588. @@ -401,18 +448,28 @@
  45589. install-dvi: install-dvi-am
  45590. +install-dvi-am:
  45591. +
  45592. install-exec-am:
  45593. install-html: install-html-am
  45594. +install-html-am:
  45595. +
  45596. install-info: install-info-am
  45597. +install-info-am:
  45598. +
  45599. install-man: install-man1
  45600. install-pdf: install-pdf-am
  45601. +install-pdf-am:
  45602. +
  45603. install-ps: install-ps-am
  45604. +install-ps-am:
  45605. +
  45606. installcheck-am:
  45607. maintainer-clean: maintainer-clean-am
  45608. @@ -472,6 +529,7 @@
  45609. @HAVE_JW_TRUE@ if test -d $(DESTDIR)$(htmldir); then rmdir $(DESTDIR)$(htmldir); fi
  45610. @HAVE_JW_FALSE@install-data-local:
  45611. @HAVE_JW_FALSE@uninstall-local:
  45612. +
  45613. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45614. # Otherwise a system limit (for SysV at least) may be exceeded.
  45615. .NOEXPORT:
  45616. diff -Nur esound-0.2.41.orig/INSTALL esound-0.2.41/INSTALL
  45617. --- esound-0.2.41.orig/INSTALL 2008-11-18 21:54:40.000000000 +0100
  45618. +++ esound-0.2.41/INSTALL 2011-02-24 20:05:04.033554304 +0100
  45619. @@ -2,18 +2,24 @@
  45620. *************************
  45621. Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  45622. -2006, 2007 Free Software Foundation, Inc.
  45623. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  45624. -This file is free documentation; the Free Software Foundation gives
  45625. -unlimited permission to copy, distribute and modify it.
  45626. + Copying and distribution of this file, with or without modification,
  45627. +are permitted in any medium without royalty provided the copyright
  45628. +notice and this notice are preserved. This file is offered as-is,
  45629. +without warranty of any kind.
  45630. Basic Installation
  45631. ==================
  45632. -Briefly, the shell commands `./configure; make; make install' should
  45633. + Briefly, the shell commands `./configure; make; make install' should
  45634. configure, build, and install this package. The following
  45635. more-detailed instructions are generic; see the `README' file for
  45636. -instructions specific to this package.
  45637. +instructions specific to this package. Some packages provide this
  45638. +`INSTALL' file but do not implement all of the features documented
  45639. +below. The lack of an optional feature in a given package is not
  45640. +necessarily a bug. More recommendations for GNU packages can be found
  45641. +in *note Makefile Conventions: (standards)Makefile Conventions.
  45642. The `configure' shell script attempts to guess correct values for
  45643. various system-dependent variables used during compilation. It uses
  45644. @@ -42,7 +48,7 @@
  45645. you want to change it or regenerate `configure' using a newer version
  45646. of `autoconf'.
  45647. -The simplest way to compile this package is:
  45648. + The simplest way to compile this package is:
  45649. 1. `cd' to the directory containing the package's source code and type
  45650. `./configure' to configure the package for your system.
  45651. @@ -53,12 +59,22 @@
  45652. 2. Type `make' to compile the package.
  45653. 3. Optionally, type `make check' to run any self-tests that come with
  45654. - the package.
  45655. + the package, generally using the just-built uninstalled binaries.
  45656. 4. Type `make install' to install the programs and any data files and
  45657. - documentation.
  45658. + documentation. When installing into a prefix owned by root, it is
  45659. + recommended that the package be configured and built as a regular
  45660. + user, and only the `make install' phase executed with root
  45661. + privileges.
  45662. +
  45663. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  45664. + this time using the binaries in their final installed location.
  45665. + This target does not install anything. Running this target as a
  45666. + regular user, particularly if the prior `make install' required
  45667. + root privileges, verifies that the installation completed
  45668. + correctly.
  45669. - 5. You can remove the program binaries and object files from the
  45670. + 6. You can remove the program binaries and object files from the
  45671. source code directory by typing `make clean'. To also remove the
  45672. files that `configure' created (so you can compile the package for
  45673. a different kind of computer), type `make distclean'. There is
  45674. @@ -67,15 +83,22 @@
  45675. all sorts of other programs in order to regenerate files that came
  45676. with the distribution.
  45677. - 6. Often, you can also type `make uninstall' to remove the installed
  45678. - files again.
  45679. + 7. Often, you can also type `make uninstall' to remove the installed
  45680. + files again. In practice, not all packages have tested that
  45681. + uninstallation works correctly, even though it is required by the
  45682. + GNU Coding Standards.
  45683. +
  45684. + 8. Some packages, particularly those that use Automake, provide `make
  45685. + distcheck', which can by used by developers to test that all other
  45686. + targets like `make install' and `make uninstall' work correctly.
  45687. + This target is generally not run by end users.
  45688. Compilers and Options
  45689. =====================
  45690. -Some systems require unusual options for compilation or linking that the
  45691. -`configure' script does not know about. Run `./configure --help' for
  45692. -details on some of the pertinent environment variables.
  45693. + Some systems require unusual options for compilation or linking that
  45694. +the `configure' script does not know about. Run `./configure --help'
  45695. +for details on some of the pertinent environment variables.
  45696. You can give `configure' initial values for configuration parameters
  45697. by setting variables in the command line or in the environment. Here
  45698. @@ -88,25 +111,41 @@
  45699. Compiling For Multiple Architectures
  45700. ====================================
  45701. -You can compile the package for more than one kind of computer at the
  45702. + You can compile the package for more than one kind of computer at the
  45703. same time, by placing the object files for each architecture in their
  45704. own directory. To do this, you can use GNU `make'. `cd' to the
  45705. directory where you want the object files and executables to go and run
  45706. the `configure' script. `configure' automatically checks for the
  45707. -source code in the directory that `configure' is in and in `..'.
  45708. +source code in the directory that `configure' is in and in `..'. This
  45709. +is known as a "VPATH" build.
  45710. With a non-GNU `make', it is safer to compile the package for one
  45711. architecture at a time in the source code directory. After you have
  45712. installed the package for one architecture, use `make distclean' before
  45713. reconfiguring for another architecture.
  45714. + On MacOS X 10.5 and later systems, you can create libraries and
  45715. +executables that work on multiple system types--known as "fat" or
  45716. +"universal" binaries--by specifying multiple `-arch' options to the
  45717. +compiler but only a single `-arch' option to the preprocessor. Like
  45718. +this:
  45719. +
  45720. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  45721. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  45722. + CPP="gcc -E" CXXCPP="g++ -E"
  45723. +
  45724. + This is not guaranteed to produce working output in all cases, you
  45725. +may have to build one architecture at a time and combine the results
  45726. +using the `lipo' tool if you have problems.
  45727. +
  45728. Installation Names
  45729. ==================
  45730. -By default, `make install' installs the package's commands under
  45731. + By default, `make install' installs the package's commands under
  45732. `/usr/local/bin', include files under `/usr/local/include', etc. You
  45733. can specify an installation prefix other than `/usr/local' by giving
  45734. -`configure' the option `--prefix=PREFIX'.
  45735. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  45736. +absolute file name.
  45737. You can specify separate installation prefixes for
  45738. architecture-specific files and architecture-independent files. If you
  45739. @@ -117,16 +156,47 @@
  45740. In addition, if you use an unusual directory layout you can give
  45741. options like `--bindir=DIR' to specify different values for particular
  45742. kinds of files. Run `configure --help' for a list of the directories
  45743. -you can set and what kinds of files go in them.
  45744. +you can set and what kinds of files go in them. In general, the
  45745. +default for these options is expressed in terms of `${prefix}', so that
  45746. +specifying just `--prefix' will affect all of the other directory
  45747. +specifications that were not explicitly provided.
  45748. +
  45749. + The most portable way to affect installation locations is to pass the
  45750. +correct locations to `configure'; however, many packages provide one or
  45751. +both of the following shortcuts of passing variable assignments to the
  45752. +`make install' command line to change installation locations without
  45753. +having to reconfigure or recompile.
  45754. +
  45755. + The first method involves providing an override variable for each
  45756. +affected directory. For example, `make install
  45757. +prefix=/alternate/directory' will choose an alternate location for all
  45758. +directory configuration variables that were expressed in terms of
  45759. +`${prefix}'. Any directories that were specified during `configure',
  45760. +but not in terms of `${prefix}', must each be overridden at install
  45761. +time for the entire installation to be relocated. The approach of
  45762. +makefile variable overrides for each directory variable is required by
  45763. +the GNU Coding Standards, and ideally causes no recompilation.
  45764. +However, some platforms have known limitations with the semantics of
  45765. +shared libraries that end up requiring recompilation when using this
  45766. +method, particularly noticeable in packages that use GNU Libtool.
  45767. +
  45768. + The second method involves providing the `DESTDIR' variable. For
  45769. +example, `make install DESTDIR=/alternate/directory' will prepend
  45770. +`/alternate/directory' before all installation names. The approach of
  45771. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  45772. +does not work on platforms that have drive letters. On the other hand,
  45773. +it does better at avoiding recompilation issues, and works well even
  45774. +when some directory options were not specified in terms of `${prefix}'
  45775. +at `configure' time.
  45776. +
  45777. +Optional Features
  45778. +=================
  45779. If the package supports it, you can cause programs to be installed
  45780. with an extra prefix or suffix on their names by giving `configure' the
  45781. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  45782. -Optional Features
  45783. -=================
  45784. -
  45785. -Some packages pay attention to `--enable-FEATURE' options to
  45786. + Some packages pay attention to `--enable-FEATURE' options to
  45787. `configure', where FEATURE indicates an optional part of the package.
  45788. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  45789. is something like `gnu-as' or `x' (for the X Window System). The
  45790. @@ -138,14 +208,53 @@
  45791. you can use the `configure' options `--x-includes=DIR' and
  45792. `--x-libraries=DIR' to specify their locations.
  45793. + Some packages offer the ability to configure how verbose the
  45794. +execution of `make' will be. For these packages, running `./configure
  45795. +--enable-silent-rules' sets the default to minimal output, which can be
  45796. +overridden with `make V=1'; while running `./configure
  45797. +--disable-silent-rules' sets the default to verbose, which can be
  45798. +overridden with `make V=0'.
  45799. +
  45800. +Particular systems
  45801. +==================
  45802. +
  45803. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  45804. +CC is not installed, it is recommended to use the following options in
  45805. +order to use an ANSI C compiler:
  45806. +
  45807. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  45808. +
  45809. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  45810. +
  45811. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  45812. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  45813. +a workaround. If GNU CC is not installed, it is therefore recommended
  45814. +to try
  45815. +
  45816. + ./configure CC="cc"
  45817. +
  45818. +and if that doesn't work, try
  45819. +
  45820. + ./configure CC="cc -nodtk"
  45821. +
  45822. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  45823. +directory contains several dysfunctional programs; working variants of
  45824. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  45825. +in your `PATH', put it _after_ `/usr/bin'.
  45826. +
  45827. + On Haiku, software installed for all users goes in `/boot/common',
  45828. +not `/usr/local'. It is recommended to use the following options:
  45829. +
  45830. + ./configure --prefix=/boot/common
  45831. +
  45832. Specifying the System Type
  45833. ==========================
  45834. -There may be some features `configure' cannot figure out automatically,
  45835. -but needs to determine by the type of machine the package will run on.
  45836. -Usually, assuming the package is built to be run on the _same_
  45837. -architectures, `configure' can figure that out, but if it prints a
  45838. -message saying it cannot guess the machine type, give it the
  45839. + There may be some features `configure' cannot figure out
  45840. +automatically, but needs to determine by the type of machine the package
  45841. +will run on. Usually, assuming the package is built to be run on the
  45842. +_same_ architectures, `configure' can figure that out, but if it prints
  45843. +a message saying it cannot guess the machine type, give it the
  45844. `--build=TYPE' option. TYPE can either be a short name for the system
  45845. type, such as `sun4', or a canonical name which has the form:
  45846. @@ -153,7 +262,8 @@
  45847. where SYSTEM can have one of these forms:
  45848. - OS KERNEL-OS
  45849. + OS
  45850. + KERNEL-OS
  45851. See the file `config.sub' for the possible values of each field. If
  45852. `config.sub' isn't included in this package, then this package doesn't
  45853. @@ -171,9 +281,9 @@
  45854. Sharing Defaults
  45855. ================
  45856. -If you want to set default values for `configure' scripts to share, you
  45857. -can create a site shell script called `config.site' that gives default
  45858. -values for variables like `CC', `cache_file', and `prefix'.
  45859. + If you want to set default values for `configure' scripts to share,
  45860. +you can create a site shell script called `config.site' that gives
  45861. +default values for variables like `CC', `cache_file', and `prefix'.
  45862. `configure' looks for `PREFIX/share/config.site' if it exists, then
  45863. `PREFIX/etc/config.site' if it exists. Or, you can set the
  45864. `CONFIG_SITE' environment variable to the location of the site script.
  45865. @@ -182,7 +292,7 @@
  45866. Defining Variables
  45867. ==================
  45868. -Variables not defined in a site shell script can be set in the
  45869. + Variables not defined in a site shell script can be set in the
  45870. environment passed to `configure'. However, some packages may run
  45871. configure again during the build, and the customized values of these
  45872. variables may be lost. In order to avoid this problem, you should set
  45873. @@ -201,11 +311,19 @@
  45874. `configure' Invocation
  45875. ======================
  45876. -`configure' recognizes the following options to control how it operates.
  45877. + `configure' recognizes the following options to control how it
  45878. +operates.
  45879. `--help'
  45880. `-h'
  45881. - Print a summary of the options to `configure', and exit.
  45882. + Print a summary of all of the options to `configure', and exit.
  45883. +
  45884. +`--help=short'
  45885. +`--help=recursive'
  45886. + Print a summary of the options unique to this package's
  45887. + `configure', and exit. The `short' variant lists options used
  45888. + only in the top level, while the `recursive' variant lists options
  45889. + also present in any nested packages.
  45890. `--version'
  45891. `-V'
  45892. @@ -232,6 +350,16 @@
  45893. Look for the package's source code in directory DIR. Usually
  45894. `configure' can determine that directory automatically.
  45895. +`--prefix=DIR'
  45896. + Use DIR as the installation prefix. *note Installation Names::
  45897. + for more details, including other options available for fine-tuning
  45898. + the installation locations.
  45899. +
  45900. +`--no-create'
  45901. +`-n'
  45902. + Run the configure checks, but stop before creating any output
  45903. + files.
  45904. +
  45905. `configure' also accepts some other, not widely useful, options. Run
  45906. `configure --help' for more details.
  45907. diff -Nur esound-0.2.41.orig/install-sh esound-0.2.41/install-sh
  45908. --- esound-0.2.41.orig/install-sh 2008-11-18 21:54:40.000000000 +0100
  45909. +++ esound-0.2.41/install-sh 2011-02-24 20:05:03.943550777 +0100
  45910. @@ -1,7 +1,7 @@
  45911. #!/bin/sh
  45912. # install - install a program, script, or datafile
  45913. -scriptversion=2006-12-25.00
  45914. +scriptversion=2009-04-28.21; # UTC
  45915. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  45916. # later released in X11R6 (xc/config/util/install.sh) with the
  45917. @@ -515,5 +515,6 @@
  45918. # eval: (add-hook 'write-file-hooks 'time-stamp)
  45919. # time-stamp-start: "scriptversion="
  45920. # time-stamp-format: "%:y-%02m-%02d.%02H"
  45921. -# time-stamp-end: "$"
  45922. +# time-stamp-time-zone: "UTC"
  45923. +# time-stamp-end: "; # UTC"
  45924. # End:
  45925. diff -Nur esound-0.2.41.orig/ltmain.sh esound-0.2.41/ltmain.sh
  45926. --- esound-0.2.41.orig/ltmain.sh 2008-06-06 20:28:34.000000000 +0200
  45927. +++ esound-0.2.41/ltmain.sh 2011-02-24 20:04:59.517306536 +0100
  45928. @@ -1,52 +1,83 @@
  45929. -# ltmain.sh - Provide generalized library-building support services.
  45930. -# NOTE: Changing this file will not affect anything until you rerun configure.
  45931. -#
  45932. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  45933. -# 2007, 2008 Free Software Foundation, Inc.
  45934. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45935. -#
  45936. -# This program is free software; you can redistribute it and/or modify
  45937. +# Generated from ltmain.m4sh.
  45938. +
  45939. +# ltmain.sh (GNU libtool) 2.2.6b
  45940. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45941. +
  45942. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  45943. +# This is free software; see the source for copying conditions. There is NO
  45944. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  45945. +
  45946. +# GNU Libtool is free software; you can redistribute it and/or modify
  45947. # it under the terms of the GNU General Public License as published by
  45948. # the Free Software Foundation; either version 2 of the License, or
  45949. # (at your option) any later version.
  45950. #
  45951. -# This program is distributed in the hope that it will be useful, but
  45952. +# As a special exception to the GNU General Public License,
  45953. +# if you distribute this file as part of a program or library that
  45954. +# is built using GNU Libtool, you may include this file under the
  45955. +# same distribution terms that you use for the rest of that program.
  45956. +#
  45957. +# GNU Libtool is distributed in the hope that it will be useful, but
  45958. # WITHOUT ANY WARRANTY; without even the implied warranty of
  45959. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  45960. # General Public License for more details.
  45961. #
  45962. # You should have received a copy of the GNU General Public License
  45963. -# along with this program; if not, write to the Free Software
  45964. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45965. -#
  45966. -# As a special exception to the GNU General Public License, if you
  45967. -# distribute this file as part of a program that contains a
  45968. -# configuration script generated by Autoconf, you may include it under
  45969. -# the same distribution terms that you use for the rest of that program.
  45970. -
  45971. -basename="s,^.*/,,g"
  45972. -
  45973. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  45974. -# is ksh but when the shell is invoked as "sh" and the current value of
  45975. -# the _XPG environment variable is not equal to 1 (one), the special
  45976. -# positional parameter $0, within a function call, is the name of the
  45977. -# function.
  45978. -progpath="$0"
  45979. -
  45980. -# The name of this program:
  45981. -progname=`echo "$progpath" | $SED $basename`
  45982. -modename="$progname"
  45983. +# along with GNU Libtool; see the file COPYING. If not, a copy
  45984. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  45985. +# or obtained by writing to the Free Software Foundation, Inc.,
  45986. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45987. -# Global variables:
  45988. -EXIT_SUCCESS=0
  45989. -EXIT_FAILURE=1
  45990. +# Usage: $progname [OPTION]... [MODE-ARG]...
  45991. +#
  45992. +# Provide generalized library-building support services.
  45993. +#
  45994. +# --config show all configuration variables
  45995. +# --debug enable verbose shell tracing
  45996. +# -n, --dry-run display commands without modifying any files
  45997. +# --features display basic configuration information and exit
  45998. +# --mode=MODE use operation mode MODE
  45999. +# --preserve-dup-deps don't remove duplicate dependency libraries
  46000. +# --quiet, --silent don't print informational messages
  46001. +# --tag=TAG use configuration variables from tag TAG
  46002. +# -v, --verbose print informational messages (default)
  46003. +# --version print version information
  46004. +# -h, --help print short or long help message
  46005. +#
  46006. +# MODE must be one of the following:
  46007. +#
  46008. +# clean remove files from the build directory
  46009. +# compile compile a source file into a libtool object
  46010. +# execute automatically set library path, then run a program
  46011. +# finish complete the installation of libtool libraries
  46012. +# install install libraries or executables
  46013. +# link create a library or an executable
  46014. +# uninstall remove libraries from an installed directory
  46015. +#
  46016. +# MODE-ARGS vary depending on the MODE.
  46017. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  46018. +#
  46019. +# When reporting a bug, please describe a test case to reproduce it and
  46020. +# include the following information:
  46021. +#
  46022. +# host-triplet: $host
  46023. +# shell: $SHELL
  46024. +# compiler: $LTCC
  46025. +# compiler flags: $LTCFLAGS
  46026. +# linker: $LD (gnu? $with_gnu_ld)
  46027. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  46028. +# automake: $automake_version
  46029. +# autoconf: $autoconf_version
  46030. +#
  46031. +# Report bugs to <bug-libtool@gnu.org>.
  46032. PROGRAM=ltmain.sh
  46033. PACKAGE=libtool
  46034. -VERSION=1.5.26
  46035. -TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
  46036. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  46037. +TIMESTAMP=""
  46038. +package_revision=1.3017
  46039. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  46040. +# Be Bourne compatible
  46041. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  46042. emulate sh
  46043. NULLCMD=:
  46044. @@ -60,104 +91,261 @@
  46045. BIN_SH=xpg4; export BIN_SH # for Tru64
  46046. DUALCASE=1; export DUALCASE # for MKS sh
  46047. -# Check that we have a working $echo.
  46048. -if test "X$1" = X--no-reexec; then
  46049. - # Discard the --no-reexec flag, and continue.
  46050. - shift
  46051. -elif test "X$1" = X--fallback-echo; then
  46052. - # Avoid inline document here, it may be left over
  46053. - :
  46054. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  46055. - # Yippee, $echo works!
  46056. - :
  46057. -else
  46058. - # Restart under the correct shell, and then maybe $echo will work.
  46059. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  46060. -fi
  46061. -
  46062. -if test "X$1" = X--fallback-echo; then
  46063. - # used as fallback echo
  46064. - shift
  46065. - cat <<EOF
  46066. -$*
  46067. -EOF
  46068. - exit $EXIT_SUCCESS
  46069. -fi
  46070. -
  46071. -default_mode=
  46072. -help="Try \`$progname --help' for more information."
  46073. -magic="%%%MAGIC variable%%%"
  46074. -mkdir="mkdir"
  46075. -mv="mv -f"
  46076. -rm="rm -f"
  46077. -
  46078. -# Sed substitution that helps us do robust quoting. It backslashifies
  46079. -# metacharacters that are still active within double-quoted strings.
  46080. -Xsed="${SED}"' -e 1s/^X//'
  46081. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  46082. -# test EBCDIC or ASCII
  46083. -case `echo X|tr X '\101'` in
  46084. - A) # ASCII based system
  46085. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  46086. - SP2NL='tr \040 \012'
  46087. - NL2SP='tr \015\012 \040\040'
  46088. - ;;
  46089. - *) # EBCDIC based system
  46090. - SP2NL='tr \100 \n'
  46091. - NL2SP='tr \r\n \100\100'
  46092. - ;;
  46093. -esac
  46094. -
  46095. -# NLS nuisances.
  46096. +# NLS nuisances: We save the old values to restore during execute mode.
  46097. # Only set LANG and LC_ALL to C if already set.
  46098. # These must not be set unconditionally because not all systems understand
  46099. # e.g. LANG=C (notably SCO).
  46100. -# We save the old values to restore during execute mode.
  46101. -lt_env=
  46102. +lt_user_locale=
  46103. +lt_safe_locale=
  46104. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  46105. do
  46106. eval "if test \"\${$lt_var+set}\" = set; then
  46107. - save_$lt_var=\$$lt_var
  46108. - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
  46109. - $lt_var=C
  46110. + save_$lt_var=\$$lt_var
  46111. + $lt_var=C
  46112. export $lt_var
  46113. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  46114. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  46115. fi"
  46116. done
  46117. -if test -n "$lt_env"; then
  46118. - lt_env="env $lt_env"
  46119. -fi
  46120. +$lt_unset CDPATH
  46121. +
  46122. +
  46123. +
  46124. +
  46125. +
  46126. +: ${CP="cp -f"}
  46127. +: ${ECHO="echo"}
  46128. +: ${EGREP="/bin/grep -E"}
  46129. +: ${FGREP="/bin/grep -F"}
  46130. +: ${GREP="/bin/grep"}
  46131. +: ${LN_S="ln -s"}
  46132. +: ${MAKE="make"}
  46133. +: ${MKDIR="mkdir"}
  46134. +: ${MV="mv -f"}
  46135. +: ${RM="rm -f"}
  46136. +: ${SED="/bin/sed"}
  46137. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  46138. +: ${Xsed="$SED -e 1s/^X//"}
  46139. +
  46140. +# Global variables:
  46141. +EXIT_SUCCESS=0
  46142. +EXIT_FAILURE=1
  46143. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  46144. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  46145. +
  46146. +exit_status=$EXIT_SUCCESS
  46147. # Make sure IFS has a sensible default
  46148. lt_nl='
  46149. '
  46150. IFS=" $lt_nl"
  46151. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  46152. - $echo "$modename: not configured to build any kind of library" 1>&2
  46153. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  46154. - exit $EXIT_FAILURE
  46155. -fi
  46156. +dirname="s,/[^/]*$,,"
  46157. +basename="s,^.*/,,"
  46158. -# Global variables.
  46159. -mode=$default_mode
  46160. -nonopt=
  46161. -prev=
  46162. -prevopt=
  46163. -run=
  46164. -show="$echo"
  46165. -show_help=
  46166. -execute_dlfiles=
  46167. -duplicate_deps=no
  46168. -preserve_args=
  46169. -lo2o="s/\\.lo\$/.${objext}/"
  46170. -o2lo="s/\\.${objext}\$/.lo/"
  46171. -extracted_archives=
  46172. -extracted_serial=0
  46173. +# func_dirname_and_basename file append nondir_replacement
  46174. +# perform func_basename and func_dirname in a single function
  46175. +# call:
  46176. +# dirname: Compute the dirname of FILE. If nonempty,
  46177. +# add APPEND to the result, otherwise set result
  46178. +# to NONDIR_REPLACEMENT.
  46179. +# value returned in "$func_dirname_result"
  46180. +# basename: Compute filename of FILE.
  46181. +# value retuned in "$func_basename_result"
  46182. +# Implementation must be kept synchronized with func_dirname
  46183. +# and func_basename. For efficiency, we do not delegate to
  46184. +# those functions but instead duplicate the functionality here.
  46185. +func_dirname_and_basename ()
  46186. +{
  46187. + # Extract subdirectory from the argument.
  46188. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  46189. + if test "X$func_dirname_result" = "X${1}"; then
  46190. + func_dirname_result="${3}"
  46191. + else
  46192. + func_dirname_result="$func_dirname_result${2}"
  46193. + fi
  46194. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  46195. +}
  46196. +
  46197. +# Generated shell functions inserted here.
  46198. +
  46199. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  46200. +# is ksh but when the shell is invoked as "sh" and the current value of
  46201. +# the _XPG environment variable is not equal to 1 (one), the special
  46202. +# positional parameter $0, within a function call, is the name of the
  46203. +# function.
  46204. +progpath="$0"
  46205. +
  46206. +# The name of this program:
  46207. +# In the unlikely event $progname began with a '-', it would play havoc with
  46208. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  46209. +func_dirname_and_basename "$progpath"
  46210. +progname=$func_basename_result
  46211. +case $progname in
  46212. + -*) progname=./$progname ;;
  46213. +esac
  46214. +
  46215. +# Make sure we have an absolute path for reexecution:
  46216. +case $progpath in
  46217. + [\\/]*|[A-Za-z]:\\*) ;;
  46218. + *[\\/]*)
  46219. + progdir=$func_dirname_result
  46220. + progdir=`cd "$progdir" && pwd`
  46221. + progpath="$progdir/$progname"
  46222. + ;;
  46223. + *)
  46224. + save_IFS="$IFS"
  46225. + IFS=:
  46226. + for progdir in $PATH; do
  46227. + IFS="$save_IFS"
  46228. + test -x "$progdir/$progname" && break
  46229. + done
  46230. + IFS="$save_IFS"
  46231. + test -n "$progdir" || progdir=`pwd`
  46232. + progpath="$progdir/$progname"
  46233. + ;;
  46234. +esac
  46235. +
  46236. +# Sed substitution that helps us do robust quoting. It backslashifies
  46237. +# metacharacters that are still active within double-quoted strings.
  46238. +Xsed="${SED}"' -e 1s/^X//'
  46239. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  46240. +
  46241. +# Same as above, but do not quote variable references.
  46242. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  46243. +
  46244. +# Re-`\' parameter expansions in output of double_quote_subst that were
  46245. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  46246. +# in input to double_quote_subst, that '$' was protected from expansion.
  46247. +# Since each input `\' is now two `\'s, look for any number of runs of
  46248. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  46249. +bs='\\'
  46250. +bs2='\\\\'
  46251. +bs4='\\\\\\\\'
  46252. +dollar='\$'
  46253. +sed_double_backslash="\
  46254. + s/$bs4/&\\
  46255. +/g
  46256. + s/^$bs2$dollar/$bs&/
  46257. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  46258. + s/\n//g"
  46259. +
  46260. +# Standard options:
  46261. +opt_dry_run=false
  46262. +opt_help=false
  46263. +opt_quiet=false
  46264. +opt_verbose=false
  46265. +opt_warning=:
  46266. +
  46267. +# func_echo arg...
  46268. +# Echo program name prefixed message, along with the current mode
  46269. +# name if it has been set yet.
  46270. +func_echo ()
  46271. +{
  46272. + $ECHO "$progname${mode+: }$mode: $*"
  46273. +}
  46274. +
  46275. +# func_verbose arg...
  46276. +# Echo program name prefixed message in verbose mode only.
  46277. +func_verbose ()
  46278. +{
  46279. + $opt_verbose && func_echo ${1+"$@"}
  46280. +
  46281. + # A bug in bash halts the script if the last line of a function
  46282. + # fails when set -e is in force, so we need another command to
  46283. + # work around that:
  46284. + :
  46285. +}
  46286. +
  46287. +# func_error arg...
  46288. +# Echo program name prefixed message to standard error.
  46289. +func_error ()
  46290. +{
  46291. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  46292. +}
  46293. +
  46294. +# func_warning arg...
  46295. +# Echo program name prefixed warning message to standard error.
  46296. +func_warning ()
  46297. +{
  46298. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  46299. +
  46300. + # bash bug again:
  46301. + :
  46302. +}
  46303. +
  46304. +# func_fatal_error arg...
  46305. +# Echo program name prefixed message to standard error, and exit.
  46306. +func_fatal_error ()
  46307. +{
  46308. + func_error ${1+"$@"}
  46309. + exit $EXIT_FAILURE
  46310. +}
  46311. +
  46312. +# func_fatal_help arg...
  46313. +# Echo program name prefixed message to standard error, followed by
  46314. +# a help hint, and exit.
  46315. +func_fatal_help ()
  46316. +{
  46317. + func_error ${1+"$@"}
  46318. + func_fatal_error "$help"
  46319. +}
  46320. +help="Try \`$progname --help' for more information." ## default
  46321. +
  46322. +
  46323. +# func_grep expression filename
  46324. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  46325. +func_grep ()
  46326. +{
  46327. + $GREP "$1" "$2" >/dev/null 2>&1
  46328. +}
  46329. +
  46330. +
  46331. +# func_mkdir_p directory-path
  46332. +# Make sure the entire path to DIRECTORY-PATH is available.
  46333. +func_mkdir_p ()
  46334. +{
  46335. + my_directory_path="$1"
  46336. + my_dir_list=
  46337. +
  46338. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  46339. +
  46340. + # Protect directory names starting with `-'
  46341. + case $my_directory_path in
  46342. + -*) my_directory_path="./$my_directory_path" ;;
  46343. + esac
  46344. +
  46345. + # While some portion of DIR does not yet exist...
  46346. + while test ! -d "$my_directory_path"; do
  46347. + # ...make a list in topmost first order. Use a colon delimited
  46348. + # list incase some portion of path contains whitespace.
  46349. + my_dir_list="$my_directory_path:$my_dir_list"
  46350. +
  46351. + # If the last portion added has no slash in it, the list is done
  46352. + case $my_directory_path in */*) ;; *) break ;; esac
  46353. +
  46354. + # ...otherwise throw away the child directory and loop
  46355. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  46356. + done
  46357. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  46358. +
  46359. + save_mkdir_p_IFS="$IFS"; IFS=':'
  46360. + for my_dir in $my_dir_list; do
  46361. + IFS="$save_mkdir_p_IFS"
  46362. + # mkdir can fail with a `File exist' error if two processes
  46363. + # try to create one of the directories concurrently. Don't
  46364. + # stop in that case!
  46365. + $MKDIR "$my_dir" 2>/dev/null || :
  46366. + done
  46367. + IFS="$save_mkdir_p_IFS"
  46368. +
  46369. + # Bail out if we (or some other process) failed to create a directory.
  46370. + test -d "$my_directory_path" || \
  46371. + func_fatal_error "Failed to create \`$1'"
  46372. + fi
  46373. +}
  46374. -#####################################
  46375. -# Shell function definitions:
  46376. -# This seems to be the best place for them
  46377. # func_mktempdir [string]
  46378. # Make a temporary directory that won't clash with other running
  46379. @@ -167,7 +355,7 @@
  46380. {
  46381. my_template="${TMPDIR-/tmp}/${1-$progname}"
  46382. - if test "$run" = ":"; then
  46383. + if test "$opt_dry_run" = ":"; then
  46384. # Return a directory name, but don't create it in dry-run mode
  46385. my_tmpdir="${my_template}-$$"
  46386. else
  46387. @@ -176,526 +364,787 @@
  46388. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  46389. if test ! -d "$my_tmpdir"; then
  46390. - # Failing that, at least try and use $RANDOM to avoid a race
  46391. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  46392. + # Failing that, at least try and use $RANDOM to avoid a race
  46393. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  46394. - save_mktempdir_umask=`umask`
  46395. - umask 0077
  46396. - $mkdir "$my_tmpdir"
  46397. - umask $save_mktempdir_umask
  46398. + save_mktempdir_umask=`umask`
  46399. + umask 0077
  46400. + $MKDIR "$my_tmpdir"
  46401. + umask $save_mktempdir_umask
  46402. fi
  46403. # If we're not in dry-run mode, bomb out on failure
  46404. - test -d "$my_tmpdir" || {
  46405. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  46406. - exit $EXIT_FAILURE
  46407. - }
  46408. + test -d "$my_tmpdir" || \
  46409. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  46410. fi
  46411. - $echo "X$my_tmpdir" | $Xsed
  46412. + $ECHO "X$my_tmpdir" | $Xsed
  46413. }
  46414. -# func_win32_libid arg
  46415. -# return the library type of file 'arg'
  46416. -#
  46417. -# Need a lot of goo to handle *both* DLLs and import libs
  46418. -# Has to be a shell function in order to 'eat' the argument
  46419. -# that is supplied when $file_magic_command is called.
  46420. -func_win32_libid ()
  46421. +# func_quote_for_eval arg
  46422. +# Aesthetically quote ARG to be evaled later.
  46423. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  46424. +# is double-quoted, suitable for a subsequent eval, whereas
  46425. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  46426. +# which are still active within double quotes backslashified.
  46427. +func_quote_for_eval ()
  46428. {
  46429. - win32_libid_type="unknown"
  46430. - win32_fileres=`file -L $1 2>/dev/null`
  46431. - case $win32_fileres in
  46432. - *ar\ archive\ import\ library*) # definitely import
  46433. - win32_libid_type="x86 archive import"
  46434. - ;;
  46435. - *ar\ archive*) # could be an import, or static
  46436. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  46437. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  46438. - win32_nmres=`eval $NM -f posix -A $1 | \
  46439. - $SED -n -e '1,100{
  46440. - / I /{
  46441. - s,.*,import,
  46442. - p
  46443. - q
  46444. - }
  46445. - }'`
  46446. - case $win32_nmres in
  46447. - import*) win32_libid_type="x86 archive import";;
  46448. - *) win32_libid_type="x86 archive static";;
  46449. - esac
  46450. - fi
  46451. - ;;
  46452. - *DLL*)
  46453. - win32_libid_type="x86 DLL"
  46454. - ;;
  46455. - *executable*) # but shell scripts are "executable" too...
  46456. - case $win32_fileres in
  46457. - *MS\ Windows\ PE\ Intel*)
  46458. - win32_libid_type="x86 DLL"
  46459. - ;;
  46460. + case $1 in
  46461. + *[\\\`\"\$]*)
  46462. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  46463. + *)
  46464. + func_quote_for_eval_unquoted_result="$1" ;;
  46465. + esac
  46466. +
  46467. + case $func_quote_for_eval_unquoted_result in
  46468. + # Double-quote args containing shell metacharacters to delay
  46469. + # word splitting, command substitution and and variable
  46470. + # expansion for a subsequent eval.
  46471. + # Many Bourne shells cannot handle close brackets correctly
  46472. + # in scan sets, so we specify it separately.
  46473. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46474. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  46475. + ;;
  46476. + *)
  46477. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  46478. esac
  46479. - ;;
  46480. - esac
  46481. - $echo $win32_libid_type
  46482. }
  46483. -# func_infer_tag arg
  46484. -# Infer tagged configuration to use if any are available and
  46485. -# if one wasn't chosen via the "--tag" command line option.
  46486. -# Only attempt this if the compiler in the base compile
  46487. -# command doesn't match the default compiler.
  46488. -# arg is usually of the form 'gcc ...'
  46489. -func_infer_tag ()
  46490. +# func_quote_for_expand arg
  46491. +# Aesthetically quote ARG to be evaled later; same as above,
  46492. +# but do not quote variable references.
  46493. +func_quote_for_expand ()
  46494. {
  46495. - if test -n "$available_tags" && test -z "$tagname"; then
  46496. - CC_quoted=
  46497. - for arg in $CC; do
  46498. - case $arg in
  46499. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46500. - arg="\"$arg\""
  46501. - ;;
  46502. - esac
  46503. - CC_quoted="$CC_quoted $arg"
  46504. - done
  46505. - case $@ in
  46506. - # Blanks in the command may have been stripped by the calling shell,
  46507. - # but not from the CC environment variable when configure was run.
  46508. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  46509. - # Blanks at the start of $base_compile will cause this to fail
  46510. - # if we don't check for them as well.
  46511. + case $1 in
  46512. + *[\\\`\"]*)
  46513. + my_arg=`$ECHO "X$1" | $Xsed \
  46514. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  46515. *)
  46516. - for z in $available_tags; do
  46517. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  46518. - # Evaluate the configuration.
  46519. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  46520. - CC_quoted=
  46521. - for arg in $CC; do
  46522. - # Double-quote args containing other shell metacharacters.
  46523. - case $arg in
  46524. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46525. - arg="\"$arg\""
  46526. - ;;
  46527. - esac
  46528. - CC_quoted="$CC_quoted $arg"
  46529. - done
  46530. - case "$@ " in
  46531. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  46532. - # The compiler in the base compile command matches
  46533. - # the one in the tagged configuration.
  46534. - # Assume this is the tagged configuration we want.
  46535. - tagname=$z
  46536. - break
  46537. - ;;
  46538. - esac
  46539. - fi
  46540. - done
  46541. - # If $tagname still isn't set, then no tagged configuration
  46542. - # was found and let the user know that the "--tag" command
  46543. - # line option must be used.
  46544. - if test -z "$tagname"; then
  46545. - $echo "$modename: unable to infer tagged configuration"
  46546. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  46547. - exit $EXIT_FAILURE
  46548. -# else
  46549. -# $echo "$modename: using $tagname tagged configuration"
  46550. - fi
  46551. - ;;
  46552. - esac
  46553. - fi
  46554. + my_arg="$1" ;;
  46555. + esac
  46556. +
  46557. + case $my_arg in
  46558. + # Double-quote args containing shell metacharacters to delay
  46559. + # word splitting and command substitution for a subsequent eval.
  46560. + # Many Bourne shells cannot handle close brackets correctly
  46561. + # in scan sets, so we specify it separately.
  46562. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46563. + my_arg="\"$my_arg\""
  46564. + ;;
  46565. + esac
  46566. +
  46567. + func_quote_for_expand_result="$my_arg"
  46568. }
  46569. -# func_extract_an_archive dir oldlib
  46570. -func_extract_an_archive ()
  46571. +# func_show_eval cmd [fail_exp]
  46572. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  46573. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  46574. +# is given, then evaluate it.
  46575. +func_show_eval ()
  46576. {
  46577. - f_ex_an_ar_dir="$1"; shift
  46578. - f_ex_an_ar_oldlib="$1"
  46579. + my_cmd="$1"
  46580. + my_fail_exp="${2-:}"
  46581. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  46582. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  46583. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  46584. - :
  46585. - else
  46586. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  46587. - exit $EXIT_FAILURE
  46588. + ${opt_silent-false} || {
  46589. + func_quote_for_expand "$my_cmd"
  46590. + eval "func_echo $func_quote_for_expand_result"
  46591. + }
  46592. +
  46593. + if ${opt_dry_run-false}; then :; else
  46594. + eval "$my_cmd"
  46595. + my_status=$?
  46596. + if test "$my_status" -eq 0; then :; else
  46597. + eval "(exit $my_status); $my_fail_exp"
  46598. + fi
  46599. fi
  46600. }
  46601. -# func_extract_archives gentop oldlib ...
  46602. -func_extract_archives ()
  46603. +
  46604. +# func_show_eval_locale cmd [fail_exp]
  46605. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  46606. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  46607. +# is given, then evaluate it. Use the saved locale for evaluation.
  46608. +func_show_eval_locale ()
  46609. {
  46610. - my_gentop="$1"; shift
  46611. - my_oldlibs=${1+"$@"}
  46612. - my_oldobjs=""
  46613. - my_xlib=""
  46614. - my_xabs=""
  46615. - my_xdir=""
  46616. - my_status=""
  46617. + my_cmd="$1"
  46618. + my_fail_exp="${2-:}"
  46619. +
  46620. + ${opt_silent-false} || {
  46621. + func_quote_for_expand "$my_cmd"
  46622. + eval "func_echo $func_quote_for_expand_result"
  46623. + }
  46624. - $show "${rm}r $my_gentop"
  46625. - $run ${rm}r "$my_gentop"
  46626. - $show "$mkdir $my_gentop"
  46627. - $run $mkdir "$my_gentop"
  46628. - my_status=$?
  46629. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  46630. - exit $my_status
  46631. + if ${opt_dry_run-false}; then :; else
  46632. + eval "$lt_user_locale
  46633. + $my_cmd"
  46634. + my_status=$?
  46635. + eval "$lt_safe_locale"
  46636. + if test "$my_status" -eq 0; then :; else
  46637. + eval "(exit $my_status); $my_fail_exp"
  46638. + fi
  46639. fi
  46640. +}
  46641. - for my_xlib in $my_oldlibs; do
  46642. - # Extract the objects.
  46643. - case $my_xlib in
  46644. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  46645. - *) my_xabs=`pwd`"/$my_xlib" ;;
  46646. - esac
  46647. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  46648. - my_xlib_u=$my_xlib
  46649. - while :; do
  46650. - case " $extracted_archives " in
  46651. - *" $my_xlib_u "*)
  46652. - extracted_serial=`expr $extracted_serial + 1`
  46653. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  46654. - *) break ;;
  46655. - esac
  46656. - done
  46657. - extracted_archives="$extracted_archives $my_xlib_u"
  46658. - my_xdir="$my_gentop/$my_xlib_u"
  46659. - $show "${rm}r $my_xdir"
  46660. - $run ${rm}r "$my_xdir"
  46661. - $show "$mkdir $my_xdir"
  46662. - $run $mkdir "$my_xdir"
  46663. - exit_status=$?
  46664. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  46665. - exit $exit_status
  46666. - fi
  46667. - case $host in
  46668. - *-darwin*)
  46669. - $show "Extracting $my_xabs"
  46670. - # Do not bother doing anything if just a dry run
  46671. - if test -z "$run"; then
  46672. - darwin_orig_dir=`pwd`
  46673. - cd $my_xdir || exit $?
  46674. - darwin_archive=$my_xabs
  46675. - darwin_curdir=`pwd`
  46676. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  46677. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  46678. - if test -n "$darwin_arches"; then
  46679. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  46680. - darwin_arch=
  46681. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  46682. - for darwin_arch in $darwin_arches ; do
  46683. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46684. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  46685. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46686. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  46687. - cd "$darwin_curdir"
  46688. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  46689. - done # $darwin_arches
  46690. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  46691. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  46692. - darwin_file=
  46693. - darwin_files=
  46694. - for darwin_file in $darwin_filelist; do
  46695. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  46696. - lipo -create -output "$darwin_file" $darwin_files
  46697. - done # $darwin_filelist
  46698. - ${rm}r unfat-$$
  46699. - cd "$darwin_orig_dir"
  46700. - else
  46701. - cd "$darwin_orig_dir"
  46702. - func_extract_an_archive "$my_xdir" "$my_xabs"
  46703. - fi # $darwin_arches
  46704. - fi # $run
  46705. - ;;
  46706. - *)
  46707. - func_extract_an_archive "$my_xdir" "$my_xabs"
  46708. - ;;
  46709. - esac
  46710. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  46711. - done
  46712. - func_extract_archives_result="$my_oldobjs"
  46713. +
  46714. +
  46715. +
  46716. +# func_version
  46717. +# Echo version message to standard output and exit.
  46718. +func_version ()
  46719. +{
  46720. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  46721. + s/^# //
  46722. + s/^# *$//
  46723. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  46724. + p
  46725. + }' < "$progpath"
  46726. + exit $?
  46727. +}
  46728. +
  46729. +# func_usage
  46730. +# Echo short help message to standard output and exit.
  46731. +func_usage ()
  46732. +{
  46733. + $SED -n '/^# Usage:/,/# -h/ {
  46734. + s/^# //
  46735. + s/^# *$//
  46736. + s/\$progname/'$progname'/
  46737. + p
  46738. + }' < "$progpath"
  46739. + $ECHO
  46740. + $ECHO "run \`$progname --help | more' for full usage"
  46741. + exit $?
  46742. +}
  46743. +
  46744. +# func_help
  46745. +# Echo long help message to standard output and exit.
  46746. +func_help ()
  46747. +{
  46748. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  46749. + s/^# //
  46750. + s/^# *$//
  46751. + s*\$progname*'$progname'*
  46752. + s*\$host*'"$host"'*
  46753. + s*\$SHELL*'"$SHELL"'*
  46754. + s*\$LTCC*'"$LTCC"'*
  46755. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  46756. + s*\$LD*'"$LD"'*
  46757. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  46758. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  46759. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  46760. + p
  46761. + }' < "$progpath"
  46762. + exit $?
  46763. +}
  46764. +
  46765. +# func_missing_arg argname
  46766. +# Echo program name prefixed message to standard error and set global
  46767. +# exit_cmd.
  46768. +func_missing_arg ()
  46769. +{
  46770. + func_error "missing argument for $1"
  46771. + exit_cmd=exit
  46772. }
  46773. -# End of Shell function definitions
  46774. -#####################################
  46775. -# Darwin sucks
  46776. -eval std_shrext=\"$shrext_cmds\"
  46777. +exit_cmd=:
  46778. -disable_libs=no
  46779. -# Parse our command line options once, thoroughly.
  46780. -while test "$#" -gt 0
  46781. -do
  46782. - arg="$1"
  46783. +
  46784. +
  46785. +
  46786. +# Check that we have a working $ECHO.
  46787. +if test "X$1" = X--no-reexec; then
  46788. + # Discard the --no-reexec flag, and continue.
  46789. shift
  46790. +elif test "X$1" = X--fallback-echo; then
  46791. + # Avoid inline document here, it may be left over
  46792. + :
  46793. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  46794. + # Yippee, $ECHO works!
  46795. + :
  46796. +else
  46797. + # Restart under the correct shell, and then maybe $ECHO will work.
  46798. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  46799. +fi
  46800. - case $arg in
  46801. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  46802. - *) optarg= ;;
  46803. - esac
  46804. +if test "X$1" = X--fallback-echo; then
  46805. + # used as fallback echo
  46806. + shift
  46807. + cat <<EOF
  46808. +$*
  46809. +EOF
  46810. + exit $EXIT_SUCCESS
  46811. +fi
  46812. - # If the previous option needs an argument, assign it.
  46813. - if test -n "$prev"; then
  46814. - case $prev in
  46815. - execute_dlfiles)
  46816. - execute_dlfiles="$execute_dlfiles $arg"
  46817. - ;;
  46818. - tag)
  46819. - tagname="$arg"
  46820. - preserve_args="${preserve_args}=$arg"
  46821. -
  46822. - # Check whether tagname contains only valid characters
  46823. - case $tagname in
  46824. - *[!-_A-Za-z0-9,/]*)
  46825. - $echo "$progname: invalid tag name: $tagname" 1>&2
  46826. - exit $EXIT_FAILURE
  46827. - ;;
  46828. - esac
  46829. +magic="%%%MAGIC variable%%%"
  46830. +magic_exe="%%%MAGIC EXE variable%%%"
  46831. - case $tagname in
  46832. - CC)
  46833. - # Don't test for the "default" C tag, as we know, it's there, but
  46834. - # not specially marked.
  46835. - ;;
  46836. - *)
  46837. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  46838. - taglist="$taglist $tagname"
  46839. - # Evaluate the configuration.
  46840. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  46841. - else
  46842. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  46843. - fi
  46844. - ;;
  46845. - esac
  46846. - ;;
  46847. - *)
  46848. - eval "$prev=\$arg"
  46849. - ;;
  46850. - esac
  46851. +# Global variables.
  46852. +# $mode is unset
  46853. +nonopt=
  46854. +execute_dlfiles=
  46855. +preserve_args=
  46856. +lo2o="s/\\.lo\$/.${objext}/"
  46857. +o2lo="s/\\.${objext}\$/.lo/"
  46858. +extracted_archives=
  46859. +extracted_serial=0
  46860. - prev=
  46861. - prevopt=
  46862. - continue
  46863. - fi
  46864. +opt_dry_run=false
  46865. +opt_duplicate_deps=false
  46866. +opt_silent=false
  46867. +opt_debug=:
  46868. - # Have we seen a non-optional argument yet?
  46869. - case $arg in
  46870. - --help)
  46871. - show_help=yes
  46872. - ;;
  46873. +# If this variable is set in any of the actions, the command in it
  46874. +# will be execed at the end. This prevents here-documents from being
  46875. +# left over by shells.
  46876. +exec_cmd=
  46877. - --version)
  46878. - echo "\
  46879. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  46880. -
  46881. -Copyright (C) 2008 Free Software Foundation, Inc.
  46882. -This is free software; see the source for copying conditions. There is NO
  46883. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  46884. - exit $?
  46885. - ;;
  46886. +# func_fatal_configuration arg...
  46887. +# Echo program name prefixed message to standard error, followed by
  46888. +# a configuration failure hint, and exit.
  46889. +func_fatal_configuration ()
  46890. +{
  46891. + func_error ${1+"$@"}
  46892. + func_error "See the $PACKAGE documentation for more information."
  46893. + func_fatal_error "Fatal configuration error."
  46894. +}
  46895. +
  46896. +
  46897. +# func_config
  46898. +# Display the configuration for all the tags in this script.
  46899. +func_config ()
  46900. +{
  46901. + re_begincf='^# ### BEGIN LIBTOOL'
  46902. + re_endcf='^# ### END LIBTOOL'
  46903. +
  46904. + # Default configuration.
  46905. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  46906. - --config)
  46907. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  46908. # Now print the configurations for the tags.
  46909. for tagname in $taglist; do
  46910. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  46911. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  46912. done
  46913. - exit $?
  46914. - ;;
  46915. -
  46916. - --debug)
  46917. - $echo "$progname: enabling shell trace mode"
  46918. - set -x
  46919. - preserve_args="$preserve_args $arg"
  46920. - ;;
  46921. - --dry-run | -n)
  46922. - run=:
  46923. - ;;
  46924. + exit $?
  46925. +}
  46926. - --features)
  46927. - $echo "host: $host"
  46928. +# func_features
  46929. +# Display the features supported by this script.
  46930. +func_features ()
  46931. +{
  46932. + $ECHO "host: $host"
  46933. if test "$build_libtool_libs" = yes; then
  46934. - $echo "enable shared libraries"
  46935. + $ECHO "enable shared libraries"
  46936. else
  46937. - $echo "disable shared libraries"
  46938. + $ECHO "disable shared libraries"
  46939. fi
  46940. if test "$build_old_libs" = yes; then
  46941. - $echo "enable static libraries"
  46942. + $ECHO "enable static libraries"
  46943. else
  46944. - $echo "disable static libraries"
  46945. + $ECHO "disable static libraries"
  46946. fi
  46947. +
  46948. exit $?
  46949. - ;;
  46950. +}
  46951. - --finish) mode="finish" ;;
  46952. +# func_enable_tag tagname
  46953. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  46954. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  46955. +# variable here.
  46956. +func_enable_tag ()
  46957. +{
  46958. + # Global variable:
  46959. + tagname="$1"
  46960. +
  46961. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  46962. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  46963. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  46964. +
  46965. + # Validate tagname.
  46966. + case $tagname in
  46967. + *[!-_A-Za-z0-9,/]*)
  46968. + func_fatal_error "invalid tag name: $tagname"
  46969. + ;;
  46970. + esac
  46971. - --mode) prevopt="--mode" prev=mode ;;
  46972. - --mode=*) mode="$optarg" ;;
  46973. + # Don't test for the "default" C tag, as we know it's
  46974. + # there but not specially marked.
  46975. + case $tagname in
  46976. + CC) ;;
  46977. + *)
  46978. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  46979. + taglist="$taglist $tagname"
  46980. - --preserve-dup-deps) duplicate_deps="yes" ;;
  46981. + # Evaluate the configuration. Be careful to quote the path
  46982. + # and the sed script, to avoid splitting on whitespace, but
  46983. + # also don't use non-portable quotes within backquotes within
  46984. + # quotes we have to do it in 2 steps:
  46985. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  46986. + eval "$extractedcf"
  46987. + else
  46988. + func_error "ignoring unknown tag $tagname"
  46989. + fi
  46990. + ;;
  46991. + esac
  46992. +}
  46993. - --quiet | --silent)
  46994. - show=:
  46995. - preserve_args="$preserve_args $arg"
  46996. - ;;
  46997. +# Parse options once, thoroughly. This comes as soon as possible in
  46998. +# the script to make things like `libtool --version' happen quickly.
  46999. +{
  47000. - --tag)
  47001. - prevopt="--tag"
  47002. - prev=tag
  47003. - preserve_args="$preserve_args --tag"
  47004. + # Shorthand for --mode=foo, only valid as the first argument
  47005. + case $1 in
  47006. + clean|clea|cle|cl)
  47007. + shift; set dummy --mode clean ${1+"$@"}; shift
  47008. ;;
  47009. - --tag=*)
  47010. - set tag "$optarg" ${1+"$@"}
  47011. - shift
  47012. - prev=tag
  47013. - preserve_args="$preserve_args --tag"
  47014. + compile|compil|compi|comp|com|co|c)
  47015. + shift; set dummy --mode compile ${1+"$@"}; shift
  47016. ;;
  47017. -
  47018. - -dlopen)
  47019. - prevopt="-dlopen"
  47020. - prev=execute_dlfiles
  47021. + execute|execut|execu|exec|exe|ex|e)
  47022. + shift; set dummy --mode execute ${1+"$@"}; shift
  47023. ;;
  47024. -
  47025. - -*)
  47026. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  47027. - $echo "$help" 1>&2
  47028. - exit $EXIT_FAILURE
  47029. + finish|finis|fini|fin|fi|f)
  47030. + shift; set dummy --mode finish ${1+"$@"}; shift
  47031. ;;
  47032. -
  47033. - *)
  47034. - nonopt="$arg"
  47035. - break
  47036. + install|instal|insta|inst|ins|in|i)
  47037. + shift; set dummy --mode install ${1+"$@"}; shift
  47038. + ;;
  47039. + link|lin|li|l)
  47040. + shift; set dummy --mode link ${1+"$@"}; shift
  47041. + ;;
  47042. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  47043. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  47044. ;;
  47045. esac
  47046. -done
  47047. -if test -n "$prevopt"; then
  47048. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  47049. - $echo "$help" 1>&2
  47050. - exit $EXIT_FAILURE
  47051. -fi
  47052. + # Parse non-mode specific arguments:
  47053. + while test "$#" -gt 0; do
  47054. + opt="$1"
  47055. + shift
  47056. -case $disable_libs in
  47057. -no)
  47058. - ;;
  47059. -shared)
  47060. - build_libtool_libs=no
  47061. - build_old_libs=yes
  47062. - ;;
  47063. -static)
  47064. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  47065. - ;;
  47066. -esac
  47067. + case $opt in
  47068. + --config) func_config ;;
  47069. -# If this variable is set in any of the actions, the command in it
  47070. -# will be execed at the end. This prevents here-documents from being
  47071. -# left over by shells.
  47072. -exec_cmd=
  47073. + --debug) preserve_args="$preserve_args $opt"
  47074. + func_echo "enabling shell trace mode"
  47075. + opt_debug='set -x'
  47076. + $opt_debug
  47077. + ;;
  47078. -if test -z "$show_help"; then
  47079. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  47080. + execute_dlfiles="$execute_dlfiles $1"
  47081. + shift
  47082. + ;;
  47083. - # Infer the operation mode.
  47084. - if test -z "$mode"; then
  47085. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  47086. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  47087. - case $nonopt in
  47088. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  47089. - mode=link
  47090. - for arg
  47091. - do
  47092. - case $arg in
  47093. - -c)
  47094. - mode=compile
  47095. - break
  47096. - ;;
  47097. - esac
  47098. - done
  47099. - ;;
  47100. - *db | *dbx | *strace | *truss)
  47101. - mode=execute
  47102. - ;;
  47103. - *install*|cp|mv)
  47104. - mode=install
  47105. - ;;
  47106. - *rm)
  47107. - mode=uninstall
  47108. + --dry-run | -n) opt_dry_run=: ;;
  47109. + --features) func_features ;;
  47110. + --finish) mode="finish" ;;
  47111. +
  47112. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  47113. + case $1 in
  47114. + # Valid mode arguments:
  47115. + clean) ;;
  47116. + compile) ;;
  47117. + execute) ;;
  47118. + finish) ;;
  47119. + install) ;;
  47120. + link) ;;
  47121. + relink) ;;
  47122. + uninstall) ;;
  47123. +
  47124. + # Catch anything else as an error
  47125. + *) func_error "invalid argument for $opt"
  47126. + exit_cmd=exit
  47127. + break
  47128. + ;;
  47129. + esac
  47130. +
  47131. + mode="$1"
  47132. + shift
  47133. + ;;
  47134. +
  47135. + --preserve-dup-deps)
  47136. + opt_duplicate_deps=: ;;
  47137. +
  47138. + --quiet|--silent) preserve_args="$preserve_args $opt"
  47139. + opt_silent=:
  47140. + ;;
  47141. +
  47142. + --verbose| -v) preserve_args="$preserve_args $opt"
  47143. + opt_silent=false
  47144. + ;;
  47145. +
  47146. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  47147. + preserve_args="$preserve_args $opt $1"
  47148. + func_enable_tag "$1" # tagname is set here
  47149. + shift
  47150. + ;;
  47151. +
  47152. + # Separate optargs to long options:
  47153. + -dlopen=*|--mode=*|--tag=*)
  47154. + func_opt_split "$opt"
  47155. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  47156. + shift
  47157. + ;;
  47158. +
  47159. + -\?|-h) func_usage ;;
  47160. + --help) opt_help=: ;;
  47161. + --version) func_version ;;
  47162. +
  47163. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  47164. +
  47165. + *) nonopt="$opt"
  47166. + break
  47167. + ;;
  47168. + esac
  47169. + done
  47170. +
  47171. +
  47172. + case $host in
  47173. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  47174. + # don't eliminate duplications in $postdeps and $predeps
  47175. + opt_duplicate_compiler_generated_deps=:
  47176. ;;
  47177. *)
  47178. - # If we have no mode, but dlfiles were specified, then do execute mode.
  47179. - test -n "$execute_dlfiles" && mode=execute
  47180. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  47181. + ;;
  47182. + esac
  47183. - # Just use the default operation mode.
  47184. - if test -z "$mode"; then
  47185. - if test -n "$nonopt"; then
  47186. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  47187. - else
  47188. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  47189. - fi
  47190. + # Having warned about all mis-specified options, bail out if
  47191. + # anything was wrong.
  47192. + $exit_cmd $EXIT_FAILURE
  47193. +}
  47194. +
  47195. +# func_check_version_match
  47196. +# Ensure that we are using m4 macros, and libtool script from the same
  47197. +# release of libtool.
  47198. +func_check_version_match ()
  47199. +{
  47200. + if test "$package_revision" != "$macro_revision"; then
  47201. + if test "$VERSION" != "$macro_version"; then
  47202. + if test -z "$macro_version"; then
  47203. + cat >&2 <<_LT_EOF
  47204. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  47205. +$progname: definition of this LT_INIT comes from an older release.
  47206. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  47207. +$progname: and run autoconf again.
  47208. +_LT_EOF
  47209. + else
  47210. + cat >&2 <<_LT_EOF
  47211. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  47212. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  47213. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  47214. +$progname: and run autoconf again.
  47215. +_LT_EOF
  47216. fi
  47217. - ;;
  47218. - esac
  47219. + else
  47220. + cat >&2 <<_LT_EOF
  47221. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  47222. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  47223. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  47224. +$progname: of $PACKAGE $VERSION and run autoconf again.
  47225. +_LT_EOF
  47226. + fi
  47227. +
  47228. + exit $EXIT_MISMATCH
  47229. + fi
  47230. +}
  47231. +
  47232. +
  47233. +## ----------- ##
  47234. +## Main. ##
  47235. +## ----------- ##
  47236. +
  47237. +$opt_help || {
  47238. + # Sanity checks first:
  47239. + func_check_version_match
  47240. +
  47241. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  47242. + func_fatal_configuration "not configured to build any kind of library"
  47243. fi
  47244. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  47245. +
  47246. +
  47247. + # Darwin sucks
  47248. + eval std_shrext=\"$shrext_cmds\"
  47249. +
  47250. +
  47251. # Only execute mode is allowed to have -dlopen flags.
  47252. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  47253. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  47254. - $echo "$help" 1>&2
  47255. + func_error "unrecognized option \`-dlopen'"
  47256. + $ECHO "$help" 1>&2
  47257. exit $EXIT_FAILURE
  47258. fi
  47259. # Change the help message to a mode-specific one.
  47260. generic_help="$help"
  47261. - help="Try \`$modename --help --mode=$mode' for more information."
  47262. + help="Try \`$progname --help --mode=$mode' for more information."
  47263. +}
  47264. - # These modes are in order of execution frequency so that they run quickly.
  47265. - case $mode in
  47266. - # libtool compile mode
  47267. - compile)
  47268. - modename="$modename: compile"
  47269. - # Get the compilation command and the source file.
  47270. - base_compile=
  47271. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  47272. - suppress_opt=yes
  47273. - suppress_output=
  47274. - arg_mode=normal
  47275. - libobj=
  47276. - later=
  47277. - for arg
  47278. - do
  47279. - case $arg_mode in
  47280. - arg )
  47281. - # do not "continue". Instead, add this to base_compile
  47282. - lastarg="$arg"
  47283. - arg_mode=normal
  47284. - ;;
  47285. +# func_lalib_p file
  47286. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  47287. +# This function is only a basic sanity check; it will hardly flush out
  47288. +# determined imposters.
  47289. +func_lalib_p ()
  47290. +{
  47291. + test -f "$1" &&
  47292. + $SED -e 4q "$1" 2>/dev/null \
  47293. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  47294. +}
  47295. - target )
  47296. - libobj="$arg"
  47297. - arg_mode=normal
  47298. - continue
  47299. - ;;
  47300. +# func_lalib_unsafe_p file
  47301. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  47302. +# This function implements the same check as func_lalib_p without
  47303. +# resorting to external programs. To this end, it redirects stdin and
  47304. +# closes it afterwards, without saving the original file descriptor.
  47305. +# As a safety measure, use it only where a negative result would be
  47306. +# fatal anyway. Works if `file' does not exist.
  47307. +func_lalib_unsafe_p ()
  47308. +{
  47309. + lalib_p=no
  47310. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  47311. + for lalib_p_l in 1 2 3 4
  47312. + do
  47313. + read lalib_p_line
  47314. + case "$lalib_p_line" in
  47315. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  47316. + esac
  47317. + done
  47318. + exec 0<&5 5<&-
  47319. + fi
  47320. + test "$lalib_p" = yes
  47321. +}
  47322. - normal )
  47323. - # Accept any command-line options.
  47324. - case $arg in
  47325. - -o)
  47326. - if test -n "$libobj" ; then
  47327. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  47328. - exit $EXIT_FAILURE
  47329. - fi
  47330. - arg_mode=target
  47331. - continue
  47332. - ;;
  47333. +# func_ltwrapper_script_p file
  47334. +# True iff FILE is a libtool wrapper script
  47335. +# This function is only a basic sanity check; it will hardly flush out
  47336. +# determined imposters.
  47337. +func_ltwrapper_script_p ()
  47338. +{
  47339. + func_lalib_p "$1"
  47340. +}
  47341. - -static | -prefer-pic | -prefer-non-pic)
  47342. - later="$later $arg"
  47343. - continue
  47344. - ;;
  47345. +# func_ltwrapper_executable_p file
  47346. +# True iff FILE is a libtool wrapper executable
  47347. +# This function is only a basic sanity check; it will hardly flush out
  47348. +# determined imposters.
  47349. +func_ltwrapper_executable_p ()
  47350. +{
  47351. + func_ltwrapper_exec_suffix=
  47352. + case $1 in
  47353. + *.exe) ;;
  47354. + *) func_ltwrapper_exec_suffix=.exe ;;
  47355. + esac
  47356. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  47357. +}
  47358. +
  47359. +# func_ltwrapper_scriptname file
  47360. +# Assumes file is an ltwrapper_executable
  47361. +# uses $file to determine the appropriate filename for a
  47362. +# temporary ltwrapper_script.
  47363. +func_ltwrapper_scriptname ()
  47364. +{
  47365. + func_ltwrapper_scriptname_result=""
  47366. + if func_ltwrapper_executable_p "$1"; then
  47367. + func_dirname_and_basename "$1" "" "."
  47368. + func_stripname '' '.exe' "$func_basename_result"
  47369. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  47370. + fi
  47371. +}
  47372. +
  47373. +# func_ltwrapper_p file
  47374. +# True iff FILE is a libtool wrapper script or wrapper executable
  47375. +# This function is only a basic sanity check; it will hardly flush out
  47376. +# determined imposters.
  47377. +func_ltwrapper_p ()
  47378. +{
  47379. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  47380. +}
  47381. +
  47382. +
  47383. +# func_execute_cmds commands fail_cmd
  47384. +# Execute tilde-delimited COMMANDS.
  47385. +# If FAIL_CMD is given, eval that upon failure.
  47386. +# FAIL_CMD may read-access the current command in variable CMD!
  47387. +func_execute_cmds ()
  47388. +{
  47389. + $opt_debug
  47390. + save_ifs=$IFS; IFS='~'
  47391. + for cmd in $1; do
  47392. + IFS=$save_ifs
  47393. + eval cmd=\"$cmd\"
  47394. + func_show_eval "$cmd" "${2-:}"
  47395. + done
  47396. + IFS=$save_ifs
  47397. +}
  47398. +
  47399. +
  47400. +# func_source file
  47401. +# Source FILE, adding directory component if necessary.
  47402. +# Note that it is not necessary on cygwin/mingw to append a dot to
  47403. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  47404. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  47405. +# `FILE.' does not work on cygwin managed mounts.
  47406. +func_source ()
  47407. +{
  47408. + $opt_debug
  47409. + case $1 in
  47410. + */* | *\\*) . "$1" ;;
  47411. + *) . "./$1" ;;
  47412. + esac
  47413. +}
  47414. +
  47415. +
  47416. +# func_infer_tag arg
  47417. +# Infer tagged configuration to use if any are available and
  47418. +# if one wasn't chosen via the "--tag" command line option.
  47419. +# Only attempt this if the compiler in the base compile
  47420. +# command doesn't match the default compiler.
  47421. +# arg is usually of the form 'gcc ...'
  47422. +func_infer_tag ()
  47423. +{
  47424. + $opt_debug
  47425. + if test -n "$available_tags" && test -z "$tagname"; then
  47426. + CC_quoted=
  47427. + for arg in $CC; do
  47428. + func_quote_for_eval "$arg"
  47429. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  47430. + done
  47431. + case $@ in
  47432. + # Blanks in the command may have been stripped by the calling shell,
  47433. + # but not from the CC environment variable when configure was run.
  47434. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  47435. + # Blanks at the start of $base_compile will cause this to fail
  47436. + # if we don't check for them as well.
  47437. + *)
  47438. + for z in $available_tags; do
  47439. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  47440. + # Evaluate the configuration.
  47441. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  47442. + CC_quoted=
  47443. + for arg in $CC; do
  47444. + # Double-quote args containing other shell metacharacters.
  47445. + func_quote_for_eval "$arg"
  47446. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  47447. + done
  47448. + case "$@ " in
  47449. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  47450. + # The compiler in the base compile command matches
  47451. + # the one in the tagged configuration.
  47452. + # Assume this is the tagged configuration we want.
  47453. + tagname=$z
  47454. + break
  47455. + ;;
  47456. + esac
  47457. + fi
  47458. + done
  47459. + # If $tagname still isn't set, then no tagged configuration
  47460. + # was found and let the user know that the "--tag" command
  47461. + # line option must be used.
  47462. + if test -z "$tagname"; then
  47463. + func_echo "unable to infer tagged configuration"
  47464. + func_fatal_error "specify a tag with \`--tag'"
  47465. +# else
  47466. +# func_verbose "using $tagname tagged configuration"
  47467. + fi
  47468. + ;;
  47469. + esac
  47470. + fi
  47471. +}
  47472. +
  47473. +
  47474. +
  47475. +# func_write_libtool_object output_name pic_name nonpic_name
  47476. +# Create a libtool object file (analogous to a ".la" file),
  47477. +# but don't create it if we're doing a dry run.
  47478. +func_write_libtool_object ()
  47479. +{
  47480. + write_libobj=${1}
  47481. + if test "$build_libtool_libs" = yes; then
  47482. + write_lobj=\'${2}\'
  47483. + else
  47484. + write_lobj=none
  47485. + fi
  47486. +
  47487. + if test "$build_old_libs" = yes; then
  47488. + write_oldobj=\'${3}\'
  47489. + else
  47490. + write_oldobj=none
  47491. + fi
  47492. +
  47493. + $opt_dry_run || {
  47494. + cat >${write_libobj}T <<EOF
  47495. +# $write_libobj - a libtool object file
  47496. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  47497. +#
  47498. +# Please DO NOT delete this file!
  47499. +# It is necessary for linking the library.
  47500. +
  47501. +# Name of the PIC object.
  47502. +pic_object=$write_lobj
  47503. +
  47504. +# Name of the non-PIC object
  47505. +non_pic_object=$write_oldobj
  47506. +
  47507. +EOF
  47508. + $MV "${write_libobj}T" "${write_libobj}"
  47509. + }
  47510. +}
  47511. +
  47512. +# func_mode_compile arg...
  47513. +func_mode_compile ()
  47514. +{
  47515. + $opt_debug
  47516. + # Get the compilation command and the source file.
  47517. + base_compile=
  47518. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  47519. + suppress_opt=yes
  47520. + suppress_output=
  47521. + arg_mode=normal
  47522. + libobj=
  47523. + later=
  47524. + pie_flag=
  47525. +
  47526. + for arg
  47527. + do
  47528. + case $arg_mode in
  47529. + arg )
  47530. + # do not "continue". Instead, add this to base_compile
  47531. + lastarg="$arg"
  47532. + arg_mode=normal
  47533. + ;;
  47534. +
  47535. + target )
  47536. + libobj="$arg"
  47537. + arg_mode=normal
  47538. + continue
  47539. + ;;
  47540. +
  47541. + normal )
  47542. + # Accept any command-line options.
  47543. + case $arg in
  47544. + -o)
  47545. + test -n "$libobj" && \
  47546. + func_fatal_error "you cannot specify \`-o' more than once"
  47547. + arg_mode=target
  47548. + continue
  47549. + ;;
  47550. +
  47551. + -pie | -fpie | -fPIE)
  47552. + pie_flag="$pie_flag $arg"
  47553. + continue
  47554. + ;;
  47555. +
  47556. + -shared | -static | -prefer-pic | -prefer-non-pic)
  47557. + later="$later $arg"
  47558. + continue
  47559. + ;;
  47560. -no-suppress)
  47561. suppress_opt=no
  47562. @@ -708,31 +1157,25 @@
  47563. ;; # replaced later. I would guess that would be a bug.
  47564. -Wc,*)
  47565. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  47566. + func_stripname '-Wc,' '' "$arg"
  47567. + args=$func_stripname_result
  47568. lastarg=
  47569. save_ifs="$IFS"; IFS=','
  47570. - for arg in $args; do
  47571. + for arg in $args; do
  47572. IFS="$save_ifs"
  47573. -
  47574. - # Double-quote args containing other shell metacharacters.
  47575. - # Many Bourne shells cannot handle close brackets correctly
  47576. - # in scan sets, so we specify it separately.
  47577. - case $arg in
  47578. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47579. - arg="\"$arg\""
  47580. - ;;
  47581. - esac
  47582. - lastarg="$lastarg $arg"
  47583. + func_quote_for_eval "$arg"
  47584. + lastarg="$lastarg $func_quote_for_eval_result"
  47585. done
  47586. IFS="$save_ifs"
  47587. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  47588. + func_stripname ' ' '' "$lastarg"
  47589. + lastarg=$func_stripname_result
  47590. # Add the arguments to base_compile.
  47591. base_compile="$base_compile $lastarg"
  47592. continue
  47593. ;;
  47594. - * )
  47595. + *)
  47596. # Accept the current argument as the source file.
  47597. # The previous "srcfile" becomes the current argument.
  47598. #
  47599. @@ -744,66 +1187,42 @@
  47600. esac # case $arg_mode
  47601. # Aesthetically quote the previous argument.
  47602. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  47603. -
  47604. - case $lastarg in
  47605. - # Double-quote args containing other shell metacharacters.
  47606. - # Many Bourne shells cannot handle close brackets correctly
  47607. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  47608. - # in scan sets (worked around with variable expansion),
  47609. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  47610. - # at all, so we specify them separately.
  47611. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47612. - lastarg="\"$lastarg\""
  47613. - ;;
  47614. - esac
  47615. -
  47616. - base_compile="$base_compile $lastarg"
  47617. + func_quote_for_eval "$lastarg"
  47618. + base_compile="$base_compile $func_quote_for_eval_result"
  47619. done # for arg
  47620. case $arg_mode in
  47621. arg)
  47622. - $echo "$modename: you must specify an argument for -Xcompile"
  47623. - exit $EXIT_FAILURE
  47624. + func_fatal_error "you must specify an argument for -Xcompile"
  47625. ;;
  47626. target)
  47627. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  47628. - exit $EXIT_FAILURE
  47629. + func_fatal_error "you must specify a target with \`-o'"
  47630. ;;
  47631. *)
  47632. # Get the name of the library object.
  47633. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  47634. + test -z "$libobj" && {
  47635. + func_basename "$srcfile"
  47636. + libobj="$func_basename_result"
  47637. + }
  47638. ;;
  47639. esac
  47640. # Recognize several different file suffixes.
  47641. # If the user specifies -o file.o, it is replaced with file.lo
  47642. - xform='[cCFSifmso]'
  47643. case $libobj in
  47644. - *.ada) xform=ada ;;
  47645. - *.adb) xform=adb ;;
  47646. - *.ads) xform=ads ;;
  47647. - *.asm) xform=asm ;;
  47648. - *.c++) xform=c++ ;;
  47649. - *.cc) xform=cc ;;
  47650. - *.ii) xform=ii ;;
  47651. - *.class) xform=class ;;
  47652. - *.cpp) xform=cpp ;;
  47653. - *.cxx) xform=cxx ;;
  47654. - *.[fF][09]?) xform=[fF][09]. ;;
  47655. - *.for) xform=for ;;
  47656. - *.java) xform=java ;;
  47657. - *.obj) xform=obj ;;
  47658. - *.sx) xform=sx ;;
  47659. + *.[cCFSifmso] | \
  47660. + *.ada | *.adb | *.ads | *.asm | \
  47661. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  47662. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  47663. + func_xform "$libobj"
  47664. + libobj=$func_xform_result
  47665. + ;;
  47666. esac
  47667. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  47668. -
  47669. case $libobj in
  47670. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  47671. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  47672. *)
  47673. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  47674. - exit $EXIT_FAILURE
  47675. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  47676. ;;
  47677. esac
  47678. @@ -811,7 +1230,15 @@
  47679. for arg in $later; do
  47680. case $arg in
  47681. + -shared)
  47682. + test "$build_libtool_libs" != yes && \
  47683. + func_fatal_configuration "can not build a shared library"
  47684. + build_old_libs=no
  47685. + continue
  47686. + ;;
  47687. +
  47688. -static)
  47689. + build_libtool_libs=no
  47690. build_old_libs=yes
  47691. continue
  47692. ;;
  47693. @@ -828,28 +1255,17 @@
  47694. esac
  47695. done
  47696. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  47697. - case $qlibobj in
  47698. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47699. - qlibobj="\"$qlibobj\"" ;;
  47700. - esac
  47701. - test "X$libobj" != "X$qlibobj" \
  47702. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  47703. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  47704. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  47705. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  47706. - if test "X$xdir" = "X$obj"; then
  47707. - xdir=
  47708. - else
  47709. - xdir=$xdir/
  47710. - fi
  47711. + func_quote_for_eval "$libobj"
  47712. + test "X$libobj" != "X$func_quote_for_eval_result" \
  47713. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  47714. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  47715. + func_dirname_and_basename "$obj" "/" ""
  47716. + objname="$func_basename_result"
  47717. + xdir="$func_dirname_result"
  47718. lobj=${xdir}$objdir/$objname
  47719. - if test -z "$base_compile"; then
  47720. - $echo "$modename: you must specify a compilation command" 1>&2
  47721. - $echo "$help" 1>&2
  47722. - exit $EXIT_FAILURE
  47723. - fi
  47724. + test -z "$base_compile" && \
  47725. + func_fatal_help "you must specify a compilation command"
  47726. # Delete any leftover library objects.
  47727. if test "$build_old_libs" = yes; then
  47728. @@ -858,12 +1274,9 @@
  47729. removelist="$lobj $libobj ${libobj}T"
  47730. fi
  47731. - $run $rm $removelist
  47732. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  47733. -
  47734. # On Cygwin there's no "real" PIC flag so we must build both object types
  47735. case $host_os in
  47736. - cygwin* | mingw* | pw32* | os2*)
  47737. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  47738. pic_mode=default
  47739. ;;
  47740. esac
  47741. @@ -875,10 +1288,8 @@
  47742. # Calculate the filename of the output object if compiler does
  47743. # not support -o with -c
  47744. if test "$compiler_c_o" = no; then
  47745. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  47746. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  47747. lockfile="$output_obj.lock"
  47748. - removelist="$removelist $output_obj $lockfile"
  47749. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  47750. else
  47751. output_obj=
  47752. need_locks=no
  47753. @@ -888,13 +1299,13 @@
  47754. # Lock this critical section if it is needed
  47755. # We use this script file to make the link, it avoids creating a new file
  47756. if test "$need_locks" = yes; then
  47757. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  47758. - $show "Waiting for $lockfile to be removed"
  47759. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  47760. + func_echo "Waiting for $lockfile to be removed"
  47761. sleep 2
  47762. done
  47763. elif test "$need_locks" = warn; then
  47764. if test -f "$lockfile"; then
  47765. - $echo "\
  47766. + $ECHO "\
  47767. *** ERROR, $lockfile exists and contains:
  47768. `cat $lockfile 2>/dev/null`
  47769. @@ -905,34 +1316,22 @@
  47770. avoid parallel builds (make -j) in this platform, or get a better
  47771. compiler."
  47772. - $run $rm $removelist
  47773. + $opt_dry_run || $RM $removelist
  47774. exit $EXIT_FAILURE
  47775. fi
  47776. - $echo "$srcfile" > "$lockfile"
  47777. + removelist="$removelist $output_obj"
  47778. + $ECHO "$srcfile" > "$lockfile"
  47779. fi
  47780. + $opt_dry_run || $RM $removelist
  47781. + removelist="$removelist $lockfile"
  47782. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  47783. +
  47784. if test -n "$fix_srcfile_path"; then
  47785. eval srcfile=\"$fix_srcfile_path\"
  47786. fi
  47787. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  47788. - case $qsrcfile in
  47789. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47790. - qsrcfile="\"$qsrcfile\"" ;;
  47791. - esac
  47792. -
  47793. - $run $rm "$libobj" "${libobj}T"
  47794. -
  47795. - # Create a libtool object file (analogous to a ".la" file),
  47796. - # but don't create it if we're doing a dry run.
  47797. - test -z "$run" && cat > ${libobj}T <<EOF
  47798. -# $libobj - a libtool object file
  47799. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  47800. -#
  47801. -# Please DO NOT delete this file!
  47802. -# It is necessary for linking the library.
  47803. -
  47804. -# Name of the PIC object.
  47805. -EOF
  47806. + func_quote_for_eval "$srcfile"
  47807. + qsrcfile=$func_quote_for_eval_result
  47808. # Only build a PIC object if we are building libtool libraries.
  47809. if test "$build_libtool_libs" = yes; then
  47810. @@ -946,32 +1345,19 @@
  47811. command="$base_compile $qsrcfile"
  47812. fi
  47813. - if test ! -d "${xdir}$objdir"; then
  47814. - $show "$mkdir ${xdir}$objdir"
  47815. - $run $mkdir ${xdir}$objdir
  47816. - exit_status=$?
  47817. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  47818. - exit $exit_status
  47819. - fi
  47820. - fi
  47821. + func_mkdir_p "$xdir$objdir"
  47822. if test -z "$output_obj"; then
  47823. # Place PIC objects in $objdir
  47824. command="$command -o $lobj"
  47825. fi
  47826. - $run $rm "$lobj" "$output_obj"
  47827. -
  47828. - $show "$command"
  47829. - if $run eval $lt_env "$command"; then :
  47830. - else
  47831. - test -n "$output_obj" && $run $rm $removelist
  47832. - exit $EXIT_FAILURE
  47833. - fi
  47834. + func_show_eval_locale "$command" \
  47835. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  47836. if test "$need_locks" = warn &&
  47837. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  47838. - $echo "\
  47839. + $ECHO "\
  47840. *** ERROR, $lockfile contains:
  47841. `cat $lockfile 2>/dev/null`
  47842. @@ -985,45 +1371,27 @@
  47843. avoid parallel builds (make -j) in this platform, or get a better
  47844. compiler."
  47845. - $run $rm $removelist
  47846. + $opt_dry_run || $RM $removelist
  47847. exit $EXIT_FAILURE
  47848. fi
  47849. # Just move the object if needed, then go on to compile the next one
  47850. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  47851. - $show "$mv $output_obj $lobj"
  47852. - if $run $mv $output_obj $lobj; then :
  47853. - else
  47854. - error=$?
  47855. - $run $rm $removelist
  47856. - exit $error
  47857. - fi
  47858. + func_show_eval '$MV "$output_obj" "$lobj"' \
  47859. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  47860. fi
  47861. - # Append the name of the PIC object to the libtool object file.
  47862. - test -z "$run" && cat >> ${libobj}T <<EOF
  47863. -pic_object='$objdir/$objname'
  47864. -
  47865. -EOF
  47866. -
  47867. # Allow error messages only from the first compilation.
  47868. if test "$suppress_opt" = yes; then
  47869. - suppress_output=' >/dev/null 2>&1'
  47870. + suppress_output=' >/dev/null 2>&1'
  47871. fi
  47872. - else
  47873. - # No PIC object so indicate it doesn't exist in the libtool
  47874. - # object file.
  47875. - test -z "$run" && cat >> ${libobj}T <<EOF
  47876. -pic_object=none
  47877. -
  47878. -EOF
  47879. fi
  47880. # Only build a position-dependent object if we build old libraries.
  47881. if test "$build_old_libs" = yes; then
  47882. if test "$pic_mode" != yes; then
  47883. # Don't build PIC code
  47884. - command="$base_compile $qsrcfile"
  47885. + command="$base_compile $qsrcfile$pie_flag"
  47886. else
  47887. command="$base_compile $qsrcfile $pic_flag"
  47888. fi
  47889. @@ -1033,17 +1401,12 @@
  47890. # Suppress compiler output if we already did a PIC compilation.
  47891. command="$command$suppress_output"
  47892. - $run $rm "$obj" "$output_obj"
  47893. - $show "$command"
  47894. - if $run eval $lt_env "$command"; then :
  47895. - else
  47896. - $run $rm $removelist
  47897. - exit $EXIT_FAILURE
  47898. - fi
  47899. + func_show_eval_locale "$command" \
  47900. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  47901. if test "$need_locks" = warn &&
  47902. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  47903. - $echo "\
  47904. + $ECHO "\
  47905. *** ERROR, $lockfile contains:
  47906. `cat $lockfile 2>/dev/null`
  47907. @@ -1057,5477 +1420,6784 @@
  47908. avoid parallel builds (make -j) in this platform, or get a better
  47909. compiler."
  47910. - $run $rm $removelist
  47911. + $opt_dry_run || $RM $removelist
  47912. exit $EXIT_FAILURE
  47913. fi
  47914. # Just move the object if needed
  47915. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  47916. - $show "$mv $output_obj $obj"
  47917. - if $run $mv $output_obj $obj; then :
  47918. - else
  47919. - error=$?
  47920. - $run $rm $removelist
  47921. - exit $error
  47922. - fi
  47923. + func_show_eval '$MV "$output_obj" "$obj"' \
  47924. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  47925. fi
  47926. -
  47927. - # Append the name of the non-PIC object the libtool object file.
  47928. - # Only append if the libtool object file exists.
  47929. - test -z "$run" && cat >> ${libobj}T <<EOF
  47930. -# Name of the non-PIC object.
  47931. -non_pic_object='$objname'
  47932. -
  47933. -EOF
  47934. - else
  47935. - # Append the name of the non-PIC object the libtool object file.
  47936. - # Only append if the libtool object file exists.
  47937. - test -z "$run" && cat >> ${libobj}T <<EOF
  47938. -# Name of the non-PIC object.
  47939. -non_pic_object=none
  47940. -
  47941. -EOF
  47942. fi
  47943. - $run $mv "${libobj}T" "${libobj}"
  47944. + $opt_dry_run || {
  47945. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  47946. - # Unlock the critical section if it was locked
  47947. - if test "$need_locks" != no; then
  47948. - $run $rm "$lockfile"
  47949. - fi
  47950. + # Unlock the critical section if it was locked
  47951. + if test "$need_locks" != no; then
  47952. + removelist=$lockfile
  47953. + $RM "$lockfile"
  47954. + fi
  47955. + }
  47956. exit $EXIT_SUCCESS
  47957. - ;;
  47958. +}
  47959. - # libtool link mode
  47960. - link | relink)
  47961. - modename="$modename: link"
  47962. - case $host in
  47963. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47964. - # It is impossible to link a dll without this setting, and
  47965. - # we shouldn't force the makefile maintainer to figure out
  47966. - # which system we are compiling for in order to pass an extra
  47967. - # flag for every libtool invocation.
  47968. - # allow_undefined=no
  47969. +$opt_help || {
  47970. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  47971. +}
  47972. - # FIXME: Unfortunately, there are problems with the above when trying
  47973. - # to make a dll which has undefined symbols, in which case not
  47974. - # even a static library is built. For now, we need to specify
  47975. - # -no-undefined on the libtool link line when we can be certain
  47976. - # that all symbols are satisfied, otherwise we get a static library.
  47977. - allow_undefined=yes
  47978. - ;;
  47979. - *)
  47980. - allow_undefined=yes
  47981. - ;;
  47982. - esac
  47983. - libtool_args="$nonopt"
  47984. - base_compile="$nonopt $@"
  47985. - compile_command="$nonopt"
  47986. - finalize_command="$nonopt"
  47987. +func_mode_help ()
  47988. +{
  47989. + # We need to display help for each of the modes.
  47990. + case $mode in
  47991. + "")
  47992. + # Generic help is extracted from the usage comments
  47993. + # at the start of this file.
  47994. + func_help
  47995. + ;;
  47996. - compile_rpath=
  47997. - finalize_rpath=
  47998. - compile_shlibpath=
  47999. - finalize_shlibpath=
  48000. - convenience=
  48001. - old_convenience=
  48002. - deplibs=
  48003. - old_deplibs=
  48004. - compiler_flags=
  48005. - linker_flags=
  48006. - dllsearchpath=
  48007. - lib_search_path=`pwd`
  48008. - inst_prefix_dir=
  48009. + clean)
  48010. + $ECHO \
  48011. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  48012. - avoid_version=no
  48013. - dlfiles=
  48014. - dlprefiles=
  48015. - dlself=no
  48016. - export_dynamic=no
  48017. - export_symbols=
  48018. - export_symbols_regex=
  48019. - generated=
  48020. - libobjs=
  48021. - ltlibs=
  48022. - module=no
  48023. - no_install=no
  48024. - objs=
  48025. - non_pic_objects=
  48026. - notinst_path= # paths that contain not-installed libtool libraries
  48027. - precious_files_regex=
  48028. - prefer_static_libs=no
  48029. - preload=no
  48030. - prev=
  48031. - prevarg=
  48032. - release=
  48033. - rpath=
  48034. - xrpath=
  48035. - perm_rpath=
  48036. - temp_rpath=
  48037. - thread_safe=no
  48038. - vinfo=
  48039. - vinfo_number=no
  48040. - single_module="${wl}-single_module"
  48041. +Remove files from the build directory.
  48042. - func_infer_tag $base_compile
  48043. +RM is the name of the program to use to delete files associated with each FILE
  48044. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  48045. +to RM.
  48046. - # We need to know -static, to get the right output filenames.
  48047. - for arg
  48048. - do
  48049. - case $arg in
  48050. - -all-static | -static | -static-libtool-libs)
  48051. - case $arg in
  48052. - -all-static)
  48053. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  48054. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  48055. - fi
  48056. - if test -n "$link_static_flag"; then
  48057. - dlopen_self=$dlopen_self_static
  48058. - fi
  48059. - prefer_static_libs=yes
  48060. - ;;
  48061. - -static)
  48062. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  48063. - dlopen_self=$dlopen_self_static
  48064. - fi
  48065. - prefer_static_libs=built
  48066. - ;;
  48067. - -static-libtool-libs)
  48068. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  48069. - dlopen_self=$dlopen_self_static
  48070. - fi
  48071. - prefer_static_libs=yes
  48072. - ;;
  48073. - esac
  48074. - build_libtool_libs=no
  48075. - build_old_libs=yes
  48076. - break
  48077. - ;;
  48078. - esac
  48079. - done
  48080. +If FILE is a libtool library, object or program, all the files associated
  48081. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  48082. + ;;
  48083. - # See if our shared archives depend on static archives.
  48084. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  48085. + compile)
  48086. + $ECHO \
  48087. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  48088. - # Go through the arguments, transforming them on the way.
  48089. - while test "$#" -gt 0; do
  48090. - arg="$1"
  48091. - shift
  48092. - case $arg in
  48093. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48094. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  48095. - ;;
  48096. - *) qarg=$arg ;;
  48097. - esac
  48098. - libtool_args="$libtool_args $qarg"
  48099. +Compile a source file into a libtool library object.
  48100. - # If the previous option needs an argument, assign it.
  48101. - if test -n "$prev"; then
  48102. - case $prev in
  48103. - output)
  48104. - compile_command="$compile_command @OUTPUT@"
  48105. - finalize_command="$finalize_command @OUTPUT@"
  48106. - ;;
  48107. - esac
  48108. +This mode accepts the following additional options:
  48109. - case $prev in
  48110. - dlfiles|dlprefiles)
  48111. - if test "$preload" = no; then
  48112. - # Add the symbol object into the linking commands.
  48113. - compile_command="$compile_command @SYMFILE@"
  48114. - finalize_command="$finalize_command @SYMFILE@"
  48115. - preload=yes
  48116. - fi
  48117. - case $arg in
  48118. - *.la | *.lo) ;; # We handle these cases below.
  48119. - force)
  48120. - if test "$dlself" = no; then
  48121. - dlself=needless
  48122. - export_dynamic=yes
  48123. - fi
  48124. - prev=
  48125. - continue
  48126. - ;;
  48127. - self)
  48128. - if test "$prev" = dlprefiles; then
  48129. - dlself=yes
  48130. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  48131. - dlself=yes
  48132. - else
  48133. - dlself=needless
  48134. - export_dynamic=yes
  48135. - fi
  48136. - prev=
  48137. - continue
  48138. - ;;
  48139. - *)
  48140. - if test "$prev" = dlfiles; then
  48141. - dlfiles="$dlfiles $arg"
  48142. - else
  48143. - dlprefiles="$dlprefiles $arg"
  48144. - fi
  48145. - prev=
  48146. - continue
  48147. - ;;
  48148. - esac
  48149. - ;;
  48150. - expsyms)
  48151. - export_symbols="$arg"
  48152. - if test ! -f "$arg"; then
  48153. - $echo "$modename: symbol file \`$arg' does not exist"
  48154. - exit $EXIT_FAILURE
  48155. - fi
  48156. - prev=
  48157. - continue
  48158. - ;;
  48159. - expsyms_regex)
  48160. - export_symbols_regex="$arg"
  48161. - prev=
  48162. - continue
  48163. - ;;
  48164. - inst_prefix)
  48165. - inst_prefix_dir="$arg"
  48166. - prev=
  48167. - continue
  48168. - ;;
  48169. - precious_regex)
  48170. - precious_files_regex="$arg"
  48171. - prev=
  48172. - continue
  48173. - ;;
  48174. - release)
  48175. - release="-$arg"
  48176. - prev=
  48177. - continue
  48178. - ;;
  48179. - objectlist)
  48180. - if test -f "$arg"; then
  48181. - save_arg=$arg
  48182. - moreargs=
  48183. - for fil in `cat $save_arg`
  48184. - do
  48185. -# moreargs="$moreargs $fil"
  48186. - arg=$fil
  48187. - # A libtool-controlled object.
  48188. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  48189. + -no-suppress do not suppress compiler output for multiple passes
  48190. + -prefer-pic try to building PIC objects only
  48191. + -prefer-non-pic try to building non-PIC objects only
  48192. + -shared do not build a \`.o' file suitable for static linking
  48193. + -static only build a \`.o' file suitable for static linking
  48194. - # Check to see that this really is a libtool object.
  48195. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48196. - pic_object=
  48197. - non_pic_object=
  48198. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  48199. +from the given SOURCEFILE.
  48200. - # Read the .lo file
  48201. - # If there is no directory component, then add one.
  48202. - case $arg in
  48203. - */* | *\\*) . $arg ;;
  48204. - *) . ./$arg ;;
  48205. - esac
  48206. +The output file name is determined by removing the directory component from
  48207. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  48208. +library object suffix, \`.lo'."
  48209. + ;;
  48210. - if test -z "$pic_object" || \
  48211. - test -z "$non_pic_object" ||
  48212. - test "$pic_object" = none && \
  48213. - test "$non_pic_object" = none; then
  48214. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  48215. - exit $EXIT_FAILURE
  48216. - fi
  48217. + execute)
  48218. + $ECHO \
  48219. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  48220. - # Extract subdirectory from the argument.
  48221. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48222. - if test "X$xdir" = "X$arg"; then
  48223. - xdir=
  48224. - else
  48225. - xdir="$xdir/"
  48226. - fi
  48227. +Automatically set library path, then run a program.
  48228. - if test "$pic_object" != none; then
  48229. - # Prepend the subdirectory the object is found in.
  48230. - pic_object="$xdir$pic_object"
  48231. +This mode accepts the following additional options:
  48232. - if test "$prev" = dlfiles; then
  48233. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  48234. - dlfiles="$dlfiles $pic_object"
  48235. - prev=
  48236. - continue
  48237. - else
  48238. - # If libtool objects are unsupported, then we need to preload.
  48239. - prev=dlprefiles
  48240. - fi
  48241. - fi
  48242. + -dlopen FILE add the directory containing FILE to the library path
  48243. - # CHECK ME: I think I busted this. -Ossama
  48244. - if test "$prev" = dlprefiles; then
  48245. - # Preload the old-style object.
  48246. - dlprefiles="$dlprefiles $pic_object"
  48247. - prev=
  48248. - fi
  48249. +This mode sets the library path environment variable according to \`-dlopen'
  48250. +flags.
  48251. - # A PIC object.
  48252. - libobjs="$libobjs $pic_object"
  48253. - arg="$pic_object"
  48254. - fi
  48255. +If any of the ARGS are libtool executable wrappers, then they are translated
  48256. +into their corresponding uninstalled binary, and any of their required library
  48257. +directories are added to the library path.
  48258. - # Non-PIC object.
  48259. - if test "$non_pic_object" != none; then
  48260. - # Prepend the subdirectory the object is found in.
  48261. - non_pic_object="$xdir$non_pic_object"
  48262. +Then, COMMAND is executed, with ARGS as arguments."
  48263. + ;;
  48264. - # A standard non-PIC object
  48265. - non_pic_objects="$non_pic_objects $non_pic_object"
  48266. - if test -z "$pic_object" || test "$pic_object" = none ; then
  48267. - arg="$non_pic_object"
  48268. - fi
  48269. - else
  48270. - # If the PIC object exists, use it instead.
  48271. - # $xdir was prepended to $pic_object above.
  48272. - non_pic_object="$pic_object"
  48273. - non_pic_objects="$non_pic_objects $non_pic_object"
  48274. - fi
  48275. - else
  48276. - # Only an error if not doing a dry-run.
  48277. - if test -z "$run"; then
  48278. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  48279. - exit $EXIT_FAILURE
  48280. - else
  48281. - # Dry-run case.
  48282. + finish)
  48283. + $ECHO \
  48284. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  48285. - # Extract subdirectory from the argument.
  48286. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48287. - if test "X$xdir" = "X$arg"; then
  48288. - xdir=
  48289. - else
  48290. - xdir="$xdir/"
  48291. - fi
  48292. +Complete the installation of libtool libraries.
  48293. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  48294. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  48295. - libobjs="$libobjs $pic_object"
  48296. - non_pic_objects="$non_pic_objects $non_pic_object"
  48297. - fi
  48298. - fi
  48299. - done
  48300. - else
  48301. - $echo "$modename: link input file \`$save_arg' does not exist"
  48302. - exit $EXIT_FAILURE
  48303. - fi
  48304. - arg=$save_arg
  48305. - prev=
  48306. - continue
  48307. - ;;
  48308. - rpath | xrpath)
  48309. - # We need an absolute path.
  48310. - case $arg in
  48311. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48312. - *)
  48313. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  48314. - exit $EXIT_FAILURE
  48315. - ;;
  48316. - esac
  48317. - if test "$prev" = rpath; then
  48318. - case "$rpath " in
  48319. - *" $arg "*) ;;
  48320. - *) rpath="$rpath $arg" ;;
  48321. - esac
  48322. - else
  48323. - case "$xrpath " in
  48324. - *" $arg "*) ;;
  48325. - *) xrpath="$xrpath $arg" ;;
  48326. - esac
  48327. - fi
  48328. - prev=
  48329. - continue
  48330. - ;;
  48331. - xcompiler)
  48332. - compiler_flags="$compiler_flags $qarg"
  48333. - prev=
  48334. - compile_command="$compile_command $qarg"
  48335. - finalize_command="$finalize_command $qarg"
  48336. - continue
  48337. - ;;
  48338. - xlinker)
  48339. - linker_flags="$linker_flags $qarg"
  48340. - compiler_flags="$compiler_flags $wl$qarg"
  48341. - prev=
  48342. - compile_command="$compile_command $wl$qarg"
  48343. - finalize_command="$finalize_command $wl$qarg"
  48344. - continue
  48345. - ;;
  48346. - xcclinker)
  48347. - linker_flags="$linker_flags $qarg"
  48348. - compiler_flags="$compiler_flags $qarg"
  48349. - prev=
  48350. - compile_command="$compile_command $qarg"
  48351. - finalize_command="$finalize_command $qarg"
  48352. - continue
  48353. - ;;
  48354. - shrext)
  48355. - shrext_cmds="$arg"
  48356. - prev=
  48357. - continue
  48358. - ;;
  48359. - darwin_framework|darwin_framework_skip)
  48360. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  48361. - compile_command="$compile_command $arg"
  48362. - finalize_command="$finalize_command $arg"
  48363. - prev=
  48364. - continue
  48365. - ;;
  48366. - *)
  48367. - eval "$prev=\"\$arg\""
  48368. - prev=
  48369. - continue
  48370. - ;;
  48371. - esac
  48372. - fi # test -n "$prev"
  48373. +Each LIBDIR is a directory that contains libtool libraries.
  48374. - prevarg="$arg"
  48375. +The commands that this mode executes may require superuser privileges. Use
  48376. +the \`--dry-run' option if you just want to see what would be executed."
  48377. + ;;
  48378. - case $arg in
  48379. - -all-static)
  48380. - if test -n "$link_static_flag"; then
  48381. - compile_command="$compile_command $link_static_flag"
  48382. - finalize_command="$finalize_command $link_static_flag"
  48383. - fi
  48384. - continue
  48385. - ;;
  48386. + install)
  48387. + $ECHO \
  48388. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  48389. - -allow-undefined)
  48390. - # FIXME: remove this flag sometime in the future.
  48391. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  48392. - continue
  48393. - ;;
  48394. +Install executables or libraries.
  48395. - -avoid-version)
  48396. - avoid_version=yes
  48397. - continue
  48398. - ;;
  48399. +INSTALL-COMMAND is the installation command. The first component should be
  48400. +either the \`install' or \`cp' program.
  48401. - -dlopen)
  48402. - prev=dlfiles
  48403. - continue
  48404. - ;;
  48405. +The following components of INSTALL-COMMAND are treated specially:
  48406. - -dlpreopen)
  48407. - prev=dlprefiles
  48408. - continue
  48409. - ;;
  48410. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  48411. - -export-dynamic)
  48412. - export_dynamic=yes
  48413. - continue
  48414. - ;;
  48415. +The rest of the components are interpreted as arguments to that command (only
  48416. +BSD-compatible install options are recognized)."
  48417. + ;;
  48418. - -export-symbols | -export-symbols-regex)
  48419. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  48420. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  48421. - exit $EXIT_FAILURE
  48422. - fi
  48423. - if test "X$arg" = "X-export-symbols"; then
  48424. - prev=expsyms
  48425. - else
  48426. - prev=expsyms_regex
  48427. - fi
  48428. - continue
  48429. - ;;
  48430. + link)
  48431. + $ECHO \
  48432. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  48433. - -framework|-arch|-isysroot)
  48434. - case " $CC " in
  48435. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  48436. - prev=darwin_framework_skip ;;
  48437. - *) compiler_flags="$compiler_flags $arg"
  48438. - prev=darwin_framework ;;
  48439. - esac
  48440. - compile_command="$compile_command $arg"
  48441. - finalize_command="$finalize_command $arg"
  48442. - continue
  48443. - ;;
  48444. +Link object files or libraries together to form another library, or to
  48445. +create an executable program.
  48446. - -inst-prefix-dir)
  48447. - prev=inst_prefix
  48448. - continue
  48449. - ;;
  48450. +LINK-COMMAND is a command using the C compiler that you would use to create
  48451. +a program from several object files.
  48452. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  48453. - # so, if we see these flags be careful not to treat them like -L
  48454. - -L[A-Z][A-Z]*:*)
  48455. - case $with_gcc/$host in
  48456. - no/*-*-irix* | /*-*-irix*)
  48457. - compile_command="$compile_command $arg"
  48458. - finalize_command="$finalize_command $arg"
  48459. - ;;
  48460. - esac
  48461. - continue
  48462. - ;;
  48463. +The following components of LINK-COMMAND are treated specially:
  48464. - -L*)
  48465. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  48466. - # We need an absolute path.
  48467. - case $dir in
  48468. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48469. - *)
  48470. - absdir=`cd "$dir" && pwd`
  48471. - if test -z "$absdir"; then
  48472. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  48473. - absdir="$dir"
  48474. - notinst_path="$notinst_path $dir"
  48475. - fi
  48476. - dir="$absdir"
  48477. - ;;
  48478. - esac
  48479. - case "$deplibs " in
  48480. - *" -L$dir "*) ;;
  48481. - *)
  48482. - deplibs="$deplibs -L$dir"
  48483. - lib_search_path="$lib_search_path $dir"
  48484. - ;;
  48485. - esac
  48486. - case $host in
  48487. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  48488. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  48489. - case :$dllsearchpath: in
  48490. - *":$dir:"*) ;;
  48491. - *) dllsearchpath="$dllsearchpath:$dir";;
  48492. - esac
  48493. - case :$dllsearchpath: in
  48494. - *":$testbindir:"*) ;;
  48495. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  48496. - esac
  48497. - ;;
  48498. - esac
  48499. - continue
  48500. - ;;
  48501. + -all-static do not do any dynamic linking at all
  48502. + -avoid-version do not add a version suffix if possible
  48503. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  48504. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  48505. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  48506. + -export-symbols SYMFILE
  48507. + try to export only the symbols listed in SYMFILE
  48508. + -export-symbols-regex REGEX
  48509. + try to export only the symbols matching REGEX
  48510. + -LLIBDIR search LIBDIR for required installed libraries
  48511. + -lNAME OUTPUT-FILE requires the installed library libNAME
  48512. + -module build a library that can dlopened
  48513. + -no-fast-install disable the fast-install mode
  48514. + -no-install link a not-installable executable
  48515. + -no-undefined declare that a library does not refer to external symbols
  48516. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  48517. + -objectlist FILE Use a list of object files found in FILE to specify objects
  48518. + -precious-files-regex REGEX
  48519. + don't remove output files matching REGEX
  48520. + -release RELEASE specify package release information
  48521. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  48522. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  48523. + -shared only do dynamic linking of libtool libraries
  48524. + -shrext SUFFIX override the standard shared library file extension
  48525. + -static do not do any dynamic linking of uninstalled libtool libraries
  48526. + -static-libtool-libs
  48527. + do not do any dynamic linking of libtool libraries
  48528. + -version-info CURRENT[:REVISION[:AGE]]
  48529. + specify library version info [each variable defaults to 0]
  48530. + -weak LIBNAME declare that the target provides the LIBNAME interface
  48531. - -l*)
  48532. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  48533. - case $host in
  48534. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  48535. - # These systems don't actually have a C or math library (as such)
  48536. - continue
  48537. - ;;
  48538. - *-*-os2*)
  48539. - # These systems don't actually have a C library (as such)
  48540. - test "X$arg" = "X-lc" && continue
  48541. - ;;
  48542. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48543. - # Do not include libc due to us having libc/libc_r.
  48544. - test "X$arg" = "X-lc" && continue
  48545. - ;;
  48546. - *-*-rhapsody* | *-*-darwin1.[012])
  48547. - # Rhapsody C and math libraries are in the System framework
  48548. - deplibs="$deplibs -framework System"
  48549. - continue
  48550. - ;;
  48551. - *-*-sco3.2v5* | *-*-sco5v6*)
  48552. - # Causes problems with __ctype
  48553. - test "X$arg" = "X-lc" && continue
  48554. - ;;
  48555. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  48556. - # Compiler inserts libc in the correct place for threads to work
  48557. - test "X$arg" = "X-lc" && continue
  48558. - ;;
  48559. - esac
  48560. - elif test "X$arg" = "X-lc_r"; then
  48561. - case $host in
  48562. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48563. - # Do not include libc_r directly, use -pthread flag.
  48564. - continue
  48565. - ;;
  48566. - esac
  48567. - fi
  48568. - deplibs="$deplibs $arg"
  48569. - continue
  48570. - ;;
  48571. +All other options (arguments beginning with \`-') are ignored.
  48572. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  48573. - # classes, name mangling, and exception handling.
  48574. - -model)
  48575. - compile_command="$compile_command $arg"
  48576. - compiler_flags="$compiler_flags $arg"
  48577. - finalize_command="$finalize_command $arg"
  48578. - prev=xcompiler
  48579. - continue
  48580. - ;;
  48581. +Every other argument is treated as a filename. Files ending in \`.la' are
  48582. +treated as uninstalled libtool libraries, other files are standard or library
  48583. +object files.
  48584. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  48585. - compiler_flags="$compiler_flags $arg"
  48586. - compile_command="$compile_command $arg"
  48587. - finalize_command="$finalize_command $arg"
  48588. - continue
  48589. - ;;
  48590. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  48591. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  48592. +required, except when creating a convenience library.
  48593. - -multi_module)
  48594. - single_module="${wl}-multi_module"
  48595. - continue
  48596. - ;;
  48597. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  48598. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  48599. - -module)
  48600. - module=yes
  48601. - continue
  48602. - ;;
  48603. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  48604. +is created, otherwise an executable program is created."
  48605. + ;;
  48606. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  48607. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  48608. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  48609. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  48610. - # -q* pass through compiler args for the IBM compiler
  48611. - # -m* pass through architecture-specific compiler args for GCC
  48612. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  48613. - # compiler args for GCC
  48614. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  48615. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  48616. - # @file GCC response files
  48617. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  48618. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  48619. + uninstall)
  48620. + $ECHO \
  48621. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  48622. - # Unknown arguments in both finalize_command and compile_command need
  48623. - # to be aesthetically quoted because they are evaled later.
  48624. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48625. - case $arg in
  48626. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48627. - arg="\"$arg\""
  48628. - ;;
  48629. - esac
  48630. - compile_command="$compile_command $arg"
  48631. - finalize_command="$finalize_command $arg"
  48632. - compiler_flags="$compiler_flags $arg"
  48633. - continue
  48634. +Remove libraries from an installation directory.
  48635. +
  48636. +RM is the name of the program to use to delete files associated with each FILE
  48637. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  48638. +to RM.
  48639. +
  48640. +If FILE is a libtool library, all the files associated with it are deleted.
  48641. +Otherwise, only FILE itself is deleted using RM."
  48642. ;;
  48643. - -shrext)
  48644. - prev=shrext
  48645. - continue
  48646. - ;;
  48647. + *)
  48648. + func_fatal_help "invalid operation mode \`$mode'"
  48649. + ;;
  48650. + esac
  48651. - -no-fast-install)
  48652. - fast_install=no
  48653. - continue
  48654. - ;;
  48655. + $ECHO
  48656. + $ECHO "Try \`$progname --help' for more information about other modes."
  48657. - -no-install)
  48658. - case $host in
  48659. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  48660. - # The PATH hackery in wrapper scripts is required on Windows
  48661. - # and Darwin in order for the loader to find any dlls it needs.
  48662. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  48663. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  48664. - fast_install=no
  48665. - ;;
  48666. - *) no_install=yes ;;
  48667. - esac
  48668. - continue
  48669. - ;;
  48670. + exit $?
  48671. +}
  48672. - -no-undefined)
  48673. - allow_undefined=no
  48674. - continue
  48675. - ;;
  48676. + # Now that we've collected a possible --mode arg, show help if necessary
  48677. + $opt_help && func_mode_help
  48678. - -objectlist)
  48679. - prev=objectlist
  48680. - continue
  48681. - ;;
  48682. - -o) prev=output ;;
  48683. +# func_mode_execute arg...
  48684. +func_mode_execute ()
  48685. +{
  48686. + $opt_debug
  48687. + # The first argument is the command name.
  48688. + cmd="$nonopt"
  48689. + test -z "$cmd" && \
  48690. + func_fatal_help "you must specify a COMMAND"
  48691. - -precious-files-regex)
  48692. - prev=precious_regex
  48693. - continue
  48694. - ;;
  48695. + # Handle -dlopen flags immediately.
  48696. + for file in $execute_dlfiles; do
  48697. + test -f "$file" \
  48698. + || func_fatal_help "\`$file' is not a file"
  48699. - -release)
  48700. - prev=release
  48701. - continue
  48702. - ;;
  48703. + dir=
  48704. + case $file in
  48705. + *.la)
  48706. + # Check to see that this really is a libtool archive.
  48707. + func_lalib_unsafe_p "$file" \
  48708. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  48709. - -rpath)
  48710. - prev=rpath
  48711. - continue
  48712. - ;;
  48713. + # Read the libtool library.
  48714. + dlname=
  48715. + library_names=
  48716. + func_source "$file"
  48717. - -R)
  48718. - prev=xrpath
  48719. - continue
  48720. - ;;
  48721. + # Skip this library if it cannot be dlopened.
  48722. + if test -z "$dlname"; then
  48723. + # Warn if it was a shared library.
  48724. + test -n "$library_names" && \
  48725. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  48726. + continue
  48727. + fi
  48728. - -R*)
  48729. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  48730. - # We need an absolute path.
  48731. - case $dir in
  48732. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48733. - *)
  48734. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  48735. - exit $EXIT_FAILURE
  48736. - ;;
  48737. - esac
  48738. - case "$xrpath " in
  48739. - *" $dir "*) ;;
  48740. - *) xrpath="$xrpath $dir" ;;
  48741. - esac
  48742. - continue
  48743. - ;;
  48744. + func_dirname "$file" "" "."
  48745. + dir="$func_dirname_result"
  48746. - -static | -static-libtool-libs)
  48747. - # The effects of -static are defined in a previous loop.
  48748. - # We used to do the same as -all-static on platforms that
  48749. - # didn't have a PIC flag, but the assumption that the effects
  48750. - # would be equivalent was wrong. It would break on at least
  48751. - # Digital Unix and AIX.
  48752. - continue
  48753. + if test -f "$dir/$objdir/$dlname"; then
  48754. + dir="$dir/$objdir"
  48755. + else
  48756. + if test ! -f "$dir/$dlname"; then
  48757. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  48758. + fi
  48759. + fi
  48760. ;;
  48761. - -thread-safe)
  48762. - thread_safe=yes
  48763. - continue
  48764. + *.lo)
  48765. + # Just add the directory containing the .lo file.
  48766. + func_dirname "$file" "" "."
  48767. + dir="$func_dirname_result"
  48768. ;;
  48769. - -version-info)
  48770. - prev=vinfo
  48771. - continue
  48772. - ;;
  48773. - -version-number)
  48774. - prev=vinfo
  48775. - vinfo_number=yes
  48776. + *)
  48777. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  48778. continue
  48779. ;;
  48780. + esac
  48781. - -Wc,*)
  48782. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  48783. - arg=
  48784. - save_ifs="$IFS"; IFS=','
  48785. - for flag in $args; do
  48786. - IFS="$save_ifs"
  48787. - case $flag in
  48788. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48789. - flag="\"$flag\""
  48790. - ;;
  48791. - esac
  48792. - arg="$arg $wl$flag"
  48793. - compiler_flags="$compiler_flags $flag"
  48794. - done
  48795. - IFS="$save_ifs"
  48796. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  48797. - ;;
  48798. + # Get the absolute pathname.
  48799. + absdir=`cd "$dir" && pwd`
  48800. + test -n "$absdir" && dir="$absdir"
  48801. - -Wl,*)
  48802. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  48803. - arg=
  48804. - save_ifs="$IFS"; IFS=','
  48805. - for flag in $args; do
  48806. - IFS="$save_ifs"
  48807. - case $flag in
  48808. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48809. - flag="\"$flag\""
  48810. - ;;
  48811. - esac
  48812. - arg="$arg $wl$flag"
  48813. - compiler_flags="$compiler_flags $wl$flag"
  48814. - linker_flags="$linker_flags $flag"
  48815. - done
  48816. - IFS="$save_ifs"
  48817. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  48818. - ;;
  48819. + # Now add the directory to shlibpath_var.
  48820. + if eval "test -z \"\$$shlibpath_var\""; then
  48821. + eval "$shlibpath_var=\"\$dir\""
  48822. + else
  48823. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  48824. + fi
  48825. + done
  48826. - -Xcompiler)
  48827. - prev=xcompiler
  48828. - continue
  48829. - ;;
  48830. + # This variable tells wrapper scripts just to set shlibpath_var
  48831. + # rather than running their programs.
  48832. + libtool_execute_magic="$magic"
  48833. - -Xlinker)
  48834. - prev=xlinker
  48835. - continue
  48836. + # Check if any of the arguments is a wrapper script.
  48837. + args=
  48838. + for file
  48839. + do
  48840. + case $file in
  48841. + -*) ;;
  48842. + *)
  48843. + # Do a test to see if this is really a libtool program.
  48844. + if func_ltwrapper_script_p "$file"; then
  48845. + func_source "$file"
  48846. + # Transform arg to wrapped name.
  48847. + file="$progdir/$program"
  48848. + elif func_ltwrapper_executable_p "$file"; then
  48849. + func_ltwrapper_scriptname "$file"
  48850. + func_source "$func_ltwrapper_scriptname_result"
  48851. + # Transform arg to wrapped name.
  48852. + file="$progdir/$program"
  48853. + fi
  48854. ;;
  48855. + esac
  48856. + # Quote arguments (to preserve shell metacharacters).
  48857. + func_quote_for_eval "$file"
  48858. + args="$args $func_quote_for_eval_result"
  48859. + done
  48860. - -XCClinker)
  48861. - prev=xcclinker
  48862. - continue
  48863. - ;;
  48864. + if test "X$opt_dry_run" = Xfalse; then
  48865. + if test -n "$shlibpath_var"; then
  48866. + # Export the shlibpath_var.
  48867. + eval "export $shlibpath_var"
  48868. + fi
  48869. - # Some other compiler flag.
  48870. - -* | +*)
  48871. - # Unknown arguments in both finalize_command and compile_command need
  48872. - # to be aesthetically quoted because they are evaled later.
  48873. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48874. - case $arg in
  48875. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48876. - arg="\"$arg\""
  48877. - ;;
  48878. - esac
  48879. - ;;
  48880. + # Restore saved environment variables
  48881. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  48882. + do
  48883. + eval "if test \"\${save_$lt_var+set}\" = set; then
  48884. + $lt_var=\$save_$lt_var; export $lt_var
  48885. + else
  48886. + $lt_unset $lt_var
  48887. + fi"
  48888. + done
  48889. - *.$objext)
  48890. - # A standard object.
  48891. - objs="$objs $arg"
  48892. - ;;
  48893. + # Now prepare to actually exec the command.
  48894. + exec_cmd="\$cmd$args"
  48895. + else
  48896. + # Display what would be done.
  48897. + if test -n "$shlibpath_var"; then
  48898. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  48899. + $ECHO "export $shlibpath_var"
  48900. + fi
  48901. + $ECHO "$cmd$args"
  48902. + exit $EXIT_SUCCESS
  48903. + fi
  48904. +}
  48905. - *.lo)
  48906. - # A libtool-controlled object.
  48907. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  48908. - # Check to see that this really is a libtool object.
  48909. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48910. - pic_object=
  48911. - non_pic_object=
  48912. - # Read the .lo file
  48913. - # If there is no directory component, then add one.
  48914. - case $arg in
  48915. - */* | *\\*) . $arg ;;
  48916. - *) . ./$arg ;;
  48917. - esac
  48918. +# func_mode_finish arg...
  48919. +func_mode_finish ()
  48920. +{
  48921. + $opt_debug
  48922. + libdirs="$nonopt"
  48923. + admincmds=
  48924. - if test -z "$pic_object" || \
  48925. - test -z "$non_pic_object" ||
  48926. - test "$pic_object" = none && \
  48927. - test "$non_pic_object" = none; then
  48928. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  48929. - exit $EXIT_FAILURE
  48930. - fi
  48931. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  48932. + for dir
  48933. + do
  48934. + libdirs="$libdirs $dir"
  48935. + done
  48936. - # Extract subdirectory from the argument.
  48937. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48938. - if test "X$xdir" = "X$arg"; then
  48939. - xdir=
  48940. - else
  48941. - xdir="$xdir/"
  48942. - fi
  48943. + for libdir in $libdirs; do
  48944. + if test -n "$finish_cmds"; then
  48945. + # Do each command in the finish commands.
  48946. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  48947. +'"$cmd"'"'
  48948. + fi
  48949. + if test -n "$finish_eval"; then
  48950. + # Do the single finish_eval.
  48951. + eval cmds=\"$finish_eval\"
  48952. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  48953. + $cmds"
  48954. + fi
  48955. + done
  48956. + fi
  48957. - if test "$pic_object" != none; then
  48958. - # Prepend the subdirectory the object is found in.
  48959. - pic_object="$xdir$pic_object"
  48960. + # Exit here if they wanted silent mode.
  48961. + $opt_silent && exit $EXIT_SUCCESS
  48962. - if test "$prev" = dlfiles; then
  48963. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  48964. - dlfiles="$dlfiles $pic_object"
  48965. - prev=
  48966. - continue
  48967. - else
  48968. - # If libtool objects are unsupported, then we need to preload.
  48969. - prev=dlprefiles
  48970. - fi
  48971. - fi
  48972. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  48973. + $ECHO "Libraries have been installed in:"
  48974. + for libdir in $libdirs; do
  48975. + $ECHO " $libdir"
  48976. + done
  48977. + $ECHO
  48978. + $ECHO "If you ever happen to want to link against installed libraries"
  48979. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  48980. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  48981. + $ECHO "flag during linking and do at least one of the following:"
  48982. + if test -n "$shlibpath_var"; then
  48983. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  48984. + $ECHO " during execution"
  48985. + fi
  48986. + if test -n "$runpath_var"; then
  48987. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  48988. + $ECHO " during linking"
  48989. + fi
  48990. + if test -n "$hardcode_libdir_flag_spec"; then
  48991. + libdir=LIBDIR
  48992. + eval flag=\"$hardcode_libdir_flag_spec\"
  48993. - # CHECK ME: I think I busted this. -Ossama
  48994. - if test "$prev" = dlprefiles; then
  48995. - # Preload the old-style object.
  48996. - dlprefiles="$dlprefiles $pic_object"
  48997. - prev=
  48998. - fi
  48999. + $ECHO " - use the \`$flag' linker flag"
  49000. + fi
  49001. + if test -n "$admincmds"; then
  49002. + $ECHO " - have your system administrator run these commands:$admincmds"
  49003. + fi
  49004. + if test -f /etc/ld.so.conf; then
  49005. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  49006. + fi
  49007. + $ECHO
  49008. - # A PIC object.
  49009. - libobjs="$libobjs $pic_object"
  49010. - arg="$pic_object"
  49011. - fi
  49012. + $ECHO "See any operating system documentation about shared libraries for"
  49013. + case $host in
  49014. + solaris2.[6789]|solaris2.1[0-9])
  49015. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  49016. + $ECHO "pages."
  49017. + ;;
  49018. + *)
  49019. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  49020. + ;;
  49021. + esac
  49022. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  49023. + exit $EXIT_SUCCESS
  49024. +}
  49025. - # Non-PIC object.
  49026. - if test "$non_pic_object" != none; then
  49027. - # Prepend the subdirectory the object is found in.
  49028. - non_pic_object="$xdir$non_pic_object"
  49029. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  49030. - # A standard non-PIC object
  49031. - non_pic_objects="$non_pic_objects $non_pic_object"
  49032. - if test -z "$pic_object" || test "$pic_object" = none ; then
  49033. - arg="$non_pic_object"
  49034. - fi
  49035. - else
  49036. - # If the PIC object exists, use it instead.
  49037. - # $xdir was prepended to $pic_object above.
  49038. - non_pic_object="$pic_object"
  49039. - non_pic_objects="$non_pic_objects $non_pic_object"
  49040. - fi
  49041. - else
  49042. - # Only an error if not doing a dry-run.
  49043. - if test -z "$run"; then
  49044. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  49045. - exit $EXIT_FAILURE
  49046. - else
  49047. - # Dry-run case.
  49048. - # Extract subdirectory from the argument.
  49049. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49050. - if test "X$xdir" = "X$arg"; then
  49051. - xdir=
  49052. - else
  49053. - xdir="$xdir/"
  49054. - fi
  49055. +# func_mode_install arg...
  49056. +func_mode_install ()
  49057. +{
  49058. + $opt_debug
  49059. + # There may be an optional sh(1) argument at the beginning of
  49060. + # install_prog (especially on Windows NT).
  49061. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  49062. + # Allow the use of GNU shtool's install command.
  49063. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  49064. + # Aesthetically quote it.
  49065. + func_quote_for_eval "$nonopt"
  49066. + install_prog="$func_quote_for_eval_result "
  49067. + arg=$1
  49068. + shift
  49069. + else
  49070. + install_prog=
  49071. + arg=$nonopt
  49072. + fi
  49073. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  49074. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  49075. - libobjs="$libobjs $pic_object"
  49076. - non_pic_objects="$non_pic_objects $non_pic_object"
  49077. - fi
  49078. - fi
  49079. - ;;
  49080. + # The real first argument should be the name of the installation program.
  49081. + # Aesthetically quote it.
  49082. + func_quote_for_eval "$arg"
  49083. + install_prog="$install_prog$func_quote_for_eval_result"
  49084. - *.$libext)
  49085. - # An archive.
  49086. - deplibs="$deplibs $arg"
  49087. - old_deplibs="$old_deplibs $arg"
  49088. + # We need to accept at least all the BSD install flags.
  49089. + dest=
  49090. + files=
  49091. + opts=
  49092. + prev=
  49093. + install_type=
  49094. + isdir=no
  49095. + stripme=
  49096. + for arg
  49097. + do
  49098. + if test -n "$dest"; then
  49099. + files="$files $dest"
  49100. + dest=$arg
  49101. continue
  49102. - ;;
  49103. -
  49104. - *.la)
  49105. - # A libtool-controlled library.
  49106. + fi
  49107. - if test "$prev" = dlfiles; then
  49108. - # This library was specified with -dlopen.
  49109. - dlfiles="$dlfiles $arg"
  49110. - prev=
  49111. - elif test "$prev" = dlprefiles; then
  49112. - # The library was specified with -dlpreopen.
  49113. - dlprefiles="$dlprefiles $arg"
  49114. + case $arg in
  49115. + -d) isdir=yes ;;
  49116. + -f)
  49117. + case " $install_prog " in
  49118. + *[\\\ /]cp\ *) ;;
  49119. + *) prev=$arg ;;
  49120. + esac
  49121. + ;;
  49122. + -g | -m | -o)
  49123. + prev=$arg
  49124. + ;;
  49125. + -s)
  49126. + stripme=" -s"
  49127. + continue
  49128. + ;;
  49129. + -*)
  49130. + ;;
  49131. + *)
  49132. + # If the previous option needed an argument, then skip it.
  49133. + if test -n "$prev"; then
  49134. prev=
  49135. else
  49136. - deplibs="$deplibs $arg"
  49137. + dest=$arg
  49138. + continue
  49139. fi
  49140. - continue
  49141. ;;
  49142. + esac
  49143. - # Some other compiler argument.
  49144. - *)
  49145. - # Unknown arguments in both finalize_command and compile_command need
  49146. - # to be aesthetically quoted because they are evaled later.
  49147. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  49148. - case $arg in
  49149. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49150. - arg="\"$arg\""
  49151. - ;;
  49152. - esac
  49153. - ;;
  49154. - esac # arg
  49155. + # Aesthetically quote the argument.
  49156. + func_quote_for_eval "$arg"
  49157. + install_prog="$install_prog $func_quote_for_eval_result"
  49158. + done
  49159. - # Now actually substitute the argument into the commands.
  49160. - if test -n "$arg"; then
  49161. - compile_command="$compile_command $arg"
  49162. - finalize_command="$finalize_command $arg"
  49163. - fi
  49164. - done # argument parsing loop
  49165. + test -z "$install_prog" && \
  49166. + func_fatal_help "you must specify an install program"
  49167. - if test -n "$prev"; then
  49168. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  49169. - $echo "$help" 1>&2
  49170. - exit $EXIT_FAILURE
  49171. - fi
  49172. + test -n "$prev" && \
  49173. + func_fatal_help "the \`$prev' option requires an argument"
  49174. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  49175. - eval arg=\"$export_dynamic_flag_spec\"
  49176. - compile_command="$compile_command $arg"
  49177. - finalize_command="$finalize_command $arg"
  49178. + if test -z "$files"; then
  49179. + if test -z "$dest"; then
  49180. + func_fatal_help "no file or destination specified"
  49181. + else
  49182. + func_fatal_help "you must specify a destination"
  49183. + fi
  49184. fi
  49185. - oldlibs=
  49186. - # calculate the name of the file, without its directory
  49187. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  49188. - libobjs_save="$libobjs"
  49189. + # Strip any trailing slash from the destination.
  49190. + func_stripname '' '/' "$dest"
  49191. + dest=$func_stripname_result
  49192. - if test -n "$shlibpath_var"; then
  49193. - # get the directories listed in $shlibpath_var
  49194. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  49195. + # Check to see that the destination is a directory.
  49196. + test -d "$dest" && isdir=yes
  49197. + if test "$isdir" = yes; then
  49198. + destdir="$dest"
  49199. + destname=
  49200. else
  49201. - shlib_search_path=
  49202. - fi
  49203. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  49204. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  49205. + func_dirname_and_basename "$dest" "" "."
  49206. + destdir="$func_dirname_result"
  49207. + destname="$func_basename_result"
  49208. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  49209. - if test "X$output_objdir" = "X$output"; then
  49210. - output_objdir="$objdir"
  49211. - else
  49212. - output_objdir="$output_objdir/$objdir"
  49213. - fi
  49214. - # Create the object directory.
  49215. - if test ! -d "$output_objdir"; then
  49216. - $show "$mkdir $output_objdir"
  49217. - $run $mkdir $output_objdir
  49218. - exit_status=$?
  49219. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  49220. - exit $exit_status
  49221. - fi
  49222. + # Not a directory, so check to see that there is only one file specified.
  49223. + set dummy $files; shift
  49224. + test "$#" -gt 1 && \
  49225. + func_fatal_help "\`$dest' is not a directory"
  49226. fi
  49227. -
  49228. - # Determine the type of output
  49229. - case $output in
  49230. - "")
  49231. - $echo "$modename: you must specify an output file" 1>&2
  49232. - $echo "$help" 1>&2
  49233. - exit $EXIT_FAILURE
  49234. - ;;
  49235. - *.$libext) linkmode=oldlib ;;
  49236. - *.lo | *.$objext) linkmode=obj ;;
  49237. - *.la) linkmode=lib ;;
  49238. - *) linkmode=prog ;; # Anything else should be a program.
  49239. - esac
  49240. -
  49241. - case $host in
  49242. - *cygwin* | *mingw* | *pw32*)
  49243. - # don't eliminate duplications in $postdeps and $predeps
  49244. - duplicate_compiler_generated_deps=yes
  49245. - ;;
  49246. + case $destdir in
  49247. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  49248. *)
  49249. - duplicate_compiler_generated_deps=$duplicate_deps
  49250. + for file in $files; do
  49251. + case $file in
  49252. + *.lo) ;;
  49253. + *)
  49254. + func_fatal_help "\`$destdir' must be an absolute directory name"
  49255. + ;;
  49256. + esac
  49257. + done
  49258. ;;
  49259. esac
  49260. - specialdeplibs=
  49261. - libs=
  49262. - # Find all interdependent deplibs by searching for libraries
  49263. - # that are linked more than once (e.g. -la -lb -la)
  49264. - for deplib in $deplibs; do
  49265. - if test "X$duplicate_deps" = "Xyes" ; then
  49266. - case "$libs " in
  49267. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49268. - esac
  49269. - fi
  49270. - libs="$libs $deplib"
  49271. - done
  49272. + # This variable tells wrapper scripts just to set variables rather
  49273. + # than running their programs.
  49274. + libtool_install_magic="$magic"
  49275. - if test "$linkmode" = lib; then
  49276. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  49277. + staticlibs=
  49278. + future_libdirs=
  49279. + current_libdirs=
  49280. + for file in $files; do
  49281. - # Compute libraries that are listed more than once in $predeps
  49282. - # $postdeps and mark them as special (i.e., whose duplicates are
  49283. - # not to be eliminated).
  49284. - pre_post_deps=
  49285. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  49286. - for pre_post_dep in $predeps $postdeps; do
  49287. - case "$pre_post_deps " in
  49288. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  49289. + # Do each installation.
  49290. + case $file in
  49291. + *.$libext)
  49292. + # Do the static libraries later.
  49293. + staticlibs="$staticlibs $file"
  49294. + ;;
  49295. +
  49296. + *.la)
  49297. + # Check to see that this really is a libtool archive.
  49298. + func_lalib_unsafe_p "$file" \
  49299. + || func_fatal_help "\`$file' is not a valid libtool archive"
  49300. +
  49301. + library_names=
  49302. + old_library=
  49303. + relink_command=
  49304. + func_source "$file"
  49305. +
  49306. + # Add the libdir to current_libdirs if it is the destination.
  49307. + if test "X$destdir" = "X$libdir"; then
  49308. + case "$current_libdirs " in
  49309. + *" $libdir "*) ;;
  49310. + *) current_libdirs="$current_libdirs $libdir" ;;
  49311. esac
  49312. - pre_post_deps="$pre_post_deps $pre_post_dep"
  49313. - done
  49314. - fi
  49315. - pre_post_deps=
  49316. - fi
  49317. + else
  49318. + # Note the libdir as a future libdir.
  49319. + case "$future_libdirs " in
  49320. + *" $libdir "*) ;;
  49321. + *) future_libdirs="$future_libdirs $libdir" ;;
  49322. + esac
  49323. + fi
  49324. - deplibs=
  49325. - newdependency_libs=
  49326. - newlib_search_path=
  49327. - need_relink=no # whether we're linking any uninstalled libtool libraries
  49328. - notinst_deplibs= # not-installed libtool libraries
  49329. - case $linkmode in
  49330. - lib)
  49331. - passes="conv link"
  49332. - for file in $dlfiles $dlprefiles; do
  49333. - case $file in
  49334. - *.la) ;;
  49335. - *)
  49336. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  49337. - exit $EXIT_FAILURE
  49338. + func_dirname "$file" "/" ""
  49339. + dir="$func_dirname_result"
  49340. + dir="$dir$objdir"
  49341. +
  49342. + if test -n "$relink_command"; then
  49343. + # Determine the prefix the user has applied to our future dir.
  49344. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  49345. +
  49346. + # Don't allow the user to place us outside of our expected
  49347. + # location b/c this prevents finding dependent libraries that
  49348. + # are installed to the same prefix.
  49349. + # At present, this check doesn't affect windows .dll's that
  49350. + # are installed into $libdir/../bin (currently, that works fine)
  49351. + # but it's something to keep an eye on.
  49352. + test "$inst_prefix_dir" = "$destdir" && \
  49353. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  49354. +
  49355. + if test -n "$inst_prefix_dir"; then
  49356. + # Stick the inst_prefix_dir data into the link command.
  49357. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  49358. + else
  49359. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  49360. + fi
  49361. +
  49362. + func_warning "relinking \`$file'"
  49363. + func_show_eval "$relink_command" \
  49364. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  49365. + fi
  49366. +
  49367. + # See the names of the shared library.
  49368. + set dummy $library_names; shift
  49369. + if test -n "$1"; then
  49370. + realname="$1"
  49371. + shift
  49372. +
  49373. + srcname="$realname"
  49374. + test -n "$relink_command" && srcname="$realname"T
  49375. +
  49376. + # Install the shared library and build the symlinks.
  49377. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  49378. + 'exit $?'
  49379. + tstripme="$stripme"
  49380. + case $host_os in
  49381. + cygwin* | mingw* | pw32* | cegcc*)
  49382. + case $realname in
  49383. + *.dll.a)
  49384. + tstripme=""
  49385. + ;;
  49386. + esac
  49387. ;;
  49388. esac
  49389. - done
  49390. - ;;
  49391. - prog)
  49392. - compile_deplibs=
  49393. - finalize_deplibs=
  49394. - alldeplibs=no
  49395. - newdlfiles=
  49396. - newdlprefiles=
  49397. - passes="conv scan dlopen dlpreopen link"
  49398. - ;;
  49399. - *) passes="conv"
  49400. - ;;
  49401. - esac
  49402. - for pass in $passes; do
  49403. - if test "$linkmode,$pass" = "lib,link" ||
  49404. - test "$linkmode,$pass" = "prog,scan"; then
  49405. - libs="$deplibs"
  49406. - deplibs=
  49407. - fi
  49408. - if test "$linkmode" = prog; then
  49409. - case $pass in
  49410. - dlopen) libs="$dlfiles" ;;
  49411. - dlpreopen) libs="$dlprefiles" ;;
  49412. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  49413. - esac
  49414. - fi
  49415. - if test "$pass" = dlopen; then
  49416. - # Collect dlpreopened libraries
  49417. - save_deplibs="$deplibs"
  49418. - deplibs=
  49419. - fi
  49420. - for deplib in $libs; do
  49421. - lib=
  49422. - found=no
  49423. - case $deplib in
  49424. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  49425. - if test "$linkmode,$pass" = "prog,link"; then
  49426. - compile_deplibs="$deplib $compile_deplibs"
  49427. - finalize_deplibs="$deplib $finalize_deplibs"
  49428. - else
  49429. - compiler_flags="$compiler_flags $deplib"
  49430. - fi
  49431. - continue
  49432. - ;;
  49433. - -l*)
  49434. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  49435. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  49436. - continue
  49437. - fi
  49438. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  49439. - if test "$linkmode" = lib; then
  49440. - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  49441. - else
  49442. - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  49443. + if test -n "$tstripme" && test -n "$striplib"; then
  49444. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  49445. fi
  49446. - for searchdir in $searchdirs; do
  49447. - for search_ext in .la $std_shrext .so .a; do
  49448. - # Search the libtool library
  49449. - lib="$searchdir/lib${name}${search_ext}"
  49450. - if test -f "$lib"; then
  49451. - if test "$search_ext" = ".la"; then
  49452. - found=yes
  49453. - else
  49454. - found=no
  49455. - fi
  49456. - break 2
  49457. - fi
  49458. +
  49459. + if test "$#" -gt 0; then
  49460. + # Delete the old symlinks, and create new ones.
  49461. + # Try `ln -sf' first, because the `ln' binary might depend on
  49462. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  49463. + # so we also need to try rm && ln -s.
  49464. + for linkname
  49465. + do
  49466. + test "$linkname" != "$realname" \
  49467. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  49468. done
  49469. - done
  49470. - if test "$found" != yes; then
  49471. - # deplib doesn't seem to be a libtool library
  49472. - if test "$linkmode,$pass" = "prog,link"; then
  49473. - compile_deplibs="$deplib $compile_deplibs"
  49474. - finalize_deplibs="$deplib $finalize_deplibs"
  49475. - else
  49476. - deplibs="$deplib $deplibs"
  49477. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49478. - fi
  49479. - continue
  49480. - else # deplib is a libtool library
  49481. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  49482. - # We need to do some special things here, and not later.
  49483. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49484. - case " $predeps $postdeps " in
  49485. - *" $deplib "*)
  49486. - if (${SED} -e '2q' $lib |
  49487. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49488. - library_names=
  49489. - old_library=
  49490. - case $lib in
  49491. - */* | *\\*) . $lib ;;
  49492. - *) . ./$lib ;;
  49493. - esac
  49494. - for l in $old_library $library_names; do
  49495. - ll="$l"
  49496. - done
  49497. - if test "X$ll" = "X$old_library" ; then # only static version available
  49498. - found=no
  49499. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  49500. - test "X$ladir" = "X$lib" && ladir="."
  49501. - lib=$ladir/$old_library
  49502. - if test "$linkmode,$pass" = "prog,link"; then
  49503. - compile_deplibs="$deplib $compile_deplibs"
  49504. - finalize_deplibs="$deplib $finalize_deplibs"
  49505. - else
  49506. - deplibs="$deplib $deplibs"
  49507. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49508. - fi
  49509. - continue
  49510. - fi
  49511. - fi
  49512. - ;;
  49513. - *) ;;
  49514. - esac
  49515. - fi
  49516. - fi
  49517. - ;; # -l
  49518. - -L*)
  49519. - case $linkmode in
  49520. - lib)
  49521. - deplibs="$deplib $deplibs"
  49522. - test "$pass" = conv && continue
  49523. - newdependency_libs="$deplib $newdependency_libs"
  49524. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  49525. - ;;
  49526. - prog)
  49527. - if test "$pass" = conv; then
  49528. - deplibs="$deplib $deplibs"
  49529. - continue
  49530. - fi
  49531. - if test "$pass" = scan; then
  49532. - deplibs="$deplib $deplibs"
  49533. - else
  49534. - compile_deplibs="$deplib $compile_deplibs"
  49535. - finalize_deplibs="$deplib $finalize_deplibs"
  49536. - fi
  49537. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  49538. - ;;
  49539. - *)
  49540. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  49541. - ;;
  49542. - esac # linkmode
  49543. - continue
  49544. - ;; # -L
  49545. - -R*)
  49546. - if test "$pass" = link; then
  49547. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  49548. - # Make sure the xrpath contains only unique directories.
  49549. - case "$xrpath " in
  49550. - *" $dir "*) ;;
  49551. - *) xrpath="$xrpath $dir" ;;
  49552. - esac
  49553. - fi
  49554. - deplibs="$deplib $deplibs"
  49555. - continue
  49556. - ;;
  49557. - *.la) lib="$deplib" ;;
  49558. - *.$libext)
  49559. - if test "$pass" = conv; then
  49560. - deplibs="$deplib $deplibs"
  49561. - continue
  49562. - fi
  49563. - case $linkmode in
  49564. - lib)
  49565. - valid_a_lib=no
  49566. - case $deplibs_check_method in
  49567. - match_pattern*)
  49568. - set dummy $deplibs_check_method
  49569. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  49570. - if eval $echo \"$deplib\" 2>/dev/null \
  49571. - | $SED 10q \
  49572. - | $EGREP "$match_pattern_regex" > /dev/null; then
  49573. - valid_a_lib=yes
  49574. - fi
  49575. - ;;
  49576. - pass_all)
  49577. - valid_a_lib=yes
  49578. - ;;
  49579. - esac
  49580. - if test "$valid_a_lib" != yes; then
  49581. - $echo
  49582. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  49583. - $echo "*** I have the capability to make that library automatically link in when"
  49584. - $echo "*** you link to this library. But I can only do this if you have a"
  49585. - $echo "*** shared version of the library, which you do not appear to have"
  49586. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  49587. - $echo "*** that it is just a static archive that I should not used here."
  49588. - else
  49589. - $echo
  49590. - $echo "*** Warning: Linking the shared library $output against the"
  49591. - $echo "*** static library $deplib is not portable!"
  49592. - deplibs="$deplib $deplibs"
  49593. - fi
  49594. - continue
  49595. - ;;
  49596. - prog)
  49597. - if test "$pass" != link; then
  49598. - deplibs="$deplib $deplibs"
  49599. - else
  49600. - compile_deplibs="$deplib $compile_deplibs"
  49601. - finalize_deplibs="$deplib $finalize_deplibs"
  49602. - fi
  49603. - continue
  49604. - ;;
  49605. - esac # linkmode
  49606. - ;; # *.$libext
  49607. - *.lo | *.$objext)
  49608. - if test "$pass" = conv; then
  49609. - deplibs="$deplib $deplibs"
  49610. - elif test "$linkmode" = prog; then
  49611. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  49612. - # If there is no dlopen support or we're linking statically,
  49613. - # we need to preload.
  49614. - newdlprefiles="$newdlprefiles $deplib"
  49615. - compile_deplibs="$deplib $compile_deplibs"
  49616. - finalize_deplibs="$deplib $finalize_deplibs"
  49617. - else
  49618. - newdlfiles="$newdlfiles $deplib"
  49619. - fi
  49620. fi
  49621. - continue
  49622. - ;;
  49623. - %DEPLIBS%)
  49624. - alldeplibs=yes
  49625. - continue
  49626. - ;;
  49627. - esac # case $deplib
  49628. - if test "$found" = yes || test -f "$lib"; then :
  49629. - else
  49630. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  49631. - exit $EXIT_FAILURE
  49632. - fi
  49633. - # Check to see that this really is a libtool archive.
  49634. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  49635. - else
  49636. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  49637. - exit $EXIT_FAILURE
  49638. + # Do each command in the postinstall commands.
  49639. + lib="$destdir/$realname"
  49640. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  49641. fi
  49642. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  49643. - test "X$ladir" = "X$lib" && ladir="."
  49644. -
  49645. - dlname=
  49646. - dlopen=
  49647. - dlpreopen=
  49648. - libdir=
  49649. - library_names=
  49650. - old_library=
  49651. - # If the library was installed with an old release of libtool,
  49652. - # it will not redefine variables installed, or shouldnotlink
  49653. - installed=yes
  49654. - shouldnotlink=no
  49655. - avoidtemprpath=
  49656. + # Install the pseudo-library for information purposes.
  49657. + func_basename "$file"
  49658. + name="$func_basename_result"
  49659. + instname="$dir/$name"i
  49660. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  49661. + # Maybe install the static library, too.
  49662. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  49663. + ;;
  49664. - # Read the .la file
  49665. - case $lib in
  49666. - */* | *\\*) . $lib ;;
  49667. - *) . ./$lib ;;
  49668. - esac
  49669. + *.lo)
  49670. + # Install (i.e. copy) a libtool object.
  49671. - if test "$linkmode,$pass" = "lib,link" ||
  49672. - test "$linkmode,$pass" = "prog,scan" ||
  49673. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  49674. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  49675. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  49676. + # Figure out destination file name, if it wasn't already specified.
  49677. + if test -n "$destname"; then
  49678. + destfile="$destdir/$destname"
  49679. + else
  49680. + func_basename "$file"
  49681. + destfile="$func_basename_result"
  49682. + destfile="$destdir/$destfile"
  49683. fi
  49684. - if test "$pass" = conv; then
  49685. - # Only check for convenience libraries
  49686. - deplibs="$lib $deplibs"
  49687. - if test -z "$libdir"; then
  49688. - if test -z "$old_library"; then
  49689. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  49690. - exit $EXIT_FAILURE
  49691. - fi
  49692. - # It is a libtool convenience library, so add in its objects.
  49693. - convenience="$convenience $ladir/$objdir/$old_library"
  49694. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  49695. - tmp_libs=
  49696. - for deplib in $dependency_libs; do
  49697. - deplibs="$deplib $deplibs"
  49698. - if test "X$duplicate_deps" = "Xyes" ; then
  49699. - case "$tmp_libs " in
  49700. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49701. - esac
  49702. - fi
  49703. - tmp_libs="$tmp_libs $deplib"
  49704. - done
  49705. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  49706. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  49707. - exit $EXIT_FAILURE
  49708. - fi
  49709. - continue
  49710. - fi # $pass = conv
  49711. + # Deduce the name of the destination old-style object file.
  49712. + case $destfile in
  49713. + *.lo)
  49714. + func_lo2o "$destfile"
  49715. + staticdest=$func_lo2o_result
  49716. + ;;
  49717. + *.$objext)
  49718. + staticdest="$destfile"
  49719. + destfile=
  49720. + ;;
  49721. + *)
  49722. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  49723. + ;;
  49724. + esac
  49725. + # Install the libtool object if requested.
  49726. + test -n "$destfile" && \
  49727. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  49728. - # Get the name of the library we link against.
  49729. - linklib=
  49730. - for l in $old_library $library_names; do
  49731. - linklib="$l"
  49732. - done
  49733. - if test -z "$linklib"; then
  49734. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  49735. - exit $EXIT_FAILURE
  49736. + # Install the old object if enabled.
  49737. + if test "$build_old_libs" = yes; then
  49738. + # Deduce the name of the old-style object file.
  49739. + func_lo2o "$file"
  49740. + staticobj=$func_lo2o_result
  49741. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  49742. fi
  49743. + exit $EXIT_SUCCESS
  49744. + ;;
  49745. - # This library was specified with -dlopen.
  49746. - if test "$pass" = dlopen; then
  49747. - if test -z "$libdir"; then
  49748. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  49749. - exit $EXIT_FAILURE
  49750. - fi
  49751. - if test -z "$dlname" ||
  49752. - test "$dlopen_support" != yes ||
  49753. - test "$build_libtool_libs" = no; then
  49754. - # If there is no dlname, no dlopen support or we're linking
  49755. - # statically, we need to preload. We also need to preload any
  49756. - # dependent libraries so libltdl's deplib preloader doesn't
  49757. - # bomb out in the load deplibs phase.
  49758. - dlprefiles="$dlprefiles $lib $dependency_libs"
  49759. - else
  49760. - newdlfiles="$newdlfiles $lib"
  49761. - fi
  49762. - continue
  49763. - fi # $pass = dlopen
  49764. + *)
  49765. + # Figure out destination file name, if it wasn't already specified.
  49766. + if test -n "$destname"; then
  49767. + destfile="$destdir/$destname"
  49768. + else
  49769. + func_basename "$file"
  49770. + destfile="$func_basename_result"
  49771. + destfile="$destdir/$destfile"
  49772. + fi
  49773. - # We need an absolute path.
  49774. - case $ladir in
  49775. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  49776. + # If the file is missing, and there is a .exe on the end, strip it
  49777. + # because it is most likely a libtool script we actually want to
  49778. + # install
  49779. + stripped_ext=""
  49780. + case $file in
  49781. + *.exe)
  49782. + if test ! -f "$file"; then
  49783. + func_stripname '' '.exe' "$file"
  49784. + file=$func_stripname_result
  49785. + stripped_ext=".exe"
  49786. + fi
  49787. + ;;
  49788. + esac
  49789. +
  49790. + # Do a test to see if this is really a libtool program.
  49791. + case $host in
  49792. + *cygwin* | *mingw*)
  49793. + if func_ltwrapper_executable_p "$file"; then
  49794. + func_ltwrapper_scriptname "$file"
  49795. + wrapper=$func_ltwrapper_scriptname_result
  49796. + else
  49797. + func_stripname '' '.exe' "$file"
  49798. + wrapper=$func_stripname_result
  49799. + fi
  49800. + ;;
  49801. *)
  49802. - abs_ladir=`cd "$ladir" && pwd`
  49803. - if test -z "$abs_ladir"; then
  49804. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  49805. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  49806. - abs_ladir="$ladir"
  49807. + wrapper=$file
  49808. + ;;
  49809. + esac
  49810. + if func_ltwrapper_script_p "$wrapper"; then
  49811. + notinst_deplibs=
  49812. + relink_command=
  49813. +
  49814. + func_source "$wrapper"
  49815. +
  49816. + # Check the variables that should have been set.
  49817. + test -z "$generated_by_libtool_version" && \
  49818. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  49819. +
  49820. + finalize=yes
  49821. + for lib in $notinst_deplibs; do
  49822. + # Check to see that each library is installed.
  49823. + libdir=
  49824. + if test -f "$lib"; then
  49825. + func_source "$lib"
  49826. + fi
  49827. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  49828. + if test -n "$libdir" && test ! -f "$libfile"; then
  49829. + func_warning "\`$lib' has not been installed in \`$libdir'"
  49830. + finalize=no
  49831. + fi
  49832. + done
  49833. +
  49834. + relink_command=
  49835. + func_source "$wrapper"
  49836. +
  49837. + outputname=
  49838. + if test "$fast_install" = no && test -n "$relink_command"; then
  49839. + $opt_dry_run || {
  49840. + if test "$finalize" = yes; then
  49841. + tmpdir=`func_mktempdir`
  49842. + func_basename "$file$stripped_ext"
  49843. + file="$func_basename_result"
  49844. + outputname="$tmpdir/$file"
  49845. + # Replace the output file specification.
  49846. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  49847. +
  49848. + $opt_silent || {
  49849. + func_quote_for_expand "$relink_command"
  49850. + eval "func_echo $func_quote_for_expand_result"
  49851. + }
  49852. + if eval "$relink_command"; then :
  49853. + else
  49854. + func_error "error: relink \`$file' with the above command before installing it"
  49855. + $opt_dry_run || ${RM}r "$tmpdir"
  49856. + continue
  49857. + fi
  49858. + file="$outputname"
  49859. + else
  49860. + func_warning "cannot relink \`$file'"
  49861. + fi
  49862. + }
  49863. + else
  49864. + # Install the binary that we compiled earlier.
  49865. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  49866. fi
  49867. + fi
  49868. +
  49869. + # remove .exe since cygwin /usr/bin/install will append another
  49870. + # one anyway
  49871. + case $install_prog,$host in
  49872. + */usr/bin/install*,*cygwin*)
  49873. + case $file:$destfile in
  49874. + *.exe:*.exe)
  49875. + # this is ok
  49876. + ;;
  49877. + *.exe:*)
  49878. + destfile=$destfile.exe
  49879. + ;;
  49880. + *:*.exe)
  49881. + func_stripname '' '.exe' "$destfile"
  49882. + destfile=$func_stripname_result
  49883. + ;;
  49884. + esac
  49885. ;;
  49886. esac
  49887. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  49888. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  49889. + $opt_dry_run || if test -n "$outputname"; then
  49890. + ${RM}r "$tmpdir"
  49891. + fi
  49892. + ;;
  49893. + esac
  49894. + done
  49895. - # Find the relevant object directory and library name.
  49896. - if test "X$installed" = Xyes; then
  49897. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49898. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  49899. - dir="$ladir"
  49900. - absdir="$abs_ladir"
  49901. - libdir="$abs_ladir"
  49902. - else
  49903. - dir="$libdir"
  49904. - absdir="$libdir"
  49905. + for file in $staticlibs; do
  49906. + func_basename "$file"
  49907. + name="$func_basename_result"
  49908. +
  49909. + # Set up the ranlib parameters.
  49910. + oldlib="$destdir/$name"
  49911. +
  49912. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  49913. +
  49914. + if test -n "$stripme" && test -n "$old_striplib"; then
  49915. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  49916. + fi
  49917. +
  49918. + # Do each command in the postinstall commands.
  49919. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  49920. + done
  49921. +
  49922. + test -n "$future_libdirs" && \
  49923. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  49924. +
  49925. + if test -n "$current_libdirs"; then
  49926. + # Maybe just do a dry run.
  49927. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  49928. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  49929. + else
  49930. + exit $EXIT_SUCCESS
  49931. + fi
  49932. +}
  49933. +
  49934. +test "$mode" = install && func_mode_install ${1+"$@"}
  49935. +
  49936. +
  49937. +# func_generate_dlsyms outputname originator pic_p
  49938. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  49939. +# a dlpreopen symbol table.
  49940. +func_generate_dlsyms ()
  49941. +{
  49942. + $opt_debug
  49943. + my_outputname="$1"
  49944. + my_originator="$2"
  49945. + my_pic_p="${3-no}"
  49946. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  49947. + my_dlsyms=
  49948. +
  49949. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49950. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  49951. + my_dlsyms="${my_outputname}S.c"
  49952. + else
  49953. + func_error "not configured to extract global symbols from dlpreopened files"
  49954. + fi
  49955. + fi
  49956. +
  49957. + if test -n "$my_dlsyms"; then
  49958. + case $my_dlsyms in
  49959. + "") ;;
  49960. + *.c)
  49961. + # Discover the nlist of each of the dlfiles.
  49962. + nlist="$output_objdir/${my_outputname}.nm"
  49963. +
  49964. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  49965. +
  49966. + # Parse the name list into a source file.
  49967. + func_verbose "creating $output_objdir/$my_dlsyms"
  49968. +
  49969. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  49970. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  49971. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  49972. +
  49973. +#ifdef __cplusplus
  49974. +extern \"C\" {
  49975. +#endif
  49976. +
  49977. +/* External symbol declarations for the compiler. */\
  49978. +"
  49979. +
  49980. + if test "$dlself" = yes; then
  49981. + func_verbose "generating symbol list for \`$output'"
  49982. +
  49983. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  49984. +
  49985. + # Add our own program objects to the symbol list.
  49986. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49987. + for progfile in $progfiles; do
  49988. + func_verbose "extracting global C symbols from \`$progfile'"
  49989. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  49990. + done
  49991. +
  49992. + if test -n "$exclude_expsyms"; then
  49993. + $opt_dry_run || {
  49994. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  49995. + eval '$MV "$nlist"T "$nlist"'
  49996. + }
  49997. fi
  49998. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  49999. - else
  50000. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  50001. - dir="$ladir"
  50002. - absdir="$abs_ladir"
  50003. - # Remove this search path later
  50004. - notinst_path="$notinst_path $abs_ladir"
  50005. +
  50006. + if test -n "$export_symbols_regex"; then
  50007. + $opt_dry_run || {
  50008. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  50009. + eval '$MV "$nlist"T "$nlist"'
  50010. + }
  50011. + fi
  50012. +
  50013. + # Prepare the list of exported symbols
  50014. + if test -z "$export_symbols"; then
  50015. + export_symbols="$output_objdir/$outputname.exp"
  50016. + $opt_dry_run || {
  50017. + $RM $export_symbols
  50018. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  50019. + case $host in
  50020. + *cygwin* | *mingw* | *cegcc* )
  50021. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  50022. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  50023. + ;;
  50024. + esac
  50025. + }
  50026. else
  50027. - dir="$ladir/$objdir"
  50028. - absdir="$abs_ladir/$objdir"
  50029. - # Remove this search path later
  50030. - notinst_path="$notinst_path $abs_ladir"
  50031. + $opt_dry_run || {
  50032. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  50033. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  50034. + eval '$MV "$nlist"T "$nlist"'
  50035. + case $host in
  50036. + *cygwin | *mingw* | *cegcc* )
  50037. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  50038. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  50039. + ;;
  50040. + esac
  50041. + }
  50042. fi
  50043. - fi # $installed = yes
  50044. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  50045. + fi
  50046. - # This library was specified with -dlpreopen.
  50047. - if test "$pass" = dlpreopen; then
  50048. - if test -z "$libdir"; then
  50049. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  50050. - exit $EXIT_FAILURE
  50051. + for dlprefile in $dlprefiles; do
  50052. + func_verbose "extracting global C symbols from \`$dlprefile'"
  50053. + func_basename "$dlprefile"
  50054. + name="$func_basename_result"
  50055. + $opt_dry_run || {
  50056. + eval '$ECHO ": $name " >> "$nlist"'
  50057. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  50058. + }
  50059. + done
  50060. +
  50061. + $opt_dry_run || {
  50062. + # Make sure we have at least an empty file.
  50063. + test -f "$nlist" || : > "$nlist"
  50064. +
  50065. + if test -n "$exclude_expsyms"; then
  50066. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  50067. + $MV "$nlist"T "$nlist"
  50068. fi
  50069. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  50070. - # are required to link).
  50071. - if test -n "$old_library"; then
  50072. - newdlprefiles="$newdlprefiles $dir/$old_library"
  50073. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  50074. - elif test -n "$dlname"; then
  50075. - newdlprefiles="$newdlprefiles $dir/$dlname"
  50076. +
  50077. + # Try sorting and uniquifying the output.
  50078. + if $GREP -v "^: " < "$nlist" |
  50079. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  50080. + sort -k 3
  50081. + else
  50082. + sort +2
  50083. + fi |
  50084. + uniq > "$nlist"S; then
  50085. + :
  50086. else
  50087. - newdlprefiles="$newdlprefiles $dir/$linklib"
  50088. + $GREP -v "^: " < "$nlist" > "$nlist"S
  50089. fi
  50090. - fi # $pass = dlpreopen
  50091. - if test -z "$libdir"; then
  50092. - # Link the convenience library
  50093. - if test "$linkmode" = lib; then
  50094. - deplibs="$dir/$old_library $deplibs"
  50095. - elif test "$linkmode,$pass" = "prog,link"; then
  50096. - compile_deplibs="$dir/$old_library $compile_deplibs"
  50097. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  50098. + if test -f "$nlist"S; then
  50099. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  50100. else
  50101. - deplibs="$lib $deplibs" # used for prog,scan pass
  50102. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  50103. fi
  50104. - continue
  50105. - fi
  50106. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50107. - if test "$linkmode" = prog && test "$pass" != link; then
  50108. - newlib_search_path="$newlib_search_path $ladir"
  50109. - deplibs="$lib $deplibs"
  50110. -
  50111. - linkalldeplibs=no
  50112. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  50113. - test "$build_libtool_libs" = no; then
  50114. - linkalldeplibs=yes
  50115. - fi
  50116. +/* The mapping between symbol names and symbols. */
  50117. +typedef struct {
  50118. + const char *name;
  50119. + void *address;
  50120. +} lt_dlsymlist;
  50121. +"
  50122. + case $host in
  50123. + *cygwin* | *mingw* | *cegcc* )
  50124. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50125. +/* DATA imports from DLLs on WIN32 con't be const, because
  50126. + runtime relocations are performed -- see ld's documentation
  50127. + on pseudo-relocs. */"
  50128. + lt_dlsym_const= ;;
  50129. + *osf5*)
  50130. + echo >> "$output_objdir/$my_dlsyms" "\
  50131. +/* This system does not cope well with relocations in const data */"
  50132. + lt_dlsym_const= ;;
  50133. + *)
  50134. + lt_dlsym_const=const ;;
  50135. + esac
  50136. - tmp_libs=
  50137. - for deplib in $dependency_libs; do
  50138. - case $deplib in
  50139. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  50140. - esac
  50141. - # Need to link against all dependency_libs?
  50142. - if test "$linkalldeplibs" = yes; then
  50143. - deplibs="$deplib $deplibs"
  50144. - else
  50145. - # Need to hardcode shared library paths
  50146. - # or/and link against static libraries
  50147. - newdependency_libs="$deplib $newdependency_libs"
  50148. - fi
  50149. - if test "X$duplicate_deps" = "Xyes" ; then
  50150. - case "$tmp_libs " in
  50151. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50152. - esac
  50153. - fi
  50154. - tmp_libs="$tmp_libs $deplib"
  50155. - done # for deplib
  50156. - continue
  50157. - fi # $linkmode = prog...
  50158. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50159. +extern $lt_dlsym_const lt_dlsymlist
  50160. +lt_${my_prefix}_LTX_preloaded_symbols[];
  50161. +$lt_dlsym_const lt_dlsymlist
  50162. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  50163. +{\
  50164. + { \"$my_originator\", (void *) 0 },"
  50165. - if test "$linkmode,$pass" = "prog,link"; then
  50166. - if test -n "$library_names" &&
  50167. - { { test "$prefer_static_libs" = no ||
  50168. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  50169. - test -z "$old_library"; }; then
  50170. - # We need to hardcode the library path
  50171. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  50172. - # Make sure the rpath contains only unique directories.
  50173. - case "$temp_rpath " in
  50174. - *" $dir "*) ;;
  50175. - *" $absdir "*) ;;
  50176. - *) temp_rpath="$temp_rpath $absdir" ;;
  50177. - esac
  50178. - fi
  50179. + case $need_lib_prefix in
  50180. + no)
  50181. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  50182. + ;;
  50183. + *)
  50184. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  50185. + ;;
  50186. + esac
  50187. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50188. + {0, (void *) 0}
  50189. +};
  50190. - # Hardcode the library path.
  50191. - # Skip directories that are in the system default run-time
  50192. - # search path.
  50193. - case " $sys_lib_dlsearch_path " in
  50194. - *" $absdir "*) ;;
  50195. - *)
  50196. - case "$compile_rpath " in
  50197. - *" $absdir "*) ;;
  50198. - *) compile_rpath="$compile_rpath $absdir"
  50199. - esac
  50200. - ;;
  50201. - esac
  50202. - case " $sys_lib_dlsearch_path " in
  50203. - *" $libdir "*) ;;
  50204. - *)
  50205. - case "$finalize_rpath " in
  50206. - *" $libdir "*) ;;
  50207. - *) finalize_rpath="$finalize_rpath $libdir"
  50208. - esac
  50209. - ;;
  50210. - esac
  50211. - fi # $linkmode,$pass = prog,link...
  50212. -
  50213. - if test "$alldeplibs" = yes &&
  50214. - { test "$deplibs_check_method" = pass_all ||
  50215. - { test "$build_libtool_libs" = yes &&
  50216. - test -n "$library_names"; }; }; then
  50217. - # We only need to search for static libraries
  50218. - continue
  50219. - fi
  50220. - fi
  50221. +/* This works around a problem in FreeBSD linker */
  50222. +#ifdef FREEBSD_WORKAROUND
  50223. +static const void *lt_preloaded_setup() {
  50224. + return lt_${my_prefix}_LTX_preloaded_symbols;
  50225. +}
  50226. +#endif
  50227. - link_static=no # Whether the deplib will be linked statically
  50228. - use_static_libs=$prefer_static_libs
  50229. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  50230. - use_static_libs=no
  50231. - fi
  50232. - if test -n "$library_names" &&
  50233. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  50234. - if test "$installed" = no; then
  50235. - notinst_deplibs="$notinst_deplibs $lib"
  50236. - need_relink=yes
  50237. - fi
  50238. - # This is a shared library
  50239. +#ifdef __cplusplus
  50240. +}
  50241. +#endif\
  50242. +"
  50243. + } # !$opt_dry_run
  50244. - # Warn about portability, can't link against -module's on
  50245. - # some systems (darwin)
  50246. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  50247. - $echo
  50248. - if test "$linkmode" = prog; then
  50249. - $echo "*** Warning: Linking the executable $output against the loadable module"
  50250. - else
  50251. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  50252. + pic_flag_for_symtable=
  50253. + case "$compile_command " in
  50254. + *" -static "*) ;;
  50255. + *)
  50256. + case $host in
  50257. + # compiling the symbol table file with pic_flag works around
  50258. + # a FreeBSD bug that causes programs to crash when -lm is
  50259. + # linked before any other PIC object. But we must not use
  50260. + # pic_flag when linking with -static. The problem exists in
  50261. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  50262. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  50263. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  50264. + *-*-hpux*)
  50265. + pic_flag_for_symtable=" $pic_flag" ;;
  50266. + *)
  50267. + if test "X$my_pic_p" != Xno; then
  50268. + pic_flag_for_symtable=" $pic_flag"
  50269. fi
  50270. - $echo "*** $linklib is not portable!"
  50271. - fi
  50272. - if test "$linkmode" = lib &&
  50273. - test "$hardcode_into_libs" = yes; then
  50274. - # Hardcode the library path.
  50275. - # Skip directories that are in the system default run-time
  50276. - # search path.
  50277. - case " $sys_lib_dlsearch_path " in
  50278. - *" $absdir "*) ;;
  50279. - *)
  50280. - case "$compile_rpath " in
  50281. - *" $absdir "*) ;;
  50282. - *) compile_rpath="$compile_rpath $absdir"
  50283. - esac
  50284. - ;;
  50285. - esac
  50286. - case " $sys_lib_dlsearch_path " in
  50287. - *" $libdir "*) ;;
  50288. - *)
  50289. - case "$finalize_rpath " in
  50290. - *" $libdir "*) ;;
  50291. - *) finalize_rpath="$finalize_rpath $libdir"
  50292. - esac
  50293. - ;;
  50294. - esac
  50295. - fi
  50296. + ;;
  50297. + esac
  50298. + ;;
  50299. + esac
  50300. + symtab_cflags=
  50301. + for arg in $LTCFLAGS; do
  50302. + case $arg in
  50303. + -pie | -fpie | -fPIE) ;;
  50304. + *) symtab_cflags="$symtab_cflags $arg" ;;
  50305. + esac
  50306. + done
  50307. - if test -n "$old_archive_from_expsyms_cmds"; then
  50308. - # figure out the soname
  50309. - set dummy $library_names
  50310. - realname="$2"
  50311. - shift; shift
  50312. - libname=`eval \\$echo \"$libname_spec\"`
  50313. - # use dlname if we got it. it's perfectly good, no?
  50314. - if test -n "$dlname"; then
  50315. - soname="$dlname"
  50316. - elif test -n "$soname_spec"; then
  50317. - # bleh windows
  50318. - case $host in
  50319. - *cygwin* | mingw*)
  50320. - major=`expr $current - $age`
  50321. - versuffix="-$major"
  50322. - ;;
  50323. - esac
  50324. - eval soname=\"$soname_spec\"
  50325. - else
  50326. - soname="$realname"
  50327. - fi
  50328. + # Now compile the dynamic symbol file.
  50329. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  50330. - # Make a new name for the extract_expsyms_cmds to use
  50331. - soroot="$soname"
  50332. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  50333. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  50334. + # Clean up the generated files.
  50335. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  50336. - # If the library has no export list, then create one now
  50337. - if test -f "$output_objdir/$soname-def"; then :
  50338. - else
  50339. - $show "extracting exported symbol list from \`$soname'"
  50340. - save_ifs="$IFS"; IFS='~'
  50341. - cmds=$extract_expsyms_cmds
  50342. - for cmd in $cmds; do
  50343. - IFS="$save_ifs"
  50344. - eval cmd=\"$cmd\"
  50345. - $show "$cmd"
  50346. - $run eval "$cmd" || exit $?
  50347. - done
  50348. - IFS="$save_ifs"
  50349. - fi
  50350. + # Transform the symbol file into the correct name.
  50351. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  50352. + case $host in
  50353. + *cygwin* | *mingw* | *cegcc* )
  50354. + if test -f "$output_objdir/$my_outputname.def"; then
  50355. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  50356. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  50357. + else
  50358. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50359. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50360. + fi
  50361. + ;;
  50362. + *)
  50363. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50364. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50365. + ;;
  50366. + esac
  50367. + ;;
  50368. + *)
  50369. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  50370. + ;;
  50371. + esac
  50372. + else
  50373. + # We keep going just in case the user didn't refer to
  50374. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  50375. + # really was required.
  50376. +
  50377. + # Nullify the symbol file.
  50378. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  50379. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  50380. + fi
  50381. +}
  50382. - # Create $newlib
  50383. - if test -f "$output_objdir/$newlib"; then :; else
  50384. - $show "generating import library for \`$soname'"
  50385. - save_ifs="$IFS"; IFS='~'
  50386. - cmds=$old_archive_from_expsyms_cmds
  50387. - for cmd in $cmds; do
  50388. - IFS="$save_ifs"
  50389. - eval cmd=\"$cmd\"
  50390. - $show "$cmd"
  50391. - $run eval "$cmd" || exit $?
  50392. - done
  50393. - IFS="$save_ifs"
  50394. - fi
  50395. - # make sure the library variables are pointing to the new library
  50396. - dir=$output_objdir
  50397. - linklib=$newlib
  50398. - fi # test -n "$old_archive_from_expsyms_cmds"
  50399. +# func_win32_libid arg
  50400. +# return the library type of file 'arg'
  50401. +#
  50402. +# Need a lot of goo to handle *both* DLLs and import libs
  50403. +# Has to be a shell function in order to 'eat' the argument
  50404. +# that is supplied when $file_magic_command is called.
  50405. +func_win32_libid ()
  50406. +{
  50407. + $opt_debug
  50408. + win32_libid_type="unknown"
  50409. + win32_fileres=`file -L $1 2>/dev/null`
  50410. + case $win32_fileres in
  50411. + *ar\ archive\ import\ library*) # definitely import
  50412. + win32_libid_type="x86 archive import"
  50413. + ;;
  50414. + *ar\ archive*) # could be an import, or static
  50415. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  50416. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  50417. + win32_nmres=`eval $NM -f posix -A $1 |
  50418. + $SED -n -e '
  50419. + 1,100{
  50420. + / I /{
  50421. + s,.*,import,
  50422. + p
  50423. + q
  50424. + }
  50425. + }'`
  50426. + case $win32_nmres in
  50427. + import*) win32_libid_type="x86 archive import";;
  50428. + *) win32_libid_type="x86 archive static";;
  50429. + esac
  50430. + fi
  50431. + ;;
  50432. + *DLL*)
  50433. + win32_libid_type="x86 DLL"
  50434. + ;;
  50435. + *executable*) # but shell scripts are "executable" too...
  50436. + case $win32_fileres in
  50437. + *MS\ Windows\ PE\ Intel*)
  50438. + win32_libid_type="x86 DLL"
  50439. + ;;
  50440. + esac
  50441. + ;;
  50442. + esac
  50443. + $ECHO "$win32_libid_type"
  50444. +}
  50445. - if test "$linkmode" = prog || test "$mode" != relink; then
  50446. - add_shlibpath=
  50447. - add_dir=
  50448. - add=
  50449. - lib_linked=yes
  50450. - case $hardcode_action in
  50451. - immediate | unsupported)
  50452. - if test "$hardcode_direct" = no; then
  50453. - add="$dir/$linklib"
  50454. - case $host in
  50455. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  50456. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  50457. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  50458. - *-*-unixware7*) add_dir="-L$dir" ;;
  50459. - *-*-darwin* )
  50460. - # if the lib is a module then we can not link against
  50461. - # it, someone is ignoring the new warnings I added
  50462. - if /usr/bin/file -L $add 2> /dev/null |
  50463. - $EGREP ": [^:]* bundle" >/dev/null ; then
  50464. - $echo "** Warning, lib $linklib is a module, not a shared library"
  50465. - if test -z "$old_library" ; then
  50466. - $echo
  50467. - $echo "** And there doesn't seem to be a static archive available"
  50468. - $echo "** The link will probably fail, sorry"
  50469. - else
  50470. - add="$dir/$old_library"
  50471. - fi
  50472. - fi
  50473. - esac
  50474. - elif test "$hardcode_minus_L" = no; then
  50475. - case $host in
  50476. - *-*-sunos*) add_shlibpath="$dir" ;;
  50477. - esac
  50478. - add_dir="-L$dir"
  50479. - add="-l$name"
  50480. - elif test "$hardcode_shlibpath_var" = no; then
  50481. - add_shlibpath="$dir"
  50482. - add="-l$name"
  50483. - else
  50484. - lib_linked=no
  50485. - fi
  50486. - ;;
  50487. - relink)
  50488. - if test "$hardcode_direct" = yes; then
  50489. - add="$dir/$linklib"
  50490. - elif test "$hardcode_minus_L" = yes; then
  50491. - add_dir="-L$dir"
  50492. - # Try looking first in the location we're being installed to.
  50493. - if test -n "$inst_prefix_dir"; then
  50494. - case $libdir in
  50495. - [\\/]*)
  50496. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  50497. - ;;
  50498. - esac
  50499. - fi
  50500. - add="-l$name"
  50501. - elif test "$hardcode_shlibpath_var" = yes; then
  50502. - add_shlibpath="$dir"
  50503. - add="-l$name"
  50504. - else
  50505. - lib_linked=no
  50506. - fi
  50507. - ;;
  50508. - *) lib_linked=no ;;
  50509. - esac
  50510. - if test "$lib_linked" != yes; then
  50511. - $echo "$modename: configuration error: unsupported hardcode properties"
  50512. - exit $EXIT_FAILURE
  50513. - fi
  50514. - if test -n "$add_shlibpath"; then
  50515. - case :$compile_shlibpath: in
  50516. - *":$add_shlibpath:"*) ;;
  50517. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  50518. - esac
  50519. - fi
  50520. - if test "$linkmode" = prog; then
  50521. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  50522. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  50523. - else
  50524. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  50525. - test -n "$add" && deplibs="$add $deplibs"
  50526. - if test "$hardcode_direct" != yes && \
  50527. - test "$hardcode_minus_L" != yes && \
  50528. - test "$hardcode_shlibpath_var" = yes; then
  50529. - case :$finalize_shlibpath: in
  50530. - *":$libdir:"*) ;;
  50531. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  50532. - esac
  50533. - fi
  50534. - fi
  50535. - fi
  50536. +# func_extract_an_archive dir oldlib
  50537. +func_extract_an_archive ()
  50538. +{
  50539. + $opt_debug
  50540. + f_ex_an_ar_dir="$1"; shift
  50541. + f_ex_an_ar_oldlib="$1"
  50542. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  50543. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  50544. + :
  50545. + else
  50546. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  50547. + fi
  50548. +}
  50549. - if test "$linkmode" = prog || test "$mode" = relink; then
  50550. - add_shlibpath=
  50551. - add_dir=
  50552. - add=
  50553. - # Finalize command for both is simple: just hardcode it.
  50554. - if test "$hardcode_direct" = yes; then
  50555. - add="$libdir/$linklib"
  50556. - elif test "$hardcode_minus_L" = yes; then
  50557. - add_dir="-L$libdir"
  50558. - add="-l$name"
  50559. - elif test "$hardcode_shlibpath_var" = yes; then
  50560. - case :$finalize_shlibpath: in
  50561. - *":$libdir:"*) ;;
  50562. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  50563. - esac
  50564. - add="-l$name"
  50565. - elif test "$hardcode_automatic" = yes; then
  50566. - if test -n "$inst_prefix_dir" &&
  50567. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  50568. - add="$inst_prefix_dir$libdir/$linklib"
  50569. - else
  50570. - add="$libdir/$linklib"
  50571. - fi
  50572. - else
  50573. - # We cannot seem to hardcode it, guess we'll fake it.
  50574. - add_dir="-L$libdir"
  50575. - # Try looking first in the location we're being installed to.
  50576. - if test -n "$inst_prefix_dir"; then
  50577. - case $libdir in
  50578. - [\\/]*)
  50579. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  50580. - ;;
  50581. - esac
  50582. - fi
  50583. - add="-l$name"
  50584. - fi
  50585. - if test "$linkmode" = prog; then
  50586. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  50587. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  50588. - else
  50589. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  50590. - test -n "$add" && deplibs="$add $deplibs"
  50591. - fi
  50592. - fi
  50593. - elif test "$linkmode" = prog; then
  50594. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  50595. - # is not unsupported. This is valid on all known static and
  50596. - # shared platforms.
  50597. - if test "$hardcode_direct" != unsupported; then
  50598. - test -n "$old_library" && linklib="$old_library"
  50599. - compile_deplibs="$dir/$linklib $compile_deplibs"
  50600. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  50601. - else
  50602. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  50603. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  50604. - fi
  50605. - elif test "$build_libtool_libs" = yes; then
  50606. - # Not a shared library
  50607. - if test "$deplibs_check_method" != pass_all; then
  50608. - # We're trying link a shared library against a static one
  50609. - # but the system doesn't support it.
  50610. +# func_extract_archives gentop oldlib ...
  50611. +func_extract_archives ()
  50612. +{
  50613. + $opt_debug
  50614. + my_gentop="$1"; shift
  50615. + my_oldlibs=${1+"$@"}
  50616. + my_oldobjs=""
  50617. + my_xlib=""
  50618. + my_xabs=""
  50619. + my_xdir=""
  50620. - # Just print a warning and add the library to dependency_libs so
  50621. - # that the program can be linked against the static library.
  50622. - $echo
  50623. - $echo "*** Warning: This system can not link to static lib archive $lib."
  50624. - $echo "*** I have the capability to make that library automatically link in when"
  50625. - $echo "*** you link to this library. But I can only do this if you have a"
  50626. - $echo "*** shared version of the library, which you do not appear to have."
  50627. - if test "$module" = yes; then
  50628. - $echo "*** But as you try to build a module library, libtool will still create "
  50629. - $echo "*** a static module, that should work as long as the dlopening application"
  50630. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  50631. - if test -z "$global_symbol_pipe"; then
  50632. - $echo
  50633. - $echo "*** However, this would only work if libtool was able to extract symbol"
  50634. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  50635. - $echo "*** not find such a program. So, this module is probably useless."
  50636. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  50637. - fi
  50638. - if test "$build_old_libs" = no; then
  50639. - build_libtool_libs=module
  50640. - build_old_libs=yes
  50641. - else
  50642. - build_libtool_libs=no
  50643. - fi
  50644. - fi
  50645. + for my_xlib in $my_oldlibs; do
  50646. + # Extract the objects.
  50647. + case $my_xlib in
  50648. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  50649. + *) my_xabs=`pwd`"/$my_xlib" ;;
  50650. + esac
  50651. + func_basename "$my_xlib"
  50652. + my_xlib="$func_basename_result"
  50653. + my_xlib_u=$my_xlib
  50654. + while :; do
  50655. + case " $extracted_archives " in
  50656. + *" $my_xlib_u "*)
  50657. + func_arith $extracted_serial + 1
  50658. + extracted_serial=$func_arith_result
  50659. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  50660. + *) break ;;
  50661. + esac
  50662. + done
  50663. + extracted_archives="$extracted_archives $my_xlib_u"
  50664. + my_xdir="$my_gentop/$my_xlib_u"
  50665. +
  50666. + func_mkdir_p "$my_xdir"
  50667. +
  50668. + case $host in
  50669. + *-darwin*)
  50670. + func_verbose "Extracting $my_xabs"
  50671. + # Do not bother doing anything if just a dry run
  50672. + $opt_dry_run || {
  50673. + darwin_orig_dir=`pwd`
  50674. + cd $my_xdir || exit $?
  50675. + darwin_archive=$my_xabs
  50676. + darwin_curdir=`pwd`
  50677. + darwin_base_archive=`basename "$darwin_archive"`
  50678. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  50679. + if test -n "$darwin_arches"; then
  50680. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  50681. + darwin_arch=
  50682. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  50683. + for darwin_arch in $darwin_arches ; do
  50684. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  50685. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  50686. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  50687. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  50688. + cd "$darwin_curdir"
  50689. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  50690. + done # $darwin_arches
  50691. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  50692. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  50693. + darwin_file=
  50694. + darwin_files=
  50695. + for darwin_file in $darwin_filelist; do
  50696. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  50697. + $LIPO -create -output "$darwin_file" $darwin_files
  50698. + done # $darwin_filelist
  50699. + $RM -rf unfat-$$
  50700. + cd "$darwin_orig_dir"
  50701. else
  50702. - deplibs="$dir/$old_library $deplibs"
  50703. - link_static=yes
  50704. - fi
  50705. - fi # link shared/static library?
  50706. + cd $darwin_orig_dir
  50707. + func_extract_an_archive "$my_xdir" "$my_xabs"
  50708. + fi # $darwin_arches
  50709. + } # !$opt_dry_run
  50710. + ;;
  50711. + *)
  50712. + func_extract_an_archive "$my_xdir" "$my_xabs"
  50713. + ;;
  50714. + esac
  50715. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  50716. + done
  50717. - if test "$linkmode" = lib; then
  50718. - if test -n "$dependency_libs" &&
  50719. - { test "$hardcode_into_libs" != yes ||
  50720. - test "$build_old_libs" = yes ||
  50721. - test "$link_static" = yes; }; then
  50722. - # Extract -R from dependency_libs
  50723. - temp_deplibs=
  50724. - for libdir in $dependency_libs; do
  50725. - case $libdir in
  50726. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  50727. - case " $xrpath " in
  50728. - *" $temp_xrpath "*) ;;
  50729. - *) xrpath="$xrpath $temp_xrpath";;
  50730. - esac;;
  50731. - *) temp_deplibs="$temp_deplibs $libdir";;
  50732. - esac
  50733. - done
  50734. - dependency_libs="$temp_deplibs"
  50735. - fi
  50736. + func_extract_archives_result="$my_oldobjs"
  50737. +}
  50738. - newlib_search_path="$newlib_search_path $absdir"
  50739. - # Link against this library
  50740. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  50741. - # ... and its dependency_libs
  50742. - tmp_libs=
  50743. - for deplib in $dependency_libs; do
  50744. - newdependency_libs="$deplib $newdependency_libs"
  50745. - if test "X$duplicate_deps" = "Xyes" ; then
  50746. - case "$tmp_libs " in
  50747. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50748. - esac
  50749. - fi
  50750. - tmp_libs="$tmp_libs $deplib"
  50751. - done
  50752. - if test "$link_all_deplibs" != no; then
  50753. - # Add the search paths of all dependency libraries
  50754. - for deplib in $dependency_libs; do
  50755. - case $deplib in
  50756. - -L*) path="$deplib" ;;
  50757. - *.la)
  50758. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  50759. - test "X$dir" = "X$deplib" && dir="."
  50760. - # We need an absolute path.
  50761. - case $dir in
  50762. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  50763. - *)
  50764. - absdir=`cd "$dir" && pwd`
  50765. - if test -z "$absdir"; then
  50766. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  50767. - absdir="$dir"
  50768. - fi
  50769. - ;;
  50770. - esac
  50771. - if grep "^installed=no" $deplib > /dev/null; then
  50772. - path="$absdir/$objdir"
  50773. - else
  50774. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  50775. - if test -z "$libdir"; then
  50776. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  50777. - exit $EXIT_FAILURE
  50778. - fi
  50779. - if test "$absdir" != "$libdir"; then
  50780. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  50781. - fi
  50782. - path="$absdir"
  50783. - fi
  50784. - depdepl=
  50785. - case $host in
  50786. - *-*-darwin*)
  50787. - # we do not want to link against static libs,
  50788. - # but need to link against shared
  50789. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  50790. - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  50791. - if test -n "$deplibrary_names" ; then
  50792. - for tmp in $deplibrary_names ; do
  50793. - depdepl=$tmp
  50794. - done
  50795. - if test -f "$deplibdir/$depdepl" ; then
  50796. - depdepl="$deplibdir/$depdepl"
  50797. - elif test -f "$path/$depdepl" ; then
  50798. - depdepl="$path/$depdepl"
  50799. - else
  50800. - # Can't find it, oh well...
  50801. - depdepl=
  50802. - fi
  50803. - # do not add paths which are already there
  50804. - case " $newlib_search_path " in
  50805. - *" $path "*) ;;
  50806. - *) newlib_search_path="$newlib_search_path $path";;
  50807. - esac
  50808. - fi
  50809. - path=""
  50810. - ;;
  50811. - *)
  50812. - path="-L$path"
  50813. - ;;
  50814. - esac
  50815. - ;;
  50816. - -l*)
  50817. - case $host in
  50818. - *-*-darwin*)
  50819. - # Again, we only want to link against shared libraries
  50820. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  50821. - for tmp in $newlib_search_path ; do
  50822. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  50823. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  50824. - break
  50825. - fi
  50826. - done
  50827. - path=""
  50828. - ;;
  50829. - *) continue ;;
  50830. - esac
  50831. - ;;
  50832. - *) continue ;;
  50833. - esac
  50834. - case " $deplibs " in
  50835. - *" $path "*) ;;
  50836. - *) deplibs="$path $deplibs" ;;
  50837. - esac
  50838. - case " $deplibs " in
  50839. - *" $depdepl "*) ;;
  50840. - *) deplibs="$depdepl $deplibs" ;;
  50841. - esac
  50842. - done
  50843. - fi # link_all_deplibs != no
  50844. - fi # linkmode = lib
  50845. - done # for deplib in $libs
  50846. - dependency_libs="$newdependency_libs"
  50847. - if test "$pass" = dlpreopen; then
  50848. - # Link the dlpreopened libraries before other libraries
  50849. - for deplib in $save_deplibs; do
  50850. - deplibs="$deplib $deplibs"
  50851. - done
  50852. - fi
  50853. - if test "$pass" != dlopen; then
  50854. - if test "$pass" != conv; then
  50855. - # Make sure lib_search_path contains only unique directories.
  50856. - lib_search_path=
  50857. - for dir in $newlib_search_path; do
  50858. - case "$lib_search_path " in
  50859. - *" $dir "*) ;;
  50860. - *) lib_search_path="$lib_search_path $dir" ;;
  50861. - esac
  50862. - done
  50863. - newlib_search_path=
  50864. - fi
  50865. - if test "$linkmode,$pass" != "prog,link"; then
  50866. - vars="deplibs"
  50867. - else
  50868. - vars="compile_deplibs finalize_deplibs"
  50869. +# func_emit_wrapper_part1 [arg=no]
  50870. +#
  50871. +# Emit the first part of a libtool wrapper script on stdout.
  50872. +# For more information, see the description associated with
  50873. +# func_emit_wrapper(), below.
  50874. +func_emit_wrapper_part1 ()
  50875. +{
  50876. + func_emit_wrapper_part1_arg1=no
  50877. + if test -n "$1" ; then
  50878. + func_emit_wrapper_part1_arg1=$1
  50879. fi
  50880. - for var in $vars dependency_libs; do
  50881. - # Add libraries to $var in reverse order
  50882. - eval tmp_libs=\"\$$var\"
  50883. - new_libs=
  50884. - for deplib in $tmp_libs; do
  50885. - # FIXME: Pedantically, this is the right thing to do, so
  50886. - # that some nasty dependency loop isn't accidentally
  50887. - # broken:
  50888. - #new_libs="$deplib $new_libs"
  50889. - # Pragmatically, this seems to cause very few problems in
  50890. - # practice:
  50891. - case $deplib in
  50892. - -L*) new_libs="$deplib $new_libs" ;;
  50893. - -R*) ;;
  50894. - *)
  50895. - # And here is the reason: when a library appears more
  50896. - # than once as an explicit dependence of a library, or
  50897. - # is implicitly linked in more than once by the
  50898. - # compiler, it is considered special, and multiple
  50899. - # occurrences thereof are not removed. Compare this
  50900. - # with having the same library being listed as a
  50901. - # dependency of multiple other libraries: in this case,
  50902. - # we know (pedantically, we assume) the library does not
  50903. - # need to be listed more than once, so we keep only the
  50904. - # last copy. This is not always right, but it is rare
  50905. - # enough that we require users that really mean to play
  50906. - # such unportable linking tricks to link the library
  50907. - # using -Wl,-lname, so that libtool does not consider it
  50908. - # for duplicate removal.
  50909. - case " $specialdeplibs " in
  50910. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  50911. - *)
  50912. - case " $new_libs " in
  50913. - *" $deplib "*) ;;
  50914. - *) new_libs="$deplib $new_libs" ;;
  50915. - esac
  50916. - ;;
  50917. - esac
  50918. - ;;
  50919. - esac
  50920. - done
  50921. - tmp_libs=
  50922. - for deplib in $new_libs; do
  50923. - case $deplib in
  50924. - -L*)
  50925. - case " $tmp_libs " in
  50926. - *" $deplib "*) ;;
  50927. - *) tmp_libs="$tmp_libs $deplib" ;;
  50928. - esac
  50929. - ;;
  50930. - *) tmp_libs="$tmp_libs $deplib" ;;
  50931. - esac
  50932. - done
  50933. - eval $var=\"$tmp_libs\"
  50934. - done # for var
  50935. - fi
  50936. - # Last step: remove runtime libs from dependency_libs
  50937. - # (they stay in deplibs)
  50938. - tmp_libs=
  50939. - for i in $dependency_libs ; do
  50940. - case " $predeps $postdeps $compiler_lib_search_path " in
  50941. - *" $i "*)
  50942. - i=""
  50943. - ;;
  50944. - esac
  50945. - if test -n "$i" ; then
  50946. - tmp_libs="$tmp_libs $i"
  50947. - fi
  50948. - done
  50949. - dependency_libs=$tmp_libs
  50950. - done # for pass
  50951. - if test "$linkmode" = prog; then
  50952. - dlfiles="$newdlfiles"
  50953. - dlprefiles="$newdlprefiles"
  50954. +
  50955. + $ECHO "\
  50956. +#! $SHELL
  50957. +
  50958. +# $output - temporary wrapper script for $objdir/$outputname
  50959. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  50960. +#
  50961. +# The $output program cannot be directly executed until all the libtool
  50962. +# libraries that it depends on are installed.
  50963. +#
  50964. +# This wrapper script should never be moved out of the build directory.
  50965. +# If it is, it will not operate correctly.
  50966. +
  50967. +# Sed substitution that helps us do robust quoting. It backslashifies
  50968. +# metacharacters that are still active within double-quoted strings.
  50969. +Xsed='${SED} -e 1s/^X//'
  50970. +sed_quote_subst='$sed_quote_subst'
  50971. +
  50972. +# Be Bourne compatible
  50973. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  50974. + emulate sh
  50975. + NULLCMD=:
  50976. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  50977. + # is contrary to our usage. Disable this feature.
  50978. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  50979. + setopt NO_GLOB_SUBST
  50980. +else
  50981. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  50982. +fi
  50983. +BIN_SH=xpg4; export BIN_SH # for Tru64
  50984. +DUALCASE=1; export DUALCASE # for MKS sh
  50985. +
  50986. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  50987. +# if CDPATH is set.
  50988. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  50989. +
  50990. +relink_command=\"$relink_command\"
  50991. +
  50992. +# This environment variable determines our operation mode.
  50993. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  50994. + # install mode needs the following variables:
  50995. + generated_by_libtool_version='$macro_version'
  50996. + notinst_deplibs='$notinst_deplibs'
  50997. +else
  50998. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  50999. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  51000. + ECHO=\"$qecho\"
  51001. + file=\"\$0\"
  51002. + # Make sure echo works.
  51003. + if test \"X\$1\" = X--no-reexec; then
  51004. + # Discard the --no-reexec flag, and continue.
  51005. + shift
  51006. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  51007. + # Yippee, \$ECHO works!
  51008. + :
  51009. + else
  51010. + # Restart under the correct shell, and then maybe \$ECHO will work.
  51011. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  51012. fi
  51013. + fi\
  51014. +"
  51015. + $ECHO "\
  51016. - case $linkmode in
  51017. - oldlib)
  51018. - case " $deplibs" in
  51019. - *\ -l* | *\ -L*)
  51020. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  51021. + # Find the directory that this script lives in.
  51022. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  51023. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  51024. +
  51025. + # Follow symbolic links until we get to the real thisdir.
  51026. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  51027. + while test -n \"\$file\"; do
  51028. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  51029. +
  51030. + # If there was a directory component, then change thisdir.
  51031. + if test \"x\$destdir\" != \"x\$file\"; then
  51032. + case \"\$destdir\" in
  51033. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  51034. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  51035. esac
  51036. + fi
  51037. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51038. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  51039. - fi
  51040. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  51041. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  51042. + done
  51043. +"
  51044. +}
  51045. +# end: func_emit_wrapper_part1
  51046. - if test -n "$rpath"; then
  51047. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  51048. - fi
  51049. +# func_emit_wrapper_part2 [arg=no]
  51050. +#
  51051. +# Emit the second part of a libtool wrapper script on stdout.
  51052. +# For more information, see the description associated with
  51053. +# func_emit_wrapper(), below.
  51054. +func_emit_wrapper_part2 ()
  51055. +{
  51056. + func_emit_wrapper_part2_arg1=no
  51057. + if test -n "$1" ; then
  51058. + func_emit_wrapper_part2_arg1=$1
  51059. + fi
  51060. +
  51061. + $ECHO "\
  51062. +
  51063. + # Usually 'no', except on cygwin/mingw when embedded into
  51064. + # the cwrapper.
  51065. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  51066. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  51067. + # special case for '.'
  51068. + if test \"\$thisdir\" = \".\"; then
  51069. + thisdir=\`pwd\`
  51070. + fi
  51071. + # remove .libs from thisdir
  51072. + case \"\$thisdir\" in
  51073. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  51074. + $objdir ) thisdir=. ;;
  51075. + esac
  51076. + fi
  51077. - if test -n "$xrpath"; then
  51078. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  51079. - fi
  51080. + # Try to get the absolute directory name.
  51081. + absdir=\`cd \"\$thisdir\" && pwd\`
  51082. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  51083. +"
  51084. - if test -n "$vinfo"; then
  51085. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  51086. - fi
  51087. + if test "$fast_install" = yes; then
  51088. + $ECHO "\
  51089. + program=lt-'$outputname'$exeext
  51090. + progdir=\"\$thisdir/$objdir\"
  51091. - if test -n "$release"; then
  51092. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  51093. - fi
  51094. + if test ! -f \"\$progdir/\$program\" ||
  51095. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  51096. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  51097. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  51098. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  51099. - fi
  51100. + file=\"\$\$-\$program\"
  51101. - # Now set the variables for building old libraries.
  51102. - build_libtool_libs=no
  51103. - oldlibs="$output"
  51104. - objs="$objs$old_deplibs"
  51105. - ;;
  51106. + if test ! -d \"\$progdir\"; then
  51107. + $MKDIR \"\$progdir\"
  51108. + else
  51109. + $RM \"\$progdir/\$file\"
  51110. + fi"
  51111. - lib)
  51112. - # Make sure we only generate libraries of the form `libNAME.la'.
  51113. - case $outputname in
  51114. - lib*)
  51115. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  51116. - eval shared_ext=\"$shrext_cmds\"
  51117. - eval libname=\"$libname_spec\"
  51118. - ;;
  51119. - *)
  51120. - if test "$module" = no; then
  51121. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  51122. - $echo "$help" 1>&2
  51123. - exit $EXIT_FAILURE
  51124. - fi
  51125. - if test "$need_lib_prefix" != no; then
  51126. - # Add the "lib" prefix for modules if required
  51127. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  51128. - eval shared_ext=\"$shrext_cmds\"
  51129. - eval libname=\"$libname_spec\"
  51130. - else
  51131. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  51132. - fi
  51133. - ;;
  51134. - esac
  51135. + $ECHO "\
  51136. - if test -n "$objs"; then
  51137. - if test "$deplibs_check_method" != pass_all; then
  51138. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  51139. - exit $EXIT_FAILURE
  51140. + # relink executable if necessary
  51141. + if test -n \"\$relink_command\"; then
  51142. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  51143. + else
  51144. + $ECHO \"\$relink_command_output\" >&2
  51145. + $RM \"\$progdir/\$file\"
  51146. + exit 1
  51147. + fi
  51148. + fi
  51149. +
  51150. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  51151. + { $RM \"\$progdir/\$program\";
  51152. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  51153. + $RM \"\$progdir/\$file\"
  51154. + fi"
  51155. else
  51156. - $echo
  51157. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  51158. - $echo "*** objects $objs is not portable!"
  51159. - libobjs="$libobjs $objs"
  51160. + $ECHO "\
  51161. + program='$outputname'
  51162. + progdir=\"\$thisdir/$objdir\"
  51163. +"
  51164. fi
  51165. - fi
  51166. - if test "$dlself" != no; then
  51167. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  51168. - fi
  51169. + $ECHO "\
  51170. - set dummy $rpath
  51171. - if test "$#" -gt 2; then
  51172. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  51173. - fi
  51174. - install_libdir="$2"
  51175. + if test -f \"\$progdir/\$program\"; then"
  51176. - oldlibs=
  51177. - if test -z "$rpath"; then
  51178. - if test "$build_libtool_libs" = yes; then
  51179. - # Building a libtool convenience library.
  51180. - # Some compilers have problems with a `.al' extension so
  51181. - # convenience libraries should have the same extension an
  51182. - # archive normally would.
  51183. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  51184. - build_libtool_libs=convenience
  51185. - build_old_libs=yes
  51186. - fi
  51187. + # Export our shlibpath_var if we have one.
  51188. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  51189. + $ECHO "\
  51190. + # Add our own library path to $shlibpath_var
  51191. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  51192. - if test -n "$vinfo"; then
  51193. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  51194. + # Some systems cannot cope with colon-terminated $shlibpath_var
  51195. + # The second colon is a workaround for a bug in BeOS R4 sed
  51196. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  51197. +
  51198. + export $shlibpath_var
  51199. +"
  51200. fi
  51201. - if test -n "$release"; then
  51202. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  51203. + # fixup the dll searchpath if we need to.
  51204. + if test -n "$dllsearchpath"; then
  51205. + $ECHO "\
  51206. + # Add the dll search path components to the executable PATH
  51207. + PATH=$dllsearchpath:\$PATH
  51208. +"
  51209. fi
  51210. - else
  51211. - # Parse the version information argument.
  51212. - save_ifs="$IFS"; IFS=':'
  51213. - set dummy $vinfo 0 0 0
  51214. - IFS="$save_ifs"
  51215. + $ECHO "\
  51216. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  51217. + # Run the actual program with our arguments.
  51218. +"
  51219. + case $host in
  51220. + # Backslashes separate directories on plain windows
  51221. + *-*-mingw | *-*-os2* | *-cegcc*)
  51222. + $ECHO "\
  51223. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  51224. +"
  51225. + ;;
  51226. +
  51227. + *)
  51228. + $ECHO "\
  51229. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  51230. +"
  51231. + ;;
  51232. + esac
  51233. + $ECHO "\
  51234. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  51235. + exit 1
  51236. + fi
  51237. + else
  51238. + # The program doesn't exist.
  51239. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  51240. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  51241. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  51242. + exit 1
  51243. + fi
  51244. +fi\
  51245. +"
  51246. +}
  51247. +# end: func_emit_wrapper_part2
  51248. - if test -n "$8"; then
  51249. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  51250. - $echo "$help" 1>&2
  51251. - exit $EXIT_FAILURE
  51252. +
  51253. +# func_emit_wrapper [arg=no]
  51254. +#
  51255. +# Emit a libtool wrapper script on stdout.
  51256. +# Don't directly open a file because we may want to
  51257. +# incorporate the script contents within a cygwin/mingw
  51258. +# wrapper executable. Must ONLY be called from within
  51259. +# func_mode_link because it depends on a number of variables
  51260. +# set therein.
  51261. +#
  51262. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  51263. +# variable will take. If 'yes', then the emitted script
  51264. +# will assume that the directory in which it is stored is
  51265. +# the $objdir directory. This is a cygwin/mingw-specific
  51266. +# behavior.
  51267. +func_emit_wrapper ()
  51268. +{
  51269. + func_emit_wrapper_arg1=no
  51270. + if test -n "$1" ; then
  51271. + func_emit_wrapper_arg1=$1
  51272. fi
  51273. - # convert absolute version numbers to libtool ages
  51274. - # this retains compatibility with .la files and attempts
  51275. - # to make the code below a bit more comprehensible
  51276. + # split this up so that func_emit_cwrapperexe_src
  51277. + # can call each part independently.
  51278. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  51279. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  51280. +}
  51281. - case $vinfo_number in
  51282. - yes)
  51283. - number_major="$2"
  51284. - number_minor="$3"
  51285. - number_revision="$4"
  51286. - #
  51287. - # There are really only two kinds -- those that
  51288. - # use the current revision as the major version
  51289. - # and those that subtract age and use age as
  51290. - # a minor version. But, then there is irix
  51291. - # which has an extra 1 added just for fun
  51292. - #
  51293. - case $version_type in
  51294. - darwin|linux|osf|windows|none)
  51295. - current=`expr $number_major + $number_minor`
  51296. - age="$number_minor"
  51297. - revision="$number_revision"
  51298. - ;;
  51299. - freebsd-aout|freebsd-elf|sunos)
  51300. - current="$number_major"
  51301. - revision="$number_minor"
  51302. - age="0"
  51303. - ;;
  51304. - irix|nonstopux)
  51305. - current=`expr $number_major + $number_minor`
  51306. - age="$number_minor"
  51307. - revision="$number_minor"
  51308. - lt_irix_increment=no
  51309. - ;;
  51310. - esac
  51311. - ;;
  51312. - no)
  51313. - current="$2"
  51314. - revision="$3"
  51315. - age="$4"
  51316. - ;;
  51317. - esac
  51318. - # Check that each of the things are valid numbers.
  51319. - case $current in
  51320. - 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]) ;;
  51321. - *)
  51322. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  51323. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51324. - exit $EXIT_FAILURE
  51325. - ;;
  51326. - esac
  51327. +# func_to_host_path arg
  51328. +#
  51329. +# Convert paths to host format when used with build tools.
  51330. +# Intended for use with "native" mingw (where libtool itself
  51331. +# is running under the msys shell), or in the following cross-
  51332. +# build environments:
  51333. +# $build $host
  51334. +# mingw (msys) mingw [e.g. native]
  51335. +# cygwin mingw
  51336. +# *nix + wine mingw
  51337. +# where wine is equipped with the `winepath' executable.
  51338. +# In the native mingw case, the (msys) shell automatically
  51339. +# converts paths for any non-msys applications it launches,
  51340. +# but that facility isn't available from inside the cwrapper.
  51341. +# Similar accommodations are necessary for $host mingw and
  51342. +# $build cygwin. Calling this function does no harm for other
  51343. +# $host/$build combinations not listed above.
  51344. +#
  51345. +# ARG is the path (on $build) that should be converted to
  51346. +# the proper representation for $host. The result is stored
  51347. +# in $func_to_host_path_result.
  51348. +func_to_host_path ()
  51349. +{
  51350. + func_to_host_path_result="$1"
  51351. + if test -n "$1" ; then
  51352. + case $host in
  51353. + *mingw* )
  51354. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  51355. + case $build in
  51356. + *mingw* ) # actually, msys
  51357. + # awkward: cmd appends spaces to result
  51358. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  51359. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  51360. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  51361. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51362. + $SED -e "$lt_sed_naive_backslashify"`
  51363. + ;;
  51364. + *cygwin* )
  51365. + func_to_host_path_tmp1=`cygpath -w "$1"`
  51366. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51367. + $SED -e "$lt_sed_naive_backslashify"`
  51368. + ;;
  51369. + * )
  51370. + # Unfortunately, winepath does not exit with a non-zero
  51371. + # error code, so we are forced to check the contents of
  51372. + # stdout. On the other hand, if the command is not
  51373. + # found, the shell will set an exit code of 127 and print
  51374. + # *an error message* to stdout. So we must check for both
  51375. + # error code of zero AND non-empty stdout, which explains
  51376. + # the odd construction:
  51377. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  51378. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  51379. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51380. + $SED -e "$lt_sed_naive_backslashify"`
  51381. + else
  51382. + # Allow warning below.
  51383. + func_to_host_path_result=""
  51384. + fi
  51385. + ;;
  51386. + esac
  51387. + if test -z "$func_to_host_path_result" ; then
  51388. + func_error "Could not determine host path corresponding to"
  51389. + func_error " '$1'"
  51390. + func_error "Continuing, but uninstalled executables may not work."
  51391. + # Fallback:
  51392. + func_to_host_path_result="$1"
  51393. + fi
  51394. + ;;
  51395. + esac
  51396. + fi
  51397. +}
  51398. +# end: func_to_host_path
  51399. - case $revision in
  51400. - 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]) ;;
  51401. - *)
  51402. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  51403. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51404. - exit $EXIT_FAILURE
  51405. - ;;
  51406. - esac
  51407. +# func_to_host_pathlist arg
  51408. +#
  51409. +# Convert pathlists to host format when used with build tools.
  51410. +# See func_to_host_path(), above. This function supports the
  51411. +# following $build/$host combinations (but does no harm for
  51412. +# combinations not listed here):
  51413. +# $build $host
  51414. +# mingw (msys) mingw [e.g. native]
  51415. +# cygwin mingw
  51416. +# *nix + wine mingw
  51417. +#
  51418. +# Path separators are also converted from $build format to
  51419. +# $host format. If ARG begins or ends with a path separator
  51420. +# character, it is preserved (but converted to $host format)
  51421. +# on output.
  51422. +#
  51423. +# ARG is a pathlist (on $build) that should be converted to
  51424. +# the proper representation on $host. The result is stored
  51425. +# in $func_to_host_pathlist_result.
  51426. +func_to_host_pathlist ()
  51427. +{
  51428. + func_to_host_pathlist_result="$1"
  51429. + if test -n "$1" ; then
  51430. + case $host in
  51431. + *mingw* )
  51432. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  51433. + # Remove leading and trailing path separator characters from
  51434. + # ARG. msys behavior is inconsistent here, cygpath turns them
  51435. + # into '.;' and ';.', and winepath ignores them completely.
  51436. + func_to_host_pathlist_tmp2="$1"
  51437. + # Once set for this call, this variable should not be
  51438. + # reassigned. It is used in tha fallback case.
  51439. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  51440. + $SED -e 's|^:*||' -e 's|:*$||'`
  51441. + case $build in
  51442. + *mingw* ) # Actually, msys.
  51443. + # Awkward: cmd appends spaces to result.
  51444. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  51445. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  51446. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  51447. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  51448. + $SED -e "$lt_sed_naive_backslashify"`
  51449. + ;;
  51450. + *cygwin* )
  51451. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  51452. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  51453. + $SED -e "$lt_sed_naive_backslashify"`
  51454. + ;;
  51455. + * )
  51456. + # unfortunately, winepath doesn't convert pathlists
  51457. + func_to_host_pathlist_result=""
  51458. + func_to_host_pathlist_oldIFS=$IFS
  51459. + IFS=:
  51460. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  51461. + IFS=$func_to_host_pathlist_oldIFS
  51462. + if test -n "$func_to_host_pathlist_f" ; then
  51463. + func_to_host_path "$func_to_host_pathlist_f"
  51464. + if test -n "$func_to_host_path_result" ; then
  51465. + if test -z "$func_to_host_pathlist_result" ; then
  51466. + func_to_host_pathlist_result="$func_to_host_path_result"
  51467. + else
  51468. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  51469. + fi
  51470. + fi
  51471. + fi
  51472. + IFS=:
  51473. + done
  51474. + IFS=$func_to_host_pathlist_oldIFS
  51475. + ;;
  51476. + esac
  51477. + if test -z "$func_to_host_pathlist_result" ; then
  51478. + func_error "Could not determine the host path(s) corresponding to"
  51479. + func_error " '$1'"
  51480. + func_error "Continuing, but uninstalled executables may not work."
  51481. + # Fallback. This may break if $1 contains DOS-style drive
  51482. + # specifications. The fix is not to complicate the expression
  51483. + # below, but for the user to provide a working wine installation
  51484. + # with winepath so that path translation in the cross-to-mingw
  51485. + # case works properly.
  51486. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  51487. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  51488. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  51489. + fi
  51490. + # Now, add the leading and trailing path separators back
  51491. + case "$1" in
  51492. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  51493. + ;;
  51494. + esac
  51495. + case "$1" in
  51496. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  51497. + ;;
  51498. + esac
  51499. + ;;
  51500. + esac
  51501. + fi
  51502. +}
  51503. +# end: func_to_host_pathlist
  51504. - case $age in
  51505. - 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]) ;;
  51506. - *)
  51507. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  51508. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51509. - exit $EXIT_FAILURE
  51510. - ;;
  51511. - esac
  51512. +# func_emit_cwrapperexe_src
  51513. +# emit the source code for a wrapper executable on stdout
  51514. +# Must ONLY be called from within func_mode_link because
  51515. +# it depends on a number of variable set therein.
  51516. +func_emit_cwrapperexe_src ()
  51517. +{
  51518. + cat <<EOF
  51519. - if test "$age" -gt "$current"; then
  51520. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  51521. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51522. - exit $EXIT_FAILURE
  51523. - fi
  51524. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  51525. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  51526. - # Calculate the version variables.
  51527. - major=
  51528. - versuffix=
  51529. - verstring=
  51530. - case $version_type in
  51531. - none) ;;
  51532. + The $output program cannot be directly executed until all the libtool
  51533. + libraries that it depends on are installed.
  51534. - darwin)
  51535. - # Like Linux, but with the current version available in
  51536. - # verstring for coding it into the library header
  51537. - major=.`expr $current - $age`
  51538. - versuffix="$major.$age.$revision"
  51539. - # Darwin ld doesn't like 0 for these options...
  51540. - minor_current=`expr $current + 1`
  51541. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  51542. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  51543. - ;;
  51544. + This wrapper executable should never be moved out of the build directory.
  51545. + If it is, it will not operate correctly.
  51546. - freebsd-aout)
  51547. - major=".$current"
  51548. - versuffix=".$current.$revision";
  51549. - ;;
  51550. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  51551. + but could eventually absorb all of the scripts functionality and
  51552. + exec $objdir/$outputname directly.
  51553. +*/
  51554. +EOF
  51555. + cat <<"EOF"
  51556. +#include <stdio.h>
  51557. +#include <stdlib.h>
  51558. +#ifdef _MSC_VER
  51559. +# include <direct.h>
  51560. +# include <process.h>
  51561. +# include <io.h>
  51562. +# define setmode _setmode
  51563. +#else
  51564. +# include <unistd.h>
  51565. +# include <stdint.h>
  51566. +# ifdef __CYGWIN__
  51567. +# include <io.h>
  51568. +# define HAVE_SETENV
  51569. +# ifdef __STRICT_ANSI__
  51570. +char *realpath (const char *, char *);
  51571. +int putenv (char *);
  51572. +int setenv (const char *, const char *, int);
  51573. +# endif
  51574. +# endif
  51575. +#endif
  51576. +#include <malloc.h>
  51577. +#include <stdarg.h>
  51578. +#include <assert.h>
  51579. +#include <string.h>
  51580. +#include <ctype.h>
  51581. +#include <errno.h>
  51582. +#include <fcntl.h>
  51583. +#include <sys/stat.h>
  51584. - freebsd-elf)
  51585. - major=".$current"
  51586. - versuffix=".$current";
  51587. - ;;
  51588. +#if defined(PATH_MAX)
  51589. +# define LT_PATHMAX PATH_MAX
  51590. +#elif defined(MAXPATHLEN)
  51591. +# define LT_PATHMAX MAXPATHLEN
  51592. +#else
  51593. +# define LT_PATHMAX 1024
  51594. +#endif
  51595. - irix | nonstopux)
  51596. - if test "X$lt_irix_increment" = "Xno"; then
  51597. - major=`expr $current - $age`
  51598. - else
  51599. - major=`expr $current - $age + 1`
  51600. - fi
  51601. - case $version_type in
  51602. - nonstopux) verstring_prefix=nonstopux ;;
  51603. - *) verstring_prefix=sgi ;;
  51604. - esac
  51605. - verstring="$verstring_prefix$major.$revision"
  51606. +#ifndef S_IXOTH
  51607. +# define S_IXOTH 0
  51608. +#endif
  51609. +#ifndef S_IXGRP
  51610. +# define S_IXGRP 0
  51611. +#endif
  51612. - # Add in all the interfaces that we are compatible with.
  51613. - loop=$revision
  51614. - while test "$loop" -ne 0; do
  51615. - iface=`expr $revision - $loop`
  51616. - loop=`expr $loop - 1`
  51617. - verstring="$verstring_prefix$major.$iface:$verstring"
  51618. - done
  51619. +#ifdef _MSC_VER
  51620. +# define S_IXUSR _S_IEXEC
  51621. +# define stat _stat
  51622. +# ifndef _INTPTR_T_DEFINED
  51623. +# define intptr_t int
  51624. +# endif
  51625. +#endif
  51626. - # Before this point, $major must not contain `.'.
  51627. - major=.$major
  51628. - versuffix="$major.$revision"
  51629. - ;;
  51630. +#ifndef DIR_SEPARATOR
  51631. +# define DIR_SEPARATOR '/'
  51632. +# define PATH_SEPARATOR ':'
  51633. +#endif
  51634. - linux)
  51635. - major=.`expr $current - $age`
  51636. - versuffix="$major.$age.$revision"
  51637. - ;;
  51638. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  51639. + defined (__OS2__)
  51640. +# define HAVE_DOS_BASED_FILE_SYSTEM
  51641. +# define FOPEN_WB "wb"
  51642. +# ifndef DIR_SEPARATOR_2
  51643. +# define DIR_SEPARATOR_2 '\\'
  51644. +# endif
  51645. +# ifndef PATH_SEPARATOR_2
  51646. +# define PATH_SEPARATOR_2 ';'
  51647. +# endif
  51648. +#endif
  51649. - osf)
  51650. - major=.`expr $current - $age`
  51651. - versuffix=".$current.$age.$revision"
  51652. - verstring="$current.$age.$revision"
  51653. +#ifndef DIR_SEPARATOR_2
  51654. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  51655. +#else /* DIR_SEPARATOR_2 */
  51656. +# define IS_DIR_SEPARATOR(ch) \
  51657. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  51658. +#endif /* DIR_SEPARATOR_2 */
  51659. - # Add in all the interfaces that we are compatible with.
  51660. - loop=$age
  51661. - while test "$loop" -ne 0; do
  51662. - iface=`expr $current - $loop`
  51663. - loop=`expr $loop - 1`
  51664. - verstring="$verstring:${iface}.0"
  51665. - done
  51666. +#ifndef PATH_SEPARATOR_2
  51667. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  51668. +#else /* PATH_SEPARATOR_2 */
  51669. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  51670. +#endif /* PATH_SEPARATOR_2 */
  51671. - # Make executables depend on our current version.
  51672. - verstring="$verstring:${current}.0"
  51673. - ;;
  51674. +#ifdef __CYGWIN__
  51675. +# define FOPEN_WB "wb"
  51676. +#endif
  51677. - sunos)
  51678. - major=".$current"
  51679. - versuffix=".$current.$revision"
  51680. - ;;
  51681. +#ifndef FOPEN_WB
  51682. +# define FOPEN_WB "w"
  51683. +#endif
  51684. +#ifndef _O_BINARY
  51685. +# define _O_BINARY 0
  51686. +#endif
  51687. - windows)
  51688. - # Use '-' rather than '.', since we only want one
  51689. - # extension on DOS 8.3 filesystems.
  51690. - major=`expr $current - $age`
  51691. - versuffix="-$major"
  51692. - ;;
  51693. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  51694. +#define XFREE(stale) do { \
  51695. + if (stale) { free ((void *) stale); stale = 0; } \
  51696. +} while (0)
  51697. - *)
  51698. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  51699. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  51700. - exit $EXIT_FAILURE
  51701. - ;;
  51702. - esac
  51703. +#undef LTWRAPPER_DEBUGPRINTF
  51704. +#if defined DEBUGWRAPPER
  51705. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  51706. +static void
  51707. +ltwrapper_debugprintf (const char *fmt, ...)
  51708. +{
  51709. + va_list args;
  51710. + va_start (args, fmt);
  51711. + (void) vfprintf (stderr, fmt, args);
  51712. + va_end (args);
  51713. +}
  51714. +#else
  51715. +# define LTWRAPPER_DEBUGPRINTF(args)
  51716. +#endif
  51717. - # Clear the version info if we defaulted, and they specified a release.
  51718. - if test -z "$vinfo" && test -n "$release"; then
  51719. - major=
  51720. - case $version_type in
  51721. - darwin)
  51722. - # we can't check for "0.0" in archive_cmds due to quoting
  51723. - # problems, so we reset it completely
  51724. - verstring=
  51725. - ;;
  51726. - *)
  51727. - verstring="0.0"
  51728. - ;;
  51729. - esac
  51730. - if test "$need_version" = no; then
  51731. - versuffix=
  51732. - else
  51733. - versuffix=".0.0"
  51734. - fi
  51735. - fi
  51736. +const char *program_name = NULL;
  51737. - # Remove version info from name if versioning should be avoided
  51738. - if test "$avoid_version" = yes && test "$need_version" = no; then
  51739. - major=
  51740. - versuffix=
  51741. - verstring=""
  51742. - fi
  51743. +void *xmalloc (size_t num);
  51744. +char *xstrdup (const char *string);
  51745. +const char *base_name (const char *name);
  51746. +char *find_executable (const char *wrapper);
  51747. +char *chase_symlinks (const char *pathspec);
  51748. +int make_executable (const char *path);
  51749. +int check_executable (const char *path);
  51750. +char *strendzap (char *str, const char *pat);
  51751. +void lt_fatal (const char *message, ...);
  51752. +void lt_setenv (const char *name, const char *value);
  51753. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  51754. +void lt_opt_process_env_set (const char *arg);
  51755. +void lt_opt_process_env_prepend (const char *arg);
  51756. +void lt_opt_process_env_append (const char *arg);
  51757. +int lt_split_name_value (const char *arg, char** name, char** value);
  51758. +void lt_update_exe_path (const char *name, const char *value);
  51759. +void lt_update_lib_path (const char *name, const char *value);
  51760. - # Check to see if the archive will have undefined symbols.
  51761. - if test "$allow_undefined" = yes; then
  51762. - if test "$allow_undefined_flag" = unsupported; then
  51763. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  51764. - build_libtool_libs=no
  51765. - build_old_libs=yes
  51766. - fi
  51767. - else
  51768. - # Don't allow undefined symbols.
  51769. - allow_undefined_flag="$no_undefined_flag"
  51770. - fi
  51771. - fi
  51772. +static const char *script_text_part1 =
  51773. +EOF
  51774. - if test "$mode" != relink; then
  51775. - # Remove our outputs, but don't remove object files since they
  51776. - # may have been created when compiling PIC objects.
  51777. - removelist=
  51778. - tempremovelist=`$echo "$output_objdir/*"`
  51779. - for p in $tempremovelist; do
  51780. - case $p in
  51781. - *.$objext)
  51782. - ;;
  51783. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  51784. - if test "X$precious_files_regex" != "X"; then
  51785. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  51786. - then
  51787. - continue
  51788. - fi
  51789. - fi
  51790. - removelist="$removelist $p"
  51791. - ;;
  51792. - *) ;;
  51793. - esac
  51794. - done
  51795. - if test -n "$removelist"; then
  51796. - $show "${rm}r $removelist"
  51797. - $run ${rm}r $removelist
  51798. - fi
  51799. - fi
  51800. + func_emit_wrapper_part1 yes |
  51801. + $SED -e 's/\([\\"]\)/\\\1/g' \
  51802. + -e 's/^/ "/' -e 's/$/\\n"/'
  51803. + echo ";"
  51804. + cat <<EOF
  51805. - # Now set the variables for building old libraries.
  51806. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  51807. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  51808. +static const char *script_text_part2 =
  51809. +EOF
  51810. + func_emit_wrapper_part2 yes |
  51811. + $SED -e 's/\([\\"]\)/\\\1/g' \
  51812. + -e 's/^/ "/' -e 's/$/\\n"/'
  51813. + echo ";"
  51814. +
  51815. + cat <<EOF
  51816. +const char * MAGIC_EXE = "$magic_exe";
  51817. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  51818. +EOF
  51819. - # Transform .lo files to .o files.
  51820. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  51821. - fi
  51822. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  51823. + func_to_host_pathlist "$temp_rpath"
  51824. + cat <<EOF
  51825. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  51826. +EOF
  51827. + else
  51828. + cat <<"EOF"
  51829. +const char * LIB_PATH_VALUE = "";
  51830. +EOF
  51831. + fi
  51832. - # Eliminate all temporary directories.
  51833. - #for path in $notinst_path; do
  51834. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  51835. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  51836. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  51837. - #done
  51838. + if test -n "$dllsearchpath"; then
  51839. + func_to_host_pathlist "$dllsearchpath:"
  51840. + cat <<EOF
  51841. +const char * EXE_PATH_VARNAME = "PATH";
  51842. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  51843. +EOF
  51844. + else
  51845. + cat <<"EOF"
  51846. +const char * EXE_PATH_VARNAME = "";
  51847. +const char * EXE_PATH_VALUE = "";
  51848. +EOF
  51849. + fi
  51850. - if test -n "$xrpath"; then
  51851. - # If the user specified any rpath flags, then add them.
  51852. - temp_xrpath=
  51853. - for libdir in $xrpath; do
  51854. - temp_xrpath="$temp_xrpath -R$libdir"
  51855. - case "$finalize_rpath " in
  51856. - *" $libdir "*) ;;
  51857. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  51858. - esac
  51859. - done
  51860. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  51861. - dependency_libs="$temp_xrpath $dependency_libs"
  51862. - fi
  51863. - fi
  51864. + if test "$fast_install" = yes; then
  51865. + cat <<EOF
  51866. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  51867. +EOF
  51868. + else
  51869. + cat <<EOF
  51870. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  51871. +EOF
  51872. + fi
  51873. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  51874. - old_dlfiles="$dlfiles"
  51875. - dlfiles=
  51876. - for lib in $old_dlfiles; do
  51877. - case " $dlprefiles $dlfiles " in
  51878. - *" $lib "*) ;;
  51879. - *) dlfiles="$dlfiles $lib" ;;
  51880. - esac
  51881. - done
  51882. - # Make sure dlprefiles contains only unique files
  51883. - old_dlprefiles="$dlprefiles"
  51884. - dlprefiles=
  51885. - for lib in $old_dlprefiles; do
  51886. - case "$dlprefiles " in
  51887. - *" $lib "*) ;;
  51888. - *) dlprefiles="$dlprefiles $lib" ;;
  51889. - esac
  51890. - done
  51891. + cat <<"EOF"
  51892. - if test "$build_libtool_libs" = yes; then
  51893. - if test -n "$rpath"; then
  51894. - case $host in
  51895. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  51896. - # these systems don't actually have a c library (as such)!
  51897. - ;;
  51898. - *-*-rhapsody* | *-*-darwin1.[012])
  51899. - # Rhapsody C library is in the System framework
  51900. - deplibs="$deplibs -framework System"
  51901. - ;;
  51902. - *-*-netbsd*)
  51903. - # Don't link with libc until the a.out ld.so is fixed.
  51904. - ;;
  51905. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  51906. - # Do not include libc due to us having libc/libc_r.
  51907. - ;;
  51908. - *-*-sco3.2v5* | *-*-sco5v6*)
  51909. - # Causes problems with __ctype
  51910. - ;;
  51911. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  51912. - # Compiler inserts libc in the correct place for threads to work
  51913. - ;;
  51914. - *)
  51915. - # Add libc to deplibs on all other systems if necessary.
  51916. - if test "$build_libtool_need_lc" = "yes"; then
  51917. - deplibs="$deplibs -lc"
  51918. - fi
  51919. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  51920. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  51921. +
  51922. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  51923. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  51924. +
  51925. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  51926. +
  51927. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  51928. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  51929. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  51930. +
  51931. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  51932. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  51933. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  51934. +
  51935. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  51936. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  51937. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  51938. +
  51939. +int
  51940. +main (int argc, char *argv[])
  51941. +{
  51942. + char **newargz;
  51943. + int newargc;
  51944. + char *tmp_pathspec;
  51945. + char *actual_cwrapper_path;
  51946. + char *actual_cwrapper_name;
  51947. + char *target_name;
  51948. + char *lt_argv_zero;
  51949. + intptr_t rval = 127;
  51950. +
  51951. + int i;
  51952. +
  51953. + program_name = (char *) xstrdup (base_name (argv[0]));
  51954. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  51955. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  51956. +
  51957. + /* very simple arg parsing; don't want to rely on getopt */
  51958. + for (i = 1; i < argc; i++)
  51959. + {
  51960. + if (strcmp (argv[i], dumpscript_opt) == 0)
  51961. + {
  51962. +EOF
  51963. + case "$host" in
  51964. + *mingw* | *cygwin* )
  51965. + # make stdout use "unix" line endings
  51966. + echo " setmode(1,_O_BINARY);"
  51967. + ;;
  51968. + esac
  51969. +
  51970. + cat <<"EOF"
  51971. + printf ("%s", script_text_part1);
  51972. + printf ("%s", script_text_part2);
  51973. + return 0;
  51974. + }
  51975. + }
  51976. +
  51977. + newargz = XMALLOC (char *, argc + 1);
  51978. + tmp_pathspec = find_executable (argv[0]);
  51979. + if (tmp_pathspec == NULL)
  51980. + lt_fatal ("Couldn't find %s", argv[0]);
  51981. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  51982. + tmp_pathspec));
  51983. +
  51984. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  51985. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  51986. + actual_cwrapper_path));
  51987. + XFREE (tmp_pathspec);
  51988. +
  51989. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  51990. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  51991. +
  51992. + /* wrapper name transforms */
  51993. + strendzap (actual_cwrapper_name, ".exe");
  51994. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  51995. + XFREE (actual_cwrapper_name);
  51996. + actual_cwrapper_name = tmp_pathspec;
  51997. + tmp_pathspec = 0;
  51998. +
  51999. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  52000. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  52001. + strendzap (target_name, ".exe");
  52002. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  52003. + XFREE (target_name);
  52004. + target_name = tmp_pathspec;
  52005. + tmp_pathspec = 0;
  52006. +
  52007. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  52008. + target_name));
  52009. +EOF
  52010. +
  52011. + cat <<EOF
  52012. + newargz[0] =
  52013. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  52014. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  52015. + strcpy (newargz[0], actual_cwrapper_path);
  52016. + strcat (newargz[0], "$objdir");
  52017. + strcat (newargz[0], "/");
  52018. +EOF
  52019. +
  52020. + cat <<"EOF"
  52021. + /* stop here, and copy so we don't have to do this twice */
  52022. + tmp_pathspec = xstrdup (newargz[0]);
  52023. +
  52024. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  52025. + strcat (newargz[0], actual_cwrapper_name);
  52026. +
  52027. + /* DO want the lt- prefix here if it exists, so use target_name */
  52028. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  52029. + XFREE (tmp_pathspec);
  52030. + tmp_pathspec = NULL;
  52031. +EOF
  52032. +
  52033. + case $host_os in
  52034. + mingw*)
  52035. + cat <<"EOF"
  52036. + {
  52037. + char* p;
  52038. + while ((p = strchr (newargz[0], '\\')) != NULL)
  52039. + {
  52040. + *p = '/';
  52041. + }
  52042. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  52043. + {
  52044. + *p = '/';
  52045. + }
  52046. + }
  52047. +EOF
  52048. ;;
  52049. - esac
  52050. - fi
  52051. + esac
  52052. +
  52053. + cat <<"EOF"
  52054. + XFREE (target_name);
  52055. + XFREE (actual_cwrapper_path);
  52056. + XFREE (actual_cwrapper_name);
  52057. +
  52058. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  52059. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  52060. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  52061. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  52062. +
  52063. + newargc=0;
  52064. + for (i = 1; i < argc; i++)
  52065. + {
  52066. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  52067. + {
  52068. + if (argv[i][env_set_opt_len] == '=')
  52069. + {
  52070. + const char *p = argv[i] + env_set_opt_len + 1;
  52071. + lt_opt_process_env_set (p);
  52072. + }
  52073. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  52074. + {
  52075. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  52076. + }
  52077. + else
  52078. + lt_fatal ("%s missing required argument", env_set_opt);
  52079. + continue;
  52080. + }
  52081. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  52082. + {
  52083. + if (argv[i][env_prepend_opt_len] == '=')
  52084. + {
  52085. + const char *p = argv[i] + env_prepend_opt_len + 1;
  52086. + lt_opt_process_env_prepend (p);
  52087. + }
  52088. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  52089. + {
  52090. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  52091. + }
  52092. + else
  52093. + lt_fatal ("%s missing required argument", env_prepend_opt);
  52094. + continue;
  52095. + }
  52096. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  52097. + {
  52098. + if (argv[i][env_append_opt_len] == '=')
  52099. + {
  52100. + const char *p = argv[i] + env_append_opt_len + 1;
  52101. + lt_opt_process_env_append (p);
  52102. + }
  52103. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  52104. + {
  52105. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  52106. + }
  52107. + else
  52108. + lt_fatal ("%s missing required argument", env_append_opt);
  52109. + continue;
  52110. + }
  52111. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  52112. + {
  52113. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  52114. + namespace, but it is not one of the ones we know about and
  52115. + have already dealt with, above (inluding dump-script), then
  52116. + report an error. Otherwise, targets might begin to believe
  52117. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  52118. + namespace. The first time any user complains about this, we'll
  52119. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  52120. + or a configure.ac-settable value.
  52121. + */
  52122. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  52123. + ltwrapper_option_prefix, argv[i]);
  52124. + }
  52125. + /* otherwise ... */
  52126. + newargz[++newargc] = xstrdup (argv[i]);
  52127. + }
  52128. + newargz[++newargc] = NULL;
  52129. +
  52130. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  52131. + for (i = 0; i < newargc; i++)
  52132. + {
  52133. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  52134. + }
  52135. - # Transform deplibs into only deplibs that can be linked in shared.
  52136. - name_save=$name
  52137. - libname_save=$libname
  52138. - release_save=$release
  52139. - versuffix_save=$versuffix
  52140. - major_save=$major
  52141. - # I'm not sure if I'm treating the release correctly. I think
  52142. - # release should show up in the -l (ie -lgmp5) so we don't want to
  52143. - # add it in twice. Is that correct?
  52144. - release=""
  52145. - versuffix=""
  52146. - major=""
  52147. - newdeplibs=
  52148. - droppeddeps=no
  52149. - case $deplibs_check_method in
  52150. - pass_all)
  52151. - # Don't check for shared/static. Everything works.
  52152. - # This might be a little naive. We might want to check
  52153. - # whether the library exists or not. But this is on
  52154. - # osf3 & osf4 and I'm not really sure... Just
  52155. - # implementing what was already the behavior.
  52156. - newdeplibs=$deplibs
  52157. - ;;
  52158. - test_compile)
  52159. - # This code stresses the "libraries are programs" paradigm to its
  52160. - # limits. Maybe even breaks it. We compile a program, linking it
  52161. - # against the deplibs as a proxy for the library. Then we can check
  52162. - # whether they linked in statically or dynamically with ldd.
  52163. - $rm conftest.c
  52164. - cat > conftest.c <<EOF
  52165. - int main() { return 0; }
  52166. EOF
  52167. - $rm conftest
  52168. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  52169. - ldd_output=`ldd conftest`
  52170. - for i in $deplibs; do
  52171. - name=`expr $i : '-l\(.*\)'`
  52172. - # If $name is empty we are operating on a -L argument.
  52173. - if test "$name" != "" && test "$name" != "0"; then
  52174. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52175. - case " $predeps $postdeps " in
  52176. - *" $i "*)
  52177. - newdeplibs="$newdeplibs $i"
  52178. - i=""
  52179. - ;;
  52180. - esac
  52181. - fi
  52182. - if test -n "$i" ; then
  52183. - libname=`eval \\$echo \"$libname_spec\"`
  52184. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52185. - set dummy $deplib_matches
  52186. - deplib_match=$2
  52187. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52188. - newdeplibs="$newdeplibs $i"
  52189. - else
  52190. - droppeddeps=yes
  52191. - $echo
  52192. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52193. - $echo "*** I have the capability to make that library automatically link in when"
  52194. - $echo "*** you link to this library. But I can only do this if you have a"
  52195. - $echo "*** shared version of the library, which I believe you do not have"
  52196. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  52197. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  52198. - fi
  52199. - fi
  52200. - else
  52201. - newdeplibs="$newdeplibs $i"
  52202. - fi
  52203. - done
  52204. - else
  52205. - # Error occurred in the first compile. Let's try to salvage
  52206. - # the situation: Compile a separate program for each library.
  52207. - for i in $deplibs; do
  52208. - name=`expr $i : '-l\(.*\)'`
  52209. - # If $name is empty we are operating on a -L argument.
  52210. - if test "$name" != "" && test "$name" != "0"; then
  52211. - $rm conftest
  52212. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  52213. - ldd_output=`ldd conftest`
  52214. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52215. - case " $predeps $postdeps " in
  52216. - *" $i "*)
  52217. - newdeplibs="$newdeplibs $i"
  52218. - i=""
  52219. - ;;
  52220. - esac
  52221. - fi
  52222. - if test -n "$i" ; then
  52223. - libname=`eval \\$echo \"$libname_spec\"`
  52224. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52225. - set dummy $deplib_matches
  52226. - deplib_match=$2
  52227. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52228. - newdeplibs="$newdeplibs $i"
  52229. - else
  52230. - droppeddeps=yes
  52231. - $echo
  52232. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52233. - $echo "*** I have the capability to make that library automatically link in when"
  52234. - $echo "*** you link to this library. But I can only do this if you have a"
  52235. - $echo "*** shared version of the library, which you do not appear to have"
  52236. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  52237. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  52238. - fi
  52239. - fi
  52240. - else
  52241. - droppeddeps=yes
  52242. - $echo
  52243. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  52244. - $echo "*** make it link in! You will probably need to install it or some"
  52245. - $echo "*** library that it depends on before this library will be fully"
  52246. - $echo "*** functional. Installing it before continuing would be even better."
  52247. - fi
  52248. - else
  52249. - newdeplibs="$newdeplibs $i"
  52250. - fi
  52251. - done
  52252. - fi
  52253. - ;;
  52254. - file_magic*)
  52255. - set dummy $deplibs_check_method
  52256. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  52257. - for a_deplib in $deplibs; do
  52258. - name=`expr $a_deplib : '-l\(.*\)'`
  52259. - # If $name is empty we are operating on a -L argument.
  52260. - if test "$name" != "" && test "$name" != "0"; then
  52261. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52262. - case " $predeps $postdeps " in
  52263. - *" $a_deplib "*)
  52264. - newdeplibs="$newdeplibs $a_deplib"
  52265. - a_deplib=""
  52266. - ;;
  52267. - esac
  52268. - fi
  52269. - if test -n "$a_deplib" ; then
  52270. - libname=`eval \\$echo \"$libname_spec\"`
  52271. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52272. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52273. - for potent_lib in $potential_libs; do
  52274. - # Follow soft links.
  52275. - if ls -lLd "$potent_lib" 2>/dev/null \
  52276. - | grep " -> " >/dev/null; then
  52277. - continue
  52278. - fi
  52279. - # The statement above tries to avoid entering an
  52280. - # endless loop below, in case of cyclic links.
  52281. - # We might still enter an endless loop, since a link
  52282. - # loop can be closed while we follow links,
  52283. - # but so what?
  52284. - potlib="$potent_lib"
  52285. - while test -h "$potlib" 2>/dev/null; do
  52286. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  52287. - case $potliblink in
  52288. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  52289. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  52290. - esac
  52291. - done
  52292. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  52293. - | ${SED} 10q \
  52294. - | $EGREP "$file_magic_regex" > /dev/null; then
  52295. - newdeplibs="$newdeplibs $a_deplib"
  52296. - a_deplib=""
  52297. - break 2
  52298. - fi
  52299. - done
  52300. - done
  52301. - fi
  52302. - if test -n "$a_deplib" ; then
  52303. - droppeddeps=yes
  52304. - $echo
  52305. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  52306. - $echo "*** I have the capability to make that library automatically link in when"
  52307. - $echo "*** you link to this library. But I can only do this if you have a"
  52308. - $echo "*** shared version of the library, which you do not appear to have"
  52309. - $echo "*** because I did check the linker path looking for a file starting"
  52310. - if test -z "$potlib" ; then
  52311. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  52312. - else
  52313. - $echo "*** with $libname and none of the candidates passed a file format test"
  52314. - $echo "*** using a file magic. Last file checked: $potlib"
  52315. - fi
  52316. - fi
  52317. - else
  52318. - # Add a -L argument.
  52319. - newdeplibs="$newdeplibs $a_deplib"
  52320. - fi
  52321. - done # Gone through all deplibs.
  52322. - ;;
  52323. - match_pattern*)
  52324. - set dummy $deplibs_check_method
  52325. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  52326. - for a_deplib in $deplibs; do
  52327. - name=`expr $a_deplib : '-l\(.*\)'`
  52328. - # If $name is empty we are operating on a -L argument.
  52329. - if test -n "$name" && test "$name" != "0"; then
  52330. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52331. - case " $predeps $postdeps " in
  52332. - *" $a_deplib "*)
  52333. - newdeplibs="$newdeplibs $a_deplib"
  52334. - a_deplib=""
  52335. - ;;
  52336. - esac
  52337. - fi
  52338. - if test -n "$a_deplib" ; then
  52339. - libname=`eval \\$echo \"$libname_spec\"`
  52340. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52341. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52342. - for potent_lib in $potential_libs; do
  52343. - potlib="$potent_lib" # see symlink-check above in file_magic test
  52344. - if eval $echo \"$potent_lib\" 2>/dev/null \
  52345. - | ${SED} 10q \
  52346. - | $EGREP "$match_pattern_regex" > /dev/null; then
  52347. - newdeplibs="$newdeplibs $a_deplib"
  52348. - a_deplib=""
  52349. - break 2
  52350. - fi
  52351. - done
  52352. - done
  52353. - fi
  52354. - if test -n "$a_deplib" ; then
  52355. - droppeddeps=yes
  52356. - $echo
  52357. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  52358. - $echo "*** I have the capability to make that library automatically link in when"
  52359. - $echo "*** you link to this library. But I can only do this if you have a"
  52360. - $echo "*** shared version of the library, which you do not appear to have"
  52361. - $echo "*** because I did check the linker path looking for a file starting"
  52362. - if test -z "$potlib" ; then
  52363. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  52364. - else
  52365. - $echo "*** with $libname and none of the candidates passed a file format test"
  52366. - $echo "*** using a regex pattern. Last file checked: $potlib"
  52367. - fi
  52368. - fi
  52369. - else
  52370. - # Add a -L argument.
  52371. - newdeplibs="$newdeplibs $a_deplib"
  52372. - fi
  52373. - done # Gone through all deplibs.
  52374. - ;;
  52375. - none | unknown | *)
  52376. - newdeplibs=""
  52377. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  52378. - -e 's/ -[LR][^ ]*//g'`
  52379. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52380. - for i in $predeps $postdeps ; do
  52381. - # can't use Xsed below, because $i might contain '/'
  52382. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  52383. - done
  52384. - fi
  52385. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  52386. - | grep . >/dev/null; then
  52387. - $echo
  52388. - if test "X$deplibs_check_method" = "Xnone"; then
  52389. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  52390. - else
  52391. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  52392. - fi
  52393. - $echo "*** All declared inter-library dependencies are being dropped."
  52394. - droppeddeps=yes
  52395. - fi
  52396. - ;;
  52397. - esac
  52398. - versuffix=$versuffix_save
  52399. - major=$major_save
  52400. - release=$release_save
  52401. - libname=$libname_save
  52402. - name=$name_save
  52403. - case $host in
  52404. - *-*-rhapsody* | *-*-darwin1.[012])
  52405. - # On Rhapsody replace the C library is the System framework
  52406. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52407. - ;;
  52408. - esac
  52409. + case $host_os in
  52410. + mingw*)
  52411. + cat <<"EOF"
  52412. + /* execv doesn't actually work on mingw as expected on unix */
  52413. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  52414. + if (rval == -1)
  52415. + {
  52416. + /* failed to start process */
  52417. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  52418. + return 127;
  52419. + }
  52420. + return rval;
  52421. +EOF
  52422. + ;;
  52423. + *)
  52424. + cat <<"EOF"
  52425. + execv (lt_argv_zero, newargz);
  52426. + return rval; /* =127, but avoids unused variable warning */
  52427. +EOF
  52428. + ;;
  52429. + esac
  52430. - if test "$droppeddeps" = yes; then
  52431. - if test "$module" = yes; then
  52432. - $echo
  52433. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  52434. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  52435. - $echo "*** a static module, that should work as long as the dlopening"
  52436. - $echo "*** application is linked with the -dlopen flag."
  52437. - if test -z "$global_symbol_pipe"; then
  52438. - $echo
  52439. - $echo "*** However, this would only work if libtool was able to extract symbol"
  52440. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  52441. - $echo "*** not find such a program. So, this module is probably useless."
  52442. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  52443. - fi
  52444. - if test "$build_old_libs" = no; then
  52445. - oldlibs="$output_objdir/$libname.$libext"
  52446. - build_libtool_libs=module
  52447. - build_old_libs=yes
  52448. - else
  52449. - build_libtool_libs=no
  52450. - fi
  52451. - else
  52452. - $echo "*** The inter-library dependencies that have been dropped here will be"
  52453. - $echo "*** automatically added whenever a program is linked with this library"
  52454. - $echo "*** or is declared to -dlopen it."
  52455. + cat <<"EOF"
  52456. +}
  52457. - if test "$allow_undefined" = no; then
  52458. - $echo
  52459. - $echo "*** Since this library must not contain undefined symbols,"
  52460. - $echo "*** because either the platform does not support them or"
  52461. - $echo "*** it was explicitly requested with -no-undefined,"
  52462. - $echo "*** libtool will only create a static version of it."
  52463. - if test "$build_old_libs" = no; then
  52464. - oldlibs="$output_objdir/$libname.$libext"
  52465. - build_libtool_libs=module
  52466. - build_old_libs=yes
  52467. - else
  52468. - build_libtool_libs=no
  52469. - fi
  52470. - fi
  52471. - fi
  52472. - fi
  52473. - # Done checking deplibs!
  52474. - deplibs=$newdeplibs
  52475. - fi
  52476. +void *
  52477. +xmalloc (size_t num)
  52478. +{
  52479. + void *p = (void *) malloc (num);
  52480. + if (!p)
  52481. + lt_fatal ("Memory exhausted");
  52482. + return p;
  52483. +}
  52484. - # move library search paths that coincide with paths to not yet
  52485. - # installed libraries to the beginning of the library search list
  52486. - new_libs=
  52487. - for path in $notinst_path; do
  52488. - case " $new_libs " in
  52489. - *" -L$path/$objdir "*) ;;
  52490. - *)
  52491. - case " $deplibs " in
  52492. - *" -L$path/$objdir "*)
  52493. - new_libs="$new_libs -L$path/$objdir" ;;
  52494. - esac
  52495. - ;;
  52496. - esac
  52497. - done
  52498. - for deplib in $deplibs; do
  52499. - case $deplib in
  52500. - -L*)
  52501. - case " $new_libs " in
  52502. - *" $deplib "*) ;;
  52503. - *) new_libs="$new_libs $deplib" ;;
  52504. - esac
  52505. - ;;
  52506. - *) new_libs="$new_libs $deplib" ;;
  52507. - esac
  52508. - done
  52509. - deplibs="$new_libs"
  52510. +char *
  52511. +xstrdup (const char *string)
  52512. +{
  52513. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  52514. + string) : NULL;
  52515. +}
  52516. +const char *
  52517. +base_name (const char *name)
  52518. +{
  52519. + const char *base;
  52520. - # All the library-specific variables (install_libdir is set above).
  52521. - library_names=
  52522. - old_library=
  52523. - dlname=
  52524. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52525. + /* Skip over the disk name in MSDOS pathnames. */
  52526. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  52527. + name += 2;
  52528. +#endif
  52529. - # Test again, we may have decided not to build it any more
  52530. - if test "$build_libtool_libs" = yes; then
  52531. - if test "$hardcode_into_libs" = yes; then
  52532. - # Hardcode the library paths
  52533. - hardcode_libdirs=
  52534. - dep_rpath=
  52535. - rpath="$finalize_rpath"
  52536. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  52537. - for libdir in $rpath; do
  52538. - if test -n "$hardcode_libdir_flag_spec"; then
  52539. - if test -n "$hardcode_libdir_separator"; then
  52540. - if test -z "$hardcode_libdirs"; then
  52541. - hardcode_libdirs="$libdir"
  52542. - else
  52543. - # Just accumulate the unique libdirs.
  52544. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52545. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52546. - ;;
  52547. - *)
  52548. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52549. - ;;
  52550. - esac
  52551. - fi
  52552. - else
  52553. - eval flag=\"$hardcode_libdir_flag_spec\"
  52554. - dep_rpath="$dep_rpath $flag"
  52555. - fi
  52556. - elif test -n "$runpath_var"; then
  52557. - case "$perm_rpath " in
  52558. - *" $libdir "*) ;;
  52559. - *) perm_rpath="$perm_rpath $libdir" ;;
  52560. - esac
  52561. - fi
  52562. - done
  52563. - # Substitute the hardcoded libdirs into the rpath.
  52564. - if test -n "$hardcode_libdir_separator" &&
  52565. - test -n "$hardcode_libdirs"; then
  52566. - libdir="$hardcode_libdirs"
  52567. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  52568. - case $archive_cmds in
  52569. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  52570. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  52571. - esac
  52572. - else
  52573. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  52574. - fi
  52575. - fi
  52576. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  52577. - # We should set the runpath_var.
  52578. - rpath=
  52579. - for dir in $perm_rpath; do
  52580. - rpath="$rpath$dir:"
  52581. - done
  52582. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  52583. - fi
  52584. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  52585. - fi
  52586. + for (base = name; *name; name++)
  52587. + if (IS_DIR_SEPARATOR (*name))
  52588. + base = name + 1;
  52589. + return base;
  52590. +}
  52591. - shlibpath="$finalize_shlibpath"
  52592. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  52593. - if test -n "$shlibpath"; then
  52594. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  52595. - fi
  52596. +int
  52597. +check_executable (const char *path)
  52598. +{
  52599. + struct stat st;
  52600. - # Get the real and link names of the library.
  52601. - eval shared_ext=\"$shrext_cmds\"
  52602. - eval library_names=\"$library_names_spec\"
  52603. - set dummy $library_names
  52604. - realname="$2"
  52605. - shift; shift
  52606. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  52607. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  52608. + if ((!path) || (!*path))
  52609. + return 0;
  52610. - if test -n "$soname_spec"; then
  52611. - eval soname=\"$soname_spec\"
  52612. - else
  52613. - soname="$realname"
  52614. - fi
  52615. - if test -z "$dlname"; then
  52616. - dlname=$soname
  52617. - fi
  52618. + if ((stat (path, &st) >= 0)
  52619. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  52620. + return 1;
  52621. + else
  52622. + return 0;
  52623. +}
  52624. - lib="$output_objdir/$realname"
  52625. - linknames=
  52626. - for link
  52627. - do
  52628. - linknames="$linknames $link"
  52629. - done
  52630. -
  52631. - # Use standard objects if they are pic
  52632. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52633. +int
  52634. +make_executable (const char *path)
  52635. +{
  52636. + int rval = 0;
  52637. + struct stat st;
  52638. - # Prepare the list of exported symbols
  52639. - if test -z "$export_symbols"; then
  52640. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  52641. - $show "generating symbol list for \`$libname.la'"
  52642. - export_symbols="$output_objdir/$libname.exp"
  52643. - $run $rm $export_symbols
  52644. - cmds=$export_symbols_cmds
  52645. - save_ifs="$IFS"; IFS='~'
  52646. - for cmd in $cmds; do
  52647. - IFS="$save_ifs"
  52648. - eval cmd=\"$cmd\"
  52649. - if len=`expr "X$cmd" : ".*"` &&
  52650. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52651. - $show "$cmd"
  52652. - $run eval "$cmd" || exit $?
  52653. - skipped_export=false
  52654. - else
  52655. - # The command line is too long to execute in one step.
  52656. - $show "using reloadable object file for export list..."
  52657. - skipped_export=:
  52658. - # Break out early, otherwise skipped_export may be
  52659. - # set to false by a later but shorter cmd.
  52660. - break
  52661. - fi
  52662. - done
  52663. - IFS="$save_ifs"
  52664. - if test -n "$export_symbols_regex"; then
  52665. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  52666. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  52667. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  52668. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  52669. - fi
  52670. - fi
  52671. - fi
  52672. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  52673. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  52674. + if ((!path) || (!*path))
  52675. + return 0;
  52676. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  52677. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  52678. - fi
  52679. + if (stat (path, &st) >= 0)
  52680. + {
  52681. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  52682. + }
  52683. + return rval;
  52684. +}
  52685. - tmp_deplibs=
  52686. - for test_deplib in $deplibs; do
  52687. - case " $convenience " in
  52688. - *" $test_deplib "*) ;;
  52689. - *)
  52690. - tmp_deplibs="$tmp_deplibs $test_deplib"
  52691. - ;;
  52692. - esac
  52693. - done
  52694. - deplibs="$tmp_deplibs"
  52695. +/* Searches for the full path of the wrapper. Returns
  52696. + newly allocated full path name if found, NULL otherwise
  52697. + Does not chase symlinks, even on platforms that support them.
  52698. +*/
  52699. +char *
  52700. +find_executable (const char *wrapper)
  52701. +{
  52702. + int has_slash = 0;
  52703. + const char *p;
  52704. + const char *p_next;
  52705. + /* static buffer for getcwd */
  52706. + char tmp[LT_PATHMAX + 1];
  52707. + int tmp_len;
  52708. + char *concat_name;
  52709. - if test -n "$convenience"; then
  52710. - if test -n "$whole_archive_flag_spec"; then
  52711. - save_libobjs=$libobjs
  52712. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52713. - else
  52714. - gentop="$output_objdir/${outputname}x"
  52715. - generated="$generated $gentop"
  52716. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  52717. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  52718. - func_extract_archives $gentop $convenience
  52719. - libobjs="$libobjs $func_extract_archives_result"
  52720. - fi
  52721. - fi
  52722. -
  52723. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  52724. - eval flag=\"$thread_safe_flag_spec\"
  52725. - linker_flags="$linker_flags $flag"
  52726. - fi
  52727. + if ((wrapper == NULL) || (*wrapper == '\0'))
  52728. + return NULL;
  52729. - # Make a backup of the uninstalled library when relinking
  52730. - if test "$mode" = relink; then
  52731. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  52732. - fi
  52733. + /* Absolute path? */
  52734. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52735. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  52736. + {
  52737. + concat_name = xstrdup (wrapper);
  52738. + if (check_executable (concat_name))
  52739. + return concat_name;
  52740. + XFREE (concat_name);
  52741. + }
  52742. + else
  52743. + {
  52744. +#endif
  52745. + if (IS_DIR_SEPARATOR (wrapper[0]))
  52746. + {
  52747. + concat_name = xstrdup (wrapper);
  52748. + if (check_executable (concat_name))
  52749. + return concat_name;
  52750. + XFREE (concat_name);
  52751. + }
  52752. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52753. + }
  52754. +#endif
  52755. - # Do each of the archive commands.
  52756. - if test "$module" = yes && test -n "$module_cmds" ; then
  52757. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  52758. - eval test_cmds=\"$module_expsym_cmds\"
  52759. - cmds=$module_expsym_cmds
  52760. - else
  52761. - eval test_cmds=\"$module_cmds\"
  52762. - cmds=$module_cmds
  52763. - fi
  52764. - else
  52765. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  52766. - eval test_cmds=\"$archive_expsym_cmds\"
  52767. - cmds=$archive_expsym_cmds
  52768. - else
  52769. - eval test_cmds=\"$archive_cmds\"
  52770. - cmds=$archive_cmds
  52771. - fi
  52772. - fi
  52773. + for (p = wrapper; *p; p++)
  52774. + if (*p == '/')
  52775. + {
  52776. + has_slash = 1;
  52777. + break;
  52778. + }
  52779. + if (!has_slash)
  52780. + {
  52781. + /* no slashes; search PATH */
  52782. + const char *path = getenv ("PATH");
  52783. + if (path != NULL)
  52784. + {
  52785. + for (p = path; *p; p = p_next)
  52786. + {
  52787. + const char *q;
  52788. + size_t p_len;
  52789. + for (q = p; *q; q++)
  52790. + if (IS_PATH_SEPARATOR (*q))
  52791. + break;
  52792. + p_len = q - p;
  52793. + p_next = (*q == '\0' ? q : q + 1);
  52794. + if (p_len == 0)
  52795. + {
  52796. + /* empty path: current directory */
  52797. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  52798. + lt_fatal ("getcwd failed");
  52799. + tmp_len = strlen (tmp);
  52800. + concat_name =
  52801. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  52802. + memcpy (concat_name, tmp, tmp_len);
  52803. + concat_name[tmp_len] = '/';
  52804. + strcpy (concat_name + tmp_len + 1, wrapper);
  52805. + }
  52806. + else
  52807. + {
  52808. + concat_name =
  52809. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  52810. + memcpy (concat_name, p, p_len);
  52811. + concat_name[p_len] = '/';
  52812. + strcpy (concat_name + p_len + 1, wrapper);
  52813. + }
  52814. + if (check_executable (concat_name))
  52815. + return concat_name;
  52816. + XFREE (concat_name);
  52817. + }
  52818. + }
  52819. + /* not found in PATH; assume curdir */
  52820. + }
  52821. + /* Relative path | not found in path: prepend cwd */
  52822. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  52823. + lt_fatal ("getcwd failed");
  52824. + tmp_len = strlen (tmp);
  52825. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  52826. + memcpy (concat_name, tmp, tmp_len);
  52827. + concat_name[tmp_len] = '/';
  52828. + strcpy (concat_name + tmp_len + 1, wrapper);
  52829. - if test "X$skipped_export" != "X:" &&
  52830. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  52831. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52832. - :
  52833. - else
  52834. - # The command line is too long to link in one step, link piecewise.
  52835. - $echo "creating reloadable object files..."
  52836. + if (check_executable (concat_name))
  52837. + return concat_name;
  52838. + XFREE (concat_name);
  52839. + return NULL;
  52840. +}
  52841. - # Save the value of $output and $libobjs because we want to
  52842. - # use them later. If we have whole_archive_flag_spec, we
  52843. - # want to use save_libobjs as it was before
  52844. - # whole_archive_flag_spec was expanded, because we can't
  52845. - # assume the linker understands whole_archive_flag_spec.
  52846. - # This may have to be revisited, in case too many
  52847. - # convenience libraries get linked in and end up exceeding
  52848. - # the spec.
  52849. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  52850. - save_libobjs=$libobjs
  52851. - fi
  52852. - save_output=$output
  52853. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  52854. +char *
  52855. +chase_symlinks (const char *pathspec)
  52856. +{
  52857. +#ifndef S_ISLNK
  52858. + return xstrdup (pathspec);
  52859. +#else
  52860. + char buf[LT_PATHMAX];
  52861. + struct stat s;
  52862. + char *tmp_pathspec = xstrdup (pathspec);
  52863. + char *p;
  52864. + int has_symlinks = 0;
  52865. + while (strlen (tmp_pathspec) && !has_symlinks)
  52866. + {
  52867. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  52868. + tmp_pathspec));
  52869. + if (lstat (tmp_pathspec, &s) == 0)
  52870. + {
  52871. + if (S_ISLNK (s.st_mode) != 0)
  52872. + {
  52873. + has_symlinks = 1;
  52874. + break;
  52875. + }
  52876. - # Clear the reloadable object creation command queue and
  52877. - # initialize k to one.
  52878. - test_cmds=
  52879. - concat_cmds=
  52880. - objlist=
  52881. - delfiles=
  52882. - last_robj=
  52883. - k=1
  52884. - output=$output_objdir/$output_la-${k}.$objext
  52885. - # Loop over the list of objects to be linked.
  52886. - for obj in $save_libobjs
  52887. - do
  52888. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  52889. - if test "X$objlist" = X ||
  52890. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  52891. - test "$len" -le "$max_cmd_len"; }; then
  52892. - objlist="$objlist $obj"
  52893. - else
  52894. - # The command $test_cmds is almost too long, add a
  52895. - # command to the queue.
  52896. - if test "$k" -eq 1 ; then
  52897. - # The first file doesn't have a previous command to add.
  52898. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  52899. - else
  52900. - # All subsequent reloadable object files will link in
  52901. - # the last one created.
  52902. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  52903. - fi
  52904. - last_robj=$output_objdir/$output_la-${k}.$objext
  52905. - k=`expr $k + 1`
  52906. - output=$output_objdir/$output_la-${k}.$objext
  52907. - objlist=$obj
  52908. - len=1
  52909. - fi
  52910. - done
  52911. - # Handle the remaining objects by creating one last
  52912. - # reloadable object file. All subsequent reloadable object
  52913. - # files will link in the last one created.
  52914. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  52915. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  52916. + /* search backwards for last DIR_SEPARATOR */
  52917. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  52918. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52919. + p--;
  52920. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52921. + {
  52922. + /* no more DIR_SEPARATORS left */
  52923. + break;
  52924. + }
  52925. + *p = '\0';
  52926. + }
  52927. + else
  52928. + {
  52929. + char *errstr = strerror (errno);
  52930. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  52931. + }
  52932. + }
  52933. + XFREE (tmp_pathspec);
  52934. - if ${skipped_export-false}; then
  52935. - $show "generating symbol list for \`$libname.la'"
  52936. - export_symbols="$output_objdir/$libname.exp"
  52937. - $run $rm $export_symbols
  52938. - libobjs=$output
  52939. - # Append the command to create the export file.
  52940. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  52941. - fi
  52942. -
  52943. - # Set up a command to remove the reloadable object files
  52944. - # after they are used.
  52945. - i=0
  52946. - while test "$i" -lt "$k"
  52947. - do
  52948. - i=`expr $i + 1`
  52949. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  52950. - done
  52951. + if (!has_symlinks)
  52952. + {
  52953. + return xstrdup (pathspec);
  52954. + }
  52955. - $echo "creating a temporary reloadable object file: $output"
  52956. + tmp_pathspec = realpath (pathspec, buf);
  52957. + if (tmp_pathspec == 0)
  52958. + {
  52959. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  52960. + }
  52961. + return xstrdup (tmp_pathspec);
  52962. +#endif
  52963. +}
  52964. - # Loop through the commands generated above and execute them.
  52965. - save_ifs="$IFS"; IFS='~'
  52966. - for cmd in $concat_cmds; do
  52967. - IFS="$save_ifs"
  52968. - $show "$cmd"
  52969. - $run eval "$cmd" || exit $?
  52970. - done
  52971. - IFS="$save_ifs"
  52972. +char *
  52973. +strendzap (char *str, const char *pat)
  52974. +{
  52975. + size_t len, patlen;
  52976. - libobjs=$output
  52977. - # Restore the value of output.
  52978. - output=$save_output
  52979. + assert (str != NULL);
  52980. + assert (pat != NULL);
  52981. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  52982. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52983. - fi
  52984. - # Expand the library linking commands again to reset the
  52985. - # value of $libobjs for piecewise linking.
  52986. + len = strlen (str);
  52987. + patlen = strlen (pat);
  52988. - # Do each of the archive commands.
  52989. - if test "$module" = yes && test -n "$module_cmds" ; then
  52990. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  52991. - cmds=$module_expsym_cmds
  52992. - else
  52993. - cmds=$module_cmds
  52994. - fi
  52995. - else
  52996. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  52997. - cmds=$archive_expsym_cmds
  52998. - else
  52999. - cmds=$archive_cmds
  53000. - fi
  53001. - fi
  53002. + if (patlen <= len)
  53003. + {
  53004. + str += len - patlen;
  53005. + if (strcmp (str, pat) == 0)
  53006. + *str = '\0';
  53007. + }
  53008. + return str;
  53009. +}
  53010. - # Append the command to remove the reloadable object files
  53011. - # to the just-reset $cmds.
  53012. - eval cmds=\"\$cmds~\$rm $delfiles\"
  53013. - fi
  53014. - save_ifs="$IFS"; IFS='~'
  53015. - for cmd in $cmds; do
  53016. - IFS="$save_ifs"
  53017. - eval cmd=\"$cmd\"
  53018. - $show "$cmd"
  53019. - $run eval "$cmd" || {
  53020. - lt_exit=$?
  53021. +static void
  53022. +lt_error_core (int exit_status, const char *mode,
  53023. + const char *message, va_list ap)
  53024. +{
  53025. + fprintf (stderr, "%s: %s: ", program_name, mode);
  53026. + vfprintf (stderr, message, ap);
  53027. + fprintf (stderr, ".\n");
  53028. - # Restore the uninstalled library and exit
  53029. - if test "$mode" = relink; then
  53030. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  53031. - fi
  53032. + if (exit_status >= 0)
  53033. + exit (exit_status);
  53034. +}
  53035. - exit $lt_exit
  53036. - }
  53037. - done
  53038. - IFS="$save_ifs"
  53039. +void
  53040. +lt_fatal (const char *message, ...)
  53041. +{
  53042. + va_list ap;
  53043. + va_start (ap, message);
  53044. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  53045. + va_end (ap);
  53046. +}
  53047. - # Restore the uninstalled library and exit
  53048. - if test "$mode" = relink; then
  53049. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  53050. +void
  53051. +lt_setenv (const char *name, const char *value)
  53052. +{
  53053. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  53054. + (name ? name : "<NULL>"),
  53055. + (value ? value : "<NULL>")));
  53056. + {
  53057. +#ifdef HAVE_SETENV
  53058. + /* always make a copy, for consistency with !HAVE_SETENV */
  53059. + char *str = xstrdup (value);
  53060. + setenv (name, str, 1);
  53061. +#else
  53062. + int len = strlen (name) + 1 + strlen (value) + 1;
  53063. + char *str = XMALLOC (char, len);
  53064. + sprintf (str, "%s=%s", name, value);
  53065. + if (putenv (str) != EXIT_SUCCESS)
  53066. + {
  53067. + XFREE (str);
  53068. + }
  53069. +#endif
  53070. + }
  53071. +}
  53072. - if test -n "$convenience"; then
  53073. - if test -z "$whole_archive_flag_spec"; then
  53074. - $show "${rm}r $gentop"
  53075. - $run ${rm}r "$gentop"
  53076. - fi
  53077. - fi
  53078. +char *
  53079. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  53080. +{
  53081. + char *new_value;
  53082. + if (orig_value && *orig_value)
  53083. + {
  53084. + int orig_value_len = strlen (orig_value);
  53085. + int add_len = strlen (add);
  53086. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  53087. + if (to_end)
  53088. + {
  53089. + strcpy (new_value, orig_value);
  53090. + strcpy (new_value + orig_value_len, add);
  53091. + }
  53092. + else
  53093. + {
  53094. + strcpy (new_value, add);
  53095. + strcpy (new_value + add_len, orig_value);
  53096. + }
  53097. + }
  53098. + else
  53099. + {
  53100. + new_value = xstrdup (add);
  53101. + }
  53102. + return new_value;
  53103. +}
  53104. - exit $EXIT_SUCCESS
  53105. - fi
  53106. +int
  53107. +lt_split_name_value (const char *arg, char** name, char** value)
  53108. +{
  53109. + const char *p;
  53110. + int len;
  53111. + if (!arg || !*arg)
  53112. + return 1;
  53113. - # Create links to the real library.
  53114. - for linkname in $linknames; do
  53115. - if test "$realname" != "$linkname"; then
  53116. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  53117. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  53118. - fi
  53119. - done
  53120. + p = strchr (arg, (int)'=');
  53121. - # If -module or -export-dynamic was specified, set the dlname.
  53122. - if test "$module" = yes || test "$export_dynamic" = yes; then
  53123. - # On all known operating systems, these are identical.
  53124. - dlname="$soname"
  53125. - fi
  53126. - fi
  53127. - ;;
  53128. + if (!p)
  53129. + return 1;
  53130. - obj)
  53131. - case " $deplibs" in
  53132. - *\ -l* | *\ -L*)
  53133. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  53134. - esac
  53135. + *value = xstrdup (++p);
  53136. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53137. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  53138. - fi
  53139. + len = strlen (arg) - strlen (*value);
  53140. + *name = XMALLOC (char, len);
  53141. + strncpy (*name, arg, len-1);
  53142. + (*name)[len - 1] = '\0';
  53143. - if test -n "$rpath"; then
  53144. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  53145. - fi
  53146. + return 0;
  53147. +}
  53148. - if test -n "$xrpath"; then
  53149. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  53150. - fi
  53151. +void
  53152. +lt_opt_process_env_set (const char *arg)
  53153. +{
  53154. + char *name = NULL;
  53155. + char *value = NULL;
  53156. - if test -n "$vinfo"; then
  53157. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  53158. - fi
  53159. + if (lt_split_name_value (arg, &name, &value) != 0)
  53160. + {
  53161. + XFREE (name);
  53162. + XFREE (value);
  53163. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  53164. + }
  53165. - if test -n "$release"; then
  53166. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  53167. - fi
  53168. + lt_setenv (name, value);
  53169. + XFREE (name);
  53170. + XFREE (value);
  53171. +}
  53172. - case $output in
  53173. - *.lo)
  53174. - if test -n "$objs$old_deplibs"; then
  53175. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  53176. - exit $EXIT_FAILURE
  53177. - fi
  53178. - libobj="$output"
  53179. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  53180. - ;;
  53181. - *)
  53182. - libobj=
  53183. - obj="$output"
  53184. - ;;
  53185. - esac
  53186. +void
  53187. +lt_opt_process_env_prepend (const char *arg)
  53188. +{
  53189. + char *name = NULL;
  53190. + char *value = NULL;
  53191. + char *new_value = NULL;
  53192. - # Delete the old objects.
  53193. - $run $rm $obj $libobj
  53194. + if (lt_split_name_value (arg, &name, &value) != 0)
  53195. + {
  53196. + XFREE (name);
  53197. + XFREE (value);
  53198. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  53199. + }
  53200. - # Objects from convenience libraries. This assumes
  53201. - # single-version convenience libraries. Whenever we create
  53202. - # different ones for PIC/non-PIC, this we'll have to duplicate
  53203. - # the extraction.
  53204. - reload_conv_objs=
  53205. - gentop=
  53206. - # reload_cmds runs $LD directly, so let us get rid of
  53207. - # -Wl from whole_archive_flag_spec and hope we can get by with
  53208. - # turning comma into space..
  53209. - wl=
  53210. + new_value = lt_extend_str (getenv (name), value, 0);
  53211. + lt_setenv (name, new_value);
  53212. + XFREE (new_value);
  53213. + XFREE (name);
  53214. + XFREE (value);
  53215. +}
  53216. - if test -n "$convenience"; then
  53217. - if test -n "$whole_archive_flag_spec"; then
  53218. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  53219. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  53220. - else
  53221. - gentop="$output_objdir/${obj}x"
  53222. - generated="$generated $gentop"
  53223. +void
  53224. +lt_opt_process_env_append (const char *arg)
  53225. +{
  53226. + char *name = NULL;
  53227. + char *value = NULL;
  53228. + char *new_value = NULL;
  53229. - func_extract_archives $gentop $convenience
  53230. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  53231. - fi
  53232. - fi
  53233. + if (lt_split_name_value (arg, &name, &value) != 0)
  53234. + {
  53235. + XFREE (name);
  53236. + XFREE (value);
  53237. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  53238. + }
  53239. - # Create the old-style object.
  53240. - 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
  53241. + new_value = lt_extend_str (getenv (name), value, 1);
  53242. + lt_setenv (name, new_value);
  53243. + XFREE (new_value);
  53244. + XFREE (name);
  53245. + XFREE (value);
  53246. +}
  53247. - output="$obj"
  53248. - cmds=$reload_cmds
  53249. - save_ifs="$IFS"; IFS='~'
  53250. - for cmd in $cmds; do
  53251. - IFS="$save_ifs"
  53252. - eval cmd=\"$cmd\"
  53253. - $show "$cmd"
  53254. - $run eval "$cmd" || exit $?
  53255. - done
  53256. - IFS="$save_ifs"
  53257. +void
  53258. +lt_update_exe_path (const char *name, const char *value)
  53259. +{
  53260. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  53261. + (name ? name : "<NULL>"),
  53262. + (value ? value : "<NULL>")));
  53263. - # Exit if we aren't doing a library object file.
  53264. - if test -z "$libobj"; then
  53265. - if test -n "$gentop"; then
  53266. - $show "${rm}r $gentop"
  53267. - $run ${rm}r $gentop
  53268. - fi
  53269. + if (name && *name && value && *value)
  53270. + {
  53271. + char *new_value = lt_extend_str (getenv (name), value, 0);
  53272. + /* some systems can't cope with a ':'-terminated path #' */
  53273. + int len = strlen (new_value);
  53274. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  53275. + {
  53276. + new_value[len-1] = '\0';
  53277. + }
  53278. + lt_setenv (name, new_value);
  53279. + XFREE (new_value);
  53280. + }
  53281. +}
  53282. - exit $EXIT_SUCCESS
  53283. - fi
  53284. +void
  53285. +lt_update_lib_path (const char *name, const char *value)
  53286. +{
  53287. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  53288. + (name ? name : "<NULL>"),
  53289. + (value ? value : "<NULL>")));
  53290. - if test "$build_libtool_libs" != yes; then
  53291. - if test -n "$gentop"; then
  53292. - $show "${rm}r $gentop"
  53293. - $run ${rm}r $gentop
  53294. - fi
  53295. + if (name && *name && value && *value)
  53296. + {
  53297. + char *new_value = lt_extend_str (getenv (name), value, 0);
  53298. + lt_setenv (name, new_value);
  53299. + XFREE (new_value);
  53300. + }
  53301. +}
  53302. - # Create an invalid libtool object if no PIC, so that we don't
  53303. - # accidentally link it into a program.
  53304. - # $show "echo timestamp > $libobj"
  53305. - # $run eval "echo timestamp > $libobj" || exit $?
  53306. - exit $EXIT_SUCCESS
  53307. - fi
  53308. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  53309. - # Only do commands if we really have different PIC objects.
  53310. - reload_objs="$libobjs $reload_conv_objs"
  53311. - output="$libobj"
  53312. - cmds=$reload_cmds
  53313. - save_ifs="$IFS"; IFS='~'
  53314. - for cmd in $cmds; do
  53315. - IFS="$save_ifs"
  53316. - eval cmd=\"$cmd\"
  53317. - $show "$cmd"
  53318. - $run eval "$cmd" || exit $?
  53319. - done
  53320. - IFS="$save_ifs"
  53321. - fi
  53322. +EOF
  53323. +}
  53324. +# end: func_emit_cwrapperexe_src
  53325. - if test -n "$gentop"; then
  53326. - $show "${rm}r $gentop"
  53327. - $run ${rm}r $gentop
  53328. - fi
  53329. +# func_mode_link arg...
  53330. +func_mode_link ()
  53331. +{
  53332. + $opt_debug
  53333. + case $host in
  53334. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  53335. + # It is impossible to link a dll without this setting, and
  53336. + # we shouldn't force the makefile maintainer to figure out
  53337. + # which system we are compiling for in order to pass an extra
  53338. + # flag for every libtool invocation.
  53339. + # allow_undefined=no
  53340. - exit $EXIT_SUCCESS
  53341. + # FIXME: Unfortunately, there are problems with the above when trying
  53342. + # to make a dll which has undefined symbols, in which case not
  53343. + # even a static library is built. For now, we need to specify
  53344. + # -no-undefined on the libtool link line when we can be certain
  53345. + # that all symbols are satisfied, otherwise we get a static library.
  53346. + allow_undefined=yes
  53347. ;;
  53348. + *)
  53349. + allow_undefined=yes
  53350. + ;;
  53351. + esac
  53352. + libtool_args=$nonopt
  53353. + base_compile="$nonopt $@"
  53354. + compile_command=$nonopt
  53355. + finalize_command=$nonopt
  53356. - prog)
  53357. - case $host in
  53358. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  53359. - esac
  53360. - if test -n "$vinfo"; then
  53361. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  53362. - fi
  53363. -
  53364. - if test -n "$release"; then
  53365. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  53366. - fi
  53367. + compile_rpath=
  53368. + finalize_rpath=
  53369. + compile_shlibpath=
  53370. + finalize_shlibpath=
  53371. + convenience=
  53372. + old_convenience=
  53373. + deplibs=
  53374. + old_deplibs=
  53375. + compiler_flags=
  53376. + linker_flags=
  53377. + dllsearchpath=
  53378. + lib_search_path=`pwd`
  53379. + inst_prefix_dir=
  53380. + new_inherited_linker_flags=
  53381. - if test "$preload" = yes; then
  53382. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  53383. - test "$dlopen_self_static" = unknown; then
  53384. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  53385. - fi
  53386. - fi
  53387. + avoid_version=no
  53388. + dlfiles=
  53389. + dlprefiles=
  53390. + dlself=no
  53391. + export_dynamic=no
  53392. + export_symbols=
  53393. + export_symbols_regex=
  53394. + generated=
  53395. + libobjs=
  53396. + ltlibs=
  53397. + module=no
  53398. + no_install=no
  53399. + objs=
  53400. + non_pic_objects=
  53401. + precious_files_regex=
  53402. + prefer_static_libs=no
  53403. + preload=no
  53404. + prev=
  53405. + prevarg=
  53406. + release=
  53407. + rpath=
  53408. + xrpath=
  53409. + perm_rpath=
  53410. + temp_rpath=
  53411. + thread_safe=no
  53412. + vinfo=
  53413. + vinfo_number=no
  53414. + weak_libs=
  53415. + single_module="${wl}-single_module"
  53416. + func_infer_tag $base_compile
  53417. - case $host in
  53418. - *-*-rhapsody* | *-*-darwin1.[012])
  53419. - # On Rhapsody replace the C library is the System framework
  53420. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53421. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53422. + # We need to know -static, to get the right output filenames.
  53423. + for arg
  53424. + do
  53425. + case $arg in
  53426. + -shared)
  53427. + test "$build_libtool_libs" != yes && \
  53428. + func_fatal_configuration "can not build a shared library"
  53429. + build_old_libs=no
  53430. + break
  53431. + ;;
  53432. + -all-static | -static | -static-libtool-libs)
  53433. + case $arg in
  53434. + -all-static)
  53435. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  53436. + func_warning "complete static linking is impossible in this configuration"
  53437. + fi
  53438. + if test -n "$link_static_flag"; then
  53439. + dlopen_self=$dlopen_self_static
  53440. + fi
  53441. + prefer_static_libs=yes
  53442. + ;;
  53443. + -static)
  53444. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  53445. + dlopen_self=$dlopen_self_static
  53446. + fi
  53447. + prefer_static_libs=built
  53448. + ;;
  53449. + -static-libtool-libs)
  53450. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  53451. + dlopen_self=$dlopen_self_static
  53452. + fi
  53453. + prefer_static_libs=yes
  53454. + ;;
  53455. + esac
  53456. + build_libtool_libs=no
  53457. + build_old_libs=yes
  53458. + break
  53459. ;;
  53460. esac
  53461. + done
  53462. - case $host in
  53463. - *darwin*)
  53464. - # Don't allow lazy linking, it breaks C++ global constructors
  53465. - if test "$tagname" = CXX ; then
  53466. - compile_command="$compile_command ${wl}-bind_at_load"
  53467. - finalize_command="$finalize_command ${wl}-bind_at_load"
  53468. - fi
  53469. - ;;
  53470. - esac
  53471. + # See if our shared archives depend on static archives.
  53472. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  53473. + # Go through the arguments, transforming them on the way.
  53474. + while test "$#" -gt 0; do
  53475. + arg="$1"
  53476. + shift
  53477. + func_quote_for_eval "$arg"
  53478. + qarg=$func_quote_for_eval_unquoted_result
  53479. + func_append libtool_args " $func_quote_for_eval_result"
  53480. - # move library search paths that coincide with paths to not yet
  53481. - # installed libraries to the beginning of the library search list
  53482. - new_libs=
  53483. - for path in $notinst_path; do
  53484. - case " $new_libs " in
  53485. - *" -L$path/$objdir "*) ;;
  53486. - *)
  53487. - case " $compile_deplibs " in
  53488. - *" -L$path/$objdir "*)
  53489. - new_libs="$new_libs -L$path/$objdir" ;;
  53490. - esac
  53491. - ;;
  53492. - esac
  53493. - done
  53494. - for deplib in $compile_deplibs; do
  53495. - case $deplib in
  53496. - -L*)
  53497. - case " $new_libs " in
  53498. - *" $deplib "*) ;;
  53499. - *) new_libs="$new_libs $deplib" ;;
  53500. - esac
  53501. + # If the previous option needs an argument, assign it.
  53502. + if test -n "$prev"; then
  53503. + case $prev in
  53504. + output)
  53505. + func_append compile_command " @OUTPUT@"
  53506. + func_append finalize_command " @OUTPUT@"
  53507. ;;
  53508. - *) new_libs="$new_libs $deplib" ;;
  53509. esac
  53510. - done
  53511. - compile_deplibs="$new_libs"
  53512. -
  53513. - compile_command="$compile_command $compile_deplibs"
  53514. - finalize_command="$finalize_command $finalize_deplibs"
  53515. -
  53516. - if test -n "$rpath$xrpath"; then
  53517. - # If the user specified any rpath flags, then add them.
  53518. - for libdir in $rpath $xrpath; do
  53519. - # This is the magic to use -rpath.
  53520. - case "$finalize_rpath " in
  53521. - *" $libdir "*) ;;
  53522. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  53523. - esac
  53524. - done
  53525. - fi
  53526. -
  53527. - # Now hardcode the library paths
  53528. - rpath=
  53529. - hardcode_libdirs=
  53530. - for libdir in $compile_rpath $finalize_rpath; do
  53531. - if test -n "$hardcode_libdir_flag_spec"; then
  53532. - if test -n "$hardcode_libdir_separator"; then
  53533. - if test -z "$hardcode_libdirs"; then
  53534. - hardcode_libdirs="$libdir"
  53535. + case $prev in
  53536. + dlfiles|dlprefiles)
  53537. + if test "$preload" = no; then
  53538. + # Add the symbol object into the linking commands.
  53539. + func_append compile_command " @SYMFILE@"
  53540. + func_append finalize_command " @SYMFILE@"
  53541. + preload=yes
  53542. + fi
  53543. + case $arg in
  53544. + *.la | *.lo) ;; # We handle these cases below.
  53545. + force)
  53546. + if test "$dlself" = no; then
  53547. + dlself=needless
  53548. + export_dynamic=yes
  53549. + fi
  53550. + prev=
  53551. + continue
  53552. + ;;
  53553. + self)
  53554. + if test "$prev" = dlprefiles; then
  53555. + dlself=yes
  53556. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  53557. + dlself=yes
  53558. else
  53559. - # Just accumulate the unique libdirs.
  53560. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53561. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53562. - ;;
  53563. - *)
  53564. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53565. - ;;
  53566. - esac
  53567. + dlself=needless
  53568. + export_dynamic=yes
  53569. fi
  53570. - else
  53571. - eval flag=\"$hardcode_libdir_flag_spec\"
  53572. - rpath="$rpath $flag"
  53573. - fi
  53574. - elif test -n "$runpath_var"; then
  53575. - case "$perm_rpath " in
  53576. - *" $libdir "*) ;;
  53577. - *) perm_rpath="$perm_rpath $libdir" ;;
  53578. - esac
  53579. - fi
  53580. - case $host in
  53581. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  53582. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  53583. - case :$dllsearchpath: in
  53584. - *":$libdir:"*) ;;
  53585. - *) dllsearchpath="$dllsearchpath:$libdir";;
  53586. - esac
  53587. - case :$dllsearchpath: in
  53588. - *":$testbindir:"*) ;;
  53589. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  53590. + prev=
  53591. + continue
  53592. + ;;
  53593. + *)
  53594. + if test "$prev" = dlfiles; then
  53595. + dlfiles="$dlfiles $arg"
  53596. + else
  53597. + dlprefiles="$dlprefiles $arg"
  53598. + fi
  53599. + prev=
  53600. + continue
  53601. + ;;
  53602. esac
  53603. ;;
  53604. - esac
  53605. - done
  53606. - # Substitute the hardcoded libdirs into the rpath.
  53607. - if test -n "$hardcode_libdir_separator" &&
  53608. - test -n "$hardcode_libdirs"; then
  53609. - libdir="$hardcode_libdirs"
  53610. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53611. - fi
  53612. - compile_rpath="$rpath"
  53613. -
  53614. - rpath=
  53615. - hardcode_libdirs=
  53616. - for libdir in $finalize_rpath; do
  53617. - if test -n "$hardcode_libdir_flag_spec"; then
  53618. - if test -n "$hardcode_libdir_separator"; then
  53619. - if test -z "$hardcode_libdirs"; then
  53620. - hardcode_libdirs="$libdir"
  53621. - else
  53622. - # Just accumulate the unique libdirs.
  53623. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53624. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53625. - ;;
  53626. - *)
  53627. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53628. - ;;
  53629. + expsyms)
  53630. + export_symbols="$arg"
  53631. + test -f "$arg" \
  53632. + || func_fatal_error "symbol file \`$arg' does not exist"
  53633. + prev=
  53634. + continue
  53635. + ;;
  53636. + expsyms_regex)
  53637. + export_symbols_regex="$arg"
  53638. + prev=
  53639. + continue
  53640. + ;;
  53641. + framework)
  53642. + case $host in
  53643. + *-*-darwin*)
  53644. + case "$deplibs " in
  53645. + *" $qarg.ltframework "*) ;;
  53646. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  53647. + ;;
  53648. esac
  53649. - fi
  53650. - else
  53651. - eval flag=\"$hardcode_libdir_flag_spec\"
  53652. - rpath="$rpath $flag"
  53653. - fi
  53654. - elif test -n "$runpath_var"; then
  53655. - case "$finalize_perm_rpath " in
  53656. - *" $libdir "*) ;;
  53657. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  53658. + ;;
  53659. esac
  53660. - fi
  53661. - done
  53662. - # Substitute the hardcoded libdirs into the rpath.
  53663. - if test -n "$hardcode_libdir_separator" &&
  53664. - test -n "$hardcode_libdirs"; then
  53665. - libdir="$hardcode_libdirs"
  53666. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53667. - fi
  53668. - finalize_rpath="$rpath"
  53669. -
  53670. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  53671. - # Transform all the library objects into standard objects.
  53672. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53673. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53674. - fi
  53675. + prev=
  53676. + continue
  53677. + ;;
  53678. + inst_prefix)
  53679. + inst_prefix_dir="$arg"
  53680. + prev=
  53681. + continue
  53682. + ;;
  53683. + objectlist)
  53684. + if test -f "$arg"; then
  53685. + save_arg=$arg
  53686. + moreargs=
  53687. + for fil in `cat "$save_arg"`
  53688. + do
  53689. +# moreargs="$moreargs $fil"
  53690. + arg=$fil
  53691. + # A libtool-controlled object.
  53692. - dlsyms=
  53693. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53694. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  53695. - dlsyms="${outputname}S.c"
  53696. - else
  53697. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  53698. - fi
  53699. - fi
  53700. + # Check to see that this really is a libtool object.
  53701. + if func_lalib_unsafe_p "$arg"; then
  53702. + pic_object=
  53703. + non_pic_object=
  53704. - if test -n "$dlsyms"; then
  53705. - case $dlsyms in
  53706. - "") ;;
  53707. - *.c)
  53708. - # Discover the nlist of each of the dlfiles.
  53709. - nlist="$output_objdir/${outputname}.nm"
  53710. + # Read the .lo file
  53711. + func_source "$arg"
  53712. - $show "$rm $nlist ${nlist}S ${nlist}T"
  53713. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  53714. + if test -z "$pic_object" ||
  53715. + test -z "$non_pic_object" ||
  53716. + test "$pic_object" = none &&
  53717. + test "$non_pic_object" = none; then
  53718. + func_fatal_error "cannot find name of object for \`$arg'"
  53719. + fi
  53720. - # Parse the name list into a source file.
  53721. - $show "creating $output_objdir/$dlsyms"
  53722. + # Extract subdirectory from the argument.
  53723. + func_dirname "$arg" "/" ""
  53724. + xdir="$func_dirname_result"
  53725. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  53726. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  53727. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  53728. + if test "$pic_object" != none; then
  53729. + # Prepend the subdirectory the object is found in.
  53730. + pic_object="$xdir$pic_object"
  53731. -#ifdef __cplusplus
  53732. -extern \"C\" {
  53733. -#endif
  53734. + if test "$prev" = dlfiles; then
  53735. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  53736. + dlfiles="$dlfiles $pic_object"
  53737. + prev=
  53738. + continue
  53739. + else
  53740. + # If libtool objects are unsupported, then we need to preload.
  53741. + prev=dlprefiles
  53742. + fi
  53743. + fi
  53744. -/* Prevent the only kind of declaration conflicts we can make. */
  53745. -#define lt_preloaded_symbols some_other_symbol
  53746. + # CHECK ME: I think I busted this. -Ossama
  53747. + if test "$prev" = dlprefiles; then
  53748. + # Preload the old-style object.
  53749. + dlprefiles="$dlprefiles $pic_object"
  53750. + prev=
  53751. + fi
  53752. -/* External symbol declarations for the compiler. */\
  53753. -"
  53754. + # A PIC object.
  53755. + func_append libobjs " $pic_object"
  53756. + arg="$pic_object"
  53757. + fi
  53758. - if test "$dlself" = yes; then
  53759. - $show "generating symbol list for \`$output'"
  53760. + # Non-PIC object.
  53761. + if test "$non_pic_object" != none; then
  53762. + # Prepend the subdirectory the object is found in.
  53763. + non_pic_object="$xdir$non_pic_object"
  53764. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  53765. + # A standard non-PIC object
  53766. + func_append non_pic_objects " $non_pic_object"
  53767. + if test -z "$pic_object" || test "$pic_object" = none ; then
  53768. + arg="$non_pic_object"
  53769. + fi
  53770. + else
  53771. + # If the PIC object exists, use it instead.
  53772. + # $xdir was prepended to $pic_object above.
  53773. + non_pic_object="$pic_object"
  53774. + func_append non_pic_objects " $non_pic_object"
  53775. + fi
  53776. + else
  53777. + # Only an error if not doing a dry-run.
  53778. + if $opt_dry_run; then
  53779. + # Extract subdirectory from the argument.
  53780. + func_dirname "$arg" "/" ""
  53781. + xdir="$func_dirname_result"
  53782. - # Add our own program objects to the symbol list.
  53783. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53784. - for arg in $progfiles; do
  53785. - $show "extracting global C symbols from \`$arg'"
  53786. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  53787. + func_lo2o "$arg"
  53788. + pic_object=$xdir$objdir/$func_lo2o_result
  53789. + non_pic_object=$xdir$func_lo2o_result
  53790. + func_append libobjs " $pic_object"
  53791. + func_append non_pic_objects " $non_pic_object"
  53792. + else
  53793. + func_fatal_error "\`$arg' is not a valid libtool object"
  53794. + fi
  53795. + fi
  53796. done
  53797. -
  53798. - if test -n "$exclude_expsyms"; then
  53799. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  53800. - $run eval '$mv "$nlist"T "$nlist"'
  53801. - fi
  53802. -
  53803. - if test -n "$export_symbols_regex"; then
  53804. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  53805. - $run eval '$mv "$nlist"T "$nlist"'
  53806. - fi
  53807. -
  53808. - # Prepare the list of exported symbols
  53809. - if test -z "$export_symbols"; then
  53810. - export_symbols="$output_objdir/$outputname.exp"
  53811. - $run $rm $export_symbols
  53812. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  53813. - case $host in
  53814. - *cygwin* | *mingw* )
  53815. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53816. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  53817. - ;;
  53818. - esac
  53819. - else
  53820. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  53821. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  53822. - $run eval 'mv "$nlist"T "$nlist"'
  53823. - case $host in
  53824. - *cygwin* | *mingw* )
  53825. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53826. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  53827. - ;;
  53828. - esac
  53829. - fi
  53830. + else
  53831. + func_fatal_error "link input file \`$arg' does not exist"
  53832. fi
  53833. -
  53834. - for arg in $dlprefiles; do
  53835. - $show "extracting global C symbols from \`$arg'"
  53836. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  53837. - $run eval '$echo ": $name " >> "$nlist"'
  53838. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  53839. - done
  53840. -
  53841. - if test -z "$run"; then
  53842. - # Make sure we have at least an empty file.
  53843. - test -f "$nlist" || : > "$nlist"
  53844. -
  53845. - if test -n "$exclude_expsyms"; then
  53846. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  53847. - $mv "$nlist"T "$nlist"
  53848. - fi
  53849. -
  53850. - # Try sorting and uniquifying the output.
  53851. - if grep -v "^: " < "$nlist" |
  53852. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  53853. - sort -k 3
  53854. - else
  53855. - sort +2
  53856. - fi |
  53857. - uniq > "$nlist"S; then
  53858. - :
  53859. - else
  53860. - grep -v "^: " < "$nlist" > "$nlist"S
  53861. - fi
  53862. -
  53863. - if test -f "$nlist"S; then
  53864. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  53865. - else
  53866. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  53867. - fi
  53868. -
  53869. - $echo >> "$output_objdir/$dlsyms" "\
  53870. -
  53871. -#undef lt_preloaded_symbols
  53872. -
  53873. -#if defined (__STDC__) && __STDC__
  53874. -# define lt_ptr void *
  53875. -#else
  53876. -# define lt_ptr char *
  53877. -# define const
  53878. -#endif
  53879. -
  53880. -/* The mapping between symbol names and symbols. */
  53881. -"
  53882. -
  53883. - case $host in
  53884. - *cygwin* | *mingw* )
  53885. - $echo >> "$output_objdir/$dlsyms" "\
  53886. -/* DATA imports from DLLs on WIN32 can't be const, because
  53887. - runtime relocations are performed -- see ld's documentation
  53888. - on pseudo-relocs */
  53889. -struct {
  53890. -"
  53891. - ;;
  53892. - * )
  53893. - $echo >> "$output_objdir/$dlsyms" "\
  53894. -const struct {
  53895. -"
  53896. - ;;
  53897. - esac
  53898. -
  53899. -
  53900. - $echo >> "$output_objdir/$dlsyms" "\
  53901. - const char *name;
  53902. - lt_ptr address;
  53903. -}
  53904. -lt_preloaded_symbols[] =
  53905. -{\
  53906. -"
  53907. -
  53908. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  53909. -
  53910. - $echo >> "$output_objdir/$dlsyms" "\
  53911. - {0, (lt_ptr) 0}
  53912. -};
  53913. -
  53914. -/* This works around a problem in FreeBSD linker */
  53915. -#ifdef FREEBSD_WORKAROUND
  53916. -static const void *lt_preloaded_setup() {
  53917. - return lt_preloaded_symbols;
  53918. -}
  53919. -#endif
  53920. -
  53921. -#ifdef __cplusplus
  53922. -}
  53923. -#endif\
  53924. -"
  53925. - fi
  53926. -
  53927. - pic_flag_for_symtable=
  53928. - case $host in
  53929. - # compiling the symbol table file with pic_flag works around
  53930. - # a FreeBSD bug that causes programs to crash when -lm is
  53931. - # linked before any other PIC object. But we must not use
  53932. - # pic_flag when linking with -static. The problem exists in
  53933. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  53934. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  53935. - case "$compile_command " in
  53936. - *" -static "*) ;;
  53937. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  53938. - esac;;
  53939. - *-*-hpux*)
  53940. - case "$compile_command " in
  53941. - *" -static "*) ;;
  53942. - *) pic_flag_for_symtable=" $pic_flag";;
  53943. - esac
  53944. + arg=$save_arg
  53945. + prev=
  53946. + continue
  53947. + ;;
  53948. + precious_regex)
  53949. + precious_files_regex="$arg"
  53950. + prev=
  53951. + continue
  53952. + ;;
  53953. + release)
  53954. + release="-$arg"
  53955. + prev=
  53956. + continue
  53957. + ;;
  53958. + rpath | xrpath)
  53959. + # We need an absolute path.
  53960. + case $arg in
  53961. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53962. + *)
  53963. + func_fatal_error "only absolute run-paths are allowed"
  53964. + ;;
  53965. esac
  53966. -
  53967. - # Now compile the dynamic symbol file.
  53968. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  53969. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  53970. -
  53971. - # Clean up the generated files.
  53972. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  53973. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  53974. -
  53975. - # Transform the symbol file into the correct name.
  53976. - case $host in
  53977. - *cygwin* | *mingw* )
  53978. - if test -f "$output_objdir/${outputname}.def" ; then
  53979. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53980. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53981. - else
  53982. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53983. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53984. - fi
  53985. - ;;
  53986. - * )
  53987. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53988. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53989. - ;;
  53990. - esac
  53991. + if test "$prev" = rpath; then
  53992. + case "$rpath " in
  53993. + *" $arg "*) ;;
  53994. + *) rpath="$rpath $arg" ;;
  53995. + esac
  53996. + else
  53997. + case "$xrpath " in
  53998. + *" $arg "*) ;;
  53999. + *) xrpath="$xrpath $arg" ;;
  54000. + esac
  54001. + fi
  54002. + prev=
  54003. + continue
  54004. + ;;
  54005. + shrext)
  54006. + shrext_cmds="$arg"
  54007. + prev=
  54008. + continue
  54009. + ;;
  54010. + weak)
  54011. + weak_libs="$weak_libs $arg"
  54012. + prev=
  54013. + continue
  54014. + ;;
  54015. + xcclinker)
  54016. + linker_flags="$linker_flags $qarg"
  54017. + compiler_flags="$compiler_flags $qarg"
  54018. + prev=
  54019. + func_append compile_command " $qarg"
  54020. + func_append finalize_command " $qarg"
  54021. + continue
  54022. + ;;
  54023. + xcompiler)
  54024. + compiler_flags="$compiler_flags $qarg"
  54025. + prev=
  54026. + func_append compile_command " $qarg"
  54027. + func_append finalize_command " $qarg"
  54028. + continue
  54029. + ;;
  54030. + xlinker)
  54031. + linker_flags="$linker_flags $qarg"
  54032. + compiler_flags="$compiler_flags $wl$qarg"
  54033. + prev=
  54034. + func_append compile_command " $wl$qarg"
  54035. + func_append finalize_command " $wl$qarg"
  54036. + continue
  54037. ;;
  54038. *)
  54039. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  54040. - exit $EXIT_FAILURE
  54041. + eval "$prev=\"\$arg\""
  54042. + prev=
  54043. + continue
  54044. ;;
  54045. esac
  54046. - else
  54047. - # We keep going just in case the user didn't refer to
  54048. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  54049. - # really was required.
  54050. -
  54051. - # Nullify the symbol file.
  54052. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  54053. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  54054. - fi
  54055. -
  54056. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  54057. - # Replace the output file specification.
  54058. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  54059. - link_command="$compile_command$compile_rpath"
  54060. + fi # test -n "$prev"
  54061. - # We have no uninstalled library dependencies, so finalize right now.
  54062. - $show "$link_command"
  54063. - $run eval "$link_command"
  54064. - exit_status=$?
  54065. + prevarg="$arg"
  54066. - # Delete the generated files.
  54067. - if test -n "$dlsyms"; then
  54068. - $show "$rm $output_objdir/${outputname}S.${objext}"
  54069. - $run $rm "$output_objdir/${outputname}S.${objext}"
  54070. + case $arg in
  54071. + -all-static)
  54072. + if test -n "$link_static_flag"; then
  54073. + # See comment for -static flag below, for more details.
  54074. + func_append compile_command " $link_static_flag"
  54075. + func_append finalize_command " $link_static_flag"
  54076. fi
  54077. + continue
  54078. + ;;
  54079. - exit $exit_status
  54080. - fi
  54081. -
  54082. - if test -n "$shlibpath_var"; then
  54083. - # We should set the shlibpath_var
  54084. - rpath=
  54085. - for dir in $temp_rpath; do
  54086. - case $dir in
  54087. - [\\/]* | [A-Za-z]:[\\/]*)
  54088. - # Absolute path.
  54089. - rpath="$rpath$dir:"
  54090. - ;;
  54091. - *)
  54092. - # Relative path: add a thisdir entry.
  54093. - rpath="$rpath\$thisdir/$dir:"
  54094. - ;;
  54095. - esac
  54096. - done
  54097. - temp_rpath="$rpath"
  54098. - fi
  54099. + -allow-undefined)
  54100. + # FIXME: remove this flag sometime in the future.
  54101. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  54102. + ;;
  54103. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  54104. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  54105. - fi
  54106. - if test -n "$finalize_shlibpath"; then
  54107. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  54108. - fi
  54109. + -avoid-version)
  54110. + avoid_version=yes
  54111. + continue
  54112. + ;;
  54113. - compile_var=
  54114. - finalize_var=
  54115. - if test -n "$runpath_var"; then
  54116. - if test -n "$perm_rpath"; then
  54117. - # We should set the runpath_var.
  54118. - rpath=
  54119. - for dir in $perm_rpath; do
  54120. - rpath="$rpath$dir:"
  54121. - done
  54122. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54123. - fi
  54124. - if test -n "$finalize_perm_rpath"; then
  54125. - # We should set the runpath_var.
  54126. - rpath=
  54127. - for dir in $finalize_perm_rpath; do
  54128. - rpath="$rpath$dir:"
  54129. - done
  54130. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54131. - fi
  54132. - fi
  54133. + -dlopen)
  54134. + prev=dlfiles
  54135. + continue
  54136. + ;;
  54137. - if test "$no_install" = yes; then
  54138. - # We don't need to create a wrapper script.
  54139. - link_command="$compile_var$compile_command$compile_rpath"
  54140. - # Replace the output file specification.
  54141. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  54142. - # Delete the old output file.
  54143. - $run $rm $output
  54144. - # Link the executable and exit
  54145. - $show "$link_command"
  54146. - $run eval "$link_command" || exit $?
  54147. - exit $EXIT_SUCCESS
  54148. - fi
  54149. + -dlpreopen)
  54150. + prev=dlprefiles
  54151. + continue
  54152. + ;;
  54153. - if test "$hardcode_action" = relink; then
  54154. - # Fast installation is not supported
  54155. - link_command="$compile_var$compile_command$compile_rpath"
  54156. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54157. + -export-dynamic)
  54158. + export_dynamic=yes
  54159. + continue
  54160. + ;;
  54161. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  54162. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  54163. - else
  54164. - if test "$fast_install" != no; then
  54165. - link_command="$finalize_var$compile_command$finalize_rpath"
  54166. - if test "$fast_install" = yes; then
  54167. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  54168. - else
  54169. - # fast_install is set to needless
  54170. - relink_command=
  54171. - fi
  54172. + -export-symbols | -export-symbols-regex)
  54173. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  54174. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  54175. + fi
  54176. + if test "X$arg" = "X-export-symbols"; then
  54177. + prev=expsyms
  54178. else
  54179. - link_command="$compile_var$compile_command$compile_rpath"
  54180. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54181. + prev=expsyms_regex
  54182. fi
  54183. - fi
  54184. -
  54185. - # Replace the output file specification.
  54186. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  54187. + continue
  54188. + ;;
  54189. - # Delete the old output files.
  54190. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  54191. + -framework)
  54192. + prev=framework
  54193. + continue
  54194. + ;;
  54195. - $show "$link_command"
  54196. - $run eval "$link_command" || exit $?
  54197. + -inst-prefix-dir)
  54198. + prev=inst_prefix
  54199. + continue
  54200. + ;;
  54201. - # Now create the wrapper script.
  54202. - $show "creating $output"
  54203. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  54204. + # so, if we see these flags be careful not to treat them like -L
  54205. + -L[A-Z][A-Z]*:*)
  54206. + case $with_gcc/$host in
  54207. + no/*-*-irix* | /*-*-irix*)
  54208. + func_append compile_command " $arg"
  54209. + func_append finalize_command " $arg"
  54210. + ;;
  54211. + esac
  54212. + continue
  54213. + ;;
  54214. - # Quote the relink command for shipping.
  54215. - if test -n "$relink_command"; then
  54216. - # Preserve any variables that may affect compiler behavior
  54217. - for var in $variables_saved_for_relink; do
  54218. - if eval test -z \"\${$var+set}\"; then
  54219. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  54220. - elif eval var_value=\$$var; test -z "$var_value"; then
  54221. - relink_command="$var=; export $var; $relink_command"
  54222. + -L*)
  54223. + func_stripname '-L' '' "$arg"
  54224. + dir=$func_stripname_result
  54225. + if test -z "$dir"; then
  54226. + if test "$#" -gt 0; then
  54227. + func_fatal_error "require no space between \`-L' and \`$1'"
  54228. else
  54229. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  54230. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  54231. + func_fatal_error "need path for \`-L' option"
  54232. fi
  54233. - done
  54234. - relink_command="(cd `pwd`; $relink_command)"
  54235. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  54236. - fi
  54237. -
  54238. - # Quote $echo for shipping.
  54239. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  54240. - case $progpath in
  54241. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  54242. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  54243. + fi
  54244. + # We need an absolute path.
  54245. + case $dir in
  54246. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  54247. + *)
  54248. + absdir=`cd "$dir" && pwd`
  54249. + test -z "$absdir" && \
  54250. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  54251. + dir="$absdir"
  54252. + ;;
  54253. esac
  54254. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  54255. - else
  54256. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  54257. - fi
  54258. -
  54259. - # Only actually do things if our run command is non-null.
  54260. - if test -z "$run"; then
  54261. - # win32 will think the script is a binary if it has
  54262. - # a .exe suffix, so we strip it off here.
  54263. - case $output in
  54264. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  54265. + case "$deplibs " in
  54266. + *" -L$dir "*) ;;
  54267. + *)
  54268. + deplibs="$deplibs -L$dir"
  54269. + lib_search_path="$lib_search_path $dir"
  54270. + ;;
  54271. esac
  54272. - # test for cygwin because mv fails w/o .exe extensions
  54273. case $host in
  54274. - *cygwin*)
  54275. - exeext=.exe
  54276. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  54277. - *) exeext= ;;
  54278. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  54279. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  54280. + case :$dllsearchpath: in
  54281. + *":$dir:"*) ;;
  54282. + ::) dllsearchpath=$dir;;
  54283. + *) dllsearchpath="$dllsearchpath:$dir";;
  54284. + esac
  54285. + case :$dllsearchpath: in
  54286. + *":$testbindir:"*) ;;
  54287. + ::) dllsearchpath=$testbindir;;
  54288. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  54289. + esac
  54290. + ;;
  54291. esac
  54292. - case $host in
  54293. - *cygwin* | *mingw* )
  54294. - output_name=`basename $output`
  54295. - output_path=`dirname $output`
  54296. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  54297. - cwrapper="$output_path/$output_name.exe"
  54298. - $rm $cwrappersource $cwrapper
  54299. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  54300. -
  54301. - cat > $cwrappersource <<EOF
  54302. + continue
  54303. + ;;
  54304. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  54305. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54306. + -l*)
  54307. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  54308. + case $host in
  54309. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  54310. + # These systems don't actually have a C or math library (as such)
  54311. + continue
  54312. + ;;
  54313. + *-*-os2*)
  54314. + # These systems don't actually have a C library (as such)
  54315. + test "X$arg" = "X-lc" && continue
  54316. + ;;
  54317. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  54318. + # Do not include libc due to us having libc/libc_r.
  54319. + test "X$arg" = "X-lc" && continue
  54320. + ;;
  54321. + *-*-rhapsody* | *-*-darwin1.[012])
  54322. + # Rhapsody C and math libraries are in the System framework
  54323. + deplibs="$deplibs System.ltframework"
  54324. + continue
  54325. + ;;
  54326. + *-*-sco3.2v5* | *-*-sco5v6*)
  54327. + # Causes problems with __ctype
  54328. + test "X$arg" = "X-lc" && continue
  54329. + ;;
  54330. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  54331. + # Compiler inserts libc in the correct place for threads to work
  54332. + test "X$arg" = "X-lc" && continue
  54333. + ;;
  54334. + esac
  54335. + elif test "X$arg" = "X-lc_r"; then
  54336. + case $host in
  54337. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  54338. + # Do not include libc_r directly, use -pthread flag.
  54339. + continue
  54340. + ;;
  54341. + esac
  54342. + fi
  54343. + deplibs="$deplibs $arg"
  54344. + continue
  54345. + ;;
  54346. - The $output program cannot be directly executed until all the libtool
  54347. - libraries that it depends on are installed.
  54348. + -module)
  54349. + module=yes
  54350. + continue
  54351. + ;;
  54352. - This wrapper executable should never be moved out of the build directory.
  54353. - If it is, it will not operate correctly.
  54354. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  54355. + # classes, name mangling, and exception handling.
  54356. + # Darwin uses the -arch flag to determine output architecture.
  54357. + -model|-arch|-isysroot)
  54358. + compiler_flags="$compiler_flags $arg"
  54359. + func_append compile_command " $arg"
  54360. + func_append finalize_command " $arg"
  54361. + prev=xcompiler
  54362. + continue
  54363. + ;;
  54364. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  54365. - but could eventually absorb all of the scripts functionality and
  54366. - exec $objdir/$outputname directly.
  54367. -*/
  54368. -EOF
  54369. - cat >> $cwrappersource<<"EOF"
  54370. -#include <stdio.h>
  54371. -#include <stdlib.h>
  54372. -#include <unistd.h>
  54373. -#include <malloc.h>
  54374. -#include <stdarg.h>
  54375. -#include <assert.h>
  54376. -#include <string.h>
  54377. -#include <ctype.h>
  54378. -#include <sys/stat.h>
  54379. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  54380. + compiler_flags="$compiler_flags $arg"
  54381. + func_append compile_command " $arg"
  54382. + func_append finalize_command " $arg"
  54383. + case "$new_inherited_linker_flags " in
  54384. + *" $arg "*) ;;
  54385. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  54386. + esac
  54387. + continue
  54388. + ;;
  54389. -#if defined(PATH_MAX)
  54390. -# define LT_PATHMAX PATH_MAX
  54391. -#elif defined(MAXPATHLEN)
  54392. -# define LT_PATHMAX MAXPATHLEN
  54393. -#else
  54394. -# define LT_PATHMAX 1024
  54395. -#endif
  54396. + -multi_module)
  54397. + single_module="${wl}-multi_module"
  54398. + continue
  54399. + ;;
  54400. -#ifndef DIR_SEPARATOR
  54401. -# define DIR_SEPARATOR '/'
  54402. -# define PATH_SEPARATOR ':'
  54403. -#endif
  54404. + -no-fast-install)
  54405. + fast_install=no
  54406. + continue
  54407. + ;;
  54408. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  54409. - defined (__OS2__)
  54410. -# define HAVE_DOS_BASED_FILE_SYSTEM
  54411. -# ifndef DIR_SEPARATOR_2
  54412. -# define DIR_SEPARATOR_2 '\\'
  54413. -# endif
  54414. -# ifndef PATH_SEPARATOR_2
  54415. -# define PATH_SEPARATOR_2 ';'
  54416. -# endif
  54417. -#endif
  54418. + -no-install)
  54419. + case $host in
  54420. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  54421. + # The PATH hackery in wrapper scripts is required on Windows
  54422. + # and Darwin in order for the loader to find any dlls it needs.
  54423. + func_warning "\`-no-install' is ignored for $host"
  54424. + func_warning "assuming \`-no-fast-install' instead"
  54425. + fast_install=no
  54426. + ;;
  54427. + *) no_install=yes ;;
  54428. + esac
  54429. + continue
  54430. + ;;
  54431. -#ifndef DIR_SEPARATOR_2
  54432. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  54433. -#else /* DIR_SEPARATOR_2 */
  54434. -# define IS_DIR_SEPARATOR(ch) \
  54435. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  54436. -#endif /* DIR_SEPARATOR_2 */
  54437. + -no-undefined)
  54438. + allow_undefined=no
  54439. + continue
  54440. + ;;
  54441. -#ifndef PATH_SEPARATOR_2
  54442. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  54443. -#else /* PATH_SEPARATOR_2 */
  54444. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  54445. -#endif /* PATH_SEPARATOR_2 */
  54446. + -objectlist)
  54447. + prev=objectlist
  54448. + continue
  54449. + ;;
  54450. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  54451. -#define XFREE(stale) do { \
  54452. - if (stale) { free ((void *) stale); stale = 0; } \
  54453. -} while (0)
  54454. + -o) prev=output ;;
  54455. -/* -DDEBUG is fairly common in CFLAGS. */
  54456. -#undef DEBUG
  54457. -#if defined DEBUGWRAPPER
  54458. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  54459. -#else
  54460. -# define DEBUG(format, ...)
  54461. -#endif
  54462. + -precious-files-regex)
  54463. + prev=precious_regex
  54464. + continue
  54465. + ;;
  54466. -const char *program_name = NULL;
  54467. + -release)
  54468. + prev=release
  54469. + continue
  54470. + ;;
  54471. -void * xmalloc (size_t num);
  54472. -char * xstrdup (const char *string);
  54473. -const char * base_name (const char *name);
  54474. -char * find_executable(const char *wrapper);
  54475. -int check_executable(const char *path);
  54476. -char * strendzap(char *str, const char *pat);
  54477. -void lt_fatal (const char *message, ...);
  54478. + -rpath)
  54479. + prev=rpath
  54480. + continue
  54481. + ;;
  54482. -int
  54483. -main (int argc, char *argv[])
  54484. -{
  54485. - char **newargz;
  54486. - int i;
  54487. + -R)
  54488. + prev=xrpath
  54489. + continue
  54490. + ;;
  54491. - program_name = (char *) xstrdup (base_name (argv[0]));
  54492. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  54493. - DEBUG("(main) program_name : %s\n",program_name);
  54494. - newargz = XMALLOC(char *, argc+2);
  54495. -EOF
  54496. + -R*)
  54497. + func_stripname '-R' '' "$arg"
  54498. + dir=$func_stripname_result
  54499. + # We need an absolute path.
  54500. + case $dir in
  54501. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  54502. + *)
  54503. + func_fatal_error "only absolute run-paths are allowed"
  54504. + ;;
  54505. + esac
  54506. + case "$xrpath " in
  54507. + *" $dir "*) ;;
  54508. + *) xrpath="$xrpath $dir" ;;
  54509. + esac
  54510. + continue
  54511. + ;;
  54512. - cat >> $cwrappersource <<EOF
  54513. - newargz[0] = (char *) xstrdup("$SHELL");
  54514. -EOF
  54515. + -shared)
  54516. + # The effects of -shared are defined in a previous loop.
  54517. + continue
  54518. + ;;
  54519. - cat >> $cwrappersource <<"EOF"
  54520. - newargz[1] = find_executable(argv[0]);
  54521. - if (newargz[1] == NULL)
  54522. - lt_fatal("Couldn't find %s", argv[0]);
  54523. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  54524. - /* we know the script has the same name, without the .exe */
  54525. - /* so make sure newargz[1] doesn't end in .exe */
  54526. - strendzap(newargz[1],".exe");
  54527. - for (i = 1; i < argc; i++)
  54528. - newargz[i+1] = xstrdup(argv[i]);
  54529. - newargz[argc+1] = NULL;
  54530. + -shrext)
  54531. + prev=shrext
  54532. + continue
  54533. + ;;
  54534. - for (i=0; i<argc+1; i++)
  54535. - {
  54536. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  54537. - ;
  54538. - }
  54539. + -static | -static-libtool-libs)
  54540. + # The effects of -static are defined in a previous loop.
  54541. + # We used to do the same as -all-static on platforms that
  54542. + # didn't have a PIC flag, but the assumption that the effects
  54543. + # would be equivalent was wrong. It would break on at least
  54544. + # Digital Unix and AIX.
  54545. + continue
  54546. + ;;
  54547. -EOF
  54548. + -thread-safe)
  54549. + thread_safe=yes
  54550. + continue
  54551. + ;;
  54552. - case $host_os in
  54553. - mingw*)
  54554. - cat >> $cwrappersource <<EOF
  54555. - execv("$SHELL",(char const **)newargz);
  54556. -EOF
  54557. - ;;
  54558. - *)
  54559. - cat >> $cwrappersource <<EOF
  54560. - execv("$SHELL",newargz);
  54561. -EOF
  54562. - ;;
  54563. - esac
  54564. + -version-info)
  54565. + prev=vinfo
  54566. + continue
  54567. + ;;
  54568. - cat >> $cwrappersource <<"EOF"
  54569. - return 127;
  54570. -}
  54571. + -version-number)
  54572. + prev=vinfo
  54573. + vinfo_number=yes
  54574. + continue
  54575. + ;;
  54576. -void *
  54577. -xmalloc (size_t num)
  54578. -{
  54579. - void * p = (void *) malloc (num);
  54580. - if (!p)
  54581. - lt_fatal ("Memory exhausted");
  54582. + -weak)
  54583. + prev=weak
  54584. + continue
  54585. + ;;
  54586. - return p;
  54587. -}
  54588. + -Wc,*)
  54589. + func_stripname '-Wc,' '' "$arg"
  54590. + args=$func_stripname_result
  54591. + arg=
  54592. + save_ifs="$IFS"; IFS=','
  54593. + for flag in $args; do
  54594. + IFS="$save_ifs"
  54595. + func_quote_for_eval "$flag"
  54596. + arg="$arg $wl$func_quote_for_eval_result"
  54597. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  54598. + done
  54599. + IFS="$save_ifs"
  54600. + func_stripname ' ' '' "$arg"
  54601. + arg=$func_stripname_result
  54602. + ;;
  54603. -char *
  54604. -xstrdup (const char *string)
  54605. -{
  54606. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  54607. -;
  54608. -}
  54609. + -Wl,*)
  54610. + func_stripname '-Wl,' '' "$arg"
  54611. + args=$func_stripname_result
  54612. + arg=
  54613. + save_ifs="$IFS"; IFS=','
  54614. + for flag in $args; do
  54615. + IFS="$save_ifs"
  54616. + func_quote_for_eval "$flag"
  54617. + arg="$arg $wl$func_quote_for_eval_result"
  54618. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  54619. + linker_flags="$linker_flags $func_quote_for_eval_result"
  54620. + done
  54621. + IFS="$save_ifs"
  54622. + func_stripname ' ' '' "$arg"
  54623. + arg=$func_stripname_result
  54624. + ;;
  54625. -const char *
  54626. -base_name (const char *name)
  54627. -{
  54628. - const char *base;
  54629. + -Xcompiler)
  54630. + prev=xcompiler
  54631. + continue
  54632. + ;;
  54633. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54634. - /* Skip over the disk name in MSDOS pathnames. */
  54635. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  54636. - name += 2;
  54637. -#endif
  54638. + -Xlinker)
  54639. + prev=xlinker
  54640. + continue
  54641. + ;;
  54642. - for (base = name; *name; name++)
  54643. - if (IS_DIR_SEPARATOR (*name))
  54644. - base = name + 1;
  54645. - return base;
  54646. -}
  54647. + -XCClinker)
  54648. + prev=xcclinker
  54649. + continue
  54650. + ;;
  54651. -int
  54652. -check_executable(const char * path)
  54653. -{
  54654. - struct stat st;
  54655. + # -msg_* for osf cc
  54656. + -msg_*)
  54657. + func_quote_for_eval "$arg"
  54658. + arg="$func_quote_for_eval_result"
  54659. + ;;
  54660. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  54661. - if ((!path) || (!*path))
  54662. - return 0;
  54663. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  54664. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  54665. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  54666. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  54667. + # -q* pass through compiler args for the IBM compiler
  54668. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  54669. + # compiler args for GCC
  54670. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  54671. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  54672. + # @file GCC response files
  54673. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  54674. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  54675. + func_quote_for_eval "$arg"
  54676. + arg="$func_quote_for_eval_result"
  54677. + func_append compile_command " $arg"
  54678. + func_append finalize_command " $arg"
  54679. + compiler_flags="$compiler_flags $arg"
  54680. + continue
  54681. + ;;
  54682. - if ((stat (path, &st) >= 0) &&
  54683. - (
  54684. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  54685. -#if defined (S_IXOTH)
  54686. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  54687. -#endif
  54688. -#if defined (S_IXGRP)
  54689. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  54690. -#endif
  54691. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  54692. - )
  54693. - return 1;
  54694. - else
  54695. - return 0;
  54696. -}
  54697. + # Some other compiler flag.
  54698. + -* | +*)
  54699. + func_quote_for_eval "$arg"
  54700. + arg="$func_quote_for_eval_result"
  54701. + ;;
  54702. -/* Searches for the full path of the wrapper. Returns
  54703. - newly allocated full path name if found, NULL otherwise */
  54704. -char *
  54705. -find_executable (const char* wrapper)
  54706. -{
  54707. - int has_slash = 0;
  54708. - const char* p;
  54709. - const char* p_next;
  54710. - /* static buffer for getcwd */
  54711. - char tmp[LT_PATHMAX + 1];
  54712. - int tmp_len;
  54713. - char* concat_name;
  54714. + *.$objext)
  54715. + # A standard object.
  54716. + objs="$objs $arg"
  54717. + ;;
  54718. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  54719. + *.lo)
  54720. + # A libtool-controlled object.
  54721. - if ((wrapper == NULL) || (*wrapper == '\0'))
  54722. - return NULL;
  54723. + # Check to see that this really is a libtool object.
  54724. + if func_lalib_unsafe_p "$arg"; then
  54725. + pic_object=
  54726. + non_pic_object=
  54727. - /* Absolute path? */
  54728. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54729. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  54730. - {
  54731. - concat_name = xstrdup (wrapper);
  54732. - if (check_executable(concat_name))
  54733. - return concat_name;
  54734. - XFREE(concat_name);
  54735. - }
  54736. - else
  54737. - {
  54738. -#endif
  54739. - if (IS_DIR_SEPARATOR (wrapper[0]))
  54740. - {
  54741. - concat_name = xstrdup (wrapper);
  54742. - if (check_executable(concat_name))
  54743. - return concat_name;
  54744. - XFREE(concat_name);
  54745. - }
  54746. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54747. - }
  54748. -#endif
  54749. + # Read the .lo file
  54750. + func_source "$arg"
  54751. - for (p = wrapper; *p; p++)
  54752. - if (*p == '/')
  54753. - {
  54754. - has_slash = 1;
  54755. - break;
  54756. - }
  54757. - if (!has_slash)
  54758. - {
  54759. - /* no slashes; search PATH */
  54760. - const char* path = getenv ("PATH");
  54761. - if (path != NULL)
  54762. - {
  54763. - for (p = path; *p; p = p_next)
  54764. - {
  54765. - const char* q;
  54766. - size_t p_len;
  54767. - for (q = p; *q; q++)
  54768. - if (IS_PATH_SEPARATOR(*q))
  54769. - break;
  54770. - p_len = q - p;
  54771. - p_next = (*q == '\0' ? q : q + 1);
  54772. - if (p_len == 0)
  54773. - {
  54774. - /* empty path: current directory */
  54775. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  54776. - lt_fatal ("getcwd failed");
  54777. - tmp_len = strlen(tmp);
  54778. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  54779. - memcpy (concat_name, tmp, tmp_len);
  54780. - concat_name[tmp_len] = '/';
  54781. - strcpy (concat_name + tmp_len + 1, wrapper);
  54782. - }
  54783. - else
  54784. - {
  54785. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  54786. - memcpy (concat_name, p, p_len);
  54787. - concat_name[p_len] = '/';
  54788. - strcpy (concat_name + p_len + 1, wrapper);
  54789. - }
  54790. - if (check_executable(concat_name))
  54791. - return concat_name;
  54792. - XFREE(concat_name);
  54793. - }
  54794. - }
  54795. - /* not found in PATH; assume curdir */
  54796. - }
  54797. - /* Relative path | not found in path: prepend cwd */
  54798. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  54799. - lt_fatal ("getcwd failed");
  54800. - tmp_len = strlen(tmp);
  54801. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  54802. - memcpy (concat_name, tmp, tmp_len);
  54803. - concat_name[tmp_len] = '/';
  54804. - strcpy (concat_name + tmp_len + 1, wrapper);
  54805. + if test -z "$pic_object" ||
  54806. + test -z "$non_pic_object" ||
  54807. + test "$pic_object" = none &&
  54808. + test "$non_pic_object" = none; then
  54809. + func_fatal_error "cannot find name of object for \`$arg'"
  54810. + fi
  54811. - if (check_executable(concat_name))
  54812. - return concat_name;
  54813. - XFREE(concat_name);
  54814. - return NULL;
  54815. -}
  54816. + # Extract subdirectory from the argument.
  54817. + func_dirname "$arg" "/" ""
  54818. + xdir="$func_dirname_result"
  54819. -char *
  54820. -strendzap(char *str, const char *pat)
  54821. -{
  54822. - size_t len, patlen;
  54823. + if test "$pic_object" != none; then
  54824. + # Prepend the subdirectory the object is found in.
  54825. + pic_object="$xdir$pic_object"
  54826. - assert(str != NULL);
  54827. - assert(pat != NULL);
  54828. + if test "$prev" = dlfiles; then
  54829. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  54830. + dlfiles="$dlfiles $pic_object"
  54831. + prev=
  54832. + continue
  54833. + else
  54834. + # If libtool objects are unsupported, then we need to preload.
  54835. + prev=dlprefiles
  54836. + fi
  54837. + fi
  54838. - len = strlen(str);
  54839. - patlen = strlen(pat);
  54840. + # CHECK ME: I think I busted this. -Ossama
  54841. + if test "$prev" = dlprefiles; then
  54842. + # Preload the old-style object.
  54843. + dlprefiles="$dlprefiles $pic_object"
  54844. + prev=
  54845. + fi
  54846. - if (patlen <= len)
  54847. - {
  54848. - str += len - patlen;
  54849. - if (strcmp(str, pat) == 0)
  54850. - *str = '\0';
  54851. - }
  54852. - return str;
  54853. -}
  54854. + # A PIC object.
  54855. + func_append libobjs " $pic_object"
  54856. + arg="$pic_object"
  54857. + fi
  54858. -static void
  54859. -lt_error_core (int exit_status, const char * mode,
  54860. - const char * message, va_list ap)
  54861. -{
  54862. - fprintf (stderr, "%s: %s: ", program_name, mode);
  54863. - vfprintf (stderr, message, ap);
  54864. - fprintf (stderr, ".\n");
  54865. + # Non-PIC object.
  54866. + if test "$non_pic_object" != none; then
  54867. + # Prepend the subdirectory the object is found in.
  54868. + non_pic_object="$xdir$non_pic_object"
  54869. - if (exit_status >= 0)
  54870. - exit (exit_status);
  54871. -}
  54872. + # A standard non-PIC object
  54873. + func_append non_pic_objects " $non_pic_object"
  54874. + if test -z "$pic_object" || test "$pic_object" = none ; then
  54875. + arg="$non_pic_object"
  54876. + fi
  54877. + else
  54878. + # If the PIC object exists, use it instead.
  54879. + # $xdir was prepended to $pic_object above.
  54880. + non_pic_object="$pic_object"
  54881. + func_append non_pic_objects " $non_pic_object"
  54882. + fi
  54883. + else
  54884. + # Only an error if not doing a dry-run.
  54885. + if $opt_dry_run; then
  54886. + # Extract subdirectory from the argument.
  54887. + func_dirname "$arg" "/" ""
  54888. + xdir="$func_dirname_result"
  54889. -void
  54890. -lt_fatal (const char *message, ...)
  54891. -{
  54892. - va_list ap;
  54893. - va_start (ap, message);
  54894. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  54895. - va_end (ap);
  54896. -}
  54897. -EOF
  54898. - # we should really use a build-platform specific compiler
  54899. - # here, but OTOH, the wrappers (shell script and this C one)
  54900. - # are only useful if you want to execute the "real" binary.
  54901. - # Since the "real" binary is built for $host, then this
  54902. - # wrapper might as well be built for $host, too.
  54903. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  54904. - ;;
  54905. - esac
  54906. - $rm $output
  54907. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  54908. + func_lo2o "$arg"
  54909. + pic_object=$xdir$objdir/$func_lo2o_result
  54910. + non_pic_object=$xdir$func_lo2o_result
  54911. + func_append libobjs " $pic_object"
  54912. + func_append non_pic_objects " $non_pic_object"
  54913. + else
  54914. + func_fatal_error "\`$arg' is not a valid libtool object"
  54915. + fi
  54916. + fi
  54917. + ;;
  54918. - $echo > $output "\
  54919. -#! $SHELL
  54920. + *.$libext)
  54921. + # An archive.
  54922. + deplibs="$deplibs $arg"
  54923. + old_deplibs="$old_deplibs $arg"
  54924. + continue
  54925. + ;;
  54926. -# $output - temporary wrapper script for $objdir/$outputname
  54927. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54928. -#
  54929. -# The $output program cannot be directly executed until all the libtool
  54930. -# libraries that it depends on are installed.
  54931. -#
  54932. -# This wrapper script should never be moved out of the build directory.
  54933. -# If it is, it will not operate correctly.
  54934. + *.la)
  54935. + # A libtool-controlled library.
  54936. -# Sed substitution that helps us do robust quoting. It backslashifies
  54937. -# metacharacters that are still active within double-quoted strings.
  54938. -Xsed='${SED} -e 1s/^X//'
  54939. -sed_quote_subst='$sed_quote_subst'
  54940. + if test "$prev" = dlfiles; then
  54941. + # This library was specified with -dlopen.
  54942. + dlfiles="$dlfiles $arg"
  54943. + prev=
  54944. + elif test "$prev" = dlprefiles; then
  54945. + # The library was specified with -dlpreopen.
  54946. + dlprefiles="$dlprefiles $arg"
  54947. + prev=
  54948. + else
  54949. + deplibs="$deplibs $arg"
  54950. + fi
  54951. + continue
  54952. + ;;
  54953. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  54954. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  54955. - emulate sh
  54956. - NULLCMD=:
  54957. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  54958. - # is contrary to our usage. Disable this feature.
  54959. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  54960. - setopt NO_GLOB_SUBST
  54961. -else
  54962. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  54963. -fi
  54964. -BIN_SH=xpg4; export BIN_SH # for Tru64
  54965. -DUALCASE=1; export DUALCASE # for MKS sh
  54966. + # Some other compiler argument.
  54967. + *)
  54968. + # Unknown arguments in both finalize_command and compile_command need
  54969. + # to be aesthetically quoted because they are evaled later.
  54970. + func_quote_for_eval "$arg"
  54971. + arg="$func_quote_for_eval_result"
  54972. + ;;
  54973. + esac # arg
  54974. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  54975. -# if CDPATH is set.
  54976. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  54977. + # Now actually substitute the argument into the commands.
  54978. + if test -n "$arg"; then
  54979. + func_append compile_command " $arg"
  54980. + func_append finalize_command " $arg"
  54981. + fi
  54982. + done # argument parsing loop
  54983. -relink_command=\"$relink_command\"
  54984. + test -n "$prev" && \
  54985. + func_fatal_help "the \`$prevarg' option requires an argument"
  54986. -# This environment variable determines our operation mode.
  54987. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  54988. - # install mode needs the following variable:
  54989. - notinst_deplibs='$notinst_deplibs'
  54990. -else
  54991. - # When we are sourced in execute mode, \$file and \$echo are already set.
  54992. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  54993. - echo=\"$qecho\"
  54994. - file=\"\$0\"
  54995. - # Make sure echo works.
  54996. - if test \"X\$1\" = X--no-reexec; then
  54997. - # Discard the --no-reexec flag, and continue.
  54998. - shift
  54999. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  55000. - # Yippee, \$echo works!
  55001. - :
  55002. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  55003. + eval arg=\"$export_dynamic_flag_spec\"
  55004. + func_append compile_command " $arg"
  55005. + func_append finalize_command " $arg"
  55006. + fi
  55007. +
  55008. + oldlibs=
  55009. + # calculate the name of the file, without its directory
  55010. + func_basename "$output"
  55011. + outputname="$func_basename_result"
  55012. + libobjs_save="$libobjs"
  55013. +
  55014. + if test -n "$shlibpath_var"; then
  55015. + # get the directories listed in $shlibpath_var
  55016. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  55017. else
  55018. - # Restart under the correct shell, and then maybe \$echo will work.
  55019. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  55020. + shlib_search_path=
  55021. fi
  55022. - fi\
  55023. -"
  55024. - $echo >> $output "\
  55025. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  55026. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  55027. - # Find the directory that this script lives in.
  55028. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  55029. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  55030. + func_dirname "$output" "/" ""
  55031. + output_objdir="$func_dirname_result$objdir"
  55032. + # Create the object directory.
  55033. + func_mkdir_p "$output_objdir"
  55034. - # Follow symbolic links until we get to the real thisdir.
  55035. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  55036. - while test -n \"\$file\"; do
  55037. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  55038. + # Determine the type of output
  55039. + case $output in
  55040. + "")
  55041. + func_fatal_help "you must specify an output file"
  55042. + ;;
  55043. + *.$libext) linkmode=oldlib ;;
  55044. + *.lo | *.$objext) linkmode=obj ;;
  55045. + *.la) linkmode=lib ;;
  55046. + *) linkmode=prog ;; # Anything else should be a program.
  55047. + esac
  55048. +
  55049. + specialdeplibs=
  55050. +
  55051. + libs=
  55052. + # Find all interdependent deplibs by searching for libraries
  55053. + # that are linked more than once (e.g. -la -lb -la)
  55054. + for deplib in $deplibs; do
  55055. + if $opt_duplicate_deps ; then
  55056. + case "$libs " in
  55057. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55058. + esac
  55059. + fi
  55060. + libs="$libs $deplib"
  55061. + done
  55062. +
  55063. + if test "$linkmode" = lib; then
  55064. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  55065. +
  55066. + # Compute libraries that are listed more than once in $predeps
  55067. + # $postdeps and mark them as special (i.e., whose duplicates are
  55068. + # not to be eliminated).
  55069. + pre_post_deps=
  55070. + if $opt_duplicate_compiler_generated_deps; then
  55071. + for pre_post_dep in $predeps $postdeps; do
  55072. + case "$pre_post_deps " in
  55073. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  55074. + esac
  55075. + pre_post_deps="$pre_post_deps $pre_post_dep"
  55076. + done
  55077. + fi
  55078. + pre_post_deps=
  55079. + fi
  55080. +
  55081. + deplibs=
  55082. + newdependency_libs=
  55083. + newlib_search_path=
  55084. + need_relink=no # whether we're linking any uninstalled libtool libraries
  55085. + notinst_deplibs= # not-installed libtool libraries
  55086. + notinst_path= # paths that contain not-installed libtool libraries
  55087. +
  55088. + case $linkmode in
  55089. + lib)
  55090. + passes="conv dlpreopen link"
  55091. + for file in $dlfiles $dlprefiles; do
  55092. + case $file in
  55093. + *.la) ;;
  55094. + *)
  55095. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  55096. + ;;
  55097. + esac
  55098. + done
  55099. + ;;
  55100. + prog)
  55101. + compile_deplibs=
  55102. + finalize_deplibs=
  55103. + alldeplibs=no
  55104. + newdlfiles=
  55105. + newdlprefiles=
  55106. + passes="conv scan dlopen dlpreopen link"
  55107. + ;;
  55108. + *) passes="conv"
  55109. + ;;
  55110. + esac
  55111. +
  55112. + for pass in $passes; do
  55113. + # The preopen pass in lib mode reverses $deplibs; put it back here
  55114. + # so that -L comes before libs that need it for instance...
  55115. + if test "$linkmode,$pass" = "lib,link"; then
  55116. + ## FIXME: Find the place where the list is rebuilt in the wrong
  55117. + ## order, and fix it there properly
  55118. + tmp_deplibs=
  55119. + for deplib in $deplibs; do
  55120. + tmp_deplibs="$deplib $tmp_deplibs"
  55121. + done
  55122. + deplibs="$tmp_deplibs"
  55123. + fi
  55124. +
  55125. + if test "$linkmode,$pass" = "lib,link" ||
  55126. + test "$linkmode,$pass" = "prog,scan"; then
  55127. + libs="$deplibs"
  55128. + deplibs=
  55129. + fi
  55130. + if test "$linkmode" = prog; then
  55131. + case $pass in
  55132. + dlopen) libs="$dlfiles" ;;
  55133. + dlpreopen) libs="$dlprefiles" ;;
  55134. + link)
  55135. + libs="$deplibs %DEPLIBS%"
  55136. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  55137. + ;;
  55138. + esac
  55139. + fi
  55140. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  55141. + # Collect and forward deplibs of preopened libtool libs
  55142. + for lib in $dlprefiles; do
  55143. + # Ignore non-libtool-libs
  55144. + dependency_libs=
  55145. + case $lib in
  55146. + *.la) func_source "$lib" ;;
  55147. + esac
  55148. +
  55149. + # Collect preopened libtool deplibs, except any this library
  55150. + # has declared as weak libs
  55151. + for deplib in $dependency_libs; do
  55152. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  55153. + case " $weak_libs " in
  55154. + *" $deplib_base "*) ;;
  55155. + *) deplibs="$deplibs $deplib" ;;
  55156. + esac
  55157. + done
  55158. + done
  55159. + libs="$dlprefiles"
  55160. + fi
  55161. + if test "$pass" = dlopen; then
  55162. + # Collect dlpreopened libraries
  55163. + save_deplibs="$deplibs"
  55164. + deplibs=
  55165. + fi
  55166. +
  55167. + for deplib in $libs; do
  55168. + lib=
  55169. + found=no
  55170. + case $deplib in
  55171. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  55172. + if test "$linkmode,$pass" = "prog,link"; then
  55173. + compile_deplibs="$deplib $compile_deplibs"
  55174. + finalize_deplibs="$deplib $finalize_deplibs"
  55175. + else
  55176. + compiler_flags="$compiler_flags $deplib"
  55177. + if test "$linkmode" = lib ; then
  55178. + case "$new_inherited_linker_flags " in
  55179. + *" $deplib "*) ;;
  55180. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  55181. + esac
  55182. + fi
  55183. + fi
  55184. + continue
  55185. + ;;
  55186. + -l*)
  55187. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  55188. + func_warning "\`-l' is ignored for archives/objects"
  55189. + continue
  55190. + fi
  55191. + func_stripname '-l' '' "$deplib"
  55192. + name=$func_stripname_result
  55193. + if test "$linkmode" = lib; then
  55194. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  55195. + else
  55196. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  55197. + fi
  55198. + for searchdir in $searchdirs; do
  55199. + for search_ext in .la $std_shrext .so .a; do
  55200. + # Search the libtool library
  55201. + lib="$searchdir/lib${name}${search_ext}"
  55202. + if test -f "$lib"; then
  55203. + if test "$search_ext" = ".la"; then
  55204. + found=yes
  55205. + else
  55206. + found=no
  55207. + fi
  55208. + break 2
  55209. + fi
  55210. + done
  55211. + done
  55212. + if test "$found" != yes; then
  55213. + # deplib doesn't seem to be a libtool library
  55214. + if test "$linkmode,$pass" = "prog,link"; then
  55215. + compile_deplibs="$deplib $compile_deplibs"
  55216. + finalize_deplibs="$deplib $finalize_deplibs"
  55217. + else
  55218. + deplibs="$deplib $deplibs"
  55219. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  55220. + fi
  55221. + continue
  55222. + else # deplib is a libtool library
  55223. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  55224. + # We need to do some special things here, and not later.
  55225. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55226. + case " $predeps $postdeps " in
  55227. + *" $deplib "*)
  55228. + if func_lalib_p "$lib"; then
  55229. + library_names=
  55230. + old_library=
  55231. + func_source "$lib"
  55232. + for l in $old_library $library_names; do
  55233. + ll="$l"
  55234. + done
  55235. + if test "X$ll" = "X$old_library" ; then # only static version available
  55236. + found=no
  55237. + func_dirname "$lib" "" "."
  55238. + ladir="$func_dirname_result"
  55239. + lib=$ladir/$old_library
  55240. + if test "$linkmode,$pass" = "prog,link"; then
  55241. + compile_deplibs="$deplib $compile_deplibs"
  55242. + finalize_deplibs="$deplib $finalize_deplibs"
  55243. + else
  55244. + deplibs="$deplib $deplibs"
  55245. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  55246. + fi
  55247. + continue
  55248. + fi
  55249. + fi
  55250. + ;;
  55251. + *) ;;
  55252. + esac
  55253. + fi
  55254. + fi
  55255. + ;; # -l
  55256. + *.ltframework)
  55257. + if test "$linkmode,$pass" = "prog,link"; then
  55258. + compile_deplibs="$deplib $compile_deplibs"
  55259. + finalize_deplibs="$deplib $finalize_deplibs"
  55260. + else
  55261. + deplibs="$deplib $deplibs"
  55262. + if test "$linkmode" = lib ; then
  55263. + case "$new_inherited_linker_flags " in
  55264. + *" $deplib "*) ;;
  55265. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  55266. + esac
  55267. + fi
  55268. + fi
  55269. + continue
  55270. + ;;
  55271. + -L*)
  55272. + case $linkmode in
  55273. + lib)
  55274. + deplibs="$deplib $deplibs"
  55275. + test "$pass" = conv && continue
  55276. + newdependency_libs="$deplib $newdependency_libs"
  55277. + func_stripname '-L' '' "$deplib"
  55278. + newlib_search_path="$newlib_search_path $func_stripname_result"
  55279. + ;;
  55280. + prog)
  55281. + if test "$pass" = conv; then
  55282. + deplibs="$deplib $deplibs"
  55283. + continue
  55284. + fi
  55285. + if test "$pass" = scan; then
  55286. + deplibs="$deplib $deplibs"
  55287. + else
  55288. + compile_deplibs="$deplib $compile_deplibs"
  55289. + finalize_deplibs="$deplib $finalize_deplibs"
  55290. + fi
  55291. + func_stripname '-L' '' "$deplib"
  55292. + newlib_search_path="$newlib_search_path $func_stripname_result"
  55293. + ;;
  55294. + *)
  55295. + func_warning "\`-L' is ignored for archives/objects"
  55296. + ;;
  55297. + esac # linkmode
  55298. + continue
  55299. + ;; # -L
  55300. + -R*)
  55301. + if test "$pass" = link; then
  55302. + func_stripname '-R' '' "$deplib"
  55303. + dir=$func_stripname_result
  55304. + # Make sure the xrpath contains only unique directories.
  55305. + case "$xrpath " in
  55306. + *" $dir "*) ;;
  55307. + *) xrpath="$xrpath $dir" ;;
  55308. + esac
  55309. + fi
  55310. + deplibs="$deplib $deplibs"
  55311. + continue
  55312. + ;;
  55313. + *.la) lib="$deplib" ;;
  55314. + *.$libext)
  55315. + if test "$pass" = conv; then
  55316. + deplibs="$deplib $deplibs"
  55317. + continue
  55318. + fi
  55319. + case $linkmode in
  55320. + lib)
  55321. + # Linking convenience modules into shared libraries is allowed,
  55322. + # but linking other static libraries is non-portable.
  55323. + case " $dlpreconveniencelibs " in
  55324. + *" $deplib "*) ;;
  55325. + *)
  55326. + valid_a_lib=no
  55327. + case $deplibs_check_method in
  55328. + match_pattern*)
  55329. + set dummy $deplibs_check_method; shift
  55330. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  55331. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  55332. + | $EGREP "$match_pattern_regex" > /dev/null; then
  55333. + valid_a_lib=yes
  55334. + fi
  55335. + ;;
  55336. + pass_all)
  55337. + valid_a_lib=yes
  55338. + ;;
  55339. + esac
  55340. + if test "$valid_a_lib" != yes; then
  55341. + $ECHO
  55342. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  55343. + $ECHO "*** I have the capability to make that library automatically link in when"
  55344. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55345. + $ECHO "*** shared version of the library, which you do not appear to have"
  55346. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  55347. + $ECHO "*** that it is just a static archive that I should not use here."
  55348. + else
  55349. + $ECHO
  55350. + $ECHO "*** Warning: Linking the shared library $output against the"
  55351. + $ECHO "*** static library $deplib is not portable!"
  55352. + deplibs="$deplib $deplibs"
  55353. + fi
  55354. + ;;
  55355. + esac
  55356. + continue
  55357. + ;;
  55358. + prog)
  55359. + if test "$pass" != link; then
  55360. + deplibs="$deplib $deplibs"
  55361. + else
  55362. + compile_deplibs="$deplib $compile_deplibs"
  55363. + finalize_deplibs="$deplib $finalize_deplibs"
  55364. + fi
  55365. + continue
  55366. + ;;
  55367. + esac # linkmode
  55368. + ;; # *.$libext
  55369. + *.lo | *.$objext)
  55370. + if test "$pass" = conv; then
  55371. + deplibs="$deplib $deplibs"
  55372. + elif test "$linkmode" = prog; then
  55373. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  55374. + # If there is no dlopen support or we're linking statically,
  55375. + # we need to preload.
  55376. + newdlprefiles="$newdlprefiles $deplib"
  55377. + compile_deplibs="$deplib $compile_deplibs"
  55378. + finalize_deplibs="$deplib $finalize_deplibs"
  55379. + else
  55380. + newdlfiles="$newdlfiles $deplib"
  55381. + fi
  55382. + fi
  55383. + continue
  55384. + ;;
  55385. + %DEPLIBS%)
  55386. + alldeplibs=yes
  55387. + continue
  55388. + ;;
  55389. + esac # case $deplib
  55390. +
  55391. + if test "$found" = yes || test -f "$lib"; then :
  55392. + else
  55393. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  55394. + fi
  55395. +
  55396. + # Check to see that this really is a libtool archive.
  55397. + func_lalib_unsafe_p "$lib" \
  55398. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  55399. +
  55400. + func_dirname "$lib" "" "."
  55401. + ladir="$func_dirname_result"
  55402. +
  55403. + dlname=
  55404. + dlopen=
  55405. + dlpreopen=
  55406. + libdir=
  55407. + library_names=
  55408. + old_library=
  55409. + inherited_linker_flags=
  55410. + # If the library was installed with an old release of libtool,
  55411. + # it will not redefine variables installed, or shouldnotlink
  55412. + installed=yes
  55413. + shouldnotlink=no
  55414. + avoidtemprpath=
  55415. +
  55416. +
  55417. + # Read the .la file
  55418. + func_source "$lib"
  55419. +
  55420. + # Convert "-framework foo" to "foo.ltframework"
  55421. + if test -n "$inherited_linker_flags"; then
  55422. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  55423. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  55424. + case " $new_inherited_linker_flags " in
  55425. + *" $tmp_inherited_linker_flag "*) ;;
  55426. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  55427. + esac
  55428. + done
  55429. + fi
  55430. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55431. + if test "$linkmode,$pass" = "lib,link" ||
  55432. + test "$linkmode,$pass" = "prog,scan" ||
  55433. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  55434. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  55435. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  55436. + fi
  55437. +
  55438. + if test "$pass" = conv; then
  55439. + # Only check for convenience libraries
  55440. + deplibs="$lib $deplibs"
  55441. + if test -z "$libdir"; then
  55442. + if test -z "$old_library"; then
  55443. + func_fatal_error "cannot find name of link library for \`$lib'"
  55444. + fi
  55445. + # It is a libtool convenience library, so add in its objects.
  55446. + convenience="$convenience $ladir/$objdir/$old_library"
  55447. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  55448. + tmp_libs=
  55449. + for deplib in $dependency_libs; do
  55450. + deplibs="$deplib $deplibs"
  55451. + if $opt_duplicate_deps ; then
  55452. + case "$tmp_libs " in
  55453. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55454. + esac
  55455. + fi
  55456. + tmp_libs="$tmp_libs $deplib"
  55457. + done
  55458. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  55459. + func_fatal_error "\`$lib' is not a convenience library"
  55460. + fi
  55461. + continue
  55462. + fi # $pass = conv
  55463. +
  55464. +
  55465. + # Get the name of the library we link against.
  55466. + linklib=
  55467. + for l in $old_library $library_names; do
  55468. + linklib="$l"
  55469. + done
  55470. + if test -z "$linklib"; then
  55471. + func_fatal_error "cannot find name of link library for \`$lib'"
  55472. + fi
  55473. +
  55474. + # This library was specified with -dlopen.
  55475. + if test "$pass" = dlopen; then
  55476. + if test -z "$libdir"; then
  55477. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  55478. + fi
  55479. + if test -z "$dlname" ||
  55480. + test "$dlopen_support" != yes ||
  55481. + test "$build_libtool_libs" = no; then
  55482. + # If there is no dlname, no dlopen support or we're linking
  55483. + # statically, we need to preload. We also need to preload any
  55484. + # dependent libraries so libltdl's deplib preloader doesn't
  55485. + # bomb out in the load deplibs phase.
  55486. + dlprefiles="$dlprefiles $lib $dependency_libs"
  55487. + else
  55488. + newdlfiles="$newdlfiles $lib"
  55489. + fi
  55490. + continue
  55491. + fi # $pass = dlopen
  55492. +
  55493. + # We need an absolute path.
  55494. + case $ladir in
  55495. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  55496. + *)
  55497. + abs_ladir=`cd "$ladir" && pwd`
  55498. + if test -z "$abs_ladir"; then
  55499. + func_warning "cannot determine absolute directory name of \`$ladir'"
  55500. + func_warning "passing it literally to the linker, although it might fail"
  55501. + abs_ladir="$ladir"
  55502. + fi
  55503. + ;;
  55504. + esac
  55505. + func_basename "$lib"
  55506. + laname="$func_basename_result"
  55507. +
  55508. + # Find the relevant object directory and library name.
  55509. + if test "X$installed" = Xyes; then
  55510. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  55511. + func_warning "library \`$lib' was moved."
  55512. + dir="$ladir"
  55513. + absdir="$abs_ladir"
  55514. + libdir="$abs_ladir"
  55515. + else
  55516. + dir="$libdir"
  55517. + absdir="$libdir"
  55518. + fi
  55519. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  55520. + else
  55521. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  55522. + dir="$ladir"
  55523. + absdir="$abs_ladir"
  55524. + # Remove this search path later
  55525. + notinst_path="$notinst_path $abs_ladir"
  55526. + else
  55527. + dir="$ladir/$objdir"
  55528. + absdir="$abs_ladir/$objdir"
  55529. + # Remove this search path later
  55530. + notinst_path="$notinst_path $abs_ladir"
  55531. + fi
  55532. + fi # $installed = yes
  55533. + func_stripname 'lib' '.la' "$laname"
  55534. + name=$func_stripname_result
  55535. +
  55536. + # This library was specified with -dlpreopen.
  55537. + if test "$pass" = dlpreopen; then
  55538. + if test -z "$libdir" && test "$linkmode" = prog; then
  55539. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  55540. + fi
  55541. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  55542. + # are required to link).
  55543. + if test -n "$old_library"; then
  55544. + newdlprefiles="$newdlprefiles $dir/$old_library"
  55545. + # Keep a list of preopened convenience libraries to check
  55546. + # that they are being used correctly in the link pass.
  55547. + test -z "$libdir" && \
  55548. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  55549. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  55550. + elif test -n "$dlname"; then
  55551. + newdlprefiles="$newdlprefiles $dir/$dlname"
  55552. + else
  55553. + newdlprefiles="$newdlprefiles $dir/$linklib"
  55554. + fi
  55555. + fi # $pass = dlpreopen
  55556. +
  55557. + if test -z "$libdir"; then
  55558. + # Link the convenience library
  55559. + if test "$linkmode" = lib; then
  55560. + deplibs="$dir/$old_library $deplibs"
  55561. + elif test "$linkmode,$pass" = "prog,link"; then
  55562. + compile_deplibs="$dir/$old_library $compile_deplibs"
  55563. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  55564. + else
  55565. + deplibs="$lib $deplibs" # used for prog,scan pass
  55566. + fi
  55567. + continue
  55568. + fi
  55569. +
  55570. +
  55571. + if test "$linkmode" = prog && test "$pass" != link; then
  55572. + newlib_search_path="$newlib_search_path $ladir"
  55573. + deplibs="$lib $deplibs"
  55574. +
  55575. + linkalldeplibs=no
  55576. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  55577. + test "$build_libtool_libs" = no; then
  55578. + linkalldeplibs=yes
  55579. + fi
  55580. +
  55581. + tmp_libs=
  55582. + for deplib in $dependency_libs; do
  55583. + case $deplib in
  55584. + -L*) func_stripname '-L' '' "$deplib"
  55585. + newlib_search_path="$newlib_search_path $func_stripname_result"
  55586. + ;;
  55587. + esac
  55588. + # Need to link against all dependency_libs?
  55589. + if test "$linkalldeplibs" = yes; then
  55590. + deplibs="$deplib $deplibs"
  55591. + else
  55592. + # Need to hardcode shared library paths
  55593. + # or/and link against static libraries
  55594. + newdependency_libs="$deplib $newdependency_libs"
  55595. + fi
  55596. + if $opt_duplicate_deps ; then
  55597. + case "$tmp_libs " in
  55598. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55599. + esac
  55600. + fi
  55601. + tmp_libs="$tmp_libs $deplib"
  55602. + done # for deplib
  55603. + continue
  55604. + fi # $linkmode = prog...
  55605. +
  55606. + if test "$linkmode,$pass" = "prog,link"; then
  55607. + if test -n "$library_names" &&
  55608. + { { test "$prefer_static_libs" = no ||
  55609. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  55610. + test -z "$old_library"; }; then
  55611. + # We need to hardcode the library path
  55612. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  55613. + # Make sure the rpath contains only unique directories.
  55614. + case "$temp_rpath:" in
  55615. + *"$absdir:"*) ;;
  55616. + *) temp_rpath="$temp_rpath$absdir:" ;;
  55617. + esac
  55618. + fi
  55619. +
  55620. + # Hardcode the library path.
  55621. + # Skip directories that are in the system default run-time
  55622. + # search path.
  55623. + case " $sys_lib_dlsearch_path " in
  55624. + *" $absdir "*) ;;
  55625. + *)
  55626. + case "$compile_rpath " in
  55627. + *" $absdir "*) ;;
  55628. + *) compile_rpath="$compile_rpath $absdir"
  55629. + esac
  55630. + ;;
  55631. + esac
  55632. + case " $sys_lib_dlsearch_path " in
  55633. + *" $libdir "*) ;;
  55634. + *)
  55635. + case "$finalize_rpath " in
  55636. + *" $libdir "*) ;;
  55637. + *) finalize_rpath="$finalize_rpath $libdir"
  55638. + esac
  55639. + ;;
  55640. + esac
  55641. + fi # $linkmode,$pass = prog,link...
  55642. +
  55643. + if test "$alldeplibs" = yes &&
  55644. + { test "$deplibs_check_method" = pass_all ||
  55645. + { test "$build_libtool_libs" = yes &&
  55646. + test -n "$library_names"; }; }; then
  55647. + # We only need to search for static libraries
  55648. + continue
  55649. + fi
  55650. + fi
  55651. +
  55652. + link_static=no # Whether the deplib will be linked statically
  55653. + use_static_libs=$prefer_static_libs
  55654. + if test "$use_static_libs" = built && test "$installed" = yes; then
  55655. + use_static_libs=no
  55656. + fi
  55657. + if test -n "$library_names" &&
  55658. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  55659. + case $host in
  55660. + *cygwin* | *mingw* | *cegcc*)
  55661. + # No point in relinking DLLs because paths are not encoded
  55662. + notinst_deplibs="$notinst_deplibs $lib"
  55663. + need_relink=no
  55664. + ;;
  55665. + *)
  55666. + if test "$installed" = no; then
  55667. + notinst_deplibs="$notinst_deplibs $lib"
  55668. + need_relink=yes
  55669. + fi
  55670. + ;;
  55671. + esac
  55672. + # This is a shared library
  55673. +
  55674. + # Warn about portability, can't link against -module's on some
  55675. + # systems (darwin). Don't bleat about dlopened modules though!
  55676. + dlopenmodule=""
  55677. + for dlpremoduletest in $dlprefiles; do
  55678. + if test "X$dlpremoduletest" = "X$lib"; then
  55679. + dlopenmodule="$dlpremoduletest"
  55680. + break
  55681. + fi
  55682. + done
  55683. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  55684. + $ECHO
  55685. + if test "$linkmode" = prog; then
  55686. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  55687. + else
  55688. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  55689. + fi
  55690. + $ECHO "*** $linklib is not portable!"
  55691. + fi
  55692. + if test "$linkmode" = lib &&
  55693. + test "$hardcode_into_libs" = yes; then
  55694. + # Hardcode the library path.
  55695. + # Skip directories that are in the system default run-time
  55696. + # search path.
  55697. + case " $sys_lib_dlsearch_path " in
  55698. + *" $absdir "*) ;;
  55699. + *)
  55700. + case "$compile_rpath " in
  55701. + *" $absdir "*) ;;
  55702. + *) compile_rpath="$compile_rpath $absdir"
  55703. + esac
  55704. + ;;
  55705. + esac
  55706. + case " $sys_lib_dlsearch_path " in
  55707. + *" $libdir "*) ;;
  55708. + *)
  55709. + case "$finalize_rpath " in
  55710. + *" $libdir "*) ;;
  55711. + *) finalize_rpath="$finalize_rpath $libdir"
  55712. + esac
  55713. + ;;
  55714. + esac
  55715. + fi
  55716. +
  55717. + if test -n "$old_archive_from_expsyms_cmds"; then
  55718. + # figure out the soname
  55719. + set dummy $library_names
  55720. + shift
  55721. + realname="$1"
  55722. + shift
  55723. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55724. + # use dlname if we got it. it's perfectly good, no?
  55725. + if test -n "$dlname"; then
  55726. + soname="$dlname"
  55727. + elif test -n "$soname_spec"; then
  55728. + # bleh windows
  55729. + case $host in
  55730. + *cygwin* | mingw* | *cegcc*)
  55731. + func_arith $current - $age
  55732. + major=$func_arith_result
  55733. + versuffix="-$major"
  55734. + ;;
  55735. + esac
  55736. + eval soname=\"$soname_spec\"
  55737. + else
  55738. + soname="$realname"
  55739. + fi
  55740. +
  55741. + # Make a new name for the extract_expsyms_cmds to use
  55742. + soroot="$soname"
  55743. + func_basename "$soroot"
  55744. + soname="$func_basename_result"
  55745. + func_stripname 'lib' '.dll' "$soname"
  55746. + newlib=libimp-$func_stripname_result.a
  55747. +
  55748. + # If the library has no export list, then create one now
  55749. + if test -f "$output_objdir/$soname-def"; then :
  55750. + else
  55751. + func_verbose "extracting exported symbol list from \`$soname'"
  55752. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  55753. + fi
  55754. +
  55755. + # Create $newlib
  55756. + if test -f "$output_objdir/$newlib"; then :; else
  55757. + func_verbose "generating import library for \`$soname'"
  55758. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  55759. + fi
  55760. + # make sure the library variables are pointing to the new library
  55761. + dir=$output_objdir
  55762. + linklib=$newlib
  55763. + fi # test -n "$old_archive_from_expsyms_cmds"
  55764. +
  55765. + if test "$linkmode" = prog || test "$mode" != relink; then
  55766. + add_shlibpath=
  55767. + add_dir=
  55768. + add=
  55769. + lib_linked=yes
  55770. + case $hardcode_action in
  55771. + immediate | unsupported)
  55772. + if test "$hardcode_direct" = no; then
  55773. + add="$dir/$linklib"
  55774. + case $host in
  55775. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  55776. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  55777. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  55778. + *-*-unixware7*) add_dir="-L$dir" ;;
  55779. + *-*-darwin* )
  55780. + # if the lib is a (non-dlopened) module then we can not
  55781. + # link against it, someone is ignoring the earlier warnings
  55782. + if /usr/bin/file -L $add 2> /dev/null |
  55783. + $GREP ": [^:]* bundle" >/dev/null ; then
  55784. + if test "X$dlopenmodule" != "X$lib"; then
  55785. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  55786. + if test -z "$old_library" ; then
  55787. + $ECHO
  55788. + $ECHO "*** And there doesn't seem to be a static archive available"
  55789. + $ECHO "*** The link will probably fail, sorry"
  55790. + else
  55791. + add="$dir/$old_library"
  55792. + fi
  55793. + elif test -n "$old_library"; then
  55794. + add="$dir/$old_library"
  55795. + fi
  55796. + fi
  55797. + esac
  55798. + elif test "$hardcode_minus_L" = no; then
  55799. + case $host in
  55800. + *-*-sunos*) add_shlibpath="$dir" ;;
  55801. + esac
  55802. + add_dir="-L$dir"
  55803. + add="-l$name"
  55804. + elif test "$hardcode_shlibpath_var" = no; then
  55805. + add_shlibpath="$dir"
  55806. + add="-l$name"
  55807. + else
  55808. + lib_linked=no
  55809. + fi
  55810. + ;;
  55811. + relink)
  55812. + if test "$hardcode_direct" = yes &&
  55813. + test "$hardcode_direct_absolute" = no; then
  55814. + add="$dir/$linklib"
  55815. + elif test "$hardcode_minus_L" = yes; then
  55816. + add_dir="-L$dir"
  55817. + # Try looking first in the location we're being installed to.
  55818. + if test -n "$inst_prefix_dir"; then
  55819. + case $libdir in
  55820. + [\\/]*)
  55821. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  55822. + ;;
  55823. + esac
  55824. + fi
  55825. + add="-l$name"
  55826. + elif test "$hardcode_shlibpath_var" = yes; then
  55827. + add_shlibpath="$dir"
  55828. + add="-l$name"
  55829. + else
  55830. + lib_linked=no
  55831. + fi
  55832. + ;;
  55833. + *) lib_linked=no ;;
  55834. + esac
  55835. +
  55836. + if test "$lib_linked" != yes; then
  55837. + func_fatal_configuration "unsupported hardcode properties"
  55838. + fi
  55839. +
  55840. + if test -n "$add_shlibpath"; then
  55841. + case :$compile_shlibpath: in
  55842. + *":$add_shlibpath:"*) ;;
  55843. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  55844. + esac
  55845. + fi
  55846. + if test "$linkmode" = prog; then
  55847. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  55848. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  55849. + else
  55850. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  55851. + test -n "$add" && deplibs="$add $deplibs"
  55852. + if test "$hardcode_direct" != yes &&
  55853. + test "$hardcode_minus_L" != yes &&
  55854. + test "$hardcode_shlibpath_var" = yes; then
  55855. + case :$finalize_shlibpath: in
  55856. + *":$libdir:"*) ;;
  55857. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  55858. + esac
  55859. + fi
  55860. + fi
  55861. + fi
  55862. +
  55863. + if test "$linkmode" = prog || test "$mode" = relink; then
  55864. + add_shlibpath=
  55865. + add_dir=
  55866. + add=
  55867. + # Finalize command for both is simple: just hardcode it.
  55868. + if test "$hardcode_direct" = yes &&
  55869. + test "$hardcode_direct_absolute" = no; then
  55870. + add="$libdir/$linklib"
  55871. + elif test "$hardcode_minus_L" = yes; then
  55872. + add_dir="-L$libdir"
  55873. + add="-l$name"
  55874. + elif test "$hardcode_shlibpath_var" = yes; then
  55875. + case :$finalize_shlibpath: in
  55876. + *":$libdir:"*) ;;
  55877. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  55878. + esac
  55879. + add="-l$name"
  55880. + elif test "$hardcode_automatic" = yes; then
  55881. + if test -n "$inst_prefix_dir" &&
  55882. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  55883. + add="$inst_prefix_dir$libdir/$linklib"
  55884. + else
  55885. + add="$libdir/$linklib"
  55886. + fi
  55887. + else
  55888. + # We cannot seem to hardcode it, guess we'll fake it.
  55889. + add_dir="-L$libdir"
  55890. + # Try looking first in the location we're being installed to.
  55891. + if test -n "$inst_prefix_dir"; then
  55892. + case $libdir in
  55893. + [\\/]*)
  55894. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  55895. + ;;
  55896. + esac
  55897. + fi
  55898. + add="-l$name"
  55899. + fi
  55900. +
  55901. + if test "$linkmode" = prog; then
  55902. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  55903. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  55904. + else
  55905. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  55906. + test -n "$add" && deplibs="$add $deplibs"
  55907. + fi
  55908. + fi
  55909. + elif test "$linkmode" = prog; then
  55910. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  55911. + # is not unsupported. This is valid on all known static and
  55912. + # shared platforms.
  55913. + if test "$hardcode_direct" != unsupported; then
  55914. + test -n "$old_library" && linklib="$old_library"
  55915. + compile_deplibs="$dir/$linklib $compile_deplibs"
  55916. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  55917. + else
  55918. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  55919. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  55920. + fi
  55921. + elif test "$build_libtool_libs" = yes; then
  55922. + # Not a shared library
  55923. + if test "$deplibs_check_method" != pass_all; then
  55924. + # We're trying link a shared library against a static one
  55925. + # but the system doesn't support it.
  55926. +
  55927. + # Just print a warning and add the library to dependency_libs so
  55928. + # that the program can be linked against the static library.
  55929. + $ECHO
  55930. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  55931. + $ECHO "*** I have the capability to make that library automatically link in when"
  55932. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55933. + $ECHO "*** shared version of the library, which you do not appear to have."
  55934. + if test "$module" = yes; then
  55935. + $ECHO "*** But as you try to build a module library, libtool will still create "
  55936. + $ECHO "*** a static module, that should work as long as the dlopening application"
  55937. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  55938. + if test -z "$global_symbol_pipe"; then
  55939. + $ECHO
  55940. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  55941. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  55942. + $ECHO "*** not find such a program. So, this module is probably useless."
  55943. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  55944. + fi
  55945. + if test "$build_old_libs" = no; then
  55946. + build_libtool_libs=module
  55947. + build_old_libs=yes
  55948. + else
  55949. + build_libtool_libs=no
  55950. + fi
  55951. + fi
  55952. + else
  55953. + deplibs="$dir/$old_library $deplibs"
  55954. + link_static=yes
  55955. + fi
  55956. + fi # link shared/static library?
  55957. +
  55958. + if test "$linkmode" = lib; then
  55959. + if test -n "$dependency_libs" &&
  55960. + { test "$hardcode_into_libs" != yes ||
  55961. + test "$build_old_libs" = yes ||
  55962. + test "$link_static" = yes; }; then
  55963. + # Extract -R from dependency_libs
  55964. + temp_deplibs=
  55965. + for libdir in $dependency_libs; do
  55966. + case $libdir in
  55967. + -R*) func_stripname '-R' '' "$libdir"
  55968. + temp_xrpath=$func_stripname_result
  55969. + case " $xrpath " in
  55970. + *" $temp_xrpath "*) ;;
  55971. + *) xrpath="$xrpath $temp_xrpath";;
  55972. + esac;;
  55973. + *) temp_deplibs="$temp_deplibs $libdir";;
  55974. + esac
  55975. + done
  55976. + dependency_libs="$temp_deplibs"
  55977. + fi
  55978. +
  55979. + newlib_search_path="$newlib_search_path $absdir"
  55980. + # Link against this library
  55981. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  55982. + # ... and its dependency_libs
  55983. + tmp_libs=
  55984. + for deplib in $dependency_libs; do
  55985. + newdependency_libs="$deplib $newdependency_libs"
  55986. + if $opt_duplicate_deps ; then
  55987. + case "$tmp_libs " in
  55988. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55989. + esac
  55990. + fi
  55991. + tmp_libs="$tmp_libs $deplib"
  55992. + done
  55993. +
  55994. + if test "$link_all_deplibs" != no; then
  55995. + # Add the search paths of all dependency libraries
  55996. + for deplib in $dependency_libs; do
  55997. + path=
  55998. + case $deplib in
  55999. + -L*) path="$deplib" ;;
  56000. + *.la)
  56001. + func_dirname "$deplib" "" "."
  56002. + dir="$func_dirname_result"
  56003. + # We need an absolute path.
  56004. + case $dir in
  56005. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  56006. + *)
  56007. + absdir=`cd "$dir" && pwd`
  56008. + if test -z "$absdir"; then
  56009. + func_warning "cannot determine absolute directory name of \`$dir'"
  56010. + absdir="$dir"
  56011. + fi
  56012. + ;;
  56013. + esac
  56014. + if $GREP "^installed=no" $deplib > /dev/null; then
  56015. + case $host in
  56016. + *-*-darwin*)
  56017. + depdepl=
  56018. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  56019. + if test -n "$deplibrary_names" ; then
  56020. + for tmp in $deplibrary_names ; do
  56021. + depdepl=$tmp
  56022. + done
  56023. + if test -f "$absdir/$objdir/$depdepl" ; then
  56024. + depdepl="$absdir/$objdir/$depdepl"
  56025. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  56026. + if test -z "$darwin_install_name"; then
  56027. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  56028. + fi
  56029. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  56030. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  56031. + path=
  56032. + fi
  56033. + fi
  56034. + ;;
  56035. + *)
  56036. + path="-L$absdir/$objdir"
  56037. + ;;
  56038. + esac
  56039. + else
  56040. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  56041. + test -z "$libdir" && \
  56042. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  56043. + test "$absdir" != "$libdir" && \
  56044. + func_warning "\`$deplib' seems to be moved"
  56045. +
  56046. + path="-L$absdir"
  56047. + fi
  56048. + ;;
  56049. + esac
  56050. + case " $deplibs " in
  56051. + *" $path "*) ;;
  56052. + *) deplibs="$path $deplibs" ;;
  56053. + esac
  56054. + done
  56055. + fi # link_all_deplibs != no
  56056. + fi # linkmode = lib
  56057. + done # for deplib in $libs
  56058. + if test "$pass" = link; then
  56059. + if test "$linkmode" = "prog"; then
  56060. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  56061. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  56062. + else
  56063. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56064. + fi
  56065. + fi
  56066. + dependency_libs="$newdependency_libs"
  56067. + if test "$pass" = dlpreopen; then
  56068. + # Link the dlpreopened libraries before other libraries
  56069. + for deplib in $save_deplibs; do
  56070. + deplibs="$deplib $deplibs"
  56071. + done
  56072. + fi
  56073. + if test "$pass" != dlopen; then
  56074. + if test "$pass" != conv; then
  56075. + # Make sure lib_search_path contains only unique directories.
  56076. + lib_search_path=
  56077. + for dir in $newlib_search_path; do
  56078. + case "$lib_search_path " in
  56079. + *" $dir "*) ;;
  56080. + *) lib_search_path="$lib_search_path $dir" ;;
  56081. + esac
  56082. + done
  56083. + newlib_search_path=
  56084. + fi
  56085. +
  56086. + if test "$linkmode,$pass" != "prog,link"; then
  56087. + vars="deplibs"
  56088. + else
  56089. + vars="compile_deplibs finalize_deplibs"
  56090. + fi
  56091. + for var in $vars dependency_libs; do
  56092. + # Add libraries to $var in reverse order
  56093. + eval tmp_libs=\"\$$var\"
  56094. + new_libs=
  56095. + for deplib in $tmp_libs; do
  56096. + # FIXME: Pedantically, this is the right thing to do, so
  56097. + # that some nasty dependency loop isn't accidentally
  56098. + # broken:
  56099. + #new_libs="$deplib $new_libs"
  56100. + # Pragmatically, this seems to cause very few problems in
  56101. + # practice:
  56102. + case $deplib in
  56103. + -L*) new_libs="$deplib $new_libs" ;;
  56104. + -R*) ;;
  56105. + *)
  56106. + # And here is the reason: when a library appears more
  56107. + # than once as an explicit dependence of a library, or
  56108. + # is implicitly linked in more than once by the
  56109. + # compiler, it is considered special, and multiple
  56110. + # occurrences thereof are not removed. Compare this
  56111. + # with having the same library being listed as a
  56112. + # dependency of multiple other libraries: in this case,
  56113. + # we know (pedantically, we assume) the library does not
  56114. + # need to be listed more than once, so we keep only the
  56115. + # last copy. This is not always right, but it is rare
  56116. + # enough that we require users that really mean to play
  56117. + # such unportable linking tricks to link the library
  56118. + # using -Wl,-lname, so that libtool does not consider it
  56119. + # for duplicate removal.
  56120. + case " $specialdeplibs " in
  56121. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  56122. + *)
  56123. + case " $new_libs " in
  56124. + *" $deplib "*) ;;
  56125. + *) new_libs="$deplib $new_libs" ;;
  56126. + esac
  56127. + ;;
  56128. + esac
  56129. + ;;
  56130. + esac
  56131. + done
  56132. + tmp_libs=
  56133. + for deplib in $new_libs; do
  56134. + case $deplib in
  56135. + -L*)
  56136. + case " $tmp_libs " in
  56137. + *" $deplib "*) ;;
  56138. + *) tmp_libs="$tmp_libs $deplib" ;;
  56139. + esac
  56140. + ;;
  56141. + *) tmp_libs="$tmp_libs $deplib" ;;
  56142. + esac
  56143. + done
  56144. + eval $var=\"$tmp_libs\"
  56145. + done # for var
  56146. + fi
  56147. + # Last step: remove runtime libs from dependency_libs
  56148. + # (they stay in deplibs)
  56149. + tmp_libs=
  56150. + for i in $dependency_libs ; do
  56151. + case " $predeps $postdeps $compiler_lib_search_path " in
  56152. + *" $i "*)
  56153. + i=""
  56154. + ;;
  56155. + esac
  56156. + if test -n "$i" ; then
  56157. + tmp_libs="$tmp_libs $i"
  56158. + fi
  56159. + done
  56160. + dependency_libs=$tmp_libs
  56161. + done # for pass
  56162. + if test "$linkmode" = prog; then
  56163. + dlfiles="$newdlfiles"
  56164. + fi
  56165. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  56166. + dlprefiles="$newdlprefiles"
  56167. + fi
  56168. +
  56169. + case $linkmode in
  56170. + oldlib)
  56171. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  56172. + func_warning "\`-dlopen' is ignored for archives"
  56173. + fi
  56174. +
  56175. + case " $deplibs" in
  56176. + *\ -l* | *\ -L*)
  56177. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  56178. + esac
  56179. +
  56180. + test -n "$rpath" && \
  56181. + func_warning "\`-rpath' is ignored for archives"
  56182. +
  56183. + test -n "$xrpath" && \
  56184. + func_warning "\`-R' is ignored for archives"
  56185. +
  56186. + test -n "$vinfo" && \
  56187. + func_warning "\`-version-info/-version-number' is ignored for archives"
  56188. +
  56189. + test -n "$release" && \
  56190. + func_warning "\`-release' is ignored for archives"
  56191. +
  56192. + test -n "$export_symbols$export_symbols_regex" && \
  56193. + func_warning "\`-export-symbols' is ignored for archives"
  56194. +
  56195. + # Now set the variables for building old libraries.
  56196. + build_libtool_libs=no
  56197. + oldlibs="$output"
  56198. + objs="$objs$old_deplibs"
  56199. + ;;
  56200. +
  56201. + lib)
  56202. + # Make sure we only generate libraries of the form `libNAME.la'.
  56203. + case $outputname in
  56204. + lib*)
  56205. + func_stripname 'lib' '.la' "$outputname"
  56206. + name=$func_stripname_result
  56207. + eval shared_ext=\"$shrext_cmds\"
  56208. + eval libname=\"$libname_spec\"
  56209. + ;;
  56210. + *)
  56211. + test "$module" = no && \
  56212. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  56213. +
  56214. + if test "$need_lib_prefix" != no; then
  56215. + # Add the "lib" prefix for modules if required
  56216. + func_stripname '' '.la' "$outputname"
  56217. + name=$func_stripname_result
  56218. + eval shared_ext=\"$shrext_cmds\"
  56219. + eval libname=\"$libname_spec\"
  56220. + else
  56221. + func_stripname '' '.la' "$outputname"
  56222. + libname=$func_stripname_result
  56223. + fi
  56224. + ;;
  56225. + esac
  56226. +
  56227. + if test -n "$objs"; then
  56228. + if test "$deplibs_check_method" != pass_all; then
  56229. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  56230. + else
  56231. + $ECHO
  56232. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  56233. + $ECHO "*** objects $objs is not portable!"
  56234. + libobjs="$libobjs $objs"
  56235. + fi
  56236. + fi
  56237. +
  56238. + test "$dlself" != no && \
  56239. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  56240. +
  56241. + set dummy $rpath
  56242. + shift
  56243. + test "$#" -gt 1 && \
  56244. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  56245. +
  56246. + install_libdir="$1"
  56247. +
  56248. + oldlibs=
  56249. + if test -z "$rpath"; then
  56250. + if test "$build_libtool_libs" = yes; then
  56251. + # Building a libtool convenience library.
  56252. + # Some compilers have problems with a `.al' extension so
  56253. + # convenience libraries should have the same extension an
  56254. + # archive normally would.
  56255. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  56256. + build_libtool_libs=convenience
  56257. + build_old_libs=yes
  56258. + fi
  56259. +
  56260. + test -n "$vinfo" && \
  56261. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  56262. +
  56263. + test -n "$release" && \
  56264. + func_warning "\`-release' is ignored for convenience libraries"
  56265. + else
  56266. +
  56267. + # Parse the version information argument.
  56268. + save_ifs="$IFS"; IFS=':'
  56269. + set dummy $vinfo 0 0 0
  56270. + shift
  56271. + IFS="$save_ifs"
  56272. +
  56273. + test -n "$7" && \
  56274. + func_fatal_help "too many parameters to \`-version-info'"
  56275. +
  56276. + # convert absolute version numbers to libtool ages
  56277. + # this retains compatibility with .la files and attempts
  56278. + # to make the code below a bit more comprehensible
  56279. +
  56280. + case $vinfo_number in
  56281. + yes)
  56282. + number_major="$1"
  56283. + number_minor="$2"
  56284. + number_revision="$3"
  56285. + #
  56286. + # There are really only two kinds -- those that
  56287. + # use the current revision as the major version
  56288. + # and those that subtract age and use age as
  56289. + # a minor version. But, then there is irix
  56290. + # which has an extra 1 added just for fun
  56291. + #
  56292. + case $version_type in
  56293. + darwin|linux|osf|windows|none)
  56294. + func_arith $number_major + $number_minor
  56295. + current=$func_arith_result
  56296. + age="$number_minor"
  56297. + revision="$number_revision"
  56298. + ;;
  56299. + freebsd-aout|freebsd-elf|sunos)
  56300. + current="$number_major"
  56301. + revision="$number_minor"
  56302. + age="0"
  56303. + ;;
  56304. + irix|nonstopux)
  56305. + func_arith $number_major + $number_minor
  56306. + current=$func_arith_result
  56307. + age="$number_minor"
  56308. + revision="$number_minor"
  56309. + lt_irix_increment=no
  56310. + ;;
  56311. + *)
  56312. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  56313. + ;;
  56314. + esac
  56315. + ;;
  56316. + no)
  56317. + current="$1"
  56318. + revision="$2"
  56319. + age="$3"
  56320. + ;;
  56321. + esac
  56322. +
  56323. + # Check that each of the things are valid numbers.
  56324. + case $current in
  56325. + 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]) ;;
  56326. + *)
  56327. + func_error "CURRENT \`$current' must be a nonnegative integer"
  56328. + func_fatal_error "\`$vinfo' is not valid version information"
  56329. + ;;
  56330. + esac
  56331. +
  56332. + case $revision in
  56333. + 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]) ;;
  56334. + *)
  56335. + func_error "REVISION \`$revision' must be a nonnegative integer"
  56336. + func_fatal_error "\`$vinfo' is not valid version information"
  56337. + ;;
  56338. + esac
  56339. +
  56340. + case $age in
  56341. + 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]) ;;
  56342. + *)
  56343. + func_error "AGE \`$age' must be a nonnegative integer"
  56344. + func_fatal_error "\`$vinfo' is not valid version information"
  56345. + ;;
  56346. + esac
  56347. +
  56348. + if test "$age" -gt "$current"; then
  56349. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  56350. + func_fatal_error "\`$vinfo' is not valid version information"
  56351. + fi
  56352. +
  56353. + # Calculate the version variables.
  56354. + major=
  56355. + versuffix=
  56356. + verstring=
  56357. + case $version_type in
  56358. + none) ;;
  56359. +
  56360. + darwin)
  56361. + # Like Linux, but with the current version available in
  56362. + # verstring for coding it into the library header
  56363. + func_arith $current - $age
  56364. + major=.$func_arith_result
  56365. + versuffix="$major.$age.$revision"
  56366. + # Darwin ld doesn't like 0 for these options...
  56367. + func_arith $current + 1
  56368. + minor_current=$func_arith_result
  56369. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  56370. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  56371. + ;;
  56372. +
  56373. + freebsd-aout)
  56374. + major=".$current"
  56375. + versuffix=".$current.$revision";
  56376. + ;;
  56377. +
  56378. + freebsd-elf)
  56379. + major=".$current"
  56380. + versuffix=".$current"
  56381. + ;;
  56382. +
  56383. + irix | nonstopux)
  56384. + if test "X$lt_irix_increment" = "Xno"; then
  56385. + func_arith $current - $age
  56386. + else
  56387. + func_arith $current - $age + 1
  56388. + fi
  56389. + major=$func_arith_result
  56390. +
  56391. + case $version_type in
  56392. + nonstopux) verstring_prefix=nonstopux ;;
  56393. + *) verstring_prefix=sgi ;;
  56394. + esac
  56395. + verstring="$verstring_prefix$major.$revision"
  56396. +
  56397. + # Add in all the interfaces that we are compatible with.
  56398. + loop=$revision
  56399. + while test "$loop" -ne 0; do
  56400. + func_arith $revision - $loop
  56401. + iface=$func_arith_result
  56402. + func_arith $loop - 1
  56403. + loop=$func_arith_result
  56404. + verstring="$verstring_prefix$major.$iface:$verstring"
  56405. + done
  56406. +
  56407. + # Before this point, $major must not contain `.'.
  56408. + major=.$major
  56409. + versuffix="$major.$revision"
  56410. + ;;
  56411. +
  56412. + linux)
  56413. + func_arith $current - $age
  56414. + major=.$func_arith_result
  56415. + versuffix="$major.$age.$revision"
  56416. + ;;
  56417. +
  56418. + osf)
  56419. + func_arith $current - $age
  56420. + major=.$func_arith_result
  56421. + versuffix=".$current.$age.$revision"
  56422. + verstring="$current.$age.$revision"
  56423. +
  56424. + # Add in all the interfaces that we are compatible with.
  56425. + loop=$age
  56426. + while test "$loop" -ne 0; do
  56427. + func_arith $current - $loop
  56428. + iface=$func_arith_result
  56429. + func_arith $loop - 1
  56430. + loop=$func_arith_result
  56431. + verstring="$verstring:${iface}.0"
  56432. + done
  56433. +
  56434. + # Make executables depend on our current version.
  56435. + verstring="$verstring:${current}.0"
  56436. + ;;
  56437. +
  56438. + qnx)
  56439. + major=".$current"
  56440. + versuffix=".$current"
  56441. + ;;
  56442. +
  56443. + sunos)
  56444. + major=".$current"
  56445. + versuffix=".$current.$revision"
  56446. + ;;
  56447. +
  56448. + windows)
  56449. + # Use '-' rather than '.', since we only want one
  56450. + # extension on DOS 8.3 filesystems.
  56451. + func_arith $current - $age
  56452. + major=$func_arith_result
  56453. + versuffix="-$major"
  56454. + ;;
  56455. +
  56456. + *)
  56457. + func_fatal_configuration "unknown library version type \`$version_type'"
  56458. + ;;
  56459. + esac
  56460. +
  56461. + # Clear the version info if we defaulted, and they specified a release.
  56462. + if test -z "$vinfo" && test -n "$release"; then
  56463. + major=
  56464. + case $version_type in
  56465. + darwin)
  56466. + # we can't check for "0.0" in archive_cmds due to quoting
  56467. + # problems, so we reset it completely
  56468. + verstring=
  56469. + ;;
  56470. + *)
  56471. + verstring="0.0"
  56472. + ;;
  56473. + esac
  56474. + if test "$need_version" = no; then
  56475. + versuffix=
  56476. + else
  56477. + versuffix=".0.0"
  56478. + fi
  56479. + fi
  56480. +
  56481. + # Remove version info from name if versioning should be avoided
  56482. + if test "$avoid_version" = yes && test "$need_version" = no; then
  56483. + major=
  56484. + versuffix=
  56485. + verstring=""
  56486. + fi
  56487. +
  56488. + # Check to see if the archive will have undefined symbols.
  56489. + if test "$allow_undefined" = yes; then
  56490. + if test "$allow_undefined_flag" = unsupported; then
  56491. + func_warning "undefined symbols not allowed in $host shared libraries"
  56492. + build_libtool_libs=no
  56493. + build_old_libs=yes
  56494. + fi
  56495. + else
  56496. + # Don't allow undefined symbols.
  56497. + allow_undefined_flag="$no_undefined_flag"
  56498. + fi
  56499. +
  56500. + fi
  56501. +
  56502. + func_generate_dlsyms "$libname" "$libname" "yes"
  56503. + libobjs="$libobjs $symfileobj"
  56504. + test "X$libobjs" = "X " && libobjs=
  56505. +
  56506. + if test "$mode" != relink; then
  56507. + # Remove our outputs, but don't remove object files since they
  56508. + # may have been created when compiling PIC objects.
  56509. + removelist=
  56510. + tempremovelist=`$ECHO "$output_objdir/*"`
  56511. + for p in $tempremovelist; do
  56512. + case $p in
  56513. + *.$objext | *.gcno)
  56514. + ;;
  56515. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  56516. + if test "X$precious_files_regex" != "X"; then
  56517. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  56518. + then
  56519. + continue
  56520. + fi
  56521. + fi
  56522. + removelist="$removelist $p"
  56523. + ;;
  56524. + *) ;;
  56525. + esac
  56526. + done
  56527. + test -n "$removelist" && \
  56528. + func_show_eval "${RM}r \$removelist"
  56529. + fi
  56530. +
  56531. + # Now set the variables for building old libraries.
  56532. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  56533. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  56534. +
  56535. + # Transform .lo files to .o files.
  56536. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  56537. + fi
  56538. +
  56539. + # Eliminate all temporary directories.
  56540. + #for path in $notinst_path; do
  56541. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  56542. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  56543. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  56544. + #done
  56545. +
  56546. + if test -n "$xrpath"; then
  56547. + # If the user specified any rpath flags, then add them.
  56548. + temp_xrpath=
  56549. + for libdir in $xrpath; do
  56550. + temp_xrpath="$temp_xrpath -R$libdir"
  56551. + case "$finalize_rpath " in
  56552. + *" $libdir "*) ;;
  56553. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  56554. + esac
  56555. + done
  56556. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  56557. + dependency_libs="$temp_xrpath $dependency_libs"
  56558. + fi
  56559. + fi
  56560. +
  56561. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  56562. + old_dlfiles="$dlfiles"
  56563. + dlfiles=
  56564. + for lib in $old_dlfiles; do
  56565. + case " $dlprefiles $dlfiles " in
  56566. + *" $lib "*) ;;
  56567. + *) dlfiles="$dlfiles $lib" ;;
  56568. + esac
  56569. + done
  56570. +
  56571. + # Make sure dlprefiles contains only unique files
  56572. + old_dlprefiles="$dlprefiles"
  56573. + dlprefiles=
  56574. + for lib in $old_dlprefiles; do
  56575. + case "$dlprefiles " in
  56576. + *" $lib "*) ;;
  56577. + *) dlprefiles="$dlprefiles $lib" ;;
  56578. + esac
  56579. + done
  56580. +
  56581. + if test "$build_libtool_libs" = yes; then
  56582. + if test -n "$rpath"; then
  56583. + case $host in
  56584. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  56585. + # these systems don't actually have a c library (as such)!
  56586. + ;;
  56587. + *-*-rhapsody* | *-*-darwin1.[012])
  56588. + # Rhapsody C library is in the System framework
  56589. + deplibs="$deplibs System.ltframework"
  56590. + ;;
  56591. + *-*-netbsd*)
  56592. + # Don't link with libc until the a.out ld.so is fixed.
  56593. + ;;
  56594. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56595. + # Do not include libc due to us having libc/libc_r.
  56596. + ;;
  56597. + *-*-sco3.2v5* | *-*-sco5v6*)
  56598. + # Causes problems with __ctype
  56599. + ;;
  56600. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  56601. + # Compiler inserts libc in the correct place for threads to work
  56602. + ;;
  56603. + *)
  56604. + # Add libc to deplibs on all other systems if necessary.
  56605. + if test "$build_libtool_need_lc" = "yes"; then
  56606. + deplibs="$deplibs -lc"
  56607. + fi
  56608. + ;;
  56609. + esac
  56610. + fi
  56611. +
  56612. + # Transform deplibs into only deplibs that can be linked in shared.
  56613. + name_save=$name
  56614. + libname_save=$libname
  56615. + release_save=$release
  56616. + versuffix_save=$versuffix
  56617. + major_save=$major
  56618. + # I'm not sure if I'm treating the release correctly. I think
  56619. + # release should show up in the -l (ie -lgmp5) so we don't want to
  56620. + # add it in twice. Is that correct?
  56621. + release=""
  56622. + versuffix=""
  56623. + major=""
  56624. + newdeplibs=
  56625. + droppeddeps=no
  56626. + case $deplibs_check_method in
  56627. + pass_all)
  56628. + # Don't check for shared/static. Everything works.
  56629. + # This might be a little naive. We might want to check
  56630. + # whether the library exists or not. But this is on
  56631. + # osf3 & osf4 and I'm not really sure... Just
  56632. + # implementing what was already the behavior.
  56633. + newdeplibs=$deplibs
  56634. + ;;
  56635. + test_compile)
  56636. + # This code stresses the "libraries are programs" paradigm to its
  56637. + # limits. Maybe even breaks it. We compile a program, linking it
  56638. + # against the deplibs as a proxy for the library. Then we can check
  56639. + # whether they linked in statically or dynamically with ldd.
  56640. + $opt_dry_run || $RM conftest.c
  56641. + cat > conftest.c <<EOF
  56642. + int main() { return 0; }
  56643. +EOF
  56644. + $opt_dry_run || $RM conftest
  56645. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  56646. + ldd_output=`ldd conftest`
  56647. + for i in $deplibs; do
  56648. + case $i in
  56649. + -l*)
  56650. + func_stripname -l '' "$i"
  56651. + name=$func_stripname_result
  56652. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56653. + case " $predeps $postdeps " in
  56654. + *" $i "*)
  56655. + newdeplibs="$newdeplibs $i"
  56656. + i=""
  56657. + ;;
  56658. + esac
  56659. + fi
  56660. + if test -n "$i" ; then
  56661. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56662. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  56663. + set dummy $deplib_matches; shift
  56664. + deplib_match=$1
  56665. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  56666. + newdeplibs="$newdeplibs $i"
  56667. + else
  56668. + droppeddeps=yes
  56669. + $ECHO
  56670. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  56671. + $ECHO "*** I have the capability to make that library automatically link in when"
  56672. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56673. + $ECHO "*** shared version of the library, which I believe you do not have"
  56674. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  56675. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  56676. + fi
  56677. + fi
  56678. + ;;
  56679. + *)
  56680. + newdeplibs="$newdeplibs $i"
  56681. + ;;
  56682. + esac
  56683. + done
  56684. + else
  56685. + # Error occurred in the first compile. Let's try to salvage
  56686. + # the situation: Compile a separate program for each library.
  56687. + for i in $deplibs; do
  56688. + case $i in
  56689. + -l*)
  56690. + func_stripname -l '' "$i"
  56691. + name=$func_stripname_result
  56692. + $opt_dry_run || $RM conftest
  56693. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  56694. + ldd_output=`ldd conftest`
  56695. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56696. + case " $predeps $postdeps " in
  56697. + *" $i "*)
  56698. + newdeplibs="$newdeplibs $i"
  56699. + i=""
  56700. + ;;
  56701. + esac
  56702. + fi
  56703. + if test -n "$i" ; then
  56704. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56705. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  56706. + set dummy $deplib_matches; shift
  56707. + deplib_match=$1
  56708. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  56709. + newdeplibs="$newdeplibs $i"
  56710. + else
  56711. + droppeddeps=yes
  56712. + $ECHO
  56713. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  56714. + $ECHO "*** I have the capability to make that library automatically link in when"
  56715. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56716. + $ECHO "*** shared version of the library, which you do not appear to have"
  56717. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  56718. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  56719. + fi
  56720. + fi
  56721. + else
  56722. + droppeddeps=yes
  56723. + $ECHO
  56724. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  56725. + $ECHO "*** make it link in! You will probably need to install it or some"
  56726. + $ECHO "*** library that it depends on before this library will be fully"
  56727. + $ECHO "*** functional. Installing it before continuing would be even better."
  56728. + fi
  56729. + ;;
  56730. + *)
  56731. + newdeplibs="$newdeplibs $i"
  56732. + ;;
  56733. + esac
  56734. + done
  56735. + fi
  56736. + ;;
  56737. + file_magic*)
  56738. + set dummy $deplibs_check_method; shift
  56739. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56740. + for a_deplib in $deplibs; do
  56741. + case $a_deplib in
  56742. + -l*)
  56743. + func_stripname -l '' "$a_deplib"
  56744. + name=$func_stripname_result
  56745. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56746. + case " $predeps $postdeps " in
  56747. + *" $a_deplib "*)
  56748. + newdeplibs="$newdeplibs $a_deplib"
  56749. + a_deplib=""
  56750. + ;;
  56751. + esac
  56752. + fi
  56753. + if test -n "$a_deplib" ; then
  56754. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56755. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  56756. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  56757. + for potent_lib in $potential_libs; do
  56758. + # Follow soft links.
  56759. + if ls -lLd "$potent_lib" 2>/dev/null |
  56760. + $GREP " -> " >/dev/null; then
  56761. + continue
  56762. + fi
  56763. + # The statement above tries to avoid entering an
  56764. + # endless loop below, in case of cyclic links.
  56765. + # We might still enter an endless loop, since a link
  56766. + # loop can be closed while we follow links,
  56767. + # but so what?
  56768. + potlib="$potent_lib"
  56769. + while test -h "$potlib" 2>/dev/null; do
  56770. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  56771. + case $potliblink in
  56772. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  56773. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  56774. + esac
  56775. + done
  56776. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  56777. + $SED -e 10q |
  56778. + $EGREP "$file_magic_regex" > /dev/null; then
  56779. + newdeplibs="$newdeplibs $a_deplib"
  56780. + a_deplib=""
  56781. + break 2
  56782. + fi
  56783. + done
  56784. + done
  56785. + fi
  56786. + if test -n "$a_deplib" ; then
  56787. + droppeddeps=yes
  56788. + $ECHO
  56789. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  56790. + $ECHO "*** I have the capability to make that library automatically link in when"
  56791. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56792. + $ECHO "*** shared version of the library, which you do not appear to have"
  56793. + $ECHO "*** because I did check the linker path looking for a file starting"
  56794. + if test -z "$potlib" ; then
  56795. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  56796. + else
  56797. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  56798. + $ECHO "*** using a file magic. Last file checked: $potlib"
  56799. + fi
  56800. + fi
  56801. + ;;
  56802. + *)
  56803. + # Add a -L argument.
  56804. + newdeplibs="$newdeplibs $a_deplib"
  56805. + ;;
  56806. + esac
  56807. + done # Gone through all deplibs.
  56808. + ;;
  56809. + match_pattern*)
  56810. + set dummy $deplibs_check_method; shift
  56811. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56812. + for a_deplib in $deplibs; do
  56813. + case $a_deplib in
  56814. + -l*)
  56815. + func_stripname -l '' "$a_deplib"
  56816. + name=$func_stripname_result
  56817. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56818. + case " $predeps $postdeps " in
  56819. + *" $a_deplib "*)
  56820. + newdeplibs="$newdeplibs $a_deplib"
  56821. + a_deplib=""
  56822. + ;;
  56823. + esac
  56824. + fi
  56825. + if test -n "$a_deplib" ; then
  56826. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56827. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  56828. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  56829. + for potent_lib in $potential_libs; do
  56830. + potlib="$potent_lib" # see symlink-check above in file_magic test
  56831. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  56832. + $EGREP "$match_pattern_regex" > /dev/null; then
  56833. + newdeplibs="$newdeplibs $a_deplib"
  56834. + a_deplib=""
  56835. + break 2
  56836. + fi
  56837. + done
  56838. + done
  56839. + fi
  56840. + if test -n "$a_deplib" ; then
  56841. + droppeddeps=yes
  56842. + $ECHO
  56843. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  56844. + $ECHO "*** I have the capability to make that library automatically link in when"
  56845. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56846. + $ECHO "*** shared version of the library, which you do not appear to have"
  56847. + $ECHO "*** because I did check the linker path looking for a file starting"
  56848. + if test -z "$potlib" ; then
  56849. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  56850. + else
  56851. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  56852. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  56853. + fi
  56854. + fi
  56855. + ;;
  56856. + *)
  56857. + # Add a -L argument.
  56858. + newdeplibs="$newdeplibs $a_deplib"
  56859. + ;;
  56860. + esac
  56861. + done # Gone through all deplibs.
  56862. + ;;
  56863. + none | unknown | *)
  56864. + newdeplibs=""
  56865. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  56866. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  56867. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56868. + for i in $predeps $postdeps ; do
  56869. + # can't use Xsed below, because $i might contain '/'
  56870. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  56871. + done
  56872. + fi
  56873. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  56874. + $GREP . >/dev/null; then
  56875. + $ECHO
  56876. + if test "X$deplibs_check_method" = "Xnone"; then
  56877. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  56878. + else
  56879. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  56880. + fi
  56881. + $ECHO "*** All declared inter-library dependencies are being dropped."
  56882. + droppeddeps=yes
  56883. + fi
  56884. + ;;
  56885. + esac
  56886. + versuffix=$versuffix_save
  56887. + major=$major_save
  56888. + release=$release_save
  56889. + libname=$libname_save
  56890. + name=$name_save
  56891. - # If there was a directory component, then change thisdir.
  56892. - if test \"x\$destdir\" != \"x\$file\"; then
  56893. - case \"\$destdir\" in
  56894. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  56895. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  56896. + case $host in
  56897. + *-*-rhapsody* | *-*-darwin1.[012])
  56898. + # On Rhapsody replace the C library with the System framework
  56899. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  56900. + ;;
  56901. + esac
  56902. +
  56903. + if test "$droppeddeps" = yes; then
  56904. + if test "$module" = yes; then
  56905. + $ECHO
  56906. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  56907. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  56908. + $ECHO "*** a static module, that should work as long as the dlopening"
  56909. + $ECHO "*** application is linked with the -dlopen flag."
  56910. + if test -z "$global_symbol_pipe"; then
  56911. + $ECHO
  56912. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  56913. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  56914. + $ECHO "*** not find such a program. So, this module is probably useless."
  56915. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  56916. + fi
  56917. + if test "$build_old_libs" = no; then
  56918. + oldlibs="$output_objdir/$libname.$libext"
  56919. + build_libtool_libs=module
  56920. + build_old_libs=yes
  56921. + else
  56922. + build_libtool_libs=no
  56923. + fi
  56924. + else
  56925. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  56926. + $ECHO "*** automatically added whenever a program is linked with this library"
  56927. + $ECHO "*** or is declared to -dlopen it."
  56928. +
  56929. + if test "$allow_undefined" = no; then
  56930. + $ECHO
  56931. + $ECHO "*** Since this library must not contain undefined symbols,"
  56932. + $ECHO "*** because either the platform does not support them or"
  56933. + $ECHO "*** it was explicitly requested with -no-undefined,"
  56934. + $ECHO "*** libtool will only create a static version of it."
  56935. + if test "$build_old_libs" = no; then
  56936. + oldlibs="$output_objdir/$libname.$libext"
  56937. + build_libtool_libs=module
  56938. + build_old_libs=yes
  56939. + else
  56940. + build_libtool_libs=no
  56941. + fi
  56942. + fi
  56943. + fi
  56944. + fi
  56945. + # Done checking deplibs!
  56946. + deplibs=$newdeplibs
  56947. + fi
  56948. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  56949. + case $host in
  56950. + *-*-darwin*)
  56951. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56952. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56953. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56954. + ;;
  56955. esac
  56956. - fi
  56957. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  56958. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  56959. - done
  56960. + # move library search paths that coincide with paths to not yet
  56961. + # installed libraries to the beginning of the library search list
  56962. + new_libs=
  56963. + for path in $notinst_path; do
  56964. + case " $new_libs " in
  56965. + *" -L$path/$objdir "*) ;;
  56966. + *)
  56967. + case " $deplibs " in
  56968. + *" -L$path/$objdir "*)
  56969. + new_libs="$new_libs -L$path/$objdir" ;;
  56970. + esac
  56971. + ;;
  56972. + esac
  56973. + done
  56974. + for deplib in $deplibs; do
  56975. + case $deplib in
  56976. + -L*)
  56977. + case " $new_libs " in
  56978. + *" $deplib "*) ;;
  56979. + *) new_libs="$new_libs $deplib" ;;
  56980. + esac
  56981. + ;;
  56982. + *) new_libs="$new_libs $deplib" ;;
  56983. + esac
  56984. + done
  56985. + deplibs="$new_libs"
  56986. - # Try to get the absolute directory name.
  56987. - absdir=\`cd \"\$thisdir\" && pwd\`
  56988. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  56989. -"
  56990. + # All the library-specific variables (install_libdir is set above).
  56991. + library_names=
  56992. + old_library=
  56993. + dlname=
  56994. +
  56995. + # Test again, we may have decided not to build it any more
  56996. + if test "$build_libtool_libs" = yes; then
  56997. + if test "$hardcode_into_libs" = yes; then
  56998. + # Hardcode the library paths
  56999. + hardcode_libdirs=
  57000. + dep_rpath=
  57001. + rpath="$finalize_rpath"
  57002. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  57003. + for libdir in $rpath; do
  57004. + if test -n "$hardcode_libdir_flag_spec"; then
  57005. + if test -n "$hardcode_libdir_separator"; then
  57006. + if test -z "$hardcode_libdirs"; then
  57007. + hardcode_libdirs="$libdir"
  57008. + else
  57009. + # Just accumulate the unique libdirs.
  57010. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57011. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57012. + ;;
  57013. + *)
  57014. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57015. + ;;
  57016. + esac
  57017. + fi
  57018. + else
  57019. + eval flag=\"$hardcode_libdir_flag_spec\"
  57020. + dep_rpath="$dep_rpath $flag"
  57021. + fi
  57022. + elif test -n "$runpath_var"; then
  57023. + case "$perm_rpath " in
  57024. + *" $libdir "*) ;;
  57025. + *) perm_rpath="$perm_rpath $libdir" ;;
  57026. + esac
  57027. + fi
  57028. + done
  57029. + # Substitute the hardcoded libdirs into the rpath.
  57030. + if test -n "$hardcode_libdir_separator" &&
  57031. + test -n "$hardcode_libdirs"; then
  57032. + libdir="$hardcode_libdirs"
  57033. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  57034. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  57035. + else
  57036. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  57037. + fi
  57038. + fi
  57039. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  57040. + # We should set the runpath_var.
  57041. + rpath=
  57042. + for dir in $perm_rpath; do
  57043. + rpath="$rpath$dir:"
  57044. + done
  57045. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  57046. + fi
  57047. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  57048. + fi
  57049. - if test "$fast_install" = yes; then
  57050. - $echo >> $output "\
  57051. - program=lt-'$outputname'$exeext
  57052. - progdir=\"\$thisdir/$objdir\"
  57053. + shlibpath="$finalize_shlibpath"
  57054. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  57055. + if test -n "$shlibpath"; then
  57056. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  57057. + fi
  57058. - if test ! -f \"\$progdir/\$program\" || \\
  57059. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  57060. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  57061. + # Get the real and link names of the library.
  57062. + eval shared_ext=\"$shrext_cmds\"
  57063. + eval library_names=\"$library_names_spec\"
  57064. + set dummy $library_names
  57065. + shift
  57066. + realname="$1"
  57067. + shift
  57068. - file=\"\$\$-\$program\"
  57069. + if test -n "$soname_spec"; then
  57070. + eval soname=\"$soname_spec\"
  57071. + else
  57072. + soname="$realname"
  57073. + fi
  57074. + if test -z "$dlname"; then
  57075. + dlname=$soname
  57076. + fi
  57077. - if test ! -d \"\$progdir\"; then
  57078. - $mkdir \"\$progdir\"
  57079. - else
  57080. - $rm \"\$progdir/\$file\"
  57081. - fi"
  57082. + lib="$output_objdir/$realname"
  57083. + linknames=
  57084. + for link
  57085. + do
  57086. + linknames="$linknames $link"
  57087. + done
  57088. - $echo >> $output "\
  57089. + # Use standard objects if they are pic
  57090. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57091. + test "X$libobjs" = "X " && libobjs=
  57092. - # relink executable if necessary
  57093. - if test -n \"\$relink_command\"; then
  57094. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  57095. - else
  57096. - $echo \"\$relink_command_output\" >&2
  57097. - $rm \"\$progdir/\$file\"
  57098. - exit $EXIT_FAILURE
  57099. - fi
  57100. - fi
  57101. + delfiles=
  57102. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  57103. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  57104. + export_symbols="$output_objdir/$libname.uexp"
  57105. + delfiles="$delfiles $export_symbols"
  57106. + fi
  57107. +
  57108. + orig_export_symbols=
  57109. + case $host_os in
  57110. + cygwin* | mingw* | cegcc*)
  57111. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  57112. + # exporting using user supplied symfile
  57113. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  57114. + # and it's NOT already a .def file. Must figure out
  57115. + # which of the given symbols are data symbols and tag
  57116. + # them as such. So, trigger use of export_symbols_cmds.
  57117. + # export_symbols gets reassigned inside the "prepare
  57118. + # the list of exported symbols" if statement, so the
  57119. + # include_expsyms logic still works.
  57120. + orig_export_symbols="$export_symbols"
  57121. + export_symbols=
  57122. + always_export_symbols=yes
  57123. + fi
  57124. + fi
  57125. + ;;
  57126. + esac
  57127. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  57128. - { $rm \"\$progdir/\$program\";
  57129. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  57130. - $rm \"\$progdir/\$file\"
  57131. - fi"
  57132. - else
  57133. - $echo >> $output "\
  57134. - program='$outputname'
  57135. - progdir=\"\$thisdir/$objdir\"
  57136. -"
  57137. + # Prepare the list of exported symbols
  57138. + if test -z "$export_symbols"; then
  57139. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  57140. + func_verbose "generating symbol list for \`$libname.la'"
  57141. + export_symbols="$output_objdir/$libname.exp"
  57142. + $opt_dry_run || $RM $export_symbols
  57143. + cmds=$export_symbols_cmds
  57144. + save_ifs="$IFS"; IFS='~'
  57145. + for cmd in $cmds; do
  57146. + IFS="$save_ifs"
  57147. + eval cmd=\"$cmd\"
  57148. + func_len " $cmd"
  57149. + len=$func_len_result
  57150. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57151. + func_show_eval "$cmd" 'exit $?'
  57152. + skipped_export=false
  57153. + else
  57154. + # The command line is too long to execute in one step.
  57155. + func_verbose "using reloadable object file for export list..."
  57156. + skipped_export=:
  57157. + # Break out early, otherwise skipped_export may be
  57158. + # set to false by a later but shorter cmd.
  57159. + break
  57160. + fi
  57161. + done
  57162. + IFS="$save_ifs"
  57163. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  57164. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  57165. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  57166. + fi
  57167. + fi
  57168. fi
  57169. - $echo >> $output "\
  57170. -
  57171. - if test -f \"\$progdir/\$program\"; then"
  57172. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  57173. + tmp_export_symbols="$export_symbols"
  57174. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  57175. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  57176. + fi
  57177. +
  57178. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  57179. + # The given exports_symbols file has to be filtered, so filter it.
  57180. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  57181. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  57182. + # 's' commands which not all seds can handle. GNU sed should be fine
  57183. + # though. Also, the filter scales superlinearly with the number of
  57184. + # global variables. join(1) would be nice here, but unfortunately
  57185. + # isn't a blessed tool.
  57186. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  57187. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  57188. + export_symbols=$output_objdir/$libname.def
  57189. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  57190. + fi
  57191. - # Export our shlibpath_var if we have one.
  57192. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  57193. - $echo >> $output "\
  57194. - # Add our own library path to $shlibpath_var
  57195. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  57196. + tmp_deplibs=
  57197. + for test_deplib in $deplibs; do
  57198. + case " $convenience " in
  57199. + *" $test_deplib "*) ;;
  57200. + *)
  57201. + tmp_deplibs="$tmp_deplibs $test_deplib"
  57202. + ;;
  57203. + esac
  57204. + done
  57205. + deplibs="$tmp_deplibs"
  57206. - # Some systems cannot cope with colon-terminated $shlibpath_var
  57207. - # The second colon is a workaround for a bug in BeOS R4 sed
  57208. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  57209. + if test -n "$convenience"; then
  57210. + if test -n "$whole_archive_flag_spec" &&
  57211. + test "$compiler_needs_object" = yes &&
  57212. + test -z "$libobjs"; then
  57213. + # extract the archives, so we have objects to list.
  57214. + # TODO: could optimize this to just extract one archive.
  57215. + whole_archive_flag_spec=
  57216. + fi
  57217. + if test -n "$whole_archive_flag_spec"; then
  57218. + save_libobjs=$libobjs
  57219. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  57220. + test "X$libobjs" = "X " && libobjs=
  57221. + else
  57222. + gentop="$output_objdir/${outputname}x"
  57223. + generated="$generated $gentop"
  57224. - export $shlibpath_var
  57225. -"
  57226. + func_extract_archives $gentop $convenience
  57227. + libobjs="$libobjs $func_extract_archives_result"
  57228. + test "X$libobjs" = "X " && libobjs=
  57229. + fi
  57230. fi
  57231. - # fixup the dll searchpath if we need to.
  57232. - if test -n "$dllsearchpath"; then
  57233. - $echo >> $output "\
  57234. - # Add the dll search path components to the executable PATH
  57235. - PATH=$dllsearchpath:\$PATH
  57236. -"
  57237. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  57238. + eval flag=\"$thread_safe_flag_spec\"
  57239. + linker_flags="$linker_flags $flag"
  57240. fi
  57241. - $echo >> $output "\
  57242. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  57243. - # Run the actual program with our arguments.
  57244. -"
  57245. - case $host in
  57246. - # Backslashes separate directories on plain windows
  57247. - *-*-mingw | *-*-os2*)
  57248. - $echo >> $output "\
  57249. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  57250. -"
  57251. - ;;
  57252. -
  57253. - *)
  57254. - $echo >> $output "\
  57255. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  57256. -"
  57257. - ;;
  57258. - esac
  57259. - $echo >> $output "\
  57260. - \$echo \"\$0: cannot exec \$program \$*\"
  57261. - exit $EXIT_FAILURE
  57262. - fi
  57263. - else
  57264. - # The program doesn't exist.
  57265. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  57266. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  57267. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  57268. - exit $EXIT_FAILURE
  57269. - fi
  57270. -fi\
  57271. -"
  57272. - chmod +x $output
  57273. - fi
  57274. - exit $EXIT_SUCCESS
  57275. - ;;
  57276. - esac
  57277. -
  57278. - # See if we need to build an old-fashioned archive.
  57279. - for oldlib in $oldlibs; do
  57280. + # Make a backup of the uninstalled library when relinking
  57281. + if test "$mode" = relink; then
  57282. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  57283. + fi
  57284. - if test "$build_libtool_libs" = convenience; then
  57285. - oldobjs="$libobjs_save"
  57286. - addlibs="$convenience"
  57287. - build_libtool_libs=no
  57288. - else
  57289. - if test "$build_libtool_libs" = module; then
  57290. - oldobjs="$libobjs_save"
  57291. - build_libtool_libs=no
  57292. + # Do each of the archive commands.
  57293. + if test "$module" = yes && test -n "$module_cmds" ; then
  57294. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  57295. + eval test_cmds=\"$module_expsym_cmds\"
  57296. + cmds=$module_expsym_cmds
  57297. + else
  57298. + eval test_cmds=\"$module_cmds\"
  57299. + cmds=$module_cmds
  57300. + fi
  57301. else
  57302. - oldobjs="$old_deplibs $non_pic_objects"
  57303. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  57304. + eval test_cmds=\"$archive_expsym_cmds\"
  57305. + cmds=$archive_expsym_cmds
  57306. + else
  57307. + eval test_cmds=\"$archive_cmds\"
  57308. + cmds=$archive_cmds
  57309. + fi
  57310. fi
  57311. - addlibs="$old_convenience"
  57312. - fi
  57313. - if test -n "$addlibs"; then
  57314. - gentop="$output_objdir/${outputname}x"
  57315. - generated="$generated $gentop"
  57316. + if test "X$skipped_export" != "X:" &&
  57317. + func_len " $test_cmds" &&
  57318. + len=$func_len_result &&
  57319. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57320. + :
  57321. + else
  57322. + # The command line is too long to link in one step, link piecewise
  57323. + # or, if using GNU ld and skipped_export is not :, use a linker
  57324. + # script.
  57325. - func_extract_archives $gentop $addlibs
  57326. - oldobjs="$oldobjs $func_extract_archives_result"
  57327. - fi
  57328. + # Save the value of $output and $libobjs because we want to
  57329. + # use them later. If we have whole_archive_flag_spec, we
  57330. + # want to use save_libobjs as it was before
  57331. + # whole_archive_flag_spec was expanded, because we can't
  57332. + # assume the linker understands whole_archive_flag_spec.
  57333. + # This may have to be revisited, in case too many
  57334. + # convenience libraries get linked in and end up exceeding
  57335. + # the spec.
  57336. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  57337. + save_libobjs=$libobjs
  57338. + fi
  57339. + save_output=$output
  57340. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  57341. - # Do each command in the archive commands.
  57342. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  57343. - cmds=$old_archive_from_new_cmds
  57344. - else
  57345. - # POSIX demands no paths to be encoded in archives. We have
  57346. - # to avoid creating archives with duplicate basenames if we
  57347. - # might have to extract them afterwards, e.g., when creating a
  57348. - # static archive out of a convenience library, or when linking
  57349. - # the entirety of a libtool archive into another (currently
  57350. - # not supported by libtool).
  57351. - if (for obj in $oldobjs
  57352. + # Clear the reloadable object creation command queue and
  57353. + # initialize k to one.
  57354. + test_cmds=
  57355. + concat_cmds=
  57356. + objlist=
  57357. + last_robj=
  57358. + k=1
  57359. +
  57360. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  57361. + output=${output_objdir}/${output_la}.lnkscript
  57362. + func_verbose "creating GNU ld script: $output"
  57363. + $ECHO 'INPUT (' > $output
  57364. + for obj in $save_libobjs
  57365. do
  57366. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  57367. - done | sort | sort -uc >/dev/null 2>&1); then
  57368. - :
  57369. - else
  57370. - $echo "copying selected object files to avoid basename conflicts..."
  57371. + $ECHO "$obj" >> $output
  57372. + done
  57373. + $ECHO ')' >> $output
  57374. + delfiles="$delfiles $output"
  57375. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  57376. + output=${output_objdir}/${output_la}.lnk
  57377. + func_verbose "creating linker input file list: $output"
  57378. + : > $output
  57379. + set x $save_libobjs
  57380. + shift
  57381. + firstobj=
  57382. + if test "$compiler_needs_object" = yes; then
  57383. + firstobj="$1 "
  57384. + shift
  57385. + fi
  57386. + for obj
  57387. + do
  57388. + $ECHO "$obj" >> $output
  57389. + done
  57390. + delfiles="$delfiles $output"
  57391. + output=$firstobj\"$file_list_spec$output\"
  57392. + else
  57393. + if test -n "$save_libobjs"; then
  57394. + func_verbose "creating reloadable object files..."
  57395. + output=$output_objdir/$output_la-${k}.$objext
  57396. + eval test_cmds=\"$reload_cmds\"
  57397. + func_len " $test_cmds"
  57398. + len0=$func_len_result
  57399. + len=$len0
  57400. +
  57401. + # Loop over the list of objects to be linked.
  57402. + for obj in $save_libobjs
  57403. + do
  57404. + func_len " $obj"
  57405. + func_arith $len + $func_len_result
  57406. + len=$func_arith_result
  57407. + if test "X$objlist" = X ||
  57408. + test "$len" -lt "$max_cmd_len"; then
  57409. + func_append objlist " $obj"
  57410. + else
  57411. + # The command $test_cmds is almost too long, add a
  57412. + # command to the queue.
  57413. + if test "$k" -eq 1 ; then
  57414. + # The first file doesn't have a previous command to add.
  57415. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  57416. + else
  57417. + # All subsequent reloadable object files will link in
  57418. + # the last one created.
  57419. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  57420. + fi
  57421. + last_robj=$output_objdir/$output_la-${k}.$objext
  57422. + func_arith $k + 1
  57423. + k=$func_arith_result
  57424. + output=$output_objdir/$output_la-${k}.$objext
  57425. + objlist=$obj
  57426. + func_len " $last_robj"
  57427. + func_arith $len0 + $func_len_result
  57428. + len=$func_arith_result
  57429. + fi
  57430. + done
  57431. + # Handle the remaining objects by creating one last
  57432. + # reloadable object file. All subsequent reloadable object
  57433. + # files will link in the last one created.
  57434. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57435. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  57436. + if test -n "$last_robj"; then
  57437. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  57438. + fi
  57439. + delfiles="$delfiles $output"
  57440. - if test -z "$gentop"; then
  57441. - gentop="$output_objdir/${outputname}x"
  57442. - generated="$generated $gentop"
  57443. + else
  57444. + output=
  57445. + fi
  57446. +
  57447. + if ${skipped_export-false}; then
  57448. + func_verbose "generating symbol list for \`$libname.la'"
  57449. + export_symbols="$output_objdir/$libname.exp"
  57450. + $opt_dry_run || $RM $export_symbols
  57451. + libobjs=$output
  57452. + # Append the command to create the export file.
  57453. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57454. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  57455. + if test -n "$last_robj"; then
  57456. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  57457. + fi
  57458. + fi
  57459. +
  57460. + test -n "$save_libobjs" &&
  57461. + func_verbose "creating a temporary reloadable object file: $output"
  57462. +
  57463. + # Loop through the commands generated above and execute them.
  57464. + save_ifs="$IFS"; IFS='~'
  57465. + for cmd in $concat_cmds; do
  57466. + IFS="$save_ifs"
  57467. + $opt_silent || {
  57468. + func_quote_for_expand "$cmd"
  57469. + eval "func_echo $func_quote_for_expand_result"
  57470. + }
  57471. + $opt_dry_run || eval "$cmd" || {
  57472. + lt_exit=$?
  57473. +
  57474. + # Restore the uninstalled library and exit
  57475. + if test "$mode" = relink; then
  57476. + ( cd "$output_objdir" && \
  57477. + $RM "${realname}T" && \
  57478. + $MV "${realname}U" "$realname" )
  57479. + fi
  57480. +
  57481. + exit $lt_exit
  57482. + }
  57483. + done
  57484. + IFS="$save_ifs"
  57485. - $show "${rm}r $gentop"
  57486. - $run ${rm}r "$gentop"
  57487. - $show "$mkdir $gentop"
  57488. - $run $mkdir "$gentop"
  57489. - exit_status=$?
  57490. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  57491. - exit $exit_status
  57492. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  57493. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  57494. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  57495. fi
  57496. fi
  57497. - save_oldobjs=$oldobjs
  57498. - oldobjs=
  57499. - counter=1
  57500. - for obj in $save_oldobjs
  57501. - do
  57502. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  57503. - case " $oldobjs " in
  57504. - " ") oldobjs=$obj ;;
  57505. - *[\ /]"$objbase "*)
  57506. - while :; do
  57507. - # Make sure we don't pick an alternate name that also
  57508. - # overlaps.
  57509. - newobj=lt$counter-$objbase
  57510. - counter=`expr $counter + 1`
  57511. - case " $oldobjs " in
  57512. - *[\ /]"$newobj "*) ;;
  57513. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  57514. - esac
  57515. - done
  57516. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  57517. - $run ln "$obj" "$gentop/$newobj" ||
  57518. - $run cp "$obj" "$gentop/$newobj"
  57519. - oldobjs="$oldobjs $gentop/$newobj"
  57520. - ;;
  57521. - *) oldobjs="$oldobjs $obj" ;;
  57522. - esac
  57523. - done
  57524. - fi
  57525. + if ${skipped_export-false}; then
  57526. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  57527. + tmp_export_symbols="$export_symbols"
  57528. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  57529. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  57530. + fi
  57531. +
  57532. + if test -n "$orig_export_symbols"; then
  57533. + # The given exports_symbols file has to be filtered, so filter it.
  57534. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  57535. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  57536. + # 's' commands which not all seds can handle. GNU sed should be fine
  57537. + # though. Also, the filter scales superlinearly with the number of
  57538. + # global variables. join(1) would be nice here, but unfortunately
  57539. + # isn't a blessed tool.
  57540. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  57541. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  57542. + export_symbols=$output_objdir/$libname.def
  57543. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  57544. + fi
  57545. + fi
  57546. - eval cmds=\"$old_archive_cmds\"
  57547. + libobjs=$output
  57548. + # Restore the value of output.
  57549. + output=$save_output
  57550. - if len=`expr "X$cmds" : ".*"` &&
  57551. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57552. - cmds=$old_archive_cmds
  57553. - else
  57554. - # the command line is too long to link in one step, link in parts
  57555. - $echo "using piecewise archive linking..."
  57556. - save_RANLIB=$RANLIB
  57557. - RANLIB=:
  57558. - objlist=
  57559. - concat_cmds=
  57560. - save_oldobjs=$oldobjs
  57561. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  57562. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  57563. + test "X$libobjs" = "X " && libobjs=
  57564. + fi
  57565. + # Expand the library linking commands again to reset the
  57566. + # value of $libobjs for piecewise linking.
  57567. - # Is there a better way of finding the last object in the list?
  57568. - for obj in $save_oldobjs
  57569. - do
  57570. - last_oldobj=$obj
  57571. - done
  57572. - for obj in $save_oldobjs
  57573. - do
  57574. - oldobjs="$objlist $obj"
  57575. - objlist="$objlist $obj"
  57576. - eval test_cmds=\"$old_archive_cmds\"
  57577. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  57578. - test "$len" -le "$max_cmd_len"; then
  57579. - :
  57580. + # Do each of the archive commands.
  57581. + if test "$module" = yes && test -n "$module_cmds" ; then
  57582. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  57583. + cmds=$module_expsym_cmds
  57584. else
  57585. - # the above command should be used before it gets too long
  57586. - oldobjs=$objlist
  57587. - if test "$obj" = "$last_oldobj" ; then
  57588. - RANLIB=$save_RANLIB
  57589. - fi
  57590. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57591. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  57592. - objlist=
  57593. + cmds=$module_cmds
  57594. fi
  57595. - done
  57596. - RANLIB=$save_RANLIB
  57597. - oldobjs=$objlist
  57598. - if test "X$oldobjs" = "X" ; then
  57599. - eval cmds=\"\$concat_cmds\"
  57600. else
  57601. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  57602. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  57603. + cmds=$archive_expsym_cmds
  57604. + else
  57605. + cmds=$archive_cmds
  57606. + fi
  57607. fi
  57608. fi
  57609. - fi
  57610. - save_ifs="$IFS"; IFS='~'
  57611. - for cmd in $cmds; do
  57612. - eval cmd=\"$cmd\"
  57613. - IFS="$save_ifs"
  57614. - $show "$cmd"
  57615. - $run eval "$cmd" || exit $?
  57616. - done
  57617. - IFS="$save_ifs"
  57618. - done
  57619. - if test -n "$generated"; then
  57620. - $show "${rm}r$generated"
  57621. - $run ${rm}r$generated
  57622. - fi
  57623. + if test -n "$delfiles"; then
  57624. + # Append the command to remove temporary files to $cmds.
  57625. + eval cmds=\"\$cmds~\$RM $delfiles\"
  57626. + fi
  57627. - # Now create the libtool archive.
  57628. - case $output in
  57629. - *.la)
  57630. - old_library=
  57631. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  57632. - $show "creating $output"
  57633. + # Add any objects from preloaded convenience libraries
  57634. + if test -n "$dlprefiles"; then
  57635. + gentop="$output_objdir/${outputname}x"
  57636. + generated="$generated $gentop"
  57637. - # Preserve any variables that may affect compiler behavior
  57638. - for var in $variables_saved_for_relink; do
  57639. - if eval test -z \"\${$var+set}\"; then
  57640. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  57641. - elif eval var_value=\$$var; test -z "$var_value"; then
  57642. - relink_command="$var=; export $var; $relink_command"
  57643. - else
  57644. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  57645. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  57646. + func_extract_archives $gentop $dlprefiles
  57647. + libobjs="$libobjs $func_extract_archives_result"
  57648. + test "X$libobjs" = "X " && libobjs=
  57649. fi
  57650. - done
  57651. - # Quote the link command for shipping.
  57652. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  57653. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  57654. - if test "$hardcode_automatic" = yes ; then
  57655. - relink_command=
  57656. - fi
  57657. + save_ifs="$IFS"; IFS='~'
  57658. + for cmd in $cmds; do
  57659. + IFS="$save_ifs"
  57660. + eval cmd=\"$cmd\"
  57661. + $opt_silent || {
  57662. + func_quote_for_expand "$cmd"
  57663. + eval "func_echo $func_quote_for_expand_result"
  57664. + }
  57665. + $opt_dry_run || eval "$cmd" || {
  57666. + lt_exit=$?
  57667. - # Only create the output if not a dry run.
  57668. - if test -z "$run"; then
  57669. - for installed in no yes; do
  57670. - if test "$installed" = yes; then
  57671. - if test -z "$install_libdir"; then
  57672. - break
  57673. + # Restore the uninstalled library and exit
  57674. + if test "$mode" = relink; then
  57675. + ( cd "$output_objdir" && \
  57676. + $RM "${realname}T" && \
  57677. + $MV "${realname}U" "$realname" )
  57678. fi
  57679. - output="$output_objdir/$outputname"i
  57680. - # Replace all uninstalled libtool libraries with the installed ones
  57681. - newdependency_libs=
  57682. - for deplib in $dependency_libs; do
  57683. - case $deplib in
  57684. - *.la)
  57685. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  57686. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57687. - if test -z "$libdir"; then
  57688. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  57689. - exit $EXIT_FAILURE
  57690. - fi
  57691. - newdependency_libs="$newdependency_libs $libdir/$name"
  57692. - ;;
  57693. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  57694. - esac
  57695. - done
  57696. - dependency_libs="$newdependency_libs"
  57697. - newdlfiles=
  57698. - for lib in $dlfiles; do
  57699. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  57700. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57701. - if test -z "$libdir"; then
  57702. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57703. - exit $EXIT_FAILURE
  57704. - fi
  57705. - newdlfiles="$newdlfiles $libdir/$name"
  57706. - done
  57707. - dlfiles="$newdlfiles"
  57708. - newdlprefiles=
  57709. - for lib in $dlprefiles; do
  57710. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  57711. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57712. - if test -z "$libdir"; then
  57713. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57714. - exit $EXIT_FAILURE
  57715. - fi
  57716. - newdlprefiles="$newdlprefiles $libdir/$name"
  57717. - done
  57718. - dlprefiles="$newdlprefiles"
  57719. - else
  57720. - newdlfiles=
  57721. - for lib in $dlfiles; do
  57722. - case $lib in
  57723. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57724. - *) abs=`pwd`"/$lib" ;;
  57725. - esac
  57726. - newdlfiles="$newdlfiles $abs"
  57727. - done
  57728. - dlfiles="$newdlfiles"
  57729. - newdlprefiles=
  57730. - for lib in $dlprefiles; do
  57731. - case $lib in
  57732. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57733. - *) abs=`pwd`"/$lib" ;;
  57734. - esac
  57735. - newdlprefiles="$newdlprefiles $abs"
  57736. - done
  57737. - dlprefiles="$newdlprefiles"
  57738. - fi
  57739. - $rm $output
  57740. - # place dlname in correct position for cygwin
  57741. - tdlname=$dlname
  57742. - case $host,$output,$installed,$module,$dlname in
  57743. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  57744. - esac
  57745. - $echo > $output "\
  57746. -# $outputname - a libtool library file
  57747. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  57748. -#
  57749. -# Please DO NOT delete this file!
  57750. -# It is necessary for linking the library.
  57751. -# The name that we can dlopen(3).
  57752. -dlname='$tdlname'
  57753. + exit $lt_exit
  57754. + }
  57755. + done
  57756. + IFS="$save_ifs"
  57757. -# Names of this library.
  57758. -library_names='$library_names'
  57759. + # Restore the uninstalled library and exit
  57760. + if test "$mode" = relink; then
  57761. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  57762. -# The name of the static archive.
  57763. -old_library='$old_library'
  57764. + if test -n "$convenience"; then
  57765. + if test -z "$whole_archive_flag_spec"; then
  57766. + func_show_eval '${RM}r "$gentop"'
  57767. + fi
  57768. + fi
  57769. -# Libraries that this one depends upon.
  57770. -dependency_libs='$dependency_libs'
  57771. + exit $EXIT_SUCCESS
  57772. + fi
  57773. -# Version information for $libname.
  57774. -current=$current
  57775. -age=$age
  57776. -revision=$revision
  57777. + # Create links to the real library.
  57778. + for linkname in $linknames; do
  57779. + if test "$realname" != "$linkname"; then
  57780. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  57781. + fi
  57782. + done
  57783. -# Is this an already installed library?
  57784. -installed=$installed
  57785. + # If -module or -export-dynamic was specified, set the dlname.
  57786. + if test "$module" = yes || test "$export_dynamic" = yes; then
  57787. + # On all known operating systems, these are identical.
  57788. + dlname="$soname"
  57789. + fi
  57790. + fi
  57791. + ;;
  57792. -# Should we warn about portability when linking against -modules?
  57793. -shouldnotlink=$module
  57794. + obj)
  57795. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57796. + func_warning "\`-dlopen' is ignored for objects"
  57797. + fi
  57798. -# Files to dlopen/dlpreopen
  57799. -dlopen='$dlfiles'
  57800. -dlpreopen='$dlprefiles'
  57801. + case " $deplibs" in
  57802. + *\ -l* | *\ -L*)
  57803. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  57804. + esac
  57805. -# Directory that this library needs to be installed in:
  57806. -libdir='$install_libdir'"
  57807. - if test "$installed" = no && test "$need_relink" = yes; then
  57808. - $echo >> $output "\
  57809. -relink_command=\"$relink_command\""
  57810. - fi
  57811. - done
  57812. - fi
  57813. + test -n "$rpath" && \
  57814. + func_warning "\`-rpath' is ignored for objects"
  57815. - # Do a symbolic link so that the libtool archive can be found in
  57816. - # LD_LIBRARY_PATH before the program is installed.
  57817. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  57818. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  57819. - ;;
  57820. - esac
  57821. - exit $EXIT_SUCCESS
  57822. - ;;
  57823. + test -n "$xrpath" && \
  57824. + func_warning "\`-R' is ignored for objects"
  57825. - # libtool install mode
  57826. - install)
  57827. - modename="$modename: install"
  57828. + test -n "$vinfo" && \
  57829. + func_warning "\`-version-info' is ignored for objects"
  57830. - # There may be an optional sh(1) argument at the beginning of
  57831. - # install_prog (especially on Windows NT).
  57832. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  57833. - # Allow the use of GNU shtool's install command.
  57834. - $echo "X$nonopt" | grep shtool > /dev/null; then
  57835. - # Aesthetically quote it.
  57836. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  57837. - case $arg in
  57838. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57839. - arg="\"$arg\""
  57840. + test -n "$release" && \
  57841. + func_warning "\`-release' is ignored for objects"
  57842. +
  57843. + case $output in
  57844. + *.lo)
  57845. + test -n "$objs$old_deplibs" && \
  57846. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  57847. +
  57848. + libobj=$output
  57849. + func_lo2o "$libobj"
  57850. + obj=$func_lo2o_result
  57851. + ;;
  57852. + *)
  57853. + libobj=
  57854. + obj="$output"
  57855. ;;
  57856. esac
  57857. - install_prog="$arg "
  57858. - arg="$1"
  57859. - shift
  57860. - else
  57861. - install_prog=
  57862. - arg=$nonopt
  57863. - fi
  57864. - # The real first argument should be the name of the installation program.
  57865. - # Aesthetically quote it.
  57866. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  57867. - case $arg in
  57868. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57869. - arg="\"$arg\""
  57870. - ;;
  57871. - esac
  57872. - install_prog="$install_prog$arg"
  57873. + # Delete the old objects.
  57874. + $opt_dry_run || $RM $obj $libobj
  57875. - # We need to accept at least all the BSD install flags.
  57876. - dest=
  57877. - files=
  57878. - opts=
  57879. - prev=
  57880. - install_type=
  57881. - isdir=no
  57882. - stripme=
  57883. - for arg
  57884. - do
  57885. - if test -n "$dest"; then
  57886. - files="$files $dest"
  57887. - dest=$arg
  57888. - continue
  57889. - fi
  57890. + # Objects from convenience libraries. This assumes
  57891. + # single-version convenience libraries. Whenever we create
  57892. + # different ones for PIC/non-PIC, this we'll have to duplicate
  57893. + # the extraction.
  57894. + reload_conv_objs=
  57895. + gentop=
  57896. + # reload_cmds runs $LD directly, so let us get rid of
  57897. + # -Wl from whole_archive_flag_spec and hope we can get by with
  57898. + # turning comma into space..
  57899. + wl=
  57900. - case $arg in
  57901. - -d) isdir=yes ;;
  57902. - -f)
  57903. - case " $install_prog " in
  57904. - *[\\\ /]cp\ *) ;;
  57905. - *) prev=$arg ;;
  57906. - esac
  57907. - ;;
  57908. - -g | -m | -o) prev=$arg ;;
  57909. - -s)
  57910. - stripme=" -s"
  57911. - continue
  57912. - ;;
  57913. - -*)
  57914. - ;;
  57915. - *)
  57916. - # If the previous option needed an argument, then skip it.
  57917. - if test -n "$prev"; then
  57918. - prev=
  57919. + if test -n "$convenience"; then
  57920. + if test -n "$whole_archive_flag_spec"; then
  57921. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  57922. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  57923. else
  57924. - dest=$arg
  57925. - continue
  57926. + gentop="$output_objdir/${obj}x"
  57927. + generated="$generated $gentop"
  57928. +
  57929. + func_extract_archives $gentop $convenience
  57930. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  57931. fi
  57932. - ;;
  57933. - esac
  57934. + fi
  57935. - # Aesthetically quote the argument.
  57936. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  57937. - case $arg in
  57938. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57939. - arg="\"$arg\""
  57940. - ;;
  57941. - esac
  57942. - install_prog="$install_prog $arg"
  57943. - done
  57944. + # Create the old-style object.
  57945. + 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
  57946. - if test -z "$install_prog"; then
  57947. - $echo "$modename: you must specify an install program" 1>&2
  57948. - $echo "$help" 1>&2
  57949. - exit $EXIT_FAILURE
  57950. - fi
  57951. + output="$obj"
  57952. + func_execute_cmds "$reload_cmds" 'exit $?'
  57953. - if test -n "$prev"; then
  57954. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  57955. - $echo "$help" 1>&2
  57956. - exit $EXIT_FAILURE
  57957. - fi
  57958. + # Exit if we aren't doing a library object file.
  57959. + if test -z "$libobj"; then
  57960. + if test -n "$gentop"; then
  57961. + func_show_eval '${RM}r "$gentop"'
  57962. + fi
  57963. - if test -z "$files"; then
  57964. - if test -z "$dest"; then
  57965. - $echo "$modename: no file or destination specified" 1>&2
  57966. - else
  57967. - $echo "$modename: you must specify a destination" 1>&2
  57968. + exit $EXIT_SUCCESS
  57969. fi
  57970. - $echo "$help" 1>&2
  57971. - exit $EXIT_FAILURE
  57972. - fi
  57973. - # Strip any trailing slash from the destination.
  57974. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  57975. + if test "$build_libtool_libs" != yes; then
  57976. + if test -n "$gentop"; then
  57977. + func_show_eval '${RM}r "$gentop"'
  57978. + fi
  57979. - # Check to see that the destination is a directory.
  57980. - test -d "$dest" && isdir=yes
  57981. - if test "$isdir" = yes; then
  57982. - destdir="$dest"
  57983. - destname=
  57984. - else
  57985. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  57986. - test "X$destdir" = "X$dest" && destdir=.
  57987. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  57988. + # Create an invalid libtool object if no PIC, so that we don't
  57989. + # accidentally link it into a program.
  57990. + # $show "echo timestamp > $libobj"
  57991. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  57992. + exit $EXIT_SUCCESS
  57993. + fi
  57994. - # Not a directory, so check to see that there is only one file specified.
  57995. - set dummy $files
  57996. - if test "$#" -gt 2; then
  57997. - $echo "$modename: \`$dest' is not a directory" 1>&2
  57998. - $echo "$help" 1>&2
  57999. - exit $EXIT_FAILURE
  58000. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  58001. + # Only do commands if we really have different PIC objects.
  58002. + reload_objs="$libobjs $reload_conv_objs"
  58003. + output="$libobj"
  58004. + func_execute_cmds "$reload_cmds" 'exit $?'
  58005. fi
  58006. - fi
  58007. - case $destdir in
  58008. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  58009. - *)
  58010. - for file in $files; do
  58011. - case $file in
  58012. - *.lo) ;;
  58013. - *)
  58014. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  58015. - $echo "$help" 1>&2
  58016. - exit $EXIT_FAILURE
  58017. - ;;
  58018. - esac
  58019. - done
  58020. +
  58021. + if test -n "$gentop"; then
  58022. + func_show_eval '${RM}r "$gentop"'
  58023. + fi
  58024. +
  58025. + exit $EXIT_SUCCESS
  58026. ;;
  58027. - esac
  58028. - # This variable tells wrapper scripts just to set variables rather
  58029. - # than running their programs.
  58030. - libtool_install_magic="$magic"
  58031. + prog)
  58032. + case $host in
  58033. + *cygwin*) func_stripname '' '.exe' "$output"
  58034. + output=$func_stripname_result.exe;;
  58035. + esac
  58036. + test -n "$vinfo" && \
  58037. + func_warning "\`-version-info' is ignored for programs"
  58038. - staticlibs=
  58039. - future_libdirs=
  58040. - current_libdirs=
  58041. - for file in $files; do
  58042. + test -n "$release" && \
  58043. + func_warning "\`-release' is ignored for programs"
  58044. - # Do each installation.
  58045. - case $file in
  58046. - *.$libext)
  58047. - # Do the static libraries later.
  58048. - staticlibs="$staticlibs $file"
  58049. + test "$preload" = yes \
  58050. + && test "$dlopen_support" = unknown \
  58051. + && test "$dlopen_self" = unknown \
  58052. + && test "$dlopen_self_static" = unknown && \
  58053. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  58054. +
  58055. + case $host in
  58056. + *-*-rhapsody* | *-*-darwin1.[012])
  58057. + # On Rhapsody replace the C library is the System framework
  58058. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58059. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58060. ;;
  58061. + esac
  58062. - *.la)
  58063. - # Check to see that this really is a libtool archive.
  58064. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  58065. - else
  58066. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  58067. - $echo "$help" 1>&2
  58068. - exit $EXIT_FAILURE
  58069. + case $host in
  58070. + *-*-darwin*)
  58071. + # Don't allow lazy linking, it breaks C++ global constructors
  58072. + # But is supposedly fixed on 10.4 or later (yay!).
  58073. + if test "$tagname" = CXX ; then
  58074. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  58075. + 10.[0123])
  58076. + compile_command="$compile_command ${wl}-bind_at_load"
  58077. + finalize_command="$finalize_command ${wl}-bind_at_load"
  58078. + ;;
  58079. + esac
  58080. fi
  58081. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  58082. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58083. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58084. + ;;
  58085. + esac
  58086. - library_names=
  58087. - old_library=
  58088. - relink_command=
  58089. - # If there is no directory component, then add one.
  58090. - case $file in
  58091. - */* | *\\*) . $file ;;
  58092. - *) . ./$file ;;
  58093. - esac
  58094. - # Add the libdir to current_libdirs if it is the destination.
  58095. - if test "X$destdir" = "X$libdir"; then
  58096. - case "$current_libdirs " in
  58097. - *" $libdir "*) ;;
  58098. - *) current_libdirs="$current_libdirs $libdir" ;;
  58099. + # move library search paths that coincide with paths to not yet
  58100. + # installed libraries to the beginning of the library search list
  58101. + new_libs=
  58102. + for path in $notinst_path; do
  58103. + case " $new_libs " in
  58104. + *" -L$path/$objdir "*) ;;
  58105. + *)
  58106. + case " $compile_deplibs " in
  58107. + *" -L$path/$objdir "*)
  58108. + new_libs="$new_libs -L$path/$objdir" ;;
  58109. esac
  58110. - else
  58111. - # Note the libdir as a future libdir.
  58112. - case "$future_libdirs " in
  58113. - *" $libdir "*) ;;
  58114. - *) future_libdirs="$future_libdirs $libdir" ;;
  58115. + ;;
  58116. + esac
  58117. + done
  58118. + for deplib in $compile_deplibs; do
  58119. + case $deplib in
  58120. + -L*)
  58121. + case " $new_libs " in
  58122. + *" $deplib "*) ;;
  58123. + *) new_libs="$new_libs $deplib" ;;
  58124. esac
  58125. - fi
  58126. + ;;
  58127. + *) new_libs="$new_libs $deplib" ;;
  58128. + esac
  58129. + done
  58130. + compile_deplibs="$new_libs"
  58131. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  58132. - test "X$dir" = "X$file/" && dir=
  58133. - dir="$dir$objdir"
  58134. - if test -n "$relink_command"; then
  58135. - # Determine the prefix the user has applied to our future dir.
  58136. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  58137. + compile_command="$compile_command $compile_deplibs"
  58138. + finalize_command="$finalize_command $finalize_deplibs"
  58139. - # Don't allow the user to place us outside of our expected
  58140. - # location b/c this prevents finding dependent libraries that
  58141. - # are installed to the same prefix.
  58142. - # At present, this check doesn't affect windows .dll's that
  58143. - # are installed into $libdir/../bin (currently, that works fine)
  58144. - # but it's something to keep an eye on.
  58145. - if test "$inst_prefix_dir" = "$destdir"; then
  58146. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  58147. - exit $EXIT_FAILURE
  58148. - fi
  58149. + if test -n "$rpath$xrpath"; then
  58150. + # If the user specified any rpath flags, then add them.
  58151. + for libdir in $rpath $xrpath; do
  58152. + # This is the magic to use -rpath.
  58153. + case "$finalize_rpath " in
  58154. + *" $libdir "*) ;;
  58155. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  58156. + esac
  58157. + done
  58158. + fi
  58159. - if test -n "$inst_prefix_dir"; then
  58160. - # Stick the inst_prefix_dir data into the link command.
  58161. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  58162. + # Now hardcode the library paths
  58163. + rpath=
  58164. + hardcode_libdirs=
  58165. + for libdir in $compile_rpath $finalize_rpath; do
  58166. + if test -n "$hardcode_libdir_flag_spec"; then
  58167. + if test -n "$hardcode_libdir_separator"; then
  58168. + if test -z "$hardcode_libdirs"; then
  58169. + hardcode_libdirs="$libdir"
  58170. + else
  58171. + # Just accumulate the unique libdirs.
  58172. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58173. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58174. + ;;
  58175. + *)
  58176. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58177. + ;;
  58178. + esac
  58179. + fi
  58180. else
  58181. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  58182. + eval flag=\"$hardcode_libdir_flag_spec\"
  58183. + rpath="$rpath $flag"
  58184. fi
  58185. + elif test -n "$runpath_var"; then
  58186. + case "$perm_rpath " in
  58187. + *" $libdir "*) ;;
  58188. + *) perm_rpath="$perm_rpath $libdir" ;;
  58189. + esac
  58190. + fi
  58191. + case $host in
  58192. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  58193. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  58194. + case :$dllsearchpath: in
  58195. + *":$libdir:"*) ;;
  58196. + ::) dllsearchpath=$libdir;;
  58197. + *) dllsearchpath="$dllsearchpath:$libdir";;
  58198. + esac
  58199. + case :$dllsearchpath: in
  58200. + *":$testbindir:"*) ;;
  58201. + ::) dllsearchpath=$testbindir;;
  58202. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  58203. + esac
  58204. + ;;
  58205. + esac
  58206. + done
  58207. + # Substitute the hardcoded libdirs into the rpath.
  58208. + if test -n "$hardcode_libdir_separator" &&
  58209. + test -n "$hardcode_libdirs"; then
  58210. + libdir="$hardcode_libdirs"
  58211. + eval rpath=\" $hardcode_libdir_flag_spec\"
  58212. + fi
  58213. + compile_rpath="$rpath"
  58214. - $echo "$modename: warning: relinking \`$file'" 1>&2
  58215. - $show "$relink_command"
  58216. - if $run eval "$relink_command"; then :
  58217. + rpath=
  58218. + hardcode_libdirs=
  58219. + for libdir in $finalize_rpath; do
  58220. + if test -n "$hardcode_libdir_flag_spec"; then
  58221. + if test -n "$hardcode_libdir_separator"; then
  58222. + if test -z "$hardcode_libdirs"; then
  58223. + hardcode_libdirs="$libdir"
  58224. + else
  58225. + # Just accumulate the unique libdirs.
  58226. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58227. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58228. + ;;
  58229. + *)
  58230. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58231. + ;;
  58232. + esac
  58233. + fi
  58234. else
  58235. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  58236. - exit $EXIT_FAILURE
  58237. + eval flag=\"$hardcode_libdir_flag_spec\"
  58238. + rpath="$rpath $flag"
  58239. fi
  58240. + elif test -n "$runpath_var"; then
  58241. + case "$finalize_perm_rpath " in
  58242. + *" $libdir "*) ;;
  58243. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  58244. + esac
  58245. fi
  58246. + done
  58247. + # Substitute the hardcoded libdirs into the rpath.
  58248. + if test -n "$hardcode_libdir_separator" &&
  58249. + test -n "$hardcode_libdirs"; then
  58250. + libdir="$hardcode_libdirs"
  58251. + eval rpath=\" $hardcode_libdir_flag_spec\"
  58252. + fi
  58253. + finalize_rpath="$rpath"
  58254. - # See the names of the shared library.
  58255. - set dummy $library_names
  58256. - if test -n "$2"; then
  58257. - realname="$2"
  58258. - shift
  58259. - shift
  58260. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  58261. + # Transform all the library objects into standard objects.
  58262. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58263. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58264. + fi
  58265. - srcname="$realname"
  58266. - test -n "$relink_command" && srcname="$realname"T
  58267. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  58268. - # Install the shared library and build the symlinks.
  58269. - $show "$install_prog $dir/$srcname $destdir/$realname"
  58270. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  58271. - if test -n "$stripme" && test -n "$striplib"; then
  58272. - $show "$striplib $destdir/$realname"
  58273. - $run eval "$striplib $destdir/$realname" || exit $?
  58274. - fi
  58275. + # template prelinking step
  58276. + if test -n "$prelink_cmds"; then
  58277. + func_execute_cmds "$prelink_cmds" 'exit $?'
  58278. + fi
  58279. - if test "$#" -gt 0; then
  58280. - # Delete the old symlinks, and create new ones.
  58281. - # Try `ln -sf' first, because the `ln' binary might depend on
  58282. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  58283. - # so we also need to try rm && ln -s.
  58284. - for linkname
  58285. - do
  58286. - if test "$linkname" != "$realname"; then
  58287. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  58288. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  58289. - fi
  58290. - done
  58291. - fi
  58292. + wrappers_required=yes
  58293. + case $host in
  58294. + *cygwin* | *mingw* )
  58295. + if test "$build_libtool_libs" != yes; then
  58296. + wrappers_required=no
  58297. + fi
  58298. + ;;
  58299. + *cegcc)
  58300. + # Disable wrappers for cegcc, we are cross compiling anyway.
  58301. + wrappers_required=no
  58302. + ;;
  58303. + *)
  58304. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  58305. + wrappers_required=no
  58306. + fi
  58307. + ;;
  58308. + esac
  58309. + if test "$wrappers_required" = no; then
  58310. + # Replace the output file specification.
  58311. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  58312. + link_command="$compile_command$compile_rpath"
  58313. - # Do each command in the postinstall commands.
  58314. - lib="$destdir/$realname"
  58315. - cmds=$postinstall_cmds
  58316. - save_ifs="$IFS"; IFS='~'
  58317. - for cmd in $cmds; do
  58318. - IFS="$save_ifs"
  58319. - eval cmd=\"$cmd\"
  58320. - $show "$cmd"
  58321. - $run eval "$cmd" || {
  58322. - lt_exit=$?
  58323. -
  58324. - # Restore the uninstalled library and exit
  58325. - if test "$mode" = relink; then
  58326. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  58327. - fi
  58328. + # We have no uninstalled library dependencies, so finalize right now.
  58329. + exit_status=0
  58330. + func_show_eval "$link_command" 'exit_status=$?'
  58331. - exit $lt_exit
  58332. - }
  58333. - done
  58334. - IFS="$save_ifs"
  58335. + # Delete the generated files.
  58336. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  58337. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  58338. fi
  58339. - # Install the pseudo-library for information purposes.
  58340. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58341. - instname="$dir/$name"i
  58342. - $show "$install_prog $instname $destdir/$name"
  58343. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  58344. -
  58345. - # Maybe install the static library, too.
  58346. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  58347. - ;;
  58348. + exit $exit_status
  58349. + fi
  58350. - *.lo)
  58351. - # Install (i.e. copy) a libtool object.
  58352. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  58353. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  58354. + fi
  58355. + if test -n "$finalize_shlibpath"; then
  58356. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  58357. + fi
  58358. - # Figure out destination file name, if it wasn't already specified.
  58359. - if test -n "$destname"; then
  58360. - destfile="$destdir/$destname"
  58361. - else
  58362. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58363. - destfile="$destdir/$destfile"
  58364. + compile_var=
  58365. + finalize_var=
  58366. + if test -n "$runpath_var"; then
  58367. + if test -n "$perm_rpath"; then
  58368. + # We should set the runpath_var.
  58369. + rpath=
  58370. + for dir in $perm_rpath; do
  58371. + rpath="$rpath$dir:"
  58372. + done
  58373. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  58374. fi
  58375. -
  58376. - # Deduce the name of the destination old-style object file.
  58377. - case $destfile in
  58378. - *.lo)
  58379. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  58380. - ;;
  58381. - *.$objext)
  58382. - staticdest="$destfile"
  58383. - destfile=
  58384. - ;;
  58385. - *)
  58386. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  58387. - $echo "$help" 1>&2
  58388. - exit $EXIT_FAILURE
  58389. - ;;
  58390. - esac
  58391. -
  58392. - # Install the libtool object if requested.
  58393. - if test -n "$destfile"; then
  58394. - $show "$install_prog $file $destfile"
  58395. - $run eval "$install_prog $file $destfile" || exit $?
  58396. + if test -n "$finalize_perm_rpath"; then
  58397. + # We should set the runpath_var.
  58398. + rpath=
  58399. + for dir in $finalize_perm_rpath; do
  58400. + rpath="$rpath$dir:"
  58401. + done
  58402. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  58403. fi
  58404. + fi
  58405. - # Install the old object if enabled.
  58406. - if test "$build_old_libs" = yes; then
  58407. - # Deduce the name of the old-style object file.
  58408. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  58409. -
  58410. - $show "$install_prog $staticobj $staticdest"
  58411. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  58412. - fi
  58413. + if test "$no_install" = yes; then
  58414. + # We don't need to create a wrapper script.
  58415. + link_command="$compile_var$compile_command$compile_rpath"
  58416. + # Replace the output file specification.
  58417. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  58418. + # Delete the old output file.
  58419. + $opt_dry_run || $RM $output
  58420. + # Link the executable and exit
  58421. + func_show_eval "$link_command" 'exit $?'
  58422. exit $EXIT_SUCCESS
  58423. - ;;
  58424. + fi
  58425. - *)
  58426. - # Figure out destination file name, if it wasn't already specified.
  58427. - if test -n "$destname"; then
  58428. - destfile="$destdir/$destname"
  58429. + if test "$hardcode_action" = relink; then
  58430. + # Fast installation is not supported
  58431. + link_command="$compile_var$compile_command$compile_rpath"
  58432. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  58433. +
  58434. + func_warning "this platform does not like uninstalled shared libraries"
  58435. + func_warning "\`$output' will be relinked during installation"
  58436. + else
  58437. + if test "$fast_install" != no; then
  58438. + link_command="$finalize_var$compile_command$finalize_rpath"
  58439. + if test "$fast_install" = yes; then
  58440. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  58441. + else
  58442. + # fast_install is set to needless
  58443. + relink_command=
  58444. + fi
  58445. else
  58446. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58447. - destfile="$destdir/$destfile"
  58448. + link_command="$compile_var$compile_command$compile_rpath"
  58449. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  58450. fi
  58451. + fi
  58452. - # If the file is missing, and there is a .exe on the end, strip it
  58453. - # because it is most likely a libtool script we actually want to
  58454. - # install
  58455. - stripped_ext=""
  58456. - case $file in
  58457. - *.exe)
  58458. - if test ! -f "$file"; then
  58459. - file=`$echo $file|${SED} 's,.exe$,,'`
  58460. - stripped_ext=".exe"
  58461. - fi
  58462. - ;;
  58463. - esac
  58464. -
  58465. - # Do a test to see if this is really a libtool program.
  58466. - case $host in
  58467. - *cygwin*|*mingw*)
  58468. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  58469. - ;;
  58470. - *)
  58471. - wrapper=$file
  58472. - ;;
  58473. - esac
  58474. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  58475. - notinst_deplibs=
  58476. - relink_command=
  58477. -
  58478. - # Note that it is not necessary on cygwin/mingw to append a dot to
  58479. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  58480. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  58481. - # `FILE.' does not work on cygwin managed mounts.
  58482. - #
  58483. - # If there is no directory component, then add one.
  58484. - case $wrapper in
  58485. - */* | *\\*) . ${wrapper} ;;
  58486. - *) . ./${wrapper} ;;
  58487. - esac
  58488. -
  58489. - # Check the variables that should have been set.
  58490. - if test -z "$notinst_deplibs"; then
  58491. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  58492. - exit $EXIT_FAILURE
  58493. - fi
  58494. + # Replace the output file specification.
  58495. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  58496. - finalize=yes
  58497. - for lib in $notinst_deplibs; do
  58498. - # Check to see that each library is installed.
  58499. - libdir=
  58500. - if test -f "$lib"; then
  58501. - # If there is no directory component, then add one.
  58502. - case $lib in
  58503. - */* | *\\*) . $lib ;;
  58504. - *) . ./$lib ;;
  58505. - esac
  58506. - fi
  58507. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  58508. - if test -n "$libdir" && test ! -f "$libfile"; then
  58509. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  58510. - finalize=no
  58511. - fi
  58512. - done
  58513. + # Delete the old output files.
  58514. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  58515. - relink_command=
  58516. - # Note that it is not necessary on cygwin/mingw to append a dot to
  58517. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  58518. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  58519. - # `FILE.' does not work on cygwin managed mounts.
  58520. - #
  58521. - # If there is no directory component, then add one.
  58522. - case $wrapper in
  58523. - */* | *\\*) . ${wrapper} ;;
  58524. - *) . ./${wrapper} ;;
  58525. - esac
  58526. + func_show_eval "$link_command" 'exit $?'
  58527. - outputname=
  58528. - if test "$fast_install" = no && test -n "$relink_command"; then
  58529. - if test "$finalize" = yes && test -z "$run"; then
  58530. - tmpdir=`func_mktempdir`
  58531. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  58532. - outputname="$tmpdir/$file"
  58533. - # Replace the output file specification.
  58534. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  58535. + # Now create the wrapper script.
  58536. + func_verbose "creating $output"
  58537. - $show "$relink_command"
  58538. - if $run eval "$relink_command"; then :
  58539. - else
  58540. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  58541. - ${rm}r "$tmpdir"
  58542. - continue
  58543. - fi
  58544. - file="$outputname"
  58545. - else
  58546. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  58547. - fi
  58548. + # Quote the relink command for shipping.
  58549. + if test -n "$relink_command"; then
  58550. + # Preserve any variables that may affect compiler behavior
  58551. + for var in $variables_saved_for_relink; do
  58552. + if eval test -z \"\${$var+set}\"; then
  58553. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  58554. + elif eval var_value=\$$var; test -z "$var_value"; then
  58555. + relink_command="$var=; export $var; $relink_command"
  58556. else
  58557. - # Install the binary that we compiled earlier.
  58558. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  58559. + func_quote_for_eval "$var_value"
  58560. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  58561. fi
  58562. - fi
  58563. + done
  58564. + relink_command="(cd `pwd`; $relink_command)"
  58565. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58566. + fi
  58567. - # remove .exe since cygwin /usr/bin/install will append another
  58568. - # one anyway
  58569. - case $install_prog,$host in
  58570. - */usr/bin/install*,*cygwin*)
  58571. - case $file:$destfile in
  58572. - *.exe:*.exe)
  58573. - # this is ok
  58574. - ;;
  58575. - *.exe:*)
  58576. - destfile=$destfile.exe
  58577. - ;;
  58578. - *:*.exe)
  58579. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  58580. - ;;
  58581. - esac
  58582. - ;;
  58583. + # Quote $ECHO for shipping.
  58584. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  58585. + case $progpath in
  58586. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  58587. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  58588. + esac
  58589. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  58590. + else
  58591. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  58592. + fi
  58593. +
  58594. + # Only actually do things if not in dry run mode.
  58595. + $opt_dry_run || {
  58596. + # win32 will think the script is a binary if it has
  58597. + # a .exe suffix, so we strip it off here.
  58598. + case $output in
  58599. + *.exe) func_stripname '' '.exe' "$output"
  58600. + output=$func_stripname_result ;;
  58601. + esac
  58602. + # test for cygwin because mv fails w/o .exe extensions
  58603. + case $host in
  58604. + *cygwin*)
  58605. + exeext=.exe
  58606. + func_stripname '' '.exe' "$outputname"
  58607. + outputname=$func_stripname_result ;;
  58608. + *) exeext= ;;
  58609. esac
  58610. - $show "$install_prog$stripme $file $destfile"
  58611. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  58612. - test -n "$outputname" && ${rm}r "$tmpdir"
  58613. - ;;
  58614. - esac
  58615. - done
  58616. + case $host in
  58617. + *cygwin* | *mingw* )
  58618. + func_dirname_and_basename "$output" "" "."
  58619. + output_name=$func_basename_result
  58620. + output_path=$func_dirname_result
  58621. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  58622. + cwrapper="$output_path/$output_name.exe"
  58623. + $RM $cwrappersource $cwrapper
  58624. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  58625. +
  58626. + func_emit_cwrapperexe_src > $cwrappersource
  58627. +
  58628. + # The wrapper executable is built using the $host compiler,
  58629. + # because it contains $host paths and files. If cross-
  58630. + # compiling, it, like the target executable, must be
  58631. + # executed on the $host or under an emulation environment.
  58632. + $opt_dry_run || {
  58633. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  58634. + $STRIP $cwrapper
  58635. + }
  58636. - for file in $staticlibs; do
  58637. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58638. + # Now, create the wrapper script for func_source use:
  58639. + func_ltwrapper_scriptname $cwrapper
  58640. + $RM $func_ltwrapper_scriptname_result
  58641. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  58642. + $opt_dry_run || {
  58643. + # note: this script will not be executed, so do not chmod.
  58644. + if test "x$build" = "x$host" ; then
  58645. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  58646. + else
  58647. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  58648. + fi
  58649. + }
  58650. + ;;
  58651. + * )
  58652. + $RM $output
  58653. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  58654. - # Set up the ranlib parameters.
  58655. - oldlib="$destdir/$name"
  58656. + func_emit_wrapper no > $output
  58657. + chmod +x $output
  58658. + ;;
  58659. + esac
  58660. + }
  58661. + exit $EXIT_SUCCESS
  58662. + ;;
  58663. + esac
  58664. - $show "$install_prog $file $oldlib"
  58665. - $run eval "$install_prog \$file \$oldlib" || exit $?
  58666. + # See if we need to build an old-fashioned archive.
  58667. + for oldlib in $oldlibs; do
  58668. - if test -n "$stripme" && test -n "$old_striplib"; then
  58669. - $show "$old_striplib $oldlib"
  58670. - $run eval "$old_striplib $oldlib" || exit $?
  58671. + if test "$build_libtool_libs" = convenience; then
  58672. + oldobjs="$libobjs_save $symfileobj"
  58673. + addlibs="$convenience"
  58674. + build_libtool_libs=no
  58675. + else
  58676. + if test "$build_libtool_libs" = module; then
  58677. + oldobjs="$libobjs_save"
  58678. + build_libtool_libs=no
  58679. + else
  58680. + oldobjs="$old_deplibs $non_pic_objects"
  58681. + if test "$preload" = yes && test -f "$symfileobj"; then
  58682. + oldobjs="$oldobjs $symfileobj"
  58683. + fi
  58684. + fi
  58685. + addlibs="$old_convenience"
  58686. fi
  58687. - # Do each command in the postinstall commands.
  58688. - cmds=$old_postinstall_cmds
  58689. - save_ifs="$IFS"; IFS='~'
  58690. - for cmd in $cmds; do
  58691. - IFS="$save_ifs"
  58692. - eval cmd=\"$cmd\"
  58693. - $show "$cmd"
  58694. - $run eval "$cmd" || exit $?
  58695. - done
  58696. - IFS="$save_ifs"
  58697. - done
  58698. + if test -n "$addlibs"; then
  58699. + gentop="$output_objdir/${outputname}x"
  58700. + generated="$generated $gentop"
  58701. - if test -n "$future_libdirs"; then
  58702. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  58703. - fi
  58704. + func_extract_archives $gentop $addlibs
  58705. + oldobjs="$oldobjs $func_extract_archives_result"
  58706. + fi
  58707. - if test -n "$current_libdirs"; then
  58708. - # Maybe just do a dry run.
  58709. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  58710. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  58711. - else
  58712. - exit $EXIT_SUCCESS
  58713. - fi
  58714. - ;;
  58715. + # Do each command in the archive commands.
  58716. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  58717. + cmds=$old_archive_from_new_cmds
  58718. + else
  58719. - # libtool finish mode
  58720. - finish)
  58721. - modename="$modename: finish"
  58722. - libdirs="$nonopt"
  58723. - admincmds=
  58724. + # Add any objects from preloaded convenience libraries
  58725. + if test -n "$dlprefiles"; then
  58726. + gentop="$output_objdir/${outputname}x"
  58727. + generated="$generated $gentop"
  58728. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  58729. - for dir
  58730. - do
  58731. - libdirs="$libdirs $dir"
  58732. - done
  58733. + func_extract_archives $gentop $dlprefiles
  58734. + oldobjs="$oldobjs $func_extract_archives_result"
  58735. + fi
  58736. - for libdir in $libdirs; do
  58737. - if test -n "$finish_cmds"; then
  58738. - # Do each command in the finish commands.
  58739. - cmds=$finish_cmds
  58740. - save_ifs="$IFS"; IFS='~'
  58741. - for cmd in $cmds; do
  58742. - IFS="$save_ifs"
  58743. - eval cmd=\"$cmd\"
  58744. - $show "$cmd"
  58745. - $run eval "$cmd" || admincmds="$admincmds
  58746. - $cmd"
  58747. + # POSIX demands no paths to be encoded in archives. We have
  58748. + # to avoid creating archives with duplicate basenames if we
  58749. + # might have to extract them afterwards, e.g., when creating a
  58750. + # static archive out of a convenience library, or when linking
  58751. + # the entirety of a libtool archive into another (currently
  58752. + # not supported by libtool).
  58753. + if (for obj in $oldobjs
  58754. + do
  58755. + func_basename "$obj"
  58756. + $ECHO "$func_basename_result"
  58757. + done | sort | sort -uc >/dev/null 2>&1); then
  58758. + :
  58759. + else
  58760. + $ECHO "copying selected object files to avoid basename conflicts..."
  58761. + gentop="$output_objdir/${outputname}x"
  58762. + generated="$generated $gentop"
  58763. + func_mkdir_p "$gentop"
  58764. + save_oldobjs=$oldobjs
  58765. + oldobjs=
  58766. + counter=1
  58767. + for obj in $save_oldobjs
  58768. + do
  58769. + func_basename "$obj"
  58770. + objbase="$func_basename_result"
  58771. + case " $oldobjs " in
  58772. + " ") oldobjs=$obj ;;
  58773. + *[\ /]"$objbase "*)
  58774. + while :; do
  58775. + # Make sure we don't pick an alternate name that also
  58776. + # overlaps.
  58777. + newobj=lt$counter-$objbase
  58778. + func_arith $counter + 1
  58779. + counter=$func_arith_result
  58780. + case " $oldobjs " in
  58781. + *[\ /]"$newobj "*) ;;
  58782. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  58783. + esac
  58784. + done
  58785. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  58786. + oldobjs="$oldobjs $gentop/$newobj"
  58787. + ;;
  58788. + *) oldobjs="$oldobjs $obj" ;;
  58789. + esac
  58790. done
  58791. - IFS="$save_ifs"
  58792. - fi
  58793. - if test -n "$finish_eval"; then
  58794. - # Do the single finish_eval.
  58795. - eval cmds=\"$finish_eval\"
  58796. - $run eval "$cmds" || admincmds="$admincmds
  58797. - $cmds"
  58798. fi
  58799. - done
  58800. - fi
  58801. -
  58802. - # Exit here if they wanted silent mode.
  58803. - test "$show" = : && exit $EXIT_SUCCESS
  58804. + eval cmds=\"$old_archive_cmds\"
  58805. - $echo "X----------------------------------------------------------------------" | $Xsed
  58806. - $echo "Libraries have been installed in:"
  58807. - for libdir in $libdirs; do
  58808. - $echo " $libdir"
  58809. + func_len " $cmds"
  58810. + len=$func_len_result
  58811. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58812. + cmds=$old_archive_cmds
  58813. + else
  58814. + # the command line is too long to link in one step, link in parts
  58815. + func_verbose "using piecewise archive linking..."
  58816. + save_RANLIB=$RANLIB
  58817. + RANLIB=:
  58818. + objlist=
  58819. + concat_cmds=
  58820. + save_oldobjs=$oldobjs
  58821. + oldobjs=
  58822. + # Is there a better way of finding the last object in the list?
  58823. + for obj in $save_oldobjs
  58824. + do
  58825. + last_oldobj=$obj
  58826. + done
  58827. + eval test_cmds=\"$old_archive_cmds\"
  58828. + func_len " $test_cmds"
  58829. + len0=$func_len_result
  58830. + len=$len0
  58831. + for obj in $save_oldobjs
  58832. + do
  58833. + func_len " $obj"
  58834. + func_arith $len + $func_len_result
  58835. + len=$func_arith_result
  58836. + func_append objlist " $obj"
  58837. + if test "$len" -lt "$max_cmd_len"; then
  58838. + :
  58839. + else
  58840. + # the above command should be used before it gets too long
  58841. + oldobjs=$objlist
  58842. + if test "$obj" = "$last_oldobj" ; then
  58843. + RANLIB=$save_RANLIB
  58844. + fi
  58845. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58846. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  58847. + objlist=
  58848. + len=$len0
  58849. + fi
  58850. + done
  58851. + RANLIB=$save_RANLIB
  58852. + oldobjs=$objlist
  58853. + if test "X$oldobjs" = "X" ; then
  58854. + eval cmds=\"\$concat_cmds\"
  58855. + else
  58856. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  58857. + fi
  58858. + fi
  58859. + fi
  58860. + func_execute_cmds "$cmds" 'exit $?'
  58861. done
  58862. - $echo
  58863. - $echo "If you ever happen to want to link against installed libraries"
  58864. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  58865. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  58866. - $echo "flag during linking and do at least one of the following:"
  58867. - if test -n "$shlibpath_var"; then
  58868. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  58869. - $echo " during execution"
  58870. - fi
  58871. - if test -n "$runpath_var"; then
  58872. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  58873. - $echo " during linking"
  58874. - fi
  58875. - if test -n "$hardcode_libdir_flag_spec"; then
  58876. - libdir=LIBDIR
  58877. - eval flag=\"$hardcode_libdir_flag_spec\"
  58878. -
  58879. - $echo " - use the \`$flag' linker flag"
  58880. - fi
  58881. - if test -n "$admincmds"; then
  58882. - $echo " - have your system administrator run these commands:$admincmds"
  58883. - fi
  58884. - if test -f /etc/ld.so.conf; then
  58885. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  58886. - fi
  58887. - $echo
  58888. - $echo "See any operating system documentation about shared libraries for"
  58889. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  58890. - $echo "X----------------------------------------------------------------------" | $Xsed
  58891. - exit $EXIT_SUCCESS
  58892. - ;;
  58893. -
  58894. - # libtool execute mode
  58895. - execute)
  58896. - modename="$modename: execute"
  58897. - # The first argument is the command name.
  58898. - cmd="$nonopt"
  58899. - if test -z "$cmd"; then
  58900. - $echo "$modename: you must specify a COMMAND" 1>&2
  58901. - $echo "$help"
  58902. - exit $EXIT_FAILURE
  58903. - fi
  58904. + test -n "$generated" && \
  58905. + func_show_eval "${RM}r$generated"
  58906. - # Handle -dlopen flags immediately.
  58907. - for file in $execute_dlfiles; do
  58908. - if test ! -f "$file"; then
  58909. - $echo "$modename: \`$file' is not a file" 1>&2
  58910. - $echo "$help" 1>&2
  58911. - exit $EXIT_FAILURE
  58912. - fi
  58913. + # Now create the libtool archive.
  58914. + case $output in
  58915. + *.la)
  58916. + old_library=
  58917. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  58918. + func_verbose "creating $output"
  58919. - dir=
  58920. - case $file in
  58921. - *.la)
  58922. - # Check to see that this really is a libtool archive.
  58923. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  58924. + # Preserve any variables that may affect compiler behavior
  58925. + for var in $variables_saved_for_relink; do
  58926. + if eval test -z \"\${$var+set}\"; then
  58927. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  58928. + elif eval var_value=\$$var; test -z "$var_value"; then
  58929. + relink_command="$var=; export $var; $relink_command"
  58930. else
  58931. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  58932. - $echo "$help" 1>&2
  58933. - exit $EXIT_FAILURE
  58934. + func_quote_for_eval "$var_value"
  58935. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  58936. fi
  58937. + done
  58938. + # Quote the link command for shipping.
  58939. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  58940. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58941. + if test "$hardcode_automatic" = yes ; then
  58942. + relink_command=
  58943. + fi
  58944. - # Read the libtool library.
  58945. - dlname=
  58946. - library_names=
  58947. + # Only create the output if not a dry run.
  58948. + $opt_dry_run || {
  58949. + for installed in no yes; do
  58950. + if test "$installed" = yes; then
  58951. + if test -z "$install_libdir"; then
  58952. + break
  58953. + fi
  58954. + output="$output_objdir/$outputname"i
  58955. + # Replace all uninstalled libtool libraries with the installed ones
  58956. + newdependency_libs=
  58957. + for deplib in $dependency_libs; do
  58958. + case $deplib in
  58959. + *.la)
  58960. + func_basename "$deplib"
  58961. + name="$func_basename_result"
  58962. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  58963. + test -z "$libdir" && \
  58964. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  58965. + newdependency_libs="$newdependency_libs $libdir/$name"
  58966. + ;;
  58967. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  58968. + esac
  58969. + done
  58970. + dependency_libs="$newdependency_libs"
  58971. + newdlfiles=
  58972. +
  58973. + for lib in $dlfiles; do
  58974. + case $lib in
  58975. + *.la)
  58976. + func_basename "$lib"
  58977. + name="$func_basename_result"
  58978. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58979. + test -z "$libdir" && \
  58980. + func_fatal_error "\`$lib' is not a valid libtool archive"
  58981. + newdlfiles="$newdlfiles $libdir/$name"
  58982. + ;;
  58983. + *) newdlfiles="$newdlfiles $lib" ;;
  58984. + esac
  58985. + done
  58986. + dlfiles="$newdlfiles"
  58987. + newdlprefiles=
  58988. + for lib in $dlprefiles; do
  58989. + case $lib in
  58990. + *.la)
  58991. + # Only pass preopened files to the pseudo-archive (for
  58992. + # eventual linking with the app. that links it) if we
  58993. + # didn't already link the preopened objects directly into
  58994. + # the library:
  58995. + func_basename "$lib"
  58996. + name="$func_basename_result"
  58997. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58998. + test -z "$libdir" && \
  58999. + func_fatal_error "\`$lib' is not a valid libtool archive"
  59000. + newdlprefiles="$newdlprefiles $libdir/$name"
  59001. + ;;
  59002. + esac
  59003. + done
  59004. + dlprefiles="$newdlprefiles"
  59005. + else
  59006. + newdlfiles=
  59007. + for lib in $dlfiles; do
  59008. + case $lib in
  59009. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59010. + *) abs=`pwd`"/$lib" ;;
  59011. + esac
  59012. + newdlfiles="$newdlfiles $abs"
  59013. + done
  59014. + dlfiles="$newdlfiles"
  59015. + newdlprefiles=
  59016. + for lib in $dlprefiles; do
  59017. + case $lib in
  59018. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59019. + *) abs=`pwd`"/$lib" ;;
  59020. + esac
  59021. + newdlprefiles="$newdlprefiles $abs"
  59022. + done
  59023. + dlprefiles="$newdlprefiles"
  59024. + fi
  59025. + $RM $output
  59026. + # place dlname in correct position for cygwin
  59027. + tdlname=$dlname
  59028. + case $host,$output,$installed,$module,$dlname in
  59029. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  59030. + esac
  59031. + $ECHO > $output "\
  59032. +# $outputname - a libtool library file
  59033. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  59034. +#
  59035. +# Please DO NOT delete this file!
  59036. +# It is necessary for linking the library.
  59037. - # If there is no directory component, then add one.
  59038. - case $file in
  59039. - */* | *\\*) . $file ;;
  59040. - *) . ./$file ;;
  59041. - esac
  59042. +# The name that we can dlopen(3).
  59043. +dlname='$tdlname'
  59044. - # Skip this library if it cannot be dlopened.
  59045. - if test -z "$dlname"; then
  59046. - # Warn if it was a shared library.
  59047. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  59048. - continue
  59049. - fi
  59050. +# Names of this library.
  59051. +library_names='$library_names'
  59052. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  59053. - test "X$dir" = "X$file" && dir=.
  59054. +# The name of the static archive.
  59055. +old_library='$old_library'
  59056. - if test -f "$dir/$objdir/$dlname"; then
  59057. - dir="$dir/$objdir"
  59058. - else
  59059. - if test ! -f "$dir/$dlname"; then
  59060. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  59061. - exit $EXIT_FAILURE
  59062. - fi
  59063. - fi
  59064. - ;;
  59065. +# Linker flags that can not go in dependency_libs.
  59066. +inherited_linker_flags='$new_inherited_linker_flags'
  59067. - *.lo)
  59068. - # Just add the directory containing the .lo file.
  59069. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  59070. - test "X$dir" = "X$file" && dir=.
  59071. - ;;
  59072. +# Libraries that this one depends upon.
  59073. +dependency_libs='$dependency_libs'
  59074. - *)
  59075. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  59076. - continue
  59077. - ;;
  59078. - esac
  59079. +# Names of additional weak libraries provided by this library
  59080. +weak_library_names='$weak_libs'
  59081. - # Get the absolute pathname.
  59082. - absdir=`cd "$dir" && pwd`
  59083. - test -n "$absdir" && dir="$absdir"
  59084. +# Version information for $libname.
  59085. +current=$current
  59086. +age=$age
  59087. +revision=$revision
  59088. - # Now add the directory to shlibpath_var.
  59089. - if eval "test -z \"\$$shlibpath_var\""; then
  59090. - eval "$shlibpath_var=\"\$dir\""
  59091. - else
  59092. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  59093. - fi
  59094. - done
  59095. +# Is this an already installed library?
  59096. +installed=$installed
  59097. - # This variable tells wrapper scripts just to set shlibpath_var
  59098. - # rather than running their programs.
  59099. - libtool_execute_magic="$magic"
  59100. +# Should we warn about portability when linking against -modules?
  59101. +shouldnotlink=$module
  59102. - # Check if any of the arguments is a wrapper script.
  59103. - args=
  59104. - for file
  59105. - do
  59106. - case $file in
  59107. - -*) ;;
  59108. - *)
  59109. - # Do a test to see if this is really a libtool program.
  59110. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59111. - # If there is no directory component, then add one.
  59112. - case $file in
  59113. - */* | *\\*) . $file ;;
  59114. - *) . ./$file ;;
  59115. - esac
  59116. +# Files to dlopen/dlpreopen
  59117. +dlopen='$dlfiles'
  59118. +dlpreopen='$dlprefiles'
  59119. - # Transform arg to wrapped name.
  59120. - file="$progdir/$program"
  59121. - fi
  59122. - ;;
  59123. - esac
  59124. - # Quote arguments (to preserve shell metacharacters).
  59125. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  59126. - args="$args \"$file\""
  59127. - done
  59128. +# Directory that this library needs to be installed in:
  59129. +libdir='$install_libdir'"
  59130. + if test "$installed" = no && test "$need_relink" = yes; then
  59131. + $ECHO >> $output "\
  59132. +relink_command=\"$relink_command\""
  59133. + fi
  59134. + done
  59135. + }
  59136. - if test -z "$run"; then
  59137. - if test -n "$shlibpath_var"; then
  59138. - # Export the shlibpath_var.
  59139. - eval "export $shlibpath_var"
  59140. - fi
  59141. + # Do a symbolic link so that the libtool archive can be found in
  59142. + # LD_LIBRARY_PATH before the program is installed.
  59143. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  59144. + ;;
  59145. + esac
  59146. + exit $EXIT_SUCCESS
  59147. +}
  59148. - # Restore saved environment variables
  59149. - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  59150. - do
  59151. - eval "if test \"\${save_$lt_var+set}\" = set; then
  59152. - $lt_var=\$save_$lt_var; export $lt_var
  59153. - fi"
  59154. - done
  59155. +{ test "$mode" = link || test "$mode" = relink; } &&
  59156. + func_mode_link ${1+"$@"}
  59157. - # Now prepare to actually exec the command.
  59158. - exec_cmd="\$cmd$args"
  59159. - else
  59160. - # Display what would be done.
  59161. - if test -n "$shlibpath_var"; then
  59162. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  59163. - $echo "export $shlibpath_var"
  59164. - fi
  59165. - $echo "$cmd$args"
  59166. - exit $EXIT_SUCCESS
  59167. - fi
  59168. - ;;
  59169. - # libtool clean and uninstall mode
  59170. - clean | uninstall)
  59171. - modename="$modename: $mode"
  59172. - rm="$nonopt"
  59173. +# func_mode_uninstall arg...
  59174. +func_mode_uninstall ()
  59175. +{
  59176. + $opt_debug
  59177. + RM="$nonopt"
  59178. files=
  59179. rmforce=
  59180. exit_status=0
  59181. @@ -6539,30 +8209,28 @@
  59182. for arg
  59183. do
  59184. case $arg in
  59185. - -f) rm="$rm $arg"; rmforce=yes ;;
  59186. - -*) rm="$rm $arg" ;;
  59187. + -f) RM="$RM $arg"; rmforce=yes ;;
  59188. + -*) RM="$RM $arg" ;;
  59189. *) files="$files $arg" ;;
  59190. esac
  59191. done
  59192. - if test -z "$rm"; then
  59193. - $echo "$modename: you must specify an RM program" 1>&2
  59194. - $echo "$help" 1>&2
  59195. - exit $EXIT_FAILURE
  59196. - fi
  59197. + test -z "$RM" && \
  59198. + func_fatal_help "you must specify an RM program"
  59199. rmdirs=
  59200. origobjdir="$objdir"
  59201. for file in $files; do
  59202. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  59203. - if test "X$dir" = "X$file"; then
  59204. - dir=.
  59205. + func_dirname "$file" "" "."
  59206. + dir="$func_dirname_result"
  59207. + if test "X$dir" = X.; then
  59208. objdir="$origobjdir"
  59209. else
  59210. objdir="$dir/$origobjdir"
  59211. fi
  59212. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59213. + func_basename "$file"
  59214. + name="$func_basename_result"
  59215. test "$mode" = uninstall && objdir="$dir"
  59216. # Remember objdir for removal later, being careful to avoid duplicates
  59217. @@ -6574,9 +8242,9 @@
  59218. fi
  59219. # Don't error if the file doesn't exist and rm -f was used.
  59220. - if (test -L "$file") >/dev/null 2>&1 \
  59221. - || (test -h "$file") >/dev/null 2>&1 \
  59222. - || test -f "$file"; then
  59223. + if { test -L "$file"; } >/dev/null 2>&1 ||
  59224. + { test -h "$file"; } >/dev/null 2>&1 ||
  59225. + test -f "$file"; then
  59226. :
  59227. elif test -d "$file"; then
  59228. exit_status=1
  59229. @@ -6590,8 +8258,8 @@
  59230. case $name in
  59231. *.la)
  59232. # Possibly a libtool archive, so verify it.
  59233. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59234. - . $dir/$name
  59235. + if func_lalib_p "$file"; then
  59236. + func_source $dir/$name
  59237. # Delete the libtool libraries and symlinks.
  59238. for n in $library_names; do
  59239. @@ -6606,39 +8274,17 @@
  59240. *" $dlname "*) ;;
  59241. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  59242. esac
  59243. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  59244. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  59245. ;;
  59246. uninstall)
  59247. if test -n "$library_names"; then
  59248. # Do each command in the postuninstall commands.
  59249. - cmds=$postuninstall_cmds
  59250. - save_ifs="$IFS"; IFS='~'
  59251. - for cmd in $cmds; do
  59252. - IFS="$save_ifs"
  59253. - eval cmd=\"$cmd\"
  59254. - $show "$cmd"
  59255. - $run eval "$cmd"
  59256. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  59257. - exit_status=1
  59258. - fi
  59259. - done
  59260. - IFS="$save_ifs"
  59261. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  59262. fi
  59263. if test -n "$old_library"; then
  59264. # Do each command in the old_postuninstall commands.
  59265. - cmds=$old_postuninstall_cmds
  59266. - save_ifs="$IFS"; IFS='~'
  59267. - for cmd in $cmds; do
  59268. - IFS="$save_ifs"
  59269. - eval cmd=\"$cmd\"
  59270. - $show "$cmd"
  59271. - $run eval "$cmd"
  59272. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  59273. - exit_status=1
  59274. - fi
  59275. - done
  59276. - IFS="$save_ifs"
  59277. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  59278. fi
  59279. # FIXME: should reinstall the best remaining shared library.
  59280. ;;
  59281. @@ -6648,20 +8294,20 @@
  59282. *.lo)
  59283. # Possibly a libtool object, so verify it.
  59284. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59285. + if func_lalib_p "$file"; then
  59286. # Read the .lo file
  59287. - . $dir/$name
  59288. + func_source $dir/$name
  59289. # Add PIC object to the list of files to remove.
  59290. - if test -n "$pic_object" \
  59291. - && test "$pic_object" != none; then
  59292. + if test -n "$pic_object" &&
  59293. + test "$pic_object" != none; then
  59294. rmfiles="$rmfiles $dir/$pic_object"
  59295. fi
  59296. # Add non-PIC object to the list of files to remove.
  59297. - if test -n "$non_pic_object" \
  59298. - && test "$non_pic_object" != none; then
  59299. + if test -n "$non_pic_object" &&
  59300. + test "$non_pic_object" != none; then
  59301. rmfiles="$rmfiles $dir/$non_pic_object"
  59302. fi
  59303. fi
  59304. @@ -6672,17 +8318,26 @@
  59305. noexename=$name
  59306. case $file in
  59307. *.exe)
  59308. - file=`$echo $file|${SED} 's,.exe$,,'`
  59309. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  59310. + func_stripname '' '.exe' "$file"
  59311. + file=$func_stripname_result
  59312. + func_stripname '' '.exe' "$name"
  59313. + noexename=$func_stripname_result
  59314. # $file with .exe has already been added to rmfiles,
  59315. # add $file without .exe
  59316. rmfiles="$rmfiles $file"
  59317. ;;
  59318. esac
  59319. # Do a test to see if this is a libtool program.
  59320. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59321. - relink_command=
  59322. - . $dir/$noexename
  59323. + if func_ltwrapper_p "$file"; then
  59324. + if func_ltwrapper_executable_p "$file"; then
  59325. + func_ltwrapper_scriptname "$file"
  59326. + relink_command=
  59327. + func_source $func_ltwrapper_scriptname_result
  59328. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  59329. + else
  59330. + relink_command=
  59331. + func_source $dir/$noexename
  59332. + fi
  59333. # note $name still contains .exe if it was in $file originally
  59334. # as does the version of $file that was added into $rmfiles
  59335. @@ -6697,239 +8352,38 @@
  59336. fi
  59337. ;;
  59338. esac
  59339. - $show "$rm $rmfiles"
  59340. - $run $rm $rmfiles || exit_status=1
  59341. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  59342. done
  59343. objdir="$origobjdir"
  59344. # Try to remove the ${objdir}s in the directories where we deleted files
  59345. for dir in $rmdirs; do
  59346. if test -d "$dir"; then
  59347. - $show "rmdir $dir"
  59348. - $run rmdir $dir >/dev/null 2>&1
  59349. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  59350. fi
  59351. done
  59352. exit $exit_status
  59353. - ;;
  59354. +}
  59355. - "")
  59356. - $echo "$modename: you must specify a MODE" 1>&2
  59357. - $echo "$generic_help" 1>&2
  59358. - exit $EXIT_FAILURE
  59359. - ;;
  59360. - esac
  59361. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  59362. + func_mode_uninstall ${1+"$@"}
  59363. - if test -z "$exec_cmd"; then
  59364. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  59365. - $echo "$generic_help" 1>&2
  59366. - exit $EXIT_FAILURE
  59367. - fi
  59368. -fi # test -z "$show_help"
  59369. +test -z "$mode" && {
  59370. + help="$generic_help"
  59371. + func_fatal_help "you must specify a MODE"
  59372. +}
  59373. +
  59374. +test -z "$exec_cmd" && \
  59375. + func_fatal_help "invalid operation mode \`$mode'"
  59376. if test -n "$exec_cmd"; then
  59377. - eval exec $exec_cmd
  59378. + eval exec "$exec_cmd"
  59379. exit $EXIT_FAILURE
  59380. fi
  59381. -# We need to display help for each of the modes.
  59382. -case $mode in
  59383. -"") $echo \
  59384. -"Usage: $modename [OPTION]... [MODE-ARG]...
  59385. -
  59386. -Provide generalized library-building support services.
  59387. -
  59388. - --config show all configuration variables
  59389. - --debug enable verbose shell tracing
  59390. --n, --dry-run display commands without modifying any files
  59391. - --features display basic configuration information and exit
  59392. - --finish same as \`--mode=finish'
  59393. - --help display this help message and exit
  59394. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  59395. - --quiet same as \`--silent'
  59396. - --silent don't print informational messages
  59397. - --tag=TAG use configuration variables from tag TAG
  59398. - --version print version information
  59399. -
  59400. -MODE must be one of the following:
  59401. -
  59402. - clean remove files from the build directory
  59403. - compile compile a source file into a libtool object
  59404. - execute automatically set library path, then run a program
  59405. - finish complete the installation of libtool libraries
  59406. - install install libraries or executables
  59407. - link create a library or an executable
  59408. - uninstall remove libraries from an installed directory
  59409. -
  59410. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  59411. -a more detailed description of MODE.
  59412. -
  59413. -Report bugs to <bug-libtool@gnu.org>."
  59414. - exit $EXIT_SUCCESS
  59415. - ;;
  59416. -
  59417. -clean)
  59418. - $echo \
  59419. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  59420. -
  59421. -Remove files from the build directory.
  59422. -
  59423. -RM is the name of the program to use to delete files associated with each FILE
  59424. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  59425. -to RM.
  59426. -
  59427. -If FILE is a libtool library, object or program, all the files associated
  59428. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  59429. - ;;
  59430. -
  59431. -compile)
  59432. - $echo \
  59433. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  59434. -
  59435. -Compile a source file into a libtool library object.
  59436. -
  59437. -This mode accepts the following additional options:
  59438. -
  59439. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  59440. - -prefer-pic try to building PIC objects only
  59441. - -prefer-non-pic try to building non-PIC objects only
  59442. - -static always build a \`.o' file suitable for static linking
  59443. -
  59444. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  59445. -from the given SOURCEFILE.
  59446. -
  59447. -The output file name is determined by removing the directory component from
  59448. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  59449. -library object suffix, \`.lo'."
  59450. - ;;
  59451. -
  59452. -execute)
  59453. - $echo \
  59454. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  59455. -
  59456. -Automatically set library path, then run a program.
  59457. -
  59458. -This mode accepts the following additional options:
  59459. -
  59460. - -dlopen FILE add the directory containing FILE to the library path
  59461. -
  59462. -This mode sets the library path environment variable according to \`-dlopen'
  59463. -flags.
  59464. -
  59465. -If any of the ARGS are libtool executable wrappers, then they are translated
  59466. -into their corresponding uninstalled binary, and any of their required library
  59467. -directories are added to the library path.
  59468. -
  59469. -Then, COMMAND is executed, with ARGS as arguments."
  59470. - ;;
  59471. -
  59472. -finish)
  59473. - $echo \
  59474. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  59475. -
  59476. -Complete the installation of libtool libraries.
  59477. -
  59478. -Each LIBDIR is a directory that contains libtool libraries.
  59479. -
  59480. -The commands that this mode executes may require superuser privileges. Use
  59481. -the \`--dry-run' option if you just want to see what would be executed."
  59482. - ;;
  59483. -
  59484. -install)
  59485. - $echo \
  59486. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  59487. -
  59488. -Install executables or libraries.
  59489. -
  59490. -INSTALL-COMMAND is the installation command. The first component should be
  59491. -either the \`install' or \`cp' program.
  59492. -
  59493. -The rest of the components are interpreted as arguments to that command (only
  59494. -BSD-compatible install options are recognized)."
  59495. - ;;
  59496. -
  59497. -link)
  59498. - $echo \
  59499. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  59500. -
  59501. -Link object files or libraries together to form another library, or to
  59502. -create an executable program.
  59503. +exit $exit_status
  59504. -LINK-COMMAND is a command using the C compiler that you would use to create
  59505. -a program from several object files.
  59506. -
  59507. -The following components of LINK-COMMAND are treated specially:
  59508. -
  59509. - -all-static do not do any dynamic linking at all
  59510. - -avoid-version do not add a version suffix if possible
  59511. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  59512. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  59513. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  59514. - -export-symbols SYMFILE
  59515. - try to export only the symbols listed in SYMFILE
  59516. - -export-symbols-regex REGEX
  59517. - try to export only the symbols matching REGEX
  59518. - -LLIBDIR search LIBDIR for required installed libraries
  59519. - -lNAME OUTPUT-FILE requires the installed library libNAME
  59520. - -module build a library that can dlopened
  59521. - -no-fast-install disable the fast-install mode
  59522. - -no-install link a not-installable executable
  59523. - -no-undefined declare that a library does not refer to external symbols
  59524. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  59525. - -objectlist FILE Use a list of object files found in FILE to specify objects
  59526. - -precious-files-regex REGEX
  59527. - don't remove output files matching REGEX
  59528. - -release RELEASE specify package release information
  59529. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  59530. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  59531. - -static do not do any dynamic linking of uninstalled libtool libraries
  59532. - -static-libtool-libs
  59533. - do not do any dynamic linking of libtool libraries
  59534. - -version-info CURRENT[:REVISION[:AGE]]
  59535. - specify library version info [each variable defaults to 0]
  59536. -
  59537. -All other options (arguments beginning with \`-') are ignored.
  59538. -
  59539. -Every other argument is treated as a filename. Files ending in \`.la' are
  59540. -treated as uninstalled libtool libraries, other files are standard or library
  59541. -object files.
  59542. -
  59543. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  59544. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  59545. -required, except when creating a convenience library.
  59546. -
  59547. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  59548. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  59549. -
  59550. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  59551. -is created, otherwise an executable program is created."
  59552. - ;;
  59553. -
  59554. -uninstall)
  59555. - $echo \
  59556. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  59557. -
  59558. -Remove libraries from an installation directory.
  59559. -
  59560. -RM is the name of the program to use to delete files associated with each FILE
  59561. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  59562. -to RM.
  59563. -
  59564. -If FILE is a libtool library, all the files associated with it are deleted.
  59565. -Otherwise, only FILE itself is deleted using RM."
  59566. - ;;
  59567. -
  59568. -*)
  59569. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  59570. - $echo "$help" 1>&2
  59571. - exit $EXIT_FAILURE
  59572. - ;;
  59573. -esac
  59574. -
  59575. -$echo
  59576. -$echo "Try \`$modename --help' for more information about other modes."
  59577. -
  59578. -exit $?
  59579. # The TAGs below are defined such that we never get into a situation
  59580. # in which we disable both kinds of libraries. Given conflicting
  59581. @@ -6943,14 +8397,17 @@
  59582. # configuration. But we'll never go from static-only to shared-only.
  59583. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  59584. -disable_libs=shared
  59585. +build_libtool_libs=no
  59586. +build_old_libs=yes
  59587. # ### END LIBTOOL TAG CONFIG: disable-shared
  59588. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  59589. -disable_libs=static
  59590. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  59591. # ### END LIBTOOL TAG CONFIG: disable-static
  59592. # Local Variables:
  59593. # mode:shell-script
  59594. # sh-indentation:2
  59595. # End:
  59596. +# vi:sw=2
  59597. +
  59598. diff -Nur esound-0.2.41.orig/m4/libtool.m4 esound-0.2.41/m4/libtool.m4
  59599. --- esound-0.2.41.orig/m4/libtool.m4 1970-01-01 01:00:00.000000000 +0100
  59600. +++ esound-0.2.41/m4/libtool.m4 2011-02-24 20:04:59.557305485 +0100
  59601. @@ -0,0 +1,7377 @@
  59602. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  59603. +#
  59604. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  59605. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  59606. +# Written by Gordon Matzigkeit, 1996
  59607. +#
  59608. +# This file is free software; the Free Software Foundation gives
  59609. +# unlimited permission to copy and/or distribute it, with or without
  59610. +# modifications, as long as this notice is preserved.
  59611. +
  59612. +m4_define([_LT_COPYING], [dnl
  59613. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  59614. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  59615. +# Written by Gordon Matzigkeit, 1996
  59616. +#
  59617. +# This file is part of GNU Libtool.
  59618. +#
  59619. +# GNU Libtool is free software; you can redistribute it and/or
  59620. +# modify it under the terms of the GNU General Public License as
  59621. +# published by the Free Software Foundation; either version 2 of
  59622. +# the License, or (at your option) any later version.
  59623. +#
  59624. +# As a special exception to the GNU General Public License,
  59625. +# if you distribute this file as part of a program or library that
  59626. +# is built using GNU Libtool, you may include this file under the
  59627. +# same distribution terms that you use for the rest of that program.
  59628. +#
  59629. +# GNU Libtool is distributed in the hope that it will be useful,
  59630. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  59631. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  59632. +# GNU General Public License for more details.
  59633. +#
  59634. +# You should have received a copy of the GNU General Public License
  59635. +# along with GNU Libtool; see the file COPYING. If not, a copy
  59636. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  59637. +# obtained by writing to the Free Software Foundation, Inc.,
  59638. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  59639. +])
  59640. +
  59641. +# serial 56 LT_INIT
  59642. +
  59643. +
  59644. +# LT_PREREQ(VERSION)
  59645. +# ------------------
  59646. +# Complain and exit if this libtool version is less that VERSION.
  59647. +m4_defun([LT_PREREQ],
  59648. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  59649. + [m4_default([$3],
  59650. + [m4_fatal([Libtool version $1 or higher is required],
  59651. + 63)])],
  59652. + [$2])])
  59653. +
  59654. +
  59655. +# _LT_CHECK_BUILDDIR
  59656. +# ------------------
  59657. +# Complain if the absolute build directory name contains unusual characters
  59658. +m4_defun([_LT_CHECK_BUILDDIR],
  59659. +[case `pwd` in
  59660. + *\ * | *\ *)
  59661. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  59662. +esac
  59663. +])
  59664. +
  59665. +
  59666. +# LT_INIT([OPTIONS])
  59667. +# ------------------
  59668. +AC_DEFUN([LT_INIT],
  59669. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  59670. +AC_BEFORE([$0], [LT_LANG])dnl
  59671. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  59672. +AC_BEFORE([$0], [LTDL_INIT])dnl
  59673. +m4_require([_LT_CHECK_BUILDDIR])dnl
  59674. +
  59675. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  59676. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  59677. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  59678. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  59679. +dnl unless we require an AC_DEFUNed macro:
  59680. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  59681. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  59682. +AC_REQUIRE([LTVERSION_VERSION])dnl
  59683. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  59684. +m4_require([_LT_PROG_LTMAIN])dnl
  59685. +
  59686. +dnl Parse OPTIONS
  59687. +_LT_SET_OPTIONS([$0], [$1])
  59688. +
  59689. +# This can be used to rebuild libtool when needed
  59690. +LIBTOOL_DEPS="$ltmain"
  59691. +
  59692. +# Always use our own libtool.
  59693. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  59694. +AC_SUBST(LIBTOOL)dnl
  59695. +
  59696. +_LT_SETUP
  59697. +
  59698. +# Only expand once:
  59699. +m4_define([LT_INIT])
  59700. +])# LT_INIT
  59701. +
  59702. +# Old names:
  59703. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  59704. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  59705. +dnl aclocal-1.4 backwards compatibility:
  59706. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  59707. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  59708. +
  59709. +
  59710. +# _LT_CC_BASENAME(CC)
  59711. +# -------------------
  59712. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  59713. +m4_defun([_LT_CC_BASENAME],
  59714. +[for cc_temp in $1""; do
  59715. + case $cc_temp in
  59716. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  59717. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  59718. + \-*) ;;
  59719. + *) break;;
  59720. + esac
  59721. +done
  59722. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  59723. +])
  59724. +
  59725. +
  59726. +# _LT_FILEUTILS_DEFAULTS
  59727. +# ----------------------
  59728. +# It is okay to use these file commands and assume they have been set
  59729. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  59730. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  59731. +[: ${CP="cp -f"}
  59732. +: ${MV="mv -f"}
  59733. +: ${RM="rm -f"}
  59734. +])# _LT_FILEUTILS_DEFAULTS
  59735. +
  59736. +
  59737. +# _LT_SETUP
  59738. +# ---------
  59739. +m4_defun([_LT_SETUP],
  59740. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  59741. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  59742. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  59743. +_LT_DECL([], [host], [0])dnl
  59744. +_LT_DECL([], [host_os], [0])dnl
  59745. +dnl
  59746. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  59747. +_LT_DECL([], [build], [0])dnl
  59748. +_LT_DECL([], [build_os], [0])dnl
  59749. +dnl
  59750. +AC_REQUIRE([AC_PROG_CC])dnl
  59751. +AC_REQUIRE([LT_PATH_LD])dnl
  59752. +AC_REQUIRE([LT_PATH_NM])dnl
  59753. +dnl
  59754. +AC_REQUIRE([AC_PROG_LN_S])dnl
  59755. +test -z "$LN_S" && LN_S="ln -s"
  59756. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  59757. +dnl
  59758. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  59759. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  59760. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  59761. +dnl
  59762. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  59763. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  59764. +m4_require([_LT_CMD_RELOAD])dnl
  59765. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  59766. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  59767. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  59768. +
  59769. +_LT_CONFIG_LIBTOOL_INIT([
  59770. +# See if we are running on zsh, and set the options which allow our
  59771. +# commands through without removal of \ escapes INIT.
  59772. +if test -n "\${ZSH_VERSION+set}" ; then
  59773. + setopt NO_GLOB_SUBST
  59774. +fi
  59775. +])
  59776. +if test -n "${ZSH_VERSION+set}" ; then
  59777. + setopt NO_GLOB_SUBST
  59778. +fi
  59779. +
  59780. +_LT_CHECK_OBJDIR
  59781. +
  59782. +m4_require([_LT_TAG_COMPILER])dnl
  59783. +_LT_PROG_ECHO_BACKSLASH
  59784. +
  59785. +case $host_os in
  59786. +aix3*)
  59787. + # AIX sometimes has problems with the GCC collect2 program. For some
  59788. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  59789. + # vanish in a puff of smoke.
  59790. + if test "X${COLLECT_NAMES+set}" != Xset; then
  59791. + COLLECT_NAMES=
  59792. + export COLLECT_NAMES
  59793. + fi
  59794. + ;;
  59795. +esac
  59796. +
  59797. +# Sed substitution that helps us do robust quoting. It backslashifies
  59798. +# metacharacters that are still active within double-quoted strings.
  59799. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  59800. +
  59801. +# Same as above, but do not quote variable references.
  59802. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  59803. +
  59804. +# Sed substitution to delay expansion of an escaped shell variable in a
  59805. +# double_quote_subst'ed string.
  59806. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  59807. +
  59808. +# Sed substitution to delay expansion of an escaped single quote.
  59809. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  59810. +
  59811. +# Sed substitution to avoid accidental globbing in evaled expressions
  59812. +no_glob_subst='s/\*/\\\*/g'
  59813. +
  59814. +# Global variables:
  59815. +ofile=libtool
  59816. +can_build_shared=yes
  59817. +
  59818. +# All known linkers require a `.a' archive for static linking (except MSVC,
  59819. +# which needs '.lib').
  59820. +libext=a
  59821. +
  59822. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  59823. +
  59824. +old_CC="$CC"
  59825. +old_CFLAGS="$CFLAGS"
  59826. +
  59827. +# Set sane defaults for various variables
  59828. +test -z "$CC" && CC=cc
  59829. +test -z "$LTCC" && LTCC=$CC
  59830. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  59831. +test -z "$LD" && LD=ld
  59832. +test -z "$ac_objext" && ac_objext=o
  59833. +
  59834. +_LT_CC_BASENAME([$compiler])
  59835. +
  59836. +# Only perform the check for file, if the check method requires it
  59837. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  59838. +case $deplibs_check_method in
  59839. +file_magic*)
  59840. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  59841. + _LT_PATH_MAGIC
  59842. + fi
  59843. + ;;
  59844. +esac
  59845. +
  59846. +# Use C for the default configuration in the libtool script
  59847. +LT_SUPPORTED_TAG([CC])
  59848. +_LT_LANG_C_CONFIG
  59849. +_LT_LANG_DEFAULT_CONFIG
  59850. +_LT_CONFIG_COMMANDS
  59851. +])# _LT_SETUP
  59852. +
  59853. +
  59854. +# _LT_PROG_LTMAIN
  59855. +# ---------------
  59856. +# Note that this code is called both from `configure', and `config.status'
  59857. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  59858. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  59859. +# so we pass a copy along to make sure it has a sensible value anyway.
  59860. +m4_defun([_LT_PROG_LTMAIN],
  59861. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  59862. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  59863. +ltmain="$ac_aux_dir/ltmain.sh"
  59864. +])# _LT_PROG_LTMAIN
  59865. +
  59866. +
  59867. +## ------------------------------------- ##
  59868. +## Accumulate code for creating libtool. ##
  59869. +## ------------------------------------- ##
  59870. +
  59871. +# So that we can recreate a full libtool script including additional
  59872. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  59873. +# in macros and then make a single call at the end using the `libtool'
  59874. +# label.
  59875. +
  59876. +
  59877. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  59878. +# ----------------------------------------
  59879. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  59880. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  59881. +[m4_ifval([$1],
  59882. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  59883. + [$1
  59884. +])])])
  59885. +
  59886. +# Initialize.
  59887. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  59888. +
  59889. +
  59890. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  59891. +# ------------------------------
  59892. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  59893. +m4_define([_LT_CONFIG_LIBTOOL],
  59894. +[m4_ifval([$1],
  59895. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  59896. + [$1
  59897. +])])])
  59898. +
  59899. +# Initialize.
  59900. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  59901. +
  59902. +
  59903. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  59904. +# -----------------------------------------------------
  59905. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  59906. +[_LT_CONFIG_LIBTOOL([$1])
  59907. +_LT_CONFIG_LIBTOOL_INIT([$2])
  59908. +])
  59909. +
  59910. +
  59911. +# _LT_FORMAT_COMMENT([COMMENT])
  59912. +# -----------------------------
  59913. +# Add leading comment marks to the start of each line, and a trailing
  59914. +# full-stop to the whole comment if one is not present already.
  59915. +m4_define([_LT_FORMAT_COMMENT],
  59916. +[m4_ifval([$1], [
  59917. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  59918. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  59919. +)])
  59920. +
  59921. +
  59922. +
  59923. +## ------------------------ ##
  59924. +## FIXME: Eliminate VARNAME ##
  59925. +## ------------------------ ##
  59926. +
  59927. +
  59928. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  59929. +# -------------------------------------------------------------------
  59930. +# CONFIGNAME is the name given to the value in the libtool script.
  59931. +# VARNAME is the (base) name used in the configure script.
  59932. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  59933. +# VARNAME. Any other value will be used directly.
  59934. +m4_define([_LT_DECL],
  59935. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  59936. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  59937. + [m4_ifval([$1], [$1], [$2])])
  59938. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  59939. + m4_ifval([$4],
  59940. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  59941. + lt_dict_add_subkey([lt_decl_dict], [$2],
  59942. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  59943. +])
  59944. +
  59945. +
  59946. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  59947. +# --------------------------------------------------------
  59948. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  59949. +
  59950. +
  59951. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  59952. +# ------------------------------------------------
  59953. +m4_define([lt_decl_tag_varnames],
  59954. +[_lt_decl_filter([tagged?], [yes], $@)])
  59955. +
  59956. +
  59957. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  59958. +# ---------------------------------------------------------
  59959. +m4_define([_lt_decl_filter],
  59960. +[m4_case([$#],
  59961. + [0], [m4_fatal([$0: too few arguments: $#])],
  59962. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  59963. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  59964. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  59965. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  59966. +])
  59967. +
  59968. +
  59969. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  59970. +# --------------------------------------------------
  59971. +m4_define([lt_decl_quote_varnames],
  59972. +[_lt_decl_filter([value], [1], $@)])
  59973. +
  59974. +
  59975. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  59976. +# ---------------------------------------------------
  59977. +m4_define([lt_decl_dquote_varnames],
  59978. +[_lt_decl_filter([value], [2], $@)])
  59979. +
  59980. +
  59981. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  59982. +# ---------------------------------------------------
  59983. +m4_define([lt_decl_varnames_tagged],
  59984. +[m4_assert([$# <= 2])dnl
  59985. +_$0(m4_quote(m4_default([$1], [[, ]])),
  59986. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  59987. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  59988. +m4_define([_lt_decl_varnames_tagged],
  59989. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  59990. +
  59991. +
  59992. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  59993. +# ------------------------------------------------
  59994. +m4_define([lt_decl_all_varnames],
  59995. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  59996. + m4_if([$2], [],
  59997. + m4_quote(lt_decl_varnames),
  59998. + m4_quote(m4_shift($@))))[]dnl
  59999. +])
  60000. +m4_define([_lt_decl_all_varnames],
  60001. +[lt_join($@, lt_decl_varnames_tagged([$1],
  60002. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  60003. +])
  60004. +
  60005. +
  60006. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  60007. +# ------------------------------------
  60008. +# Quote a variable value, and forward it to `config.status' so that its
  60009. +# declaration there will have the same value as in `configure'. VARNAME
  60010. +# must have a single quote delimited value for this to work.
  60011. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  60012. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  60013. +
  60014. +
  60015. +# _LT_CONFIG_STATUS_DECLARATIONS
  60016. +# ------------------------------
  60017. +# We delimit libtool config variables with single quotes, so when
  60018. +# we write them to config.status, we have to be sure to quote all
  60019. +# embedded single quotes properly. In configure, this macro expands
  60020. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  60021. +#
  60022. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  60023. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  60024. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  60025. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  60026. +
  60027. +
  60028. +# _LT_LIBTOOL_TAGS
  60029. +# ----------------
  60030. +# Output comment and list of tags supported by the script
  60031. +m4_defun([_LT_LIBTOOL_TAGS],
  60032. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  60033. +available_tags="_LT_TAGS"dnl
  60034. +])
  60035. +
  60036. +
  60037. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  60038. +# -----------------------------------
  60039. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  60040. +# expand to a commented shell variable setting:
  60041. +#
  60042. +# # Some comment about what VAR is for.
  60043. +# visible_name=$lt_internal_name
  60044. +m4_define([_LT_LIBTOOL_DECLARE],
  60045. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  60046. + [description])))[]dnl
  60047. +m4_pushdef([_libtool_name],
  60048. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  60049. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  60050. + [0], [_libtool_name=[$]$1],
  60051. + [1], [_libtool_name=$lt_[]$1],
  60052. + [2], [_libtool_name=$lt_[]$1],
  60053. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  60054. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  60055. +])
  60056. +
  60057. +
  60058. +# _LT_LIBTOOL_CONFIG_VARS
  60059. +# -----------------------
  60060. +# Produce commented declarations of non-tagged libtool config variables
  60061. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  60062. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  60063. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  60064. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  60065. +[m4_foreach([_lt_var],
  60066. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  60067. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  60068. +
  60069. +
  60070. +# _LT_LIBTOOL_TAG_VARS(TAG)
  60071. +# -------------------------
  60072. +m4_define([_LT_LIBTOOL_TAG_VARS],
  60073. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  60074. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  60075. +
  60076. +
  60077. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  60078. +# ------------------------------
  60079. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  60080. +
  60081. +
  60082. +# _LT_CONFIG_COMMANDS
  60083. +# -------------------
  60084. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  60085. +# variables for single and double quote escaping we saved from calls
  60086. +# to _LT_DECL, we can put quote escaped variables declarations
  60087. +# into `config.status', and then the shell code to quote escape them in
  60088. +# for loops in `config.status'. Finally, any additional code accumulated
  60089. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  60090. +m4_defun([_LT_CONFIG_COMMANDS],
  60091. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  60092. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  60093. + dnl instead of duplicating it all over again into config.status,
  60094. + dnl then we will have config.status run $CONFIG_LT later, so it
  60095. + dnl needs to know what name is stored there:
  60096. + [AC_CONFIG_COMMANDS([libtool],
  60097. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  60098. + dnl If the libtool generation code is destined for config.status,
  60099. + dnl expand the accumulated commands and init code now:
  60100. + [AC_CONFIG_COMMANDS([libtool],
  60101. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  60102. +])#_LT_CONFIG_COMMANDS
  60103. +
  60104. +
  60105. +# Initialize.
  60106. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  60107. +[
  60108. +
  60109. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  60110. +# if CDPATH is set.
  60111. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  60112. +
  60113. +sed_quote_subst='$sed_quote_subst'
  60114. +double_quote_subst='$double_quote_subst'
  60115. +delay_variable_subst='$delay_variable_subst'
  60116. +_LT_CONFIG_STATUS_DECLARATIONS
  60117. +LTCC='$LTCC'
  60118. +LTCFLAGS='$LTCFLAGS'
  60119. +compiler='$compiler_DEFAULT'
  60120. +
  60121. +# Quote evaled strings.
  60122. +for var in lt_decl_all_varnames([[ \
  60123. +]], lt_decl_quote_varnames); do
  60124. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  60125. + *[[\\\\\\\`\\"\\\$]]*)
  60126. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  60127. + ;;
  60128. + *)
  60129. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  60130. + ;;
  60131. + esac
  60132. +done
  60133. +
  60134. +# Double-quote double-evaled strings.
  60135. +for var in lt_decl_all_varnames([[ \
  60136. +]], lt_decl_dquote_varnames); do
  60137. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  60138. + *[[\\\\\\\`\\"\\\$]]*)
  60139. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  60140. + ;;
  60141. + *)
  60142. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  60143. + ;;
  60144. + esac
  60145. +done
  60146. +
  60147. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  60148. +case \$lt_ECHO in
  60149. +*'\\\[$]0 --fallback-echo"')dnl "
  60150. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  60151. + ;;
  60152. +esac
  60153. +
  60154. +_LT_OUTPUT_LIBTOOL_INIT
  60155. +])
  60156. +
  60157. +
  60158. +# LT_OUTPUT
  60159. +# ---------
  60160. +# This macro allows early generation of the libtool script (before
  60161. +# AC_OUTPUT is called), incase it is used in configure for compilation
  60162. +# tests.
  60163. +AC_DEFUN([LT_OUTPUT],
  60164. +[: ${CONFIG_LT=./config.lt}
  60165. +AC_MSG_NOTICE([creating $CONFIG_LT])
  60166. +cat >"$CONFIG_LT" <<_LTEOF
  60167. +#! $SHELL
  60168. +# Generated by $as_me.
  60169. +# Run this file to recreate a libtool stub with the current configuration.
  60170. +
  60171. +lt_cl_silent=false
  60172. +SHELL=\${CONFIG_SHELL-$SHELL}
  60173. +_LTEOF
  60174. +
  60175. +cat >>"$CONFIG_LT" <<\_LTEOF
  60176. +AS_SHELL_SANITIZE
  60177. +_AS_PREPARE
  60178. +
  60179. +exec AS_MESSAGE_FD>&1
  60180. +exec AS_MESSAGE_LOG_FD>>config.log
  60181. +{
  60182. + echo
  60183. + AS_BOX([Running $as_me.])
  60184. +} >&AS_MESSAGE_LOG_FD
  60185. +
  60186. +lt_cl_help="\
  60187. +\`$as_me' creates a local libtool stub from the current configuration,
  60188. +for use in further configure time tests before the real libtool is
  60189. +generated.
  60190. +
  60191. +Usage: $[0] [[OPTIONS]]
  60192. +
  60193. + -h, --help print this help, then exit
  60194. + -V, --version print version number, then exit
  60195. + -q, --quiet do not print progress messages
  60196. + -d, --debug don't remove temporary files
  60197. +
  60198. +Report bugs to <bug-libtool@gnu.org>."
  60199. +
  60200. +lt_cl_version="\
  60201. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  60202. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  60203. +configured by $[0], generated by m4_PACKAGE_STRING.
  60204. +
  60205. +Copyright (C) 2008 Free Software Foundation, Inc.
  60206. +This config.lt script is free software; the Free Software Foundation
  60207. +gives unlimited permision to copy, distribute and modify it."
  60208. +
  60209. +while test $[#] != 0
  60210. +do
  60211. + case $[1] in
  60212. + --version | --v* | -V )
  60213. + echo "$lt_cl_version"; exit 0 ;;
  60214. + --help | --h* | -h )
  60215. + echo "$lt_cl_help"; exit 0 ;;
  60216. + --debug | --d* | -d )
  60217. + debug=: ;;
  60218. + --quiet | --q* | --silent | --s* | -q )
  60219. + lt_cl_silent=: ;;
  60220. +
  60221. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  60222. +Try \`$[0] --help' for more information.]) ;;
  60223. +
  60224. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  60225. +Try \`$[0] --help' for more information.]) ;;
  60226. + esac
  60227. + shift
  60228. +done
  60229. +
  60230. +if $lt_cl_silent; then
  60231. + exec AS_MESSAGE_FD>/dev/null
  60232. +fi
  60233. +_LTEOF
  60234. +
  60235. +cat >>"$CONFIG_LT" <<_LTEOF
  60236. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  60237. +_LTEOF
  60238. +
  60239. +cat >>"$CONFIG_LT" <<\_LTEOF
  60240. +AC_MSG_NOTICE([creating $ofile])
  60241. +_LT_OUTPUT_LIBTOOL_COMMANDS
  60242. +AS_EXIT(0)
  60243. +_LTEOF
  60244. +chmod +x "$CONFIG_LT"
  60245. +
  60246. +# configure is writing to config.log, but config.lt does its own redirection,
  60247. +# appending to config.log, which fails on DOS, as config.log is still kept
  60248. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  60249. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  60250. +if test "$no_create" != yes; then
  60251. + lt_cl_success=:
  60252. + test "$silent" = yes &&
  60253. + lt_config_lt_args="$lt_config_lt_args --quiet"
  60254. + exec AS_MESSAGE_LOG_FD>/dev/null
  60255. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  60256. + exec AS_MESSAGE_LOG_FD>>config.log
  60257. + $lt_cl_success || AS_EXIT(1)
  60258. +fi
  60259. +])# LT_OUTPUT
  60260. +
  60261. +
  60262. +# _LT_CONFIG(TAG)
  60263. +# ---------------
  60264. +# If TAG is the built-in tag, create an initial libtool script with a
  60265. +# default configuration from the untagged config vars. Otherwise add code
  60266. +# to config.status for appending the configuration named by TAG from the
  60267. +# matching tagged config vars.
  60268. +m4_defun([_LT_CONFIG],
  60269. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  60270. +_LT_CONFIG_SAVE_COMMANDS([
  60271. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  60272. + m4_if(_LT_TAG, [C], [
  60273. + # See if we are running on zsh, and set the options which allow our
  60274. + # commands through without removal of \ escapes.
  60275. + if test -n "${ZSH_VERSION+set}" ; then
  60276. + setopt NO_GLOB_SUBST
  60277. + fi
  60278. +
  60279. + cfgfile="${ofile}T"
  60280. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  60281. + $RM "$cfgfile"
  60282. +
  60283. + cat <<_LT_EOF >> "$cfgfile"
  60284. +#! $SHELL
  60285. +
  60286. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  60287. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  60288. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  60289. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  60290. +#
  60291. +_LT_COPYING
  60292. +_LT_LIBTOOL_TAGS
  60293. +
  60294. +# ### BEGIN LIBTOOL CONFIG
  60295. +_LT_LIBTOOL_CONFIG_VARS
  60296. +_LT_LIBTOOL_TAG_VARS
  60297. +# ### END LIBTOOL CONFIG
  60298. +
  60299. +_LT_EOF
  60300. +
  60301. + case $host_os in
  60302. + aix3*)
  60303. + cat <<\_LT_EOF >> "$cfgfile"
  60304. +# AIX sometimes has problems with the GCC collect2 program. For some
  60305. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  60306. +# vanish in a puff of smoke.
  60307. +if test "X${COLLECT_NAMES+set}" != Xset; then
  60308. + COLLECT_NAMES=
  60309. + export COLLECT_NAMES
  60310. +fi
  60311. +_LT_EOF
  60312. + ;;
  60313. + esac
  60314. +
  60315. + _LT_PROG_LTMAIN
  60316. +
  60317. + # We use sed instead of cat because bash on DJGPP gets confused if
  60318. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  60319. + # text mode, it properly converts lines to CR/LF. This bash problem
  60320. + # is reportedly fixed, but why not run on old versions too?
  60321. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  60322. + || (rm -f "$cfgfile"; exit 1)
  60323. +
  60324. + _LT_PROG_XSI_SHELLFNS
  60325. +
  60326. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  60327. + || (rm -f "$cfgfile"; exit 1)
  60328. +
  60329. + mv -f "$cfgfile" "$ofile" ||
  60330. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  60331. + chmod +x "$ofile"
  60332. +],
  60333. +[cat <<_LT_EOF >> "$ofile"
  60334. +
  60335. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  60336. +dnl in a comment (ie after a #).
  60337. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  60338. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  60339. +# ### END LIBTOOL TAG CONFIG: $1
  60340. +_LT_EOF
  60341. +])dnl /m4_if
  60342. +],
  60343. +[m4_if([$1], [], [
  60344. + PACKAGE='$PACKAGE'
  60345. + VERSION='$VERSION'
  60346. + TIMESTAMP='$TIMESTAMP'
  60347. + RM='$RM'
  60348. + ofile='$ofile'], [])
  60349. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  60350. +])# _LT_CONFIG
  60351. +
  60352. +
  60353. +# LT_SUPPORTED_TAG(TAG)
  60354. +# ---------------------
  60355. +# Trace this macro to discover what tags are supported by the libtool
  60356. +# --tag option, using:
  60357. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  60358. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  60359. +
  60360. +
  60361. +# C support is built-in for now
  60362. +m4_define([_LT_LANG_C_enabled], [])
  60363. +m4_define([_LT_TAGS], [])
  60364. +
  60365. +
  60366. +# LT_LANG(LANG)
  60367. +# -------------
  60368. +# Enable libtool support for the given language if not already enabled.
  60369. +AC_DEFUN([LT_LANG],
  60370. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  60371. +m4_case([$1],
  60372. + [C], [_LT_LANG(C)],
  60373. + [C++], [_LT_LANG(CXX)],
  60374. + [Java], [_LT_LANG(GCJ)],
  60375. + [Fortran 77], [_LT_LANG(F77)],
  60376. + [Fortran], [_LT_LANG(FC)],
  60377. + [Windows Resource], [_LT_LANG(RC)],
  60378. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  60379. + [_LT_LANG($1)],
  60380. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  60381. +])# LT_LANG
  60382. +
  60383. +
  60384. +# _LT_LANG(LANGNAME)
  60385. +# ------------------
  60386. +m4_defun([_LT_LANG],
  60387. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  60388. + [LT_SUPPORTED_TAG([$1])dnl
  60389. + m4_append([_LT_TAGS], [$1 ])dnl
  60390. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  60391. + _LT_LANG_$1_CONFIG($1)])dnl
  60392. +])# _LT_LANG
  60393. +
  60394. +
  60395. +# _LT_LANG_DEFAULT_CONFIG
  60396. +# -----------------------
  60397. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  60398. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  60399. + [LT_LANG(CXX)],
  60400. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  60401. +
  60402. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  60403. + [LT_LANG(F77)],
  60404. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  60405. +
  60406. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  60407. + [LT_LANG(FC)],
  60408. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  60409. +
  60410. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  60411. +dnl pulling things in needlessly.
  60412. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  60413. + [LT_LANG(GCJ)],
  60414. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  60415. + [LT_LANG(GCJ)],
  60416. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  60417. + [LT_LANG(GCJ)],
  60418. + [m4_ifdef([AC_PROG_GCJ],
  60419. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  60420. + m4_ifdef([A][M_PROG_GCJ],
  60421. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  60422. + m4_ifdef([LT_PROG_GCJ],
  60423. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  60424. +
  60425. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  60426. + [LT_LANG(RC)],
  60427. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  60428. +])# _LT_LANG_DEFAULT_CONFIG
  60429. +
  60430. +# Obsolete macros:
  60431. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  60432. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  60433. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  60434. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  60435. +dnl aclocal-1.4 backwards compatibility:
  60436. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  60437. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  60438. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  60439. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  60440. +
  60441. +
  60442. +# _LT_TAG_COMPILER
  60443. +# ----------------
  60444. +m4_defun([_LT_TAG_COMPILER],
  60445. +[AC_REQUIRE([AC_PROG_CC])dnl
  60446. +
  60447. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  60448. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  60449. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  60450. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  60451. +
  60452. +# If no C compiler was specified, use CC.
  60453. +LTCC=${LTCC-"$CC"}
  60454. +
  60455. +# If no C compiler flags were specified, use CFLAGS.
  60456. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  60457. +
  60458. +# Allow CC to be a program name with arguments.
  60459. +compiler=$CC
  60460. +])# _LT_TAG_COMPILER
  60461. +
  60462. +
  60463. +# _LT_COMPILER_BOILERPLATE
  60464. +# ------------------------
  60465. +# Check for compiler boilerplate output or warnings with
  60466. +# the simple compiler test code.
  60467. +m4_defun([_LT_COMPILER_BOILERPLATE],
  60468. +[m4_require([_LT_DECL_SED])dnl
  60469. +ac_outfile=conftest.$ac_objext
  60470. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  60471. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  60472. +_lt_compiler_boilerplate=`cat conftest.err`
  60473. +$RM conftest*
  60474. +])# _LT_COMPILER_BOILERPLATE
  60475. +
  60476. +
  60477. +# _LT_LINKER_BOILERPLATE
  60478. +# ----------------------
  60479. +# Check for linker boilerplate output or warnings with
  60480. +# the simple link test code.
  60481. +m4_defun([_LT_LINKER_BOILERPLATE],
  60482. +[m4_require([_LT_DECL_SED])dnl
  60483. +ac_outfile=conftest.$ac_objext
  60484. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  60485. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  60486. +_lt_linker_boilerplate=`cat conftest.err`
  60487. +$RM -r conftest*
  60488. +])# _LT_LINKER_BOILERPLATE
  60489. +
  60490. +# _LT_REQUIRED_DARWIN_CHECKS
  60491. +# -------------------------
  60492. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  60493. + case $host_os in
  60494. + rhapsody* | darwin*)
  60495. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  60496. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  60497. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  60498. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  60499. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  60500. + _LT_DECL([], [DSYMUTIL], [1],
  60501. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  60502. + _LT_DECL([], [NMEDIT], [1],
  60503. + [Tool to change global to local symbols on Mac OS X])
  60504. + _LT_DECL([], [LIPO], [1],
  60505. + [Tool to manipulate fat objects and archives on Mac OS X])
  60506. + _LT_DECL([], [OTOOL], [1],
  60507. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  60508. + _LT_DECL([], [OTOOL64], [1],
  60509. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  60510. +
  60511. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  60512. + [lt_cv_apple_cc_single_mod=no
  60513. + if test -z "${LT_MULTI_MODULE}"; then
  60514. + # By default we will add the -single_module flag. You can override
  60515. + # by either setting the environment variable LT_MULTI_MODULE
  60516. + # non-empty at configure time, or by adding -multi_module to the
  60517. + # link flags.
  60518. + rm -rf libconftest.dylib*
  60519. + echo "int foo(void){return 1;}" > conftest.c
  60520. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  60521. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  60522. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  60523. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  60524. + _lt_result=$?
  60525. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  60526. + lt_cv_apple_cc_single_mod=yes
  60527. + else
  60528. + cat conftest.err >&AS_MESSAGE_LOG_FD
  60529. + fi
  60530. + rm -rf libconftest.dylib*
  60531. + rm -f conftest.*
  60532. + fi])
  60533. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  60534. + [lt_cv_ld_exported_symbols_list],
  60535. + [lt_cv_ld_exported_symbols_list=no
  60536. + save_LDFLAGS=$LDFLAGS
  60537. + echo "_main" > conftest.sym
  60538. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  60539. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  60540. + [lt_cv_ld_exported_symbols_list=yes],
  60541. + [lt_cv_ld_exported_symbols_list=no])
  60542. + LDFLAGS="$save_LDFLAGS"
  60543. + ])
  60544. + case $host_os in
  60545. + rhapsody* | darwin1.[[012]])
  60546. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  60547. + darwin1.*)
  60548. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  60549. + darwin*) # darwin 5.x on
  60550. + # if running on 10.5 or later, the deployment target defaults
  60551. + # to the OS version, if on x86, and 10.4, the deployment
  60552. + # target defaults to 10.4. Don't you love it?
  60553. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  60554. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  60555. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  60556. + 10.[[012]]*)
  60557. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  60558. + 10.*)
  60559. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  60560. + esac
  60561. + ;;
  60562. + esac
  60563. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  60564. + _lt_dar_single_mod='$single_module'
  60565. + fi
  60566. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  60567. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  60568. + else
  60569. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  60570. + fi
  60571. + if test "$DSYMUTIL" != ":"; then
  60572. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  60573. + else
  60574. + _lt_dsymutil=
  60575. + fi
  60576. + ;;
  60577. + esac
  60578. +])
  60579. +
  60580. +
  60581. +# _LT_DARWIN_LINKER_FEATURES
  60582. +# --------------------------
  60583. +# Checks for linker and compiler features on darwin
  60584. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  60585. +[
  60586. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  60587. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  60588. + _LT_TAGVAR(hardcode_direct, $1)=no
  60589. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  60590. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  60591. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  60592. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  60593. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  60594. + case $cc_basename in
  60595. + ifort*) _lt_dar_can_shared=yes ;;
  60596. + *) _lt_dar_can_shared=$GCC ;;
  60597. + esac
  60598. + if test "$_lt_dar_can_shared" = "yes"; then
  60599. + output_verbose_link_cmd=echo
  60600. + _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}"
  60601. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  60602. + _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}"
  60603. + _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}"
  60604. + m4_if([$1], [CXX],
  60605. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  60606. + _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}"
  60607. + _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}"
  60608. + fi
  60609. +],[])
  60610. + else
  60611. + _LT_TAGVAR(ld_shlibs, $1)=no
  60612. + fi
  60613. +])
  60614. +
  60615. +# _LT_SYS_MODULE_PATH_AIX
  60616. +# -----------------------
  60617. +# Links a minimal program and checks the executable
  60618. +# for the system default hardcoded library path. In most cases,
  60619. +# this is /usr/lib:/lib, but when the MPI compilers are used
  60620. +# the location of the communication and MPI libs are included too.
  60621. +# If we don't find anything, use the default library path according
  60622. +# to the aix ld manual.
  60623. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  60624. +[m4_require([_LT_DECL_SED])dnl
  60625. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  60626. +lt_aix_libpath_sed='
  60627. + /Import File Strings/,/^$/ {
  60628. + /^0/ {
  60629. + s/^0 *\(.*\)$/\1/
  60630. + p
  60631. + }
  60632. + }'
  60633. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  60634. +# Check for a 64-bit object if we didn't find anything.
  60635. +if test -z "$aix_libpath"; then
  60636. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  60637. +fi],[])
  60638. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  60639. +])# _LT_SYS_MODULE_PATH_AIX
  60640. +
  60641. +
  60642. +# _LT_SHELL_INIT(ARG)
  60643. +# -------------------
  60644. +m4_define([_LT_SHELL_INIT],
  60645. +[ifdef([AC_DIVERSION_NOTICE],
  60646. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  60647. + [AC_DIVERT_PUSH(NOTICE)])
  60648. +$1
  60649. +AC_DIVERT_POP
  60650. +])# _LT_SHELL_INIT
  60651. +
  60652. +
  60653. +# _LT_PROG_ECHO_BACKSLASH
  60654. +# -----------------------
  60655. +# Add some code to the start of the generated configure script which
  60656. +# will find an echo command which doesn't interpret backslashes.
  60657. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  60658. +[_LT_SHELL_INIT([
  60659. +# Check that we are running under the correct shell.
  60660. +SHELL=${CONFIG_SHELL-/bin/sh}
  60661. +
  60662. +case X$lt_ECHO in
  60663. +X*--fallback-echo)
  60664. + # Remove one level of quotation (which was required for Make).
  60665. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  60666. + ;;
  60667. +esac
  60668. +
  60669. +ECHO=${lt_ECHO-echo}
  60670. +if test "X[$]1" = X--no-reexec; then
  60671. + # Discard the --no-reexec flag, and continue.
  60672. + shift
  60673. +elif test "X[$]1" = X--fallback-echo; then
  60674. + # Avoid inline document here, it may be left over
  60675. + :
  60676. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  60677. + # Yippee, $ECHO works!
  60678. + :
  60679. +else
  60680. + # Restart under the correct shell.
  60681. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  60682. +fi
  60683. +
  60684. +if test "X[$]1" = X--fallback-echo; then
  60685. + # used as fallback echo
  60686. + shift
  60687. + cat <<_LT_EOF
  60688. +[$]*
  60689. +_LT_EOF
  60690. + exit 0
  60691. +fi
  60692. +
  60693. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  60694. +# if CDPATH is set.
  60695. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  60696. +
  60697. +if test -z "$lt_ECHO"; then
  60698. + if test "X${echo_test_string+set}" != Xset; then
  60699. + # find a string as large as possible, as long as the shell can cope with it
  60700. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  60701. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  60702. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  60703. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  60704. + then
  60705. + break
  60706. + fi
  60707. + done
  60708. + fi
  60709. +
  60710. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  60711. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  60712. + test "X$echo_testing_string" = "X$echo_test_string"; then
  60713. + :
  60714. + else
  60715. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  60716. + # backslashes. This makes it impossible to quote backslashes using
  60717. + # echo "$something" | sed 's/\\/\\\\/g'
  60718. + #
  60719. + # So, first we look for a working echo in the user's PATH.
  60720. +
  60721. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  60722. + for dir in $PATH /usr/ucb; do
  60723. + IFS="$lt_save_ifs"
  60724. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  60725. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  60726. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  60727. + test "X$echo_testing_string" = "X$echo_test_string"; then
  60728. + ECHO="$dir/echo"
  60729. + break
  60730. + fi
  60731. + done
  60732. + IFS="$lt_save_ifs"
  60733. +
  60734. + if test "X$ECHO" = Xecho; then
  60735. + # We didn't find a better echo, so look for alternatives.
  60736. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  60737. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  60738. + test "X$echo_testing_string" = "X$echo_test_string"; then
  60739. + # This shell has a builtin print -r that does the trick.
  60740. + ECHO='print -r'
  60741. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  60742. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  60743. + # If we have ksh, try running configure again with it.
  60744. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  60745. + export ORIGINAL_CONFIG_SHELL
  60746. + CONFIG_SHELL=/bin/ksh
  60747. + export CONFIG_SHELL
  60748. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  60749. + else
  60750. + # Try using printf.
  60751. + ECHO='printf %s\n'
  60752. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  60753. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  60754. + test "X$echo_testing_string" = "X$echo_test_string"; then
  60755. + # Cool, printf works
  60756. + :
  60757. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  60758. + test "X$echo_testing_string" = 'X\t' &&
  60759. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  60760. + test "X$echo_testing_string" = "X$echo_test_string"; then
  60761. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  60762. + export CONFIG_SHELL
  60763. + SHELL="$CONFIG_SHELL"
  60764. + export SHELL
  60765. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  60766. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  60767. + test "X$echo_testing_string" = 'X\t' &&
  60768. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  60769. + test "X$echo_testing_string" = "X$echo_test_string"; then
  60770. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  60771. + else
  60772. + # maybe with a smaller string...
  60773. + prev=:
  60774. +
  60775. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  60776. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  60777. + then
  60778. + break
  60779. + fi
  60780. + prev="$cmd"
  60781. + done
  60782. +
  60783. + if test "$prev" != 'sed 50q "[$]0"'; then
  60784. + echo_test_string=`eval $prev`
  60785. + export echo_test_string
  60786. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  60787. + else
  60788. + # Oops. We lost completely, so just stick with echo.
  60789. + ECHO=echo
  60790. + fi
  60791. + fi
  60792. + fi
  60793. + fi
  60794. + fi
  60795. +fi
  60796. +
  60797. +# Copy echo and quote the copy suitably for passing to libtool from
  60798. +# the Makefile, instead of quoting the original, which is used later.
  60799. +lt_ECHO=$ECHO
  60800. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  60801. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  60802. +fi
  60803. +
  60804. +AC_SUBST(lt_ECHO)
  60805. +])
  60806. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  60807. +_LT_DECL([], [ECHO], [1],
  60808. + [An echo program that does not interpret backslashes])
  60809. +])# _LT_PROG_ECHO_BACKSLASH
  60810. +
  60811. +
  60812. +# _LT_ENABLE_LOCK
  60813. +# ---------------
  60814. +m4_defun([_LT_ENABLE_LOCK],
  60815. +[AC_ARG_ENABLE([libtool-lock],
  60816. + [AS_HELP_STRING([--disable-libtool-lock],
  60817. + [avoid locking (might break parallel builds)])])
  60818. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  60819. +
  60820. +# Some flags need to be propagated to the compiler or linker for good
  60821. +# libtool support.
  60822. +case $host in
  60823. +ia64-*-hpux*)
  60824. + # Find out which ABI we are using.
  60825. + echo 'int i;' > conftest.$ac_ext
  60826. + if AC_TRY_EVAL(ac_compile); then
  60827. + case `/usr/bin/file conftest.$ac_objext` in
  60828. + *ELF-32*)
  60829. + HPUX_IA64_MODE="32"
  60830. + ;;
  60831. + *ELF-64*)
  60832. + HPUX_IA64_MODE="64"
  60833. + ;;
  60834. + esac
  60835. + fi
  60836. + rm -rf conftest*
  60837. + ;;
  60838. +*-*-irix6*)
  60839. + # Find out which ABI we are using.
  60840. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  60841. + if AC_TRY_EVAL(ac_compile); then
  60842. + if test "$lt_cv_prog_gnu_ld" = yes; then
  60843. + case `/usr/bin/file conftest.$ac_objext` in
  60844. + *32-bit*)
  60845. + LD="${LD-ld} -melf32bsmip"
  60846. + ;;
  60847. + *N32*)
  60848. + LD="${LD-ld} -melf32bmipn32"
  60849. + ;;
  60850. + *64-bit*)
  60851. + LD="${LD-ld} -melf64bmip"
  60852. + ;;
  60853. + esac
  60854. + else
  60855. + case `/usr/bin/file conftest.$ac_objext` in
  60856. + *32-bit*)
  60857. + LD="${LD-ld} -32"
  60858. + ;;
  60859. + *N32*)
  60860. + LD="${LD-ld} -n32"
  60861. + ;;
  60862. + *64-bit*)
  60863. + LD="${LD-ld} -64"
  60864. + ;;
  60865. + esac
  60866. + fi
  60867. + fi
  60868. + rm -rf conftest*
  60869. + ;;
  60870. +
  60871. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  60872. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  60873. + # Find out which ABI we are using.
  60874. + echo 'int i;' > conftest.$ac_ext
  60875. + if AC_TRY_EVAL(ac_compile); then
  60876. + case `/usr/bin/file conftest.o` in
  60877. + *32-bit*)
  60878. + case $host in
  60879. + x86_64-*kfreebsd*-gnu)
  60880. + LD="${LD-ld} -m elf_i386_fbsd"
  60881. + ;;
  60882. + x86_64-*linux*)
  60883. + LD="${LD-ld} -m elf_i386"
  60884. + ;;
  60885. + ppc64-*linux*|powerpc64-*linux*)
  60886. + LD="${LD-ld} -m elf32ppclinux"
  60887. + ;;
  60888. + s390x-*linux*)
  60889. + LD="${LD-ld} -m elf_s390"
  60890. + ;;
  60891. + sparc64-*linux*)
  60892. + LD="${LD-ld} -m elf32_sparc"
  60893. + ;;
  60894. + esac
  60895. + ;;
  60896. + *64-bit*)
  60897. + case $host in
  60898. + x86_64-*kfreebsd*-gnu)
  60899. + LD="${LD-ld} -m elf_x86_64_fbsd"
  60900. + ;;
  60901. + x86_64-*linux*)
  60902. + LD="${LD-ld} -m elf_x86_64"
  60903. + ;;
  60904. + ppc*-*linux*|powerpc*-*linux*)
  60905. + LD="${LD-ld} -m elf64ppc"
  60906. + ;;
  60907. + s390*-*linux*|s390*-*tpf*)
  60908. + LD="${LD-ld} -m elf64_s390"
  60909. + ;;
  60910. + sparc*-*linux*)
  60911. + LD="${LD-ld} -m elf64_sparc"
  60912. + ;;
  60913. + esac
  60914. + ;;
  60915. + esac
  60916. + fi
  60917. + rm -rf conftest*
  60918. + ;;
  60919. +
  60920. +*-*-sco3.2v5*)
  60921. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  60922. + SAVE_CFLAGS="$CFLAGS"
  60923. + CFLAGS="$CFLAGS -belf"
  60924. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  60925. + [AC_LANG_PUSH(C)
  60926. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  60927. + AC_LANG_POP])
  60928. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  60929. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  60930. + CFLAGS="$SAVE_CFLAGS"
  60931. + fi
  60932. + ;;
  60933. +sparc*-*solaris*)
  60934. + # Find out which ABI we are using.
  60935. + echo 'int i;' > conftest.$ac_ext
  60936. + if AC_TRY_EVAL(ac_compile); then
  60937. + case `/usr/bin/file conftest.o` in
  60938. + *64-bit*)
  60939. + case $lt_cv_prog_gnu_ld in
  60940. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  60941. + *)
  60942. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  60943. + LD="${LD-ld} -64"
  60944. + fi
  60945. + ;;
  60946. + esac
  60947. + ;;
  60948. + esac
  60949. + fi
  60950. + rm -rf conftest*
  60951. + ;;
  60952. +esac
  60953. +
  60954. +need_locks="$enable_libtool_lock"
  60955. +])# _LT_ENABLE_LOCK
  60956. +
  60957. +
  60958. +# _LT_CMD_OLD_ARCHIVE
  60959. +# -------------------
  60960. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  60961. +[AC_CHECK_TOOL(AR, ar, false)
  60962. +test -z "$AR" && AR=ar
  60963. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  60964. +_LT_DECL([], [AR], [1], [The archiver])
  60965. +_LT_DECL([], [AR_FLAGS], [1])
  60966. +
  60967. +AC_CHECK_TOOL(STRIP, strip, :)
  60968. +test -z "$STRIP" && STRIP=:
  60969. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  60970. +
  60971. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  60972. +test -z "$RANLIB" && RANLIB=:
  60973. +_LT_DECL([], [RANLIB], [1],
  60974. + [Commands used to install an old-style archive])
  60975. +
  60976. +# Determine commands to create old-style static archives.
  60977. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  60978. +old_postinstall_cmds='chmod 644 $oldlib'
  60979. +old_postuninstall_cmds=
  60980. +
  60981. +if test -n "$RANLIB"; then
  60982. + case $host_os in
  60983. + openbsd*)
  60984. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  60985. + ;;
  60986. + *)
  60987. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  60988. + ;;
  60989. + esac
  60990. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  60991. +fi
  60992. +_LT_DECL([], [old_postinstall_cmds], [2])
  60993. +_LT_DECL([], [old_postuninstall_cmds], [2])
  60994. +_LT_TAGDECL([], [old_archive_cmds], [2],
  60995. + [Commands used to build an old-style archive])
  60996. +])# _LT_CMD_OLD_ARCHIVE
  60997. +
  60998. +
  60999. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  61000. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  61001. +# ----------------------------------------------------------------
  61002. +# Check whether the given compiler option works
  61003. +AC_DEFUN([_LT_COMPILER_OPTION],
  61004. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61005. +m4_require([_LT_DECL_SED])dnl
  61006. +AC_CACHE_CHECK([$1], [$2],
  61007. + [$2=no
  61008. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  61009. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  61010. + lt_compiler_flag="$3"
  61011. + # Insert the option either (1) after the last *FLAGS variable, or
  61012. + # (2) before a word containing "conftest.", or (3) at the end.
  61013. + # Note that $ac_compile itself does not contain backslashes and begins
  61014. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  61015. + # The option is referenced via a variable to avoid confusing sed.
  61016. + lt_compile=`echo "$ac_compile" | $SED \
  61017. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  61018. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  61019. + -e 's:$: $lt_compiler_flag:'`
  61020. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  61021. + (eval "$lt_compile" 2>conftest.err)
  61022. + ac_status=$?
  61023. + cat conftest.err >&AS_MESSAGE_LOG_FD
  61024. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  61025. + if (exit $ac_status) && test -s "$ac_outfile"; then
  61026. + # The compiler can only warn and ignore the option if not recognized
  61027. + # So say no if there are warnings other than the usual output.
  61028. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  61029. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  61030. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  61031. + $2=yes
  61032. + fi
  61033. + fi
  61034. + $RM conftest*
  61035. +])
  61036. +
  61037. +if test x"[$]$2" = xyes; then
  61038. + m4_if([$5], , :, [$5])
  61039. +else
  61040. + m4_if([$6], , :, [$6])
  61041. +fi
  61042. +])# _LT_COMPILER_OPTION
  61043. +
  61044. +# Old name:
  61045. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  61046. +dnl aclocal-1.4 backwards compatibility:
  61047. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  61048. +
  61049. +
  61050. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  61051. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  61052. +# ----------------------------------------------------
  61053. +# Check whether the given linker option works
  61054. +AC_DEFUN([_LT_LINKER_OPTION],
  61055. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61056. +m4_require([_LT_DECL_SED])dnl
  61057. +AC_CACHE_CHECK([$1], [$2],
  61058. + [$2=no
  61059. + save_LDFLAGS="$LDFLAGS"
  61060. + LDFLAGS="$LDFLAGS $3"
  61061. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  61062. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  61063. + # The linker can only warn and ignore the option if not recognized
  61064. + # So say no if there are warnings
  61065. + if test -s conftest.err; then
  61066. + # Append any errors to the config.log.
  61067. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  61068. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  61069. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  61070. + if diff conftest.exp conftest.er2 >/dev/null; then
  61071. + $2=yes
  61072. + fi
  61073. + else
  61074. + $2=yes
  61075. + fi
  61076. + fi
  61077. + $RM -r conftest*
  61078. + LDFLAGS="$save_LDFLAGS"
  61079. +])
  61080. +
  61081. +if test x"[$]$2" = xyes; then
  61082. + m4_if([$4], , :, [$4])
  61083. +else
  61084. + m4_if([$5], , :, [$5])
  61085. +fi
  61086. +])# _LT_LINKER_OPTION
  61087. +
  61088. +# Old name:
  61089. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  61090. +dnl aclocal-1.4 backwards compatibility:
  61091. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  61092. +
  61093. +
  61094. +# LT_CMD_MAX_LEN
  61095. +#---------------
  61096. +AC_DEFUN([LT_CMD_MAX_LEN],
  61097. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  61098. +# find the maximum length of command line arguments
  61099. +AC_MSG_CHECKING([the maximum length of command line arguments])
  61100. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  61101. + i=0
  61102. + teststring="ABCD"
  61103. +
  61104. + case $build_os in
  61105. + msdosdjgpp*)
  61106. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  61107. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  61108. + # during glob expansion). Even if it were fixed, the result of this
  61109. + # check would be larger than it should be.
  61110. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  61111. + ;;
  61112. +
  61113. + gnu*)
  61114. + # Under GNU Hurd, this test is not required because there is
  61115. + # no limit to the length of command line arguments.
  61116. + # Libtool will interpret -1 as no limit whatsoever
  61117. + lt_cv_sys_max_cmd_len=-1;
  61118. + ;;
  61119. +
  61120. + cygwin* | mingw* | cegcc*)
  61121. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  61122. + # about 5 minutes as the teststring grows exponentially.
  61123. + # Worse, since 9x/ME are not pre-emptively multitasking,
  61124. + # you end up with a "frozen" computer, even though with patience
  61125. + # the test eventually succeeds (with a max line length of 256k).
  61126. + # Instead, let's just punt: use the minimum linelength reported by
  61127. + # all of the supported platforms: 8192 (on NT/2K/XP).
  61128. + lt_cv_sys_max_cmd_len=8192;
  61129. + ;;
  61130. +
  61131. + amigaos*)
  61132. + # On AmigaOS with pdksh, this test takes hours, literally.
  61133. + # So we just punt and use a minimum line length of 8192.
  61134. + lt_cv_sys_max_cmd_len=8192;
  61135. + ;;
  61136. +
  61137. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  61138. + # This has been around since 386BSD, at least. Likely further.
  61139. + if test -x /sbin/sysctl; then
  61140. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  61141. + elif test -x /usr/sbin/sysctl; then
  61142. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  61143. + else
  61144. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  61145. + fi
  61146. + # And add a safety zone
  61147. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  61148. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  61149. + ;;
  61150. +
  61151. + interix*)
  61152. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  61153. + lt_cv_sys_max_cmd_len=196608
  61154. + ;;
  61155. +
  61156. + osf*)
  61157. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  61158. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  61159. + # nice to cause kernel panics so lets avoid the loop below.
  61160. + # First set a reasonable default.
  61161. + lt_cv_sys_max_cmd_len=16384
  61162. + #
  61163. + if test -x /sbin/sysconfig; then
  61164. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  61165. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  61166. + esac
  61167. + fi
  61168. + ;;
  61169. + sco3.2v5*)
  61170. + lt_cv_sys_max_cmd_len=102400
  61171. + ;;
  61172. + sysv5* | sco5v6* | sysv4.2uw2*)
  61173. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  61174. + if test -n "$kargmax"; then
  61175. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  61176. + else
  61177. + lt_cv_sys_max_cmd_len=32768
  61178. + fi
  61179. + ;;
  61180. + *)
  61181. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  61182. + if test -n "$lt_cv_sys_max_cmd_len"; then
  61183. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  61184. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  61185. + else
  61186. + # Make teststring a little bigger before we do anything with it.
  61187. + # a 1K string should be a reasonable start.
  61188. + for i in 1 2 3 4 5 6 7 8 ; do
  61189. + teststring=$teststring$teststring
  61190. + done
  61191. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  61192. + # If test is not a shell built-in, we'll probably end up computing a
  61193. + # maximum length that is only half of the actual maximum length, but
  61194. + # we can't tell.
  61195. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  61196. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  61197. + test $i != 17 # 1/2 MB should be enough
  61198. + do
  61199. + i=`expr $i + 1`
  61200. + teststring=$teststring$teststring
  61201. + done
  61202. + # Only check the string length outside the loop.
  61203. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  61204. + teststring=
  61205. + # Add a significant safety factor because C++ compilers can tack on
  61206. + # massive amounts of additional arguments before passing them to the
  61207. + # linker. It appears as though 1/2 is a usable value.
  61208. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  61209. + fi
  61210. + ;;
  61211. + esac
  61212. +])
  61213. +if test -n $lt_cv_sys_max_cmd_len ; then
  61214. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  61215. +else
  61216. + AC_MSG_RESULT(none)
  61217. +fi
  61218. +max_cmd_len=$lt_cv_sys_max_cmd_len
  61219. +_LT_DECL([], [max_cmd_len], [0],
  61220. + [What is the maximum length of a command?])
  61221. +])# LT_CMD_MAX_LEN
  61222. +
  61223. +# Old name:
  61224. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  61225. +dnl aclocal-1.4 backwards compatibility:
  61226. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  61227. +
  61228. +
  61229. +# _LT_HEADER_DLFCN
  61230. +# ----------------
  61231. +m4_defun([_LT_HEADER_DLFCN],
  61232. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  61233. +])# _LT_HEADER_DLFCN
  61234. +
  61235. +
  61236. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  61237. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  61238. +# ----------------------------------------------------------------
  61239. +m4_defun([_LT_TRY_DLOPEN_SELF],
  61240. +[m4_require([_LT_HEADER_DLFCN])dnl
  61241. +if test "$cross_compiling" = yes; then :
  61242. + [$4]
  61243. +else
  61244. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  61245. + lt_status=$lt_dlunknown
  61246. + cat > conftest.$ac_ext <<_LT_EOF
  61247. +[#line __oline__ "configure"
  61248. +#include "confdefs.h"
  61249. +
  61250. +#if HAVE_DLFCN_H
  61251. +#include <dlfcn.h>
  61252. +#endif
  61253. +
  61254. +#include <stdio.h>
  61255. +
  61256. +#ifdef RTLD_GLOBAL
  61257. +# define LT_DLGLOBAL RTLD_GLOBAL
  61258. +#else
  61259. +# ifdef DL_GLOBAL
  61260. +# define LT_DLGLOBAL DL_GLOBAL
  61261. +# else
  61262. +# define LT_DLGLOBAL 0
  61263. +# endif
  61264. +#endif
  61265. +
  61266. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  61267. + find out it does not work in some platform. */
  61268. +#ifndef LT_DLLAZY_OR_NOW
  61269. +# ifdef RTLD_LAZY
  61270. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  61271. +# else
  61272. +# ifdef DL_LAZY
  61273. +# define LT_DLLAZY_OR_NOW DL_LAZY
  61274. +# else
  61275. +# ifdef RTLD_NOW
  61276. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  61277. +# else
  61278. +# ifdef DL_NOW
  61279. +# define LT_DLLAZY_OR_NOW DL_NOW
  61280. +# else
  61281. +# define LT_DLLAZY_OR_NOW 0
  61282. +# endif
  61283. +# endif
  61284. +# endif
  61285. +# endif
  61286. +#endif
  61287. +
  61288. +void fnord() { int i=42;}
  61289. +int main ()
  61290. +{
  61291. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  61292. + int status = $lt_dlunknown;
  61293. +
  61294. + if (self)
  61295. + {
  61296. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  61297. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  61298. + /* dlclose (self); */
  61299. + }
  61300. + else
  61301. + puts (dlerror ());
  61302. +
  61303. + return status;
  61304. +}]
  61305. +_LT_EOF
  61306. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  61307. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  61308. + lt_status=$?
  61309. + case x$lt_status in
  61310. + x$lt_dlno_uscore) $1 ;;
  61311. + x$lt_dlneed_uscore) $2 ;;
  61312. + x$lt_dlunknown|x*) $3 ;;
  61313. + esac
  61314. + else :
  61315. + # compilation failed
  61316. + $3
  61317. + fi
  61318. +fi
  61319. +rm -fr conftest*
  61320. +])# _LT_TRY_DLOPEN_SELF
  61321. +
  61322. +
  61323. +# LT_SYS_DLOPEN_SELF
  61324. +# ------------------
  61325. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  61326. +[m4_require([_LT_HEADER_DLFCN])dnl
  61327. +if test "x$enable_dlopen" != xyes; then
  61328. + enable_dlopen=unknown
  61329. + enable_dlopen_self=unknown
  61330. + enable_dlopen_self_static=unknown
  61331. +else
  61332. + lt_cv_dlopen=no
  61333. + lt_cv_dlopen_libs=
  61334. +
  61335. + case $host_os in
  61336. + beos*)
  61337. + lt_cv_dlopen="load_add_on"
  61338. + lt_cv_dlopen_libs=
  61339. + lt_cv_dlopen_self=yes
  61340. + ;;
  61341. +
  61342. + mingw* | pw32* | cegcc*)
  61343. + lt_cv_dlopen="LoadLibrary"
  61344. + lt_cv_dlopen_libs=
  61345. + ;;
  61346. +
  61347. + cygwin*)
  61348. + lt_cv_dlopen="dlopen"
  61349. + lt_cv_dlopen_libs=
  61350. + ;;
  61351. +
  61352. + darwin*)
  61353. + # if libdl is installed we need to link against it
  61354. + AC_CHECK_LIB([dl], [dlopen],
  61355. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  61356. + lt_cv_dlopen="dyld"
  61357. + lt_cv_dlopen_libs=
  61358. + lt_cv_dlopen_self=yes
  61359. + ])
  61360. + ;;
  61361. +
  61362. + *)
  61363. + AC_CHECK_FUNC([shl_load],
  61364. + [lt_cv_dlopen="shl_load"],
  61365. + [AC_CHECK_LIB([dld], [shl_load],
  61366. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  61367. + [AC_CHECK_FUNC([dlopen],
  61368. + [lt_cv_dlopen="dlopen"],
  61369. + [AC_CHECK_LIB([dl], [dlopen],
  61370. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  61371. + [AC_CHECK_LIB([svld], [dlopen],
  61372. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  61373. + [AC_CHECK_LIB([dld], [dld_link],
  61374. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  61375. + ])
  61376. + ])
  61377. + ])
  61378. + ])
  61379. + ])
  61380. + ;;
  61381. + esac
  61382. +
  61383. + if test "x$lt_cv_dlopen" != xno; then
  61384. + enable_dlopen=yes
  61385. + else
  61386. + enable_dlopen=no
  61387. + fi
  61388. +
  61389. + case $lt_cv_dlopen in
  61390. + dlopen)
  61391. + save_CPPFLAGS="$CPPFLAGS"
  61392. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  61393. +
  61394. + save_LDFLAGS="$LDFLAGS"
  61395. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  61396. +
  61397. + save_LIBS="$LIBS"
  61398. + LIBS="$lt_cv_dlopen_libs $LIBS"
  61399. +
  61400. + AC_CACHE_CHECK([whether a program can dlopen itself],
  61401. + lt_cv_dlopen_self, [dnl
  61402. + _LT_TRY_DLOPEN_SELF(
  61403. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  61404. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  61405. + ])
  61406. +
  61407. + if test "x$lt_cv_dlopen_self" = xyes; then
  61408. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  61409. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  61410. + lt_cv_dlopen_self_static, [dnl
  61411. + _LT_TRY_DLOPEN_SELF(
  61412. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  61413. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  61414. + ])
  61415. + fi
  61416. +
  61417. + CPPFLAGS="$save_CPPFLAGS"
  61418. + LDFLAGS="$save_LDFLAGS"
  61419. + LIBS="$save_LIBS"
  61420. + ;;
  61421. + esac
  61422. +
  61423. + case $lt_cv_dlopen_self in
  61424. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  61425. + *) enable_dlopen_self=unknown ;;
  61426. + esac
  61427. +
  61428. + case $lt_cv_dlopen_self_static in
  61429. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  61430. + *) enable_dlopen_self_static=unknown ;;
  61431. + esac
  61432. +fi
  61433. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  61434. + [Whether dlopen is supported])
  61435. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  61436. + [Whether dlopen of programs is supported])
  61437. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  61438. + [Whether dlopen of statically linked programs is supported])
  61439. +])# LT_SYS_DLOPEN_SELF
  61440. +
  61441. +# Old name:
  61442. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  61443. +dnl aclocal-1.4 backwards compatibility:
  61444. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  61445. +
  61446. +
  61447. +# _LT_COMPILER_C_O([TAGNAME])
  61448. +# ---------------------------
  61449. +# Check to see if options -c and -o are simultaneously supported by compiler.
  61450. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  61451. +m4_defun([_LT_COMPILER_C_O],
  61452. +[m4_require([_LT_DECL_SED])dnl
  61453. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61454. +m4_require([_LT_TAG_COMPILER])dnl
  61455. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  61456. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  61457. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  61458. + $RM -r conftest 2>/dev/null
  61459. + mkdir conftest
  61460. + cd conftest
  61461. + mkdir out
  61462. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  61463. +
  61464. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  61465. + # Insert the option either (1) after the last *FLAGS variable, or
  61466. + # (2) before a word containing "conftest.", or (3) at the end.
  61467. + # Note that $ac_compile itself does not contain backslashes and begins
  61468. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  61469. + lt_compile=`echo "$ac_compile" | $SED \
  61470. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  61471. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  61472. + -e 's:$: $lt_compiler_flag:'`
  61473. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  61474. + (eval "$lt_compile" 2>out/conftest.err)
  61475. + ac_status=$?
  61476. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  61477. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  61478. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  61479. + then
  61480. + # The compiler can only warn and ignore the option if not recognized
  61481. + # So say no if there are warnings
  61482. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  61483. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  61484. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  61485. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  61486. + fi
  61487. + fi
  61488. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  61489. + $RM conftest*
  61490. + # SGI C++ compiler will create directory out/ii_files/ for
  61491. + # template instantiation
  61492. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  61493. + $RM out/* && rmdir out
  61494. + cd ..
  61495. + $RM -r conftest
  61496. + $RM conftest*
  61497. +])
  61498. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  61499. + [Does compiler simultaneously support -c and -o options?])
  61500. +])# _LT_COMPILER_C_O
  61501. +
  61502. +
  61503. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  61504. +# ----------------------------------
  61505. +# Check to see if we can do hard links to lock some files if needed
  61506. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  61507. +[m4_require([_LT_ENABLE_LOCK])dnl
  61508. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61509. +_LT_COMPILER_C_O([$1])
  61510. +
  61511. +hard_links="nottested"
  61512. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  61513. + # do not overwrite the value of need_locks provided by the user
  61514. + AC_MSG_CHECKING([if we can lock with hard links])
  61515. + hard_links=yes
  61516. + $RM conftest*
  61517. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  61518. + touch conftest.a
  61519. + ln conftest.a conftest.b 2>&5 || hard_links=no
  61520. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  61521. + AC_MSG_RESULT([$hard_links])
  61522. + if test "$hard_links" = no; then
  61523. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  61524. + need_locks=warn
  61525. + fi
  61526. +else
  61527. + need_locks=no
  61528. +fi
  61529. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  61530. +])# _LT_COMPILER_FILE_LOCKS
  61531. +
  61532. +
  61533. +# _LT_CHECK_OBJDIR
  61534. +# ----------------
  61535. +m4_defun([_LT_CHECK_OBJDIR],
  61536. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  61537. +[rm -f .libs 2>/dev/null
  61538. +mkdir .libs 2>/dev/null
  61539. +if test -d .libs; then
  61540. + lt_cv_objdir=.libs
  61541. +else
  61542. + # MS-DOS does not allow filenames that begin with a dot.
  61543. + lt_cv_objdir=_libs
  61544. +fi
  61545. +rmdir .libs 2>/dev/null])
  61546. +objdir=$lt_cv_objdir
  61547. +_LT_DECL([], [objdir], [0],
  61548. + [The name of the directory that contains temporary libtool files])dnl
  61549. +m4_pattern_allow([LT_OBJDIR])dnl
  61550. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  61551. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  61552. +])# _LT_CHECK_OBJDIR
  61553. +
  61554. +
  61555. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  61556. +# --------------------------------------
  61557. +# Check hardcoding attributes.
  61558. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  61559. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  61560. +_LT_TAGVAR(hardcode_action, $1)=
  61561. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  61562. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  61563. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  61564. +
  61565. + # We can hardcode non-existent directories.
  61566. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  61567. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  61568. + # have to relink, otherwise we might link with an installed library
  61569. + # when we should be linking with a yet-to-be-installed one
  61570. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  61571. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  61572. + # Linking always hardcodes the temporary library directory.
  61573. + _LT_TAGVAR(hardcode_action, $1)=relink
  61574. + else
  61575. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  61576. + _LT_TAGVAR(hardcode_action, $1)=immediate
  61577. + fi
  61578. +else
  61579. + # We cannot hardcode anything, or else we can only hardcode existing
  61580. + # directories.
  61581. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  61582. +fi
  61583. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  61584. +
  61585. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  61586. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  61587. + # Fast installation is not supported
  61588. + enable_fast_install=no
  61589. +elif test "$shlibpath_overrides_runpath" = yes ||
  61590. + test "$enable_shared" = no; then
  61591. + # Fast installation is not necessary
  61592. + enable_fast_install=needless
  61593. +fi
  61594. +_LT_TAGDECL([], [hardcode_action], [0],
  61595. + [How to hardcode a shared library path into an executable])
  61596. +])# _LT_LINKER_HARDCODE_LIBPATH
  61597. +
  61598. +
  61599. +# _LT_CMD_STRIPLIB
  61600. +# ----------------
  61601. +m4_defun([_LT_CMD_STRIPLIB],
  61602. +[m4_require([_LT_DECL_EGREP])
  61603. +striplib=
  61604. +old_striplib=
  61605. +AC_MSG_CHECKING([whether stripping libraries is possible])
  61606. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  61607. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  61608. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  61609. + AC_MSG_RESULT([yes])
  61610. +else
  61611. +# FIXME - insert some real tests, host_os isn't really good enough
  61612. + case $host_os in
  61613. + darwin*)
  61614. + if test -n "$STRIP" ; then
  61615. + striplib="$STRIP -x"
  61616. + old_striplib="$STRIP -S"
  61617. + AC_MSG_RESULT([yes])
  61618. + else
  61619. + AC_MSG_RESULT([no])
  61620. + fi
  61621. + ;;
  61622. + *)
  61623. + AC_MSG_RESULT([no])
  61624. + ;;
  61625. + esac
  61626. +fi
  61627. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  61628. +_LT_DECL([], [striplib], [1])
  61629. +])# _LT_CMD_STRIPLIB
  61630. +
  61631. +
  61632. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  61633. +# -----------------------------
  61634. +# PORTME Fill in your ld.so characteristics
  61635. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  61636. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  61637. +m4_require([_LT_DECL_EGREP])dnl
  61638. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61639. +m4_require([_LT_DECL_OBJDUMP])dnl
  61640. +m4_require([_LT_DECL_SED])dnl
  61641. +AC_MSG_CHECKING([dynamic linker characteristics])
  61642. +m4_if([$1],
  61643. + [], [
  61644. +if test "$GCC" = yes; then
  61645. + case $host_os in
  61646. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  61647. + *) lt_awk_arg="/^libraries:/" ;;
  61648. + esac
  61649. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  61650. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  61651. + # if the path contains ";" then we assume it to be the separator
  61652. + # otherwise default to the standard path separator (i.e. ":") - it is
  61653. + # assumed that no part of a normal pathname contains ";" but that should
  61654. + # okay in the real world where ";" in dirpaths is itself problematic.
  61655. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  61656. + else
  61657. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  61658. + fi
  61659. + # Ok, now we have the path, separated by spaces, we can step through it
  61660. + # and add multilib dir if necessary.
  61661. + lt_tmp_lt_search_path_spec=
  61662. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  61663. + for lt_sys_path in $lt_search_path_spec; do
  61664. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  61665. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  61666. + else
  61667. + test -d "$lt_sys_path" && \
  61668. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  61669. + fi
  61670. + done
  61671. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  61672. +BEGIN {RS=" "; FS="/|\n";} {
  61673. + lt_foo="";
  61674. + lt_count=0;
  61675. + for (lt_i = NF; lt_i > 0; lt_i--) {
  61676. + if ($lt_i != "" && $lt_i != ".") {
  61677. + if ($lt_i == "..") {
  61678. + lt_count++;
  61679. + } else {
  61680. + if (lt_count == 0) {
  61681. + lt_foo="/" $lt_i lt_foo;
  61682. + } else {
  61683. + lt_count--;
  61684. + }
  61685. + }
  61686. + }
  61687. + }
  61688. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  61689. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  61690. +}'`
  61691. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  61692. +else
  61693. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  61694. +fi])
  61695. +library_names_spec=
  61696. +libname_spec='lib$name'
  61697. +soname_spec=
  61698. +shrext_cmds=".so"
  61699. +postinstall_cmds=
  61700. +postuninstall_cmds=
  61701. +finish_cmds=
  61702. +finish_eval=
  61703. +shlibpath_var=
  61704. +shlibpath_overrides_runpath=unknown
  61705. +version_type=none
  61706. +dynamic_linker="$host_os ld.so"
  61707. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  61708. +need_lib_prefix=unknown
  61709. +hardcode_into_libs=no
  61710. +
  61711. +# when you set need_version to no, make sure it does not cause -set_version
  61712. +# flags to be left without arguments
  61713. +need_version=unknown
  61714. +
  61715. +case $host_os in
  61716. +aix3*)
  61717. + version_type=linux
  61718. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  61719. + shlibpath_var=LIBPATH
  61720. +
  61721. + # AIX 3 has no versioning support, so we append a major version to the name.
  61722. + soname_spec='${libname}${release}${shared_ext}$major'
  61723. + ;;
  61724. +
  61725. +aix[[4-9]]*)
  61726. + version_type=linux
  61727. + need_lib_prefix=no
  61728. + need_version=no
  61729. + hardcode_into_libs=yes
  61730. + if test "$host_cpu" = ia64; then
  61731. + # AIX 5 supports IA64
  61732. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  61733. + shlibpath_var=LD_LIBRARY_PATH
  61734. + else
  61735. + # With GCC up to 2.95.x, collect2 would create an import file
  61736. + # for dependence libraries. The import file would start with
  61737. + # the line `#! .'. This would cause the generated library to
  61738. + # depend on `.', always an invalid library. This was fixed in
  61739. + # development snapshots of GCC prior to 3.0.
  61740. + case $host_os in
  61741. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  61742. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  61743. + echo ' yes '
  61744. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  61745. + :
  61746. + else
  61747. + can_build_shared=no
  61748. + fi
  61749. + ;;
  61750. + esac
  61751. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  61752. + # soname into executable. Probably we can add versioning support to
  61753. + # collect2, so additional links can be useful in future.
  61754. + if test "$aix_use_runtimelinking" = yes; then
  61755. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  61756. + # instead of lib<name>.a to let people know that these are not
  61757. + # typical AIX shared libraries.
  61758. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  61759. + else
  61760. + # We preserve .a as extension for shared libraries through AIX4.2
  61761. + # and later when we are not doing run time linking.
  61762. + library_names_spec='${libname}${release}.a $libname.a'
  61763. + soname_spec='${libname}${release}${shared_ext}$major'
  61764. + fi
  61765. + shlibpath_var=LIBPATH
  61766. + fi
  61767. + ;;
  61768. +
  61769. +amigaos*)
  61770. + case $host_cpu in
  61771. + powerpc)
  61772. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  61773. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  61774. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  61775. + ;;
  61776. + m68k)
  61777. + library_names_spec='$libname.ixlibrary $libname.a'
  61778. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  61779. + 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'
  61780. + ;;
  61781. + esac
  61782. + ;;
  61783. +
  61784. +beos*)
  61785. + library_names_spec='${libname}${shared_ext}'
  61786. + dynamic_linker="$host_os ld.so"
  61787. + shlibpath_var=LIBRARY_PATH
  61788. + ;;
  61789. +
  61790. +bsdi[[45]]*)
  61791. + version_type=linux
  61792. + need_version=no
  61793. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  61794. + soname_spec='${libname}${release}${shared_ext}$major'
  61795. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  61796. + shlibpath_var=LD_LIBRARY_PATH
  61797. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  61798. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  61799. + # the default ld.so.conf also contains /usr/contrib/lib and
  61800. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  61801. + # libtool to hard-code these into programs
  61802. + ;;
  61803. +
  61804. +cygwin* | mingw* | pw32* | cegcc*)
  61805. + version_type=windows
  61806. + shrext_cmds=".dll"
  61807. + need_version=no
  61808. + need_lib_prefix=no
  61809. +
  61810. + case $GCC,$host_os in
  61811. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  61812. + library_names_spec='$libname.dll.a'
  61813. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  61814. + postinstall_cmds='base_file=`basename \${file}`~
  61815. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  61816. + dldir=$destdir/`dirname \$dlpath`~
  61817. + test -d \$dldir || mkdir -p \$dldir~
  61818. + $install_prog $dir/$dlname \$dldir/$dlname~
  61819. + chmod a+x \$dldir/$dlname~
  61820. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  61821. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  61822. + fi'
  61823. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  61824. + dlpath=$dir/\$dldll~
  61825. + $RM \$dlpath'
  61826. + shlibpath_overrides_runpath=yes
  61827. +
  61828. + case $host_os in
  61829. + cygwin*)
  61830. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  61831. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  61832. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  61833. + ;;
  61834. + mingw* | cegcc*)
  61835. + # MinGW DLLs use traditional 'lib' prefix
  61836. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  61837. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  61838. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  61839. + # It is most probably a Windows format PATH printed by
  61840. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  61841. + # path with ; separators, and with drive letters. We can handle the
  61842. + # drive letters (cygwin fileutils understands them), so leave them,
  61843. + # especially as we might pass files found there to a mingw objdump,
  61844. + # which wouldn't understand a cygwinified path. Ahh.
  61845. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  61846. + else
  61847. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  61848. + fi
  61849. + ;;
  61850. + pw32*)
  61851. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  61852. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  61853. + ;;
  61854. + esac
  61855. + ;;
  61856. +
  61857. + *)
  61858. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  61859. + ;;
  61860. + esac
  61861. + dynamic_linker='Win32 ld.exe'
  61862. + # FIXME: first we should search . and the directory the executable is in
  61863. + shlibpath_var=PATH
  61864. + ;;
  61865. +
  61866. +darwin* | rhapsody*)
  61867. + dynamic_linker="$host_os dyld"
  61868. + version_type=darwin
  61869. + need_lib_prefix=no
  61870. + need_version=no
  61871. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  61872. + soname_spec='${libname}${release}${major}$shared_ext'
  61873. + shlibpath_overrides_runpath=yes
  61874. + shlibpath_var=DYLD_LIBRARY_PATH
  61875. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  61876. +m4_if([$1], [],[
  61877. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  61878. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  61879. + ;;
  61880. +
  61881. +dgux*)
  61882. + version_type=linux
  61883. + need_lib_prefix=no
  61884. + need_version=no
  61885. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  61886. + soname_spec='${libname}${release}${shared_ext}$major'
  61887. + shlibpath_var=LD_LIBRARY_PATH
  61888. + ;;
  61889. +
  61890. +freebsd1*)
  61891. + dynamic_linker=no
  61892. + ;;
  61893. +
  61894. +freebsd* | dragonfly*)
  61895. + # DragonFly does not have aout. When/if they implement a new
  61896. + # versioning mechanism, adjust this.
  61897. + if test -x /usr/bin/objformat; then
  61898. + objformat=`/usr/bin/objformat`
  61899. + else
  61900. + case $host_os in
  61901. + freebsd[[123]]*) objformat=aout ;;
  61902. + *) objformat=elf ;;
  61903. + esac
  61904. + fi
  61905. + version_type=freebsd-$objformat
  61906. + case $version_type in
  61907. + freebsd-elf*)
  61908. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  61909. + need_version=no
  61910. + need_lib_prefix=no
  61911. + ;;
  61912. + freebsd-*)
  61913. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  61914. + need_version=yes
  61915. + ;;
  61916. + esac
  61917. + shlibpath_var=LD_LIBRARY_PATH
  61918. + case $host_os in
  61919. + freebsd2*)
  61920. + shlibpath_overrides_runpath=yes
  61921. + ;;
  61922. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  61923. + shlibpath_overrides_runpath=yes
  61924. + hardcode_into_libs=yes
  61925. + ;;
  61926. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  61927. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  61928. + shlibpath_overrides_runpath=no
  61929. + hardcode_into_libs=yes
  61930. + ;;
  61931. + *) # from 4.6 on, and DragonFly
  61932. + shlibpath_overrides_runpath=yes
  61933. + hardcode_into_libs=yes
  61934. + ;;
  61935. + esac
  61936. + ;;
  61937. +
  61938. +gnu*)
  61939. + version_type=linux
  61940. + need_lib_prefix=no
  61941. + need_version=no
  61942. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  61943. + soname_spec='${libname}${release}${shared_ext}$major'
  61944. + shlibpath_var=LD_LIBRARY_PATH
  61945. + hardcode_into_libs=yes
  61946. + ;;
  61947. +
  61948. +hpux9* | hpux10* | hpux11*)
  61949. + # Give a soname corresponding to the major version so that dld.sl refuses to
  61950. + # link against other versions.
  61951. + version_type=sunos
  61952. + need_lib_prefix=no
  61953. + need_version=no
  61954. + case $host_cpu in
  61955. + ia64*)
  61956. + shrext_cmds='.so'
  61957. + hardcode_into_libs=yes
  61958. + dynamic_linker="$host_os dld.so"
  61959. + shlibpath_var=LD_LIBRARY_PATH
  61960. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  61961. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  61962. + soname_spec='${libname}${release}${shared_ext}$major'
  61963. + if test "X$HPUX_IA64_MODE" = X32; then
  61964. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  61965. + else
  61966. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  61967. + fi
  61968. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  61969. + ;;
  61970. + hppa*64*)
  61971. + shrext_cmds='.sl'
  61972. + hardcode_into_libs=yes
  61973. + dynamic_linker="$host_os dld.sl"
  61974. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  61975. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  61976. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  61977. + soname_spec='${libname}${release}${shared_ext}$major'
  61978. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  61979. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  61980. + ;;
  61981. + *)
  61982. + shrext_cmds='.sl'
  61983. + dynamic_linker="$host_os dld.sl"
  61984. + shlibpath_var=SHLIB_PATH
  61985. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  61986. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  61987. + soname_spec='${libname}${release}${shared_ext}$major'
  61988. + ;;
  61989. + esac
  61990. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  61991. + postinstall_cmds='chmod 555 $lib'
  61992. + ;;
  61993. +
  61994. +interix[[3-9]]*)
  61995. + version_type=linux
  61996. + need_lib_prefix=no
  61997. + need_version=no
  61998. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  61999. + soname_spec='${libname}${release}${shared_ext}$major'
  62000. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  62001. + shlibpath_var=LD_LIBRARY_PATH
  62002. + shlibpath_overrides_runpath=no
  62003. + hardcode_into_libs=yes
  62004. + ;;
  62005. +
  62006. +irix5* | irix6* | nonstopux*)
  62007. + case $host_os in
  62008. + nonstopux*) version_type=nonstopux ;;
  62009. + *)
  62010. + if test "$lt_cv_prog_gnu_ld" = yes; then
  62011. + version_type=linux
  62012. + else
  62013. + version_type=irix
  62014. + fi ;;
  62015. + esac
  62016. + need_lib_prefix=no
  62017. + need_version=no
  62018. + soname_spec='${libname}${release}${shared_ext}$major'
  62019. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  62020. + case $host_os in
  62021. + irix5* | nonstopux*)
  62022. + libsuff= shlibsuff=
  62023. + ;;
  62024. + *)
  62025. + case $LD in # libtool.m4 will add one of these switches to LD
  62026. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  62027. + libsuff= shlibsuff= libmagic=32-bit;;
  62028. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  62029. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  62030. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  62031. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  62032. + *) libsuff= shlibsuff= libmagic=never-match;;
  62033. + esac
  62034. + ;;
  62035. + esac
  62036. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  62037. + shlibpath_overrides_runpath=no
  62038. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  62039. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  62040. + hardcode_into_libs=yes
  62041. + ;;
  62042. +
  62043. +# No shared lib support for Linux oldld, aout, or coff.
  62044. +linux*oldld* | linux*aout* | linux*coff*)
  62045. + dynamic_linker=no
  62046. + ;;
  62047. +
  62048. +# This must be Linux ELF.
  62049. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  62050. + version_type=linux
  62051. + need_lib_prefix=no
  62052. + need_version=no
  62053. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62054. + soname_spec='${libname}${release}${shared_ext}$major'
  62055. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  62056. + shlibpath_var=LD_LIBRARY_PATH
  62057. + shlibpath_overrides_runpath=no
  62058. + # Some binutils ld are patched to set DT_RUNPATH
  62059. + save_LDFLAGS=$LDFLAGS
  62060. + save_libdir=$libdir
  62061. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  62062. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  62063. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  62064. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  62065. + [shlibpath_overrides_runpath=yes])])
  62066. + LDFLAGS=$save_LDFLAGS
  62067. + libdir=$save_libdir
  62068. +
  62069. + # This implies no fast_install, which is unacceptable.
  62070. + # Some rework will be needed to allow for fast_install
  62071. + # before this can be enabled.
  62072. + hardcode_into_libs=yes
  62073. +
  62074. + # Append ld.so.conf contents to the search path
  62075. + if test -f /etc/ld.so.conf; then
  62076. + 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' ' '`
  62077. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  62078. + fi
  62079. +
  62080. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  62081. + # powerpc, because MkLinux only supported shared libraries with the
  62082. + # GNU dynamic linker. Since this was broken with cross compilers,
  62083. + # most powerpc-linux boxes support dynamic linking these days and
  62084. + # people can always --disable-shared, the test was removed, and we
  62085. + # assume the GNU/Linux dynamic linker is in use.
  62086. + dynamic_linker='GNU/Linux ld.so'
  62087. + ;;
  62088. +
  62089. +netbsdelf*-gnu)
  62090. + version_type=linux
  62091. + need_lib_prefix=no
  62092. + need_version=no
  62093. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  62094. + soname_spec='${libname}${release}${shared_ext}$major'
  62095. + shlibpath_var=LD_LIBRARY_PATH
  62096. + shlibpath_overrides_runpath=no
  62097. + hardcode_into_libs=yes
  62098. + dynamic_linker='NetBSD ld.elf_so'
  62099. + ;;
  62100. +
  62101. +netbsd*)
  62102. + version_type=sunos
  62103. + need_lib_prefix=no
  62104. + need_version=no
  62105. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  62106. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  62107. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  62108. + dynamic_linker='NetBSD (a.out) ld.so'
  62109. + else
  62110. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  62111. + soname_spec='${libname}${release}${shared_ext}$major'
  62112. + dynamic_linker='NetBSD ld.elf_so'
  62113. + fi
  62114. + shlibpath_var=LD_LIBRARY_PATH
  62115. + shlibpath_overrides_runpath=yes
  62116. + hardcode_into_libs=yes
  62117. + ;;
  62118. +
  62119. +newsos6)
  62120. + version_type=linux
  62121. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62122. + shlibpath_var=LD_LIBRARY_PATH
  62123. + shlibpath_overrides_runpath=yes
  62124. + ;;
  62125. +
  62126. +*nto* | *qnx*)
  62127. + version_type=qnx
  62128. + need_lib_prefix=no
  62129. + need_version=no
  62130. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62131. + soname_spec='${libname}${release}${shared_ext}$major'
  62132. + shlibpath_var=LD_LIBRARY_PATH
  62133. + shlibpath_overrides_runpath=no
  62134. + hardcode_into_libs=yes
  62135. + dynamic_linker='ldqnx.so'
  62136. + ;;
  62137. +
  62138. +openbsd*)
  62139. + version_type=sunos
  62140. + sys_lib_dlsearch_path_spec="/usr/lib"
  62141. + need_lib_prefix=no
  62142. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  62143. + case $host_os in
  62144. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  62145. + *) need_version=no ;;
  62146. + esac
  62147. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  62148. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  62149. + shlibpath_var=LD_LIBRARY_PATH
  62150. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  62151. + case $host_os in
  62152. + openbsd2.[[89]] | openbsd2.[[89]].*)
  62153. + shlibpath_overrides_runpath=no
  62154. + ;;
  62155. + *)
  62156. + shlibpath_overrides_runpath=yes
  62157. + ;;
  62158. + esac
  62159. + else
  62160. + shlibpath_overrides_runpath=yes
  62161. + fi
  62162. + ;;
  62163. +
  62164. +os2*)
  62165. + libname_spec='$name'
  62166. + shrext_cmds=".dll"
  62167. + need_lib_prefix=no
  62168. + library_names_spec='$libname${shared_ext} $libname.a'
  62169. + dynamic_linker='OS/2 ld.exe'
  62170. + shlibpath_var=LIBPATH
  62171. + ;;
  62172. +
  62173. +osf3* | osf4* | osf5*)
  62174. + version_type=osf
  62175. + need_lib_prefix=no
  62176. + need_version=no
  62177. + soname_spec='${libname}${release}${shared_ext}$major'
  62178. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62179. + shlibpath_var=LD_LIBRARY_PATH
  62180. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  62181. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  62182. + ;;
  62183. +
  62184. +rdos*)
  62185. + dynamic_linker=no
  62186. + ;;
  62187. +
  62188. +solaris*)
  62189. + version_type=linux
  62190. + need_lib_prefix=no
  62191. + need_version=no
  62192. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62193. + soname_spec='${libname}${release}${shared_ext}$major'
  62194. + shlibpath_var=LD_LIBRARY_PATH
  62195. + shlibpath_overrides_runpath=yes
  62196. + hardcode_into_libs=yes
  62197. + # ldd complains unless libraries are executable
  62198. + postinstall_cmds='chmod +x $lib'
  62199. + ;;
  62200. +
  62201. +sunos4*)
  62202. + version_type=sunos
  62203. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  62204. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  62205. + shlibpath_var=LD_LIBRARY_PATH
  62206. + shlibpath_overrides_runpath=yes
  62207. + if test "$with_gnu_ld" = yes; then
  62208. + need_lib_prefix=no
  62209. + fi
  62210. + need_version=yes
  62211. + ;;
  62212. +
  62213. +sysv4 | sysv4.3*)
  62214. + version_type=linux
  62215. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62216. + soname_spec='${libname}${release}${shared_ext}$major'
  62217. + shlibpath_var=LD_LIBRARY_PATH
  62218. + case $host_vendor in
  62219. + sni)
  62220. + shlibpath_overrides_runpath=no
  62221. + need_lib_prefix=no
  62222. + runpath_var=LD_RUN_PATH
  62223. + ;;
  62224. + siemens)
  62225. + need_lib_prefix=no
  62226. + ;;
  62227. + motorola)
  62228. + need_lib_prefix=no
  62229. + need_version=no
  62230. + shlibpath_overrides_runpath=no
  62231. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  62232. + ;;
  62233. + esac
  62234. + ;;
  62235. +
  62236. +sysv4*MP*)
  62237. + if test -d /usr/nec ;then
  62238. + version_type=linux
  62239. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  62240. + soname_spec='$libname${shared_ext}.$major'
  62241. + shlibpath_var=LD_LIBRARY_PATH
  62242. + fi
  62243. + ;;
  62244. +
  62245. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  62246. + version_type=freebsd-elf
  62247. + need_lib_prefix=no
  62248. + need_version=no
  62249. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  62250. + soname_spec='${libname}${release}${shared_ext}$major'
  62251. + shlibpath_var=LD_LIBRARY_PATH
  62252. + shlibpath_overrides_runpath=yes
  62253. + hardcode_into_libs=yes
  62254. + if test "$with_gnu_ld" = yes; then
  62255. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  62256. + else
  62257. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  62258. + case $host_os in
  62259. + sco3.2v5*)
  62260. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  62261. + ;;
  62262. + esac
  62263. + fi
  62264. + sys_lib_dlsearch_path_spec='/usr/lib'
  62265. + ;;
  62266. +
  62267. +tpf*)
  62268. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  62269. + version_type=linux
  62270. + need_lib_prefix=no
  62271. + need_version=no
  62272. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62273. + shlibpath_var=LD_LIBRARY_PATH
  62274. + shlibpath_overrides_runpath=no
  62275. + hardcode_into_libs=yes
  62276. + ;;
  62277. +
  62278. +uts4*)
  62279. + version_type=linux
  62280. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  62281. + soname_spec='${libname}${release}${shared_ext}$major'
  62282. + shlibpath_var=LD_LIBRARY_PATH
  62283. + ;;
  62284. +
  62285. +*)
  62286. + dynamic_linker=no
  62287. + ;;
  62288. +esac
  62289. +AC_MSG_RESULT([$dynamic_linker])
  62290. +test "$dynamic_linker" = no && can_build_shared=no
  62291. +
  62292. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  62293. +if test "$GCC" = yes; then
  62294. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  62295. +fi
  62296. +
  62297. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  62298. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  62299. +fi
  62300. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  62301. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  62302. +fi
  62303. +
  62304. +_LT_DECL([], [variables_saved_for_relink], [1],
  62305. + [Variables whose values should be saved in libtool wrapper scripts and
  62306. + restored at link time])
  62307. +_LT_DECL([], [need_lib_prefix], [0],
  62308. + [Do we need the "lib" prefix for modules?])
  62309. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  62310. +_LT_DECL([], [version_type], [0], [Library versioning type])
  62311. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  62312. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  62313. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  62314. + [Is shlibpath searched before the hard-coded library search path?])
  62315. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  62316. +_LT_DECL([], [library_names_spec], [1],
  62317. + [[List of archive names. First name is the real one, the rest are links.
  62318. + The last name is the one that the linker finds with -lNAME]])
  62319. +_LT_DECL([], [soname_spec], [1],
  62320. + [[The coded name of the library, if different from the real name]])
  62321. +_LT_DECL([], [postinstall_cmds], [2],
  62322. + [Command to use after installation of a shared archive])
  62323. +_LT_DECL([], [postuninstall_cmds], [2],
  62324. + [Command to use after uninstallation of a shared archive])
  62325. +_LT_DECL([], [finish_cmds], [2],
  62326. + [Commands used to finish a libtool library installation in a directory])
  62327. +_LT_DECL([], [finish_eval], [1],
  62328. + [[As "finish_cmds", except a single script fragment to be evaled but
  62329. + not shown]])
  62330. +_LT_DECL([], [hardcode_into_libs], [0],
  62331. + [Whether we should hardcode library paths into libraries])
  62332. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  62333. + [Compile-time system search path for libraries])
  62334. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  62335. + [Run-time system search path for libraries])
  62336. +])# _LT_SYS_DYNAMIC_LINKER
  62337. +
  62338. +
  62339. +# _LT_PATH_TOOL_PREFIX(TOOL)
  62340. +# --------------------------
  62341. +# find a file program which can recognize shared library
  62342. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  62343. +[m4_require([_LT_DECL_EGREP])dnl
  62344. +AC_MSG_CHECKING([for $1])
  62345. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  62346. +[case $MAGIC_CMD in
  62347. +[[\\/*] | ?:[\\/]*])
  62348. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  62349. + ;;
  62350. +*)
  62351. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  62352. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  62353. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  62354. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  62355. +dnl not every word. This closes a longstanding sh security hole.
  62356. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  62357. + for ac_dir in $ac_dummy; do
  62358. + IFS="$lt_save_ifs"
  62359. + test -z "$ac_dir" && ac_dir=.
  62360. + if test -f $ac_dir/$1; then
  62361. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  62362. + if test -n "$file_magic_test_file"; then
  62363. + case $deplibs_check_method in
  62364. + "file_magic "*)
  62365. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  62366. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  62367. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  62368. + $EGREP "$file_magic_regex" > /dev/null; then
  62369. + :
  62370. + else
  62371. + cat <<_LT_EOF 1>&2
  62372. +
  62373. +*** Warning: the command libtool uses to detect shared libraries,
  62374. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  62375. +*** The result is that libtool may fail to recognize shared libraries
  62376. +*** as such. This will affect the creation of libtool libraries that
  62377. +*** depend on shared libraries, but programs linked with such libtool
  62378. +*** libraries will work regardless of this problem. Nevertheless, you
  62379. +*** may want to report the problem to your system manager and/or to
  62380. +*** bug-libtool@gnu.org
  62381. +
  62382. +_LT_EOF
  62383. + fi ;;
  62384. + esac
  62385. + fi
  62386. + break
  62387. + fi
  62388. + done
  62389. + IFS="$lt_save_ifs"
  62390. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  62391. + ;;
  62392. +esac])
  62393. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  62394. +if test -n "$MAGIC_CMD"; then
  62395. + AC_MSG_RESULT($MAGIC_CMD)
  62396. +else
  62397. + AC_MSG_RESULT(no)
  62398. +fi
  62399. +_LT_DECL([], [MAGIC_CMD], [0],
  62400. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  62401. +])# _LT_PATH_TOOL_PREFIX
  62402. +
  62403. +# Old name:
  62404. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  62405. +dnl aclocal-1.4 backwards compatibility:
  62406. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  62407. +
  62408. +
  62409. +# _LT_PATH_MAGIC
  62410. +# --------------
  62411. +# find a file program which can recognize a shared library
  62412. +m4_defun([_LT_PATH_MAGIC],
  62413. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  62414. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  62415. + if test -n "$ac_tool_prefix"; then
  62416. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  62417. + else
  62418. + MAGIC_CMD=:
  62419. + fi
  62420. +fi
  62421. +])# _LT_PATH_MAGIC
  62422. +
  62423. +
  62424. +# LT_PATH_LD
  62425. +# ----------
  62426. +# find the pathname to the GNU or non-GNU linker
  62427. +AC_DEFUN([LT_PATH_LD],
  62428. +[AC_REQUIRE([AC_PROG_CC])dnl
  62429. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  62430. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  62431. +m4_require([_LT_DECL_SED])dnl
  62432. +m4_require([_LT_DECL_EGREP])dnl
  62433. +
  62434. +AC_ARG_WITH([gnu-ld],
  62435. + [AS_HELP_STRING([--with-gnu-ld],
  62436. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  62437. + [test "$withval" = no || with_gnu_ld=yes],
  62438. + [with_gnu_ld=no])dnl
  62439. +
  62440. +ac_prog=ld
  62441. +if test "$GCC" = yes; then
  62442. + # Check if gcc -print-prog-name=ld gives a path.
  62443. + AC_MSG_CHECKING([for ld used by $CC])
  62444. + case $host in
  62445. + *-*-mingw*)
  62446. + # gcc leaves a trailing carriage return which upsets mingw
  62447. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  62448. + *)
  62449. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  62450. + esac
  62451. + case $ac_prog in
  62452. + # Accept absolute paths.
  62453. + [[\\/]]* | ?:[[\\/]]*)
  62454. + re_direlt='/[[^/]][[^/]]*/\.\./'
  62455. + # Canonicalize the pathname of ld
  62456. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  62457. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  62458. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  62459. + done
  62460. + test -z "$LD" && LD="$ac_prog"
  62461. + ;;
  62462. + "")
  62463. + # If it fails, then pretend we aren't using GCC.
  62464. + ac_prog=ld
  62465. + ;;
  62466. + *)
  62467. + # If it is relative, then search for the first ld in PATH.
  62468. + with_gnu_ld=unknown
  62469. + ;;
  62470. + esac
  62471. +elif test "$with_gnu_ld" = yes; then
  62472. + AC_MSG_CHECKING([for GNU ld])
  62473. +else
  62474. + AC_MSG_CHECKING([for non-GNU ld])
  62475. +fi
  62476. +AC_CACHE_VAL(lt_cv_path_LD,
  62477. +[if test -z "$LD"; then
  62478. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  62479. + for ac_dir in $PATH; do
  62480. + IFS="$lt_save_ifs"
  62481. + test -z "$ac_dir" && ac_dir=.
  62482. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  62483. + lt_cv_path_LD="$ac_dir/$ac_prog"
  62484. + # Check to see if the program is GNU ld. I'd rather use --version,
  62485. + # but apparently some variants of GNU ld only accept -v.
  62486. + # Break only if it was the GNU/non-GNU ld that we prefer.
  62487. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  62488. + *GNU* | *'with BFD'*)
  62489. + test "$with_gnu_ld" != no && break
  62490. + ;;
  62491. + *)
  62492. + test "$with_gnu_ld" != yes && break
  62493. + ;;
  62494. + esac
  62495. + fi
  62496. + done
  62497. + IFS="$lt_save_ifs"
  62498. +else
  62499. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  62500. +fi])
  62501. +LD="$lt_cv_path_LD"
  62502. +if test -n "$LD"; then
  62503. + AC_MSG_RESULT($LD)
  62504. +else
  62505. + AC_MSG_RESULT(no)
  62506. +fi
  62507. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  62508. +_LT_PATH_LD_GNU
  62509. +AC_SUBST([LD])
  62510. +
  62511. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  62512. +])# LT_PATH_LD
  62513. +
  62514. +# Old names:
  62515. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  62516. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  62517. +dnl aclocal-1.4 backwards compatibility:
  62518. +dnl AC_DEFUN([AM_PROG_LD], [])
  62519. +dnl AC_DEFUN([AC_PROG_LD], [])
  62520. +
  62521. +
  62522. +# _LT_PATH_LD_GNU
  62523. +#- --------------
  62524. +m4_defun([_LT_PATH_LD_GNU],
  62525. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  62526. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  62527. +case `$LD -v 2>&1 </dev/null` in
  62528. +*GNU* | *'with BFD'*)
  62529. + lt_cv_prog_gnu_ld=yes
  62530. + ;;
  62531. +*)
  62532. + lt_cv_prog_gnu_ld=no
  62533. + ;;
  62534. +esac])
  62535. +with_gnu_ld=$lt_cv_prog_gnu_ld
  62536. +])# _LT_PATH_LD_GNU
  62537. +
  62538. +
  62539. +# _LT_CMD_RELOAD
  62540. +# --------------
  62541. +# find reload flag for linker
  62542. +# -- PORTME Some linkers may need a different reload flag.
  62543. +m4_defun([_LT_CMD_RELOAD],
  62544. +[AC_CACHE_CHECK([for $LD option to reload object files],
  62545. + lt_cv_ld_reload_flag,
  62546. + [lt_cv_ld_reload_flag='-r'])
  62547. +reload_flag=$lt_cv_ld_reload_flag
  62548. +case $reload_flag in
  62549. +"" | " "*) ;;
  62550. +*) reload_flag=" $reload_flag" ;;
  62551. +esac
  62552. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  62553. +case $host_os in
  62554. + darwin*)
  62555. + if test "$GCC" = yes; then
  62556. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  62557. + else
  62558. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  62559. + fi
  62560. + ;;
  62561. +esac
  62562. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  62563. +_LT_DECL([], [reload_cmds], [2])dnl
  62564. +])# _LT_CMD_RELOAD
  62565. +
  62566. +
  62567. +# _LT_CHECK_MAGIC_METHOD
  62568. +# ----------------------
  62569. +# how to check for library dependencies
  62570. +# -- PORTME fill in with the dynamic library characteristics
  62571. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  62572. +[m4_require([_LT_DECL_EGREP])
  62573. +m4_require([_LT_DECL_OBJDUMP])
  62574. +AC_CACHE_CHECK([how to recognize dependent libraries],
  62575. +lt_cv_deplibs_check_method,
  62576. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  62577. +lt_cv_file_magic_test_file=
  62578. +lt_cv_deplibs_check_method='unknown'
  62579. +# Need to set the preceding variable on all platforms that support
  62580. +# interlibrary dependencies.
  62581. +# 'none' -- dependencies not supported.
  62582. +# `unknown' -- same as none, but documents that we really don't know.
  62583. +# 'pass_all' -- all dependencies passed with no checks.
  62584. +# 'test_compile' -- check by making test program.
  62585. +# 'file_magic [[regex]]' -- check by looking for files in library path
  62586. +# which responds to the $file_magic_cmd with a given extended regex.
  62587. +# If you have `file' or equivalent on your system and you're not sure
  62588. +# whether `pass_all' will *always* work, you probably want this one.
  62589. +
  62590. +case $host_os in
  62591. +aix[[4-9]]*)
  62592. + lt_cv_deplibs_check_method=pass_all
  62593. + ;;
  62594. +
  62595. +beos*)
  62596. + lt_cv_deplibs_check_method=pass_all
  62597. + ;;
  62598. +
  62599. +bsdi[[45]]*)
  62600. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  62601. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  62602. + lt_cv_file_magic_test_file=/shlib/libc.so
  62603. + ;;
  62604. +
  62605. +cygwin*)
  62606. + # func_win32_libid is a shell function defined in ltmain.sh
  62607. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  62608. + lt_cv_file_magic_cmd='func_win32_libid'
  62609. + ;;
  62610. +
  62611. +mingw* | pw32*)
  62612. + # Base MSYS/MinGW do not provide the 'file' command needed by
  62613. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  62614. + # unless we find 'file', for example because we are cross-compiling.
  62615. + if ( file / ) >/dev/null 2>&1; then
  62616. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  62617. + lt_cv_file_magic_cmd='func_win32_libid'
  62618. + else
  62619. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  62620. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  62621. + fi
  62622. + ;;
  62623. +
  62624. +cegcc)
  62625. + # use the weaker test based on 'objdump'. See mingw*.
  62626. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  62627. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  62628. + ;;
  62629. +
  62630. +darwin* | rhapsody*)
  62631. + lt_cv_deplibs_check_method=pass_all
  62632. + ;;
  62633. +
  62634. +freebsd* | dragonfly*)
  62635. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  62636. + case $host_cpu in
  62637. + i*86 )
  62638. + # Not sure whether the presence of OpenBSD here was a mistake.
  62639. + # Let's accept both of them until this is cleared up.
  62640. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  62641. + lt_cv_file_magic_cmd=/usr/bin/file
  62642. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  62643. + ;;
  62644. + esac
  62645. + else
  62646. + lt_cv_deplibs_check_method=pass_all
  62647. + fi
  62648. + ;;
  62649. +
  62650. +gnu*)
  62651. + lt_cv_deplibs_check_method=pass_all
  62652. + ;;
  62653. +
  62654. +hpux10.20* | hpux11*)
  62655. + lt_cv_file_magic_cmd=/usr/bin/file
  62656. + case $host_cpu in
  62657. + ia64*)
  62658. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  62659. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  62660. + ;;
  62661. + hppa*64*)
  62662. + [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]']
  62663. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  62664. + ;;
  62665. + *)
  62666. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  62667. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  62668. + ;;
  62669. + esac
  62670. + ;;
  62671. +
  62672. +interix[[3-9]]*)
  62673. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  62674. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  62675. + ;;
  62676. +
  62677. +irix5* | irix6* | nonstopux*)
  62678. + case $LD in
  62679. + *-32|*"-32 ") libmagic=32-bit;;
  62680. + *-n32|*"-n32 ") libmagic=N32;;
  62681. + *-64|*"-64 ") libmagic=64-bit;;
  62682. + *) libmagic=never-match;;
  62683. + esac
  62684. + lt_cv_deplibs_check_method=pass_all
  62685. + ;;
  62686. +
  62687. +# This must be Linux ELF.
  62688. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  62689. + lt_cv_deplibs_check_method=pass_all
  62690. + ;;
  62691. +
  62692. +netbsd* | netbsdelf*-gnu)
  62693. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  62694. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  62695. + else
  62696. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  62697. + fi
  62698. + ;;
  62699. +
  62700. +newos6*)
  62701. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  62702. + lt_cv_file_magic_cmd=/usr/bin/file
  62703. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  62704. + ;;
  62705. +
  62706. +*nto* | *qnx*)
  62707. + lt_cv_deplibs_check_method=pass_all
  62708. + ;;
  62709. +
  62710. +openbsd*)
  62711. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  62712. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  62713. + else
  62714. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  62715. + fi
  62716. + ;;
  62717. +
  62718. +osf3* | osf4* | osf5*)
  62719. + lt_cv_deplibs_check_method=pass_all
  62720. + ;;
  62721. +
  62722. +rdos*)
  62723. + lt_cv_deplibs_check_method=pass_all
  62724. + ;;
  62725. +
  62726. +solaris*)
  62727. + lt_cv_deplibs_check_method=pass_all
  62728. + ;;
  62729. +
  62730. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  62731. + lt_cv_deplibs_check_method=pass_all
  62732. + ;;
  62733. +
  62734. +sysv4 | sysv4.3*)
  62735. + case $host_vendor in
  62736. + motorola)
  62737. + 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]]'
  62738. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  62739. + ;;
  62740. + ncr)
  62741. + lt_cv_deplibs_check_method=pass_all
  62742. + ;;
  62743. + sequent)
  62744. + lt_cv_file_magic_cmd='/bin/file'
  62745. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  62746. + ;;
  62747. + sni)
  62748. + lt_cv_file_magic_cmd='/bin/file'
  62749. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  62750. + lt_cv_file_magic_test_file=/lib/libc.so
  62751. + ;;
  62752. + siemens)
  62753. + lt_cv_deplibs_check_method=pass_all
  62754. + ;;
  62755. + pc)
  62756. + lt_cv_deplibs_check_method=pass_all
  62757. + ;;
  62758. + esac
  62759. + ;;
  62760. +
  62761. +tpf*)
  62762. + lt_cv_deplibs_check_method=pass_all
  62763. + ;;
  62764. +esac
  62765. +])
  62766. +file_magic_cmd=$lt_cv_file_magic_cmd
  62767. +deplibs_check_method=$lt_cv_deplibs_check_method
  62768. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  62769. +
  62770. +_LT_DECL([], [deplibs_check_method], [1],
  62771. + [Method to check whether dependent libraries are shared objects])
  62772. +_LT_DECL([], [file_magic_cmd], [1],
  62773. + [Command to use when deplibs_check_method == "file_magic"])
  62774. +])# _LT_CHECK_MAGIC_METHOD
  62775. +
  62776. +
  62777. +# LT_PATH_NM
  62778. +# ----------
  62779. +# find the pathname to a BSD- or MS-compatible name lister
  62780. +AC_DEFUN([LT_PATH_NM],
  62781. +[AC_REQUIRE([AC_PROG_CC])dnl
  62782. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  62783. +[if test -n "$NM"; then
  62784. + # Let the user override the test.
  62785. + lt_cv_path_NM="$NM"
  62786. +else
  62787. + lt_nm_to_check="${ac_tool_prefix}nm"
  62788. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  62789. + lt_nm_to_check="$lt_nm_to_check nm"
  62790. + fi
  62791. + for lt_tmp_nm in $lt_nm_to_check; do
  62792. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  62793. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  62794. + IFS="$lt_save_ifs"
  62795. + test -z "$ac_dir" && ac_dir=.
  62796. + tmp_nm="$ac_dir/$lt_tmp_nm"
  62797. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  62798. + # Check to see if the nm accepts a BSD-compat flag.
  62799. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  62800. + # nm: unknown option "B" ignored
  62801. + # Tru64's nm complains that /dev/null is an invalid object file
  62802. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  62803. + */dev/null* | *'Invalid file or object type'*)
  62804. + lt_cv_path_NM="$tmp_nm -B"
  62805. + break
  62806. + ;;
  62807. + *)
  62808. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  62809. + */dev/null*)
  62810. + lt_cv_path_NM="$tmp_nm -p"
  62811. + break
  62812. + ;;
  62813. + *)
  62814. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  62815. + continue # so that we can try to find one that supports BSD flags
  62816. + ;;
  62817. + esac
  62818. + ;;
  62819. + esac
  62820. + fi
  62821. + done
  62822. + IFS="$lt_save_ifs"
  62823. + done
  62824. + : ${lt_cv_path_NM=no}
  62825. +fi])
  62826. +if test "$lt_cv_path_NM" != "no"; then
  62827. + NM="$lt_cv_path_NM"
  62828. +else
  62829. + # Didn't find any BSD compatible name lister, look for dumpbin.
  62830. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  62831. + AC_SUBST([DUMPBIN])
  62832. + if test "$DUMPBIN" != ":"; then
  62833. + NM="$DUMPBIN"
  62834. + fi
  62835. +fi
  62836. +test -z "$NM" && NM=nm
  62837. +AC_SUBST([NM])
  62838. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  62839. +
  62840. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  62841. + [lt_cv_nm_interface="BSD nm"
  62842. + echo "int some_variable = 0;" > conftest.$ac_ext
  62843. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  62844. + (eval "$ac_compile" 2>conftest.err)
  62845. + cat conftest.err >&AS_MESSAGE_LOG_FD
  62846. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  62847. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  62848. + cat conftest.err >&AS_MESSAGE_LOG_FD
  62849. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  62850. + cat conftest.out >&AS_MESSAGE_LOG_FD
  62851. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  62852. + lt_cv_nm_interface="MS dumpbin"
  62853. + fi
  62854. + rm -f conftest*])
  62855. +])# LT_PATH_NM
  62856. +
  62857. +# Old names:
  62858. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  62859. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  62860. +dnl aclocal-1.4 backwards compatibility:
  62861. +dnl AC_DEFUN([AM_PROG_NM], [])
  62862. +dnl AC_DEFUN([AC_PROG_NM], [])
  62863. +
  62864. +
  62865. +# LT_LIB_M
  62866. +# --------
  62867. +# check for math library
  62868. +AC_DEFUN([LT_LIB_M],
  62869. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  62870. +LIBM=
  62871. +case $host in
  62872. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  62873. + # These system don't have libm, or don't need it
  62874. + ;;
  62875. +*-ncr-sysv4.3*)
  62876. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  62877. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  62878. + ;;
  62879. +*)
  62880. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  62881. + ;;
  62882. +esac
  62883. +AC_SUBST([LIBM])
  62884. +])# LT_LIB_M
  62885. +
  62886. +# Old name:
  62887. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  62888. +dnl aclocal-1.4 backwards compatibility:
  62889. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  62890. +
  62891. +
  62892. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  62893. +# -------------------------------
  62894. +m4_defun([_LT_COMPILER_NO_RTTI],
  62895. +[m4_require([_LT_TAG_COMPILER])dnl
  62896. +
  62897. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  62898. +
  62899. +if test "$GCC" = yes; then
  62900. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  62901. +
  62902. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  62903. + lt_cv_prog_compiler_rtti_exceptions,
  62904. + [-fno-rtti -fno-exceptions], [],
  62905. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  62906. +fi
  62907. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  62908. + [Compiler flag to turn off builtin functions])
  62909. +])# _LT_COMPILER_NO_RTTI
  62910. +
  62911. +
  62912. +# _LT_CMD_GLOBAL_SYMBOLS
  62913. +# ----------------------
  62914. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  62915. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  62916. +AC_REQUIRE([AC_PROG_CC])dnl
  62917. +AC_REQUIRE([LT_PATH_NM])dnl
  62918. +AC_REQUIRE([LT_PATH_LD])dnl
  62919. +m4_require([_LT_DECL_SED])dnl
  62920. +m4_require([_LT_DECL_EGREP])dnl
  62921. +m4_require([_LT_TAG_COMPILER])dnl
  62922. +
  62923. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  62924. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  62925. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  62926. +[
  62927. +# These are sane defaults that work on at least a few old systems.
  62928. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  62929. +
  62930. +# Character class describing NM global symbol codes.
  62931. +symcode='[[BCDEGRST]]'
  62932. +
  62933. +# Regexp to match symbols that can be accessed directly from C.
  62934. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  62935. +
  62936. +# Define system-specific variables.
  62937. +case $host_os in
  62938. +aix*)
  62939. + symcode='[[BCDT]]'
  62940. + ;;
  62941. +cygwin* | mingw* | pw32* | cegcc*)
  62942. + symcode='[[ABCDGISTW]]'
  62943. + ;;
  62944. +hpux*)
  62945. + if test "$host_cpu" = ia64; then
  62946. + symcode='[[ABCDEGRST]]'
  62947. + fi
  62948. + ;;
  62949. +irix* | nonstopux*)
  62950. + symcode='[[BCDEGRST]]'
  62951. + ;;
  62952. +osf*)
  62953. + symcode='[[BCDEGQRST]]'
  62954. + ;;
  62955. +solaris*)
  62956. + symcode='[[BDRT]]'
  62957. + ;;
  62958. +sco3.2v5*)
  62959. + symcode='[[DT]]'
  62960. + ;;
  62961. +sysv4.2uw2*)
  62962. + symcode='[[DT]]'
  62963. + ;;
  62964. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  62965. + symcode='[[ABDT]]'
  62966. + ;;
  62967. +sysv4)
  62968. + symcode='[[DFNSTU]]'
  62969. + ;;
  62970. +esac
  62971. +
  62972. +# If we're using GNU nm, then use its standard symbol codes.
  62973. +case `$NM -V 2>&1` in
  62974. +*GNU* | *'with BFD'*)
  62975. + symcode='[[ABCDGIRSTW]]' ;;
  62976. +esac
  62977. +
  62978. +# Transform an extracted symbol line into a proper C declaration.
  62979. +# Some systems (esp. on ia64) link data and code symbols differently,
  62980. +# so use this general approach.
  62981. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  62982. +
  62983. +# Transform an extracted symbol line into symbol name and symbol address
  62984. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  62985. +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'"
  62986. +
  62987. +# Handle CRLF in mingw tool chain
  62988. +opt_cr=
  62989. +case $build_os in
  62990. +mingw*)
  62991. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  62992. + ;;
  62993. +esac
  62994. +
  62995. +# Try without a prefix underscore, then with it.
  62996. +for ac_symprfx in "" "_"; do
  62997. +
  62998. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  62999. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  63000. +
  63001. + # Write the raw and C identifiers.
  63002. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  63003. + # Fake it for dumpbin and say T for any non-static function
  63004. + # and D for any global variable.
  63005. + # Also find C++ and __fastcall symbols from MSVC++,
  63006. + # which start with @ or ?.
  63007. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  63008. +" {last_section=section; section=\$ 3};"\
  63009. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  63010. +" \$ 0!~/External *\|/{next};"\
  63011. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  63012. +" {if(hide[section]) next};"\
  63013. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  63014. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  63015. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  63016. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  63017. +" ' prfx=^$ac_symprfx]"
  63018. + else
  63019. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  63020. + fi
  63021. +
  63022. + # Check to see that the pipe works correctly.
  63023. + pipe_works=no
  63024. +
  63025. + rm -f conftest*
  63026. + cat > conftest.$ac_ext <<_LT_EOF
  63027. +#ifdef __cplusplus
  63028. +extern "C" {
  63029. +#endif
  63030. +char nm_test_var;
  63031. +void nm_test_func(void);
  63032. +void nm_test_func(void){}
  63033. +#ifdef __cplusplus
  63034. +}
  63035. +#endif
  63036. +int main(){nm_test_var='a';nm_test_func();return(0);}
  63037. +_LT_EOF
  63038. +
  63039. + if AC_TRY_EVAL(ac_compile); then
  63040. + # Now try to grab the symbols.
  63041. + nlist=conftest.nm
  63042. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  63043. + # Try sorting and uniquifying the output.
  63044. + if sort "$nlist" | uniq > "$nlist"T; then
  63045. + mv -f "$nlist"T "$nlist"
  63046. + else
  63047. + rm -f "$nlist"T
  63048. + fi
  63049. +
  63050. + # Make sure that we snagged all the symbols we need.
  63051. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  63052. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  63053. + cat <<_LT_EOF > conftest.$ac_ext
  63054. +#ifdef __cplusplus
  63055. +extern "C" {
  63056. +#endif
  63057. +
  63058. +_LT_EOF
  63059. + # Now generate the symbol file.
  63060. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  63061. +
  63062. + cat <<_LT_EOF >> conftest.$ac_ext
  63063. +
  63064. +/* The mapping between symbol names and symbols. */
  63065. +const struct {
  63066. + const char *name;
  63067. + void *address;
  63068. +}
  63069. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  63070. +{
  63071. + { "@PROGRAM@", (void *) 0 },
  63072. +_LT_EOF
  63073. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  63074. + cat <<\_LT_EOF >> conftest.$ac_ext
  63075. + {0, (void *) 0}
  63076. +};
  63077. +
  63078. +/* This works around a problem in FreeBSD linker */
  63079. +#ifdef FREEBSD_WORKAROUND
  63080. +static const void *lt_preloaded_setup() {
  63081. + return lt__PROGRAM__LTX_preloaded_symbols;
  63082. +}
  63083. +#endif
  63084. +
  63085. +#ifdef __cplusplus
  63086. +}
  63087. +#endif
  63088. +_LT_EOF
  63089. + # Now try linking the two files.
  63090. + mv conftest.$ac_objext conftstm.$ac_objext
  63091. + lt_save_LIBS="$LIBS"
  63092. + lt_save_CFLAGS="$CFLAGS"
  63093. + LIBS="conftstm.$ac_objext"
  63094. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  63095. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  63096. + pipe_works=yes
  63097. + fi
  63098. + LIBS="$lt_save_LIBS"
  63099. + CFLAGS="$lt_save_CFLAGS"
  63100. + else
  63101. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  63102. + fi
  63103. + else
  63104. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  63105. + fi
  63106. + else
  63107. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  63108. + fi
  63109. + else
  63110. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  63111. + cat conftest.$ac_ext >&5
  63112. + fi
  63113. + rm -rf conftest* conftst*
  63114. +
  63115. + # Do not use the global_symbol_pipe unless it works.
  63116. + if test "$pipe_works" = yes; then
  63117. + break
  63118. + else
  63119. + lt_cv_sys_global_symbol_pipe=
  63120. + fi
  63121. +done
  63122. +])
  63123. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  63124. + lt_cv_sys_global_symbol_to_cdecl=
  63125. +fi
  63126. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  63127. + AC_MSG_RESULT(failed)
  63128. +else
  63129. + AC_MSG_RESULT(ok)
  63130. +fi
  63131. +
  63132. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  63133. + [Take the output of nm and produce a listing of raw symbols and C names])
  63134. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  63135. + [Transform the output of nm in a proper C declaration])
  63136. +_LT_DECL([global_symbol_to_c_name_address],
  63137. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  63138. + [Transform the output of nm in a C name address pair])
  63139. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  63140. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  63141. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  63142. +]) # _LT_CMD_GLOBAL_SYMBOLS
  63143. +
  63144. +
  63145. +# _LT_COMPILER_PIC([TAGNAME])
  63146. +# ---------------------------
  63147. +m4_defun([_LT_COMPILER_PIC],
  63148. +[m4_require([_LT_TAG_COMPILER])dnl
  63149. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  63150. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  63151. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  63152. +
  63153. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  63154. +m4_if([$1], [CXX], [
  63155. + # C++ specific cases for pic, static, wl, etc.
  63156. + if test "$GXX" = yes; then
  63157. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63158. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  63159. +
  63160. + case $host_os in
  63161. + aix*)
  63162. + # All AIX code is PIC.
  63163. + if test "$host_cpu" = ia64; then
  63164. + # AIX 5 now supports IA64 processor
  63165. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63166. + fi
  63167. + ;;
  63168. +
  63169. + amigaos*)
  63170. + case $host_cpu in
  63171. + powerpc)
  63172. + # see comment about AmigaOS4 .so support
  63173. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63174. + ;;
  63175. + m68k)
  63176. + # FIXME: we need at least 68020 code to build shared libraries, but
  63177. + # adding the `-m68020' flag to GCC prevents building anything better,
  63178. + # like `-m68040'.
  63179. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  63180. + ;;
  63181. + esac
  63182. + ;;
  63183. +
  63184. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  63185. + # PIC is the default for these OSes.
  63186. + ;;
  63187. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  63188. + # This hack is so that the source file can tell whether it is being
  63189. + # built for inclusion in a dll (and should export symbols for example).
  63190. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  63191. + # (--disable-auto-import) libraries
  63192. + m4_if([$1], [GCJ], [],
  63193. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  63194. + ;;
  63195. + darwin* | rhapsody*)
  63196. + # PIC is the default on this platform
  63197. + # Common symbols not allowed in MH_DYLIB files
  63198. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  63199. + ;;
  63200. + *djgpp*)
  63201. + # DJGPP does not support shared libraries at all
  63202. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  63203. + ;;
  63204. + interix[[3-9]]*)
  63205. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  63206. + # Instead, we relocate shared libraries at runtime.
  63207. + ;;
  63208. + sysv4*MP*)
  63209. + if test -d /usr/nec; then
  63210. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  63211. + fi
  63212. + ;;
  63213. + hpux*)
  63214. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  63215. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  63216. + # sets the default TLS model and affects inlining.
  63217. + case $host_cpu in
  63218. + hppa*64*)
  63219. + ;;
  63220. + *)
  63221. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63222. + ;;
  63223. + esac
  63224. + ;;
  63225. + *qnx* | *nto*)
  63226. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  63227. + # it will coredump.
  63228. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  63229. + ;;
  63230. + *)
  63231. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63232. + ;;
  63233. + esac
  63234. + else
  63235. + case $host_os in
  63236. + aix[[4-9]]*)
  63237. + # All AIX code is PIC.
  63238. + if test "$host_cpu" = ia64; then
  63239. + # AIX 5 now supports IA64 processor
  63240. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63241. + else
  63242. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  63243. + fi
  63244. + ;;
  63245. + chorus*)
  63246. + case $cc_basename in
  63247. + cxch68*)
  63248. + # Green Hills C++ Compiler
  63249. + # _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"
  63250. + ;;
  63251. + esac
  63252. + ;;
  63253. + dgux*)
  63254. + case $cc_basename in
  63255. + ec++*)
  63256. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63257. + ;;
  63258. + ghcx*)
  63259. + # Green Hills C++ Compiler
  63260. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  63261. + ;;
  63262. + *)
  63263. + ;;
  63264. + esac
  63265. + ;;
  63266. + freebsd* | dragonfly*)
  63267. + # FreeBSD uses GNU C++
  63268. + ;;
  63269. + hpux9* | hpux10* | hpux11*)
  63270. + case $cc_basename in
  63271. + CC*)
  63272. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63273. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  63274. + if test "$host_cpu" != ia64; then
  63275. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  63276. + fi
  63277. + ;;
  63278. + aCC*)
  63279. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63280. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  63281. + case $host_cpu in
  63282. + hppa*64*|ia64*)
  63283. + # +Z the default
  63284. + ;;
  63285. + *)
  63286. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  63287. + ;;
  63288. + esac
  63289. + ;;
  63290. + *)
  63291. + ;;
  63292. + esac
  63293. + ;;
  63294. + interix*)
  63295. + # This is c89, which is MS Visual C++ (no shared libs)
  63296. + # Anyone wants to do a port?
  63297. + ;;
  63298. + irix5* | irix6* | nonstopux*)
  63299. + case $cc_basename in
  63300. + CC*)
  63301. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63302. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  63303. + # CC pic flag -KPIC is the default.
  63304. + ;;
  63305. + *)
  63306. + ;;
  63307. + esac
  63308. + ;;
  63309. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  63310. + case $cc_basename in
  63311. + KCC*)
  63312. + # KAI C++ Compiler
  63313. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  63314. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63315. + ;;
  63316. + ecpc* )
  63317. + # old Intel C++ for x86_64 which still supported -KPIC.
  63318. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63319. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63320. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  63321. + ;;
  63322. + icpc* )
  63323. + # Intel C++, used to be incompatible with GCC.
  63324. + # ICC 10 doesn't accept -KPIC any more.
  63325. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63326. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63327. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  63328. + ;;
  63329. + pgCC* | pgcpp*)
  63330. + # Portland Group C++ compiler
  63331. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63332. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  63333. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63334. + ;;
  63335. + cxx*)
  63336. + # Compaq C++
  63337. + # Make sure the PIC flag is empty. It appears that all Alpha
  63338. + # Linux and Compaq Tru64 Unix objects are PIC.
  63339. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  63340. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  63341. + ;;
  63342. + xlc* | xlC*)
  63343. + # IBM XL 8.0 on PPC
  63344. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63345. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  63346. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  63347. + ;;
  63348. + *)
  63349. + case `$CC -V 2>&1 | sed 5q` in
  63350. + *Sun\ C*)
  63351. + # Sun C++ 5.9
  63352. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63353. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63354. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  63355. + ;;
  63356. + esac
  63357. + ;;
  63358. + esac
  63359. + ;;
  63360. + lynxos*)
  63361. + ;;
  63362. + m88k*)
  63363. + ;;
  63364. + mvs*)
  63365. + case $cc_basename in
  63366. + cxx*)
  63367. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  63368. + ;;
  63369. + *)
  63370. + ;;
  63371. + esac
  63372. + ;;
  63373. + netbsd* | netbsdelf*-gnu)
  63374. + ;;
  63375. + *qnx* | *nto*)
  63376. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  63377. + # it will coredump.
  63378. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  63379. + ;;
  63380. + osf3* | osf4* | osf5*)
  63381. + case $cc_basename in
  63382. + KCC*)
  63383. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  63384. + ;;
  63385. + RCC*)
  63386. + # Rational C++ 2.4.1
  63387. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  63388. + ;;
  63389. + cxx*)
  63390. + # Digital/Compaq C++
  63391. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63392. + # Make sure the PIC flag is empty. It appears that all Alpha
  63393. + # Linux and Compaq Tru64 Unix objects are PIC.
  63394. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  63395. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  63396. + ;;
  63397. + *)
  63398. + ;;
  63399. + esac
  63400. + ;;
  63401. + psos*)
  63402. + ;;
  63403. + solaris*)
  63404. + case $cc_basename in
  63405. + CC*)
  63406. + # Sun C++ 4.2, 5.x and Centerline C++
  63407. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63408. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63409. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  63410. + ;;
  63411. + gcx*)
  63412. + # Green Hills C++ Compiler
  63413. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  63414. + ;;
  63415. + *)
  63416. + ;;
  63417. + esac
  63418. + ;;
  63419. + sunos4*)
  63420. + case $cc_basename in
  63421. + CC*)
  63422. + # Sun C++ 4.x
  63423. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  63424. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63425. + ;;
  63426. + lcc*)
  63427. + # Lucid
  63428. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  63429. + ;;
  63430. + *)
  63431. + ;;
  63432. + esac
  63433. + ;;
  63434. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  63435. + case $cc_basename in
  63436. + CC*)
  63437. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63438. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63439. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63440. + ;;
  63441. + esac
  63442. + ;;
  63443. + tandem*)
  63444. + case $cc_basename in
  63445. + NCC*)
  63446. + # NonStop-UX NCC 3.20
  63447. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63448. + ;;
  63449. + *)
  63450. + ;;
  63451. + esac
  63452. + ;;
  63453. + vxworks*)
  63454. + ;;
  63455. + *)
  63456. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  63457. + ;;
  63458. + esac
  63459. + fi
  63460. +],
  63461. +[
  63462. + if test "$GCC" = yes; then
  63463. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63464. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  63465. +
  63466. + case $host_os in
  63467. + aix*)
  63468. + # All AIX code is PIC.
  63469. + if test "$host_cpu" = ia64; then
  63470. + # AIX 5 now supports IA64 processor
  63471. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63472. + fi
  63473. + ;;
  63474. +
  63475. + amigaos*)
  63476. + case $host_cpu in
  63477. + powerpc)
  63478. + # see comment about AmigaOS4 .so support
  63479. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63480. + ;;
  63481. + m68k)
  63482. + # FIXME: we need at least 68020 code to build shared libraries, but
  63483. + # adding the `-m68020' flag to GCC prevents building anything better,
  63484. + # like `-m68040'.
  63485. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  63486. + ;;
  63487. + esac
  63488. + ;;
  63489. +
  63490. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  63491. + # PIC is the default for these OSes.
  63492. + ;;
  63493. +
  63494. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  63495. + # This hack is so that the source file can tell whether it is being
  63496. + # built for inclusion in a dll (and should export symbols for example).
  63497. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  63498. + # (--disable-auto-import) libraries
  63499. + m4_if([$1], [GCJ], [],
  63500. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  63501. + ;;
  63502. +
  63503. + darwin* | rhapsody*)
  63504. + # PIC is the default on this platform
  63505. + # Common symbols not allowed in MH_DYLIB files
  63506. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  63507. + ;;
  63508. +
  63509. + hpux*)
  63510. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  63511. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  63512. + # sets the default TLS model and affects inlining.
  63513. + case $host_cpu in
  63514. + hppa*64*)
  63515. + # +Z the default
  63516. + ;;
  63517. + *)
  63518. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63519. + ;;
  63520. + esac
  63521. + ;;
  63522. +
  63523. + interix[[3-9]]*)
  63524. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  63525. + # Instead, we relocate shared libraries at runtime.
  63526. + ;;
  63527. +
  63528. + msdosdjgpp*)
  63529. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  63530. + # on systems that don't support them.
  63531. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  63532. + enable_shared=no
  63533. + ;;
  63534. +
  63535. + *nto* | *qnx*)
  63536. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  63537. + # it will coredump.
  63538. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  63539. + ;;
  63540. +
  63541. + sysv4*MP*)
  63542. + if test -d /usr/nec; then
  63543. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  63544. + fi
  63545. + ;;
  63546. +
  63547. + *)
  63548. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63549. + ;;
  63550. + esac
  63551. + else
  63552. + # PORTME Check for flag to pass linker flags through the system compiler.
  63553. + case $host_os in
  63554. + aix*)
  63555. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63556. + if test "$host_cpu" = ia64; then
  63557. + # AIX 5 now supports IA64 processor
  63558. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63559. + else
  63560. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  63561. + fi
  63562. + ;;
  63563. +
  63564. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  63565. + # This hack is so that the source file can tell whether it is being
  63566. + # built for inclusion in a dll (and should export symbols for example).
  63567. + m4_if([$1], [GCJ], [],
  63568. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  63569. + ;;
  63570. +
  63571. + hpux9* | hpux10* | hpux11*)
  63572. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63573. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  63574. + # not for PA HP-UX.
  63575. + case $host_cpu in
  63576. + hppa*64*|ia64*)
  63577. + # +Z the default
  63578. + ;;
  63579. + *)
  63580. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  63581. + ;;
  63582. + esac
  63583. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  63584. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  63585. + ;;
  63586. +
  63587. + irix5* | irix6* | nonstopux*)
  63588. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63589. + # PIC (with -KPIC) is the default.
  63590. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  63591. + ;;
  63592. +
  63593. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  63594. + case $cc_basename in
  63595. + # old Intel for x86_64 which still supported -KPIC.
  63596. + ecc*)
  63597. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63598. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63599. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  63600. + ;;
  63601. + # icc used to be incompatible with GCC.
  63602. + # ICC 10 doesn't accept -KPIC any more.
  63603. + icc* | ifort*)
  63604. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63605. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  63606. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  63607. + ;;
  63608. + # Lahey Fortran 8.1.
  63609. + lf95*)
  63610. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63611. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  63612. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  63613. + ;;
  63614. + pgcc* | pgf77* | pgf90* | pgf95*)
  63615. + # Portland Group compilers (*not* the Pentium gcc compiler,
  63616. + # which looks to be a dead project)
  63617. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63618. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  63619. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63620. + ;;
  63621. + ccc*)
  63622. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63623. + # All Alpha code is PIC.
  63624. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  63625. + ;;
  63626. + xl*)
  63627. + # IBM XL C 8.0/Fortran 10.1 on PPC
  63628. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63629. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  63630. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  63631. + ;;
  63632. + *)
  63633. + case `$CC -V 2>&1 | sed 5q` in
  63634. + *Sun\ C*)
  63635. + # Sun C 5.9
  63636. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63637. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63638. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63639. + ;;
  63640. + *Sun\ F*)
  63641. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  63642. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63643. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63644. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  63645. + ;;
  63646. + esac
  63647. + ;;
  63648. + esac
  63649. + ;;
  63650. +
  63651. + newsos6)
  63652. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63653. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63654. + ;;
  63655. +
  63656. + *nto* | *qnx*)
  63657. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  63658. + # it will coredump.
  63659. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  63660. + ;;
  63661. +
  63662. + osf3* | osf4* | osf5*)
  63663. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63664. + # All OSF/1 code is PIC.
  63665. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  63666. + ;;
  63667. +
  63668. + rdos*)
  63669. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  63670. + ;;
  63671. +
  63672. + solaris*)
  63673. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63674. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63675. + case $cc_basename in
  63676. + f77* | f90* | f95*)
  63677. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  63678. + *)
  63679. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  63680. + esac
  63681. + ;;
  63682. +
  63683. + sunos4*)
  63684. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  63685. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  63686. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63687. + ;;
  63688. +
  63689. + sysv4 | sysv4.2uw2* | sysv4.3*)
  63690. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63691. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63692. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63693. + ;;
  63694. +
  63695. + sysv4*MP*)
  63696. + if test -d /usr/nec ;then
  63697. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  63698. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63699. + fi
  63700. + ;;
  63701. +
  63702. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  63703. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63704. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  63705. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63706. + ;;
  63707. +
  63708. + unicos*)
  63709. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  63710. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  63711. + ;;
  63712. +
  63713. + uts4*)
  63714. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  63715. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  63716. + ;;
  63717. +
  63718. + *)
  63719. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  63720. + ;;
  63721. + esac
  63722. + fi
  63723. +])
  63724. +case $host_os in
  63725. + # For platforms which do not support PIC, -DPIC is meaningless:
  63726. + *djgpp*)
  63727. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  63728. + ;;
  63729. + *)
  63730. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  63731. + ;;
  63732. +esac
  63733. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  63734. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  63735. + [How to pass a linker flag through the compiler])
  63736. +
  63737. +#
  63738. +# Check to make sure the PIC flag actually works.
  63739. +#
  63740. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  63741. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  63742. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  63743. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  63744. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  63745. + "" | " "*) ;;
  63746. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  63747. + esac],
  63748. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  63749. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  63750. +fi
  63751. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  63752. + [Additional compiler flags for building library objects])
  63753. +
  63754. +#
  63755. +# Check to make sure the static flag actually works.
  63756. +#
  63757. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  63758. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  63759. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  63760. + $lt_tmp_static_flag,
  63761. + [],
  63762. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  63763. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  63764. + [Compiler flag to prevent dynamic linking])
  63765. +])# _LT_COMPILER_PIC
  63766. +
  63767. +
  63768. +# _LT_LINKER_SHLIBS([TAGNAME])
  63769. +# ----------------------------
  63770. +# See if the linker supports building shared libraries.
  63771. +m4_defun([_LT_LINKER_SHLIBS],
  63772. +[AC_REQUIRE([LT_PATH_LD])dnl
  63773. +AC_REQUIRE([LT_PATH_NM])dnl
  63774. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  63775. +m4_require([_LT_DECL_EGREP])dnl
  63776. +m4_require([_LT_DECL_SED])dnl
  63777. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  63778. +m4_require([_LT_TAG_COMPILER])dnl
  63779. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  63780. +m4_if([$1], [CXX], [
  63781. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  63782. + case $host_os in
  63783. + aix[[4-9]]*)
  63784. + # If we're using GNU nm, then we don't want the "-C" option.
  63785. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  63786. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  63787. + _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'
  63788. + else
  63789. + _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'
  63790. + fi
  63791. + ;;
  63792. + pw32*)
  63793. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  63794. + ;;
  63795. + cygwin* | mingw* | cegcc*)
  63796. + _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'
  63797. + ;;
  63798. + linux* | k*bsd*-gnu)
  63799. + _LT_TAGVAR(link_all_deplibs, $1)=no
  63800. + ;;
  63801. + *)
  63802. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  63803. + ;;
  63804. + esac
  63805. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  63806. +], [
  63807. + runpath_var=
  63808. + _LT_TAGVAR(allow_undefined_flag, $1)=
  63809. + _LT_TAGVAR(always_export_symbols, $1)=no
  63810. + _LT_TAGVAR(archive_cmds, $1)=
  63811. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  63812. + _LT_TAGVAR(compiler_needs_object, $1)=no
  63813. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  63814. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  63815. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  63816. + _LT_TAGVAR(hardcode_automatic, $1)=no
  63817. + _LT_TAGVAR(hardcode_direct, $1)=no
  63818. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  63819. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  63820. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  63821. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  63822. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  63823. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  63824. + _LT_TAGVAR(inherit_rpath, $1)=no
  63825. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  63826. + _LT_TAGVAR(module_cmds, $1)=
  63827. + _LT_TAGVAR(module_expsym_cmds, $1)=
  63828. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  63829. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  63830. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  63831. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  63832. + # include_expsyms should be a list of space-separated symbols to be *always*
  63833. + # included in the symbol list
  63834. + _LT_TAGVAR(include_expsyms, $1)=
  63835. + # exclude_expsyms can be an extended regexp of symbols to exclude
  63836. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  63837. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  63838. + # as well as any symbol that contains `d'.
  63839. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  63840. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  63841. + # platforms (ab)use it in PIC code, but their linkers get confused if
  63842. + # the symbol is explicitly referenced. Since portable code cannot
  63843. + # rely on this symbol name, it's probably fine to never include it in
  63844. + # preloaded symbol tables.
  63845. + # Exclude shared library initialization/finalization symbols.
  63846. +dnl Note also adjust exclude_expsyms for C++ above.
  63847. + extract_expsyms_cmds=
  63848. +
  63849. + case $host_os in
  63850. + cygwin* | mingw* | pw32* | cegcc*)
  63851. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  63852. + # When not using gcc, we currently assume that we are using
  63853. + # Microsoft Visual C++.
  63854. + if test "$GCC" != yes; then
  63855. + with_gnu_ld=no
  63856. + fi
  63857. + ;;
  63858. + interix*)
  63859. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  63860. + with_gnu_ld=yes
  63861. + ;;
  63862. + openbsd*)
  63863. + with_gnu_ld=no
  63864. + ;;
  63865. + linux* | k*bsd*-gnu)
  63866. + _LT_TAGVAR(link_all_deplibs, $1)=no
  63867. + ;;
  63868. + esac
  63869. +
  63870. + _LT_TAGVAR(ld_shlibs, $1)=yes
  63871. + if test "$with_gnu_ld" = yes; then
  63872. + # If archive_cmds runs LD, not CC, wlarc should be empty
  63873. + wlarc='${wl}'
  63874. +
  63875. + # Set some defaults for GNU ld with shared library support. These
  63876. + # are reset later if shared libraries are not supported. Putting them
  63877. + # here allows them to be overridden if necessary.
  63878. + runpath_var=LD_RUN_PATH
  63879. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  63880. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  63881. + # ancient GNU ld didn't support --whole-archive et. al.
  63882. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  63883. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  63884. + else
  63885. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  63886. + fi
  63887. + supports_anon_versioning=no
  63888. + case `$LD -v 2>&1` in
  63889. + *GNU\ gold*) supports_anon_versioning=yes ;;
  63890. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  63891. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  63892. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  63893. + *\ 2.11.*) ;; # other 2.11 versions
  63894. + *) supports_anon_versioning=yes ;;
  63895. + esac
  63896. +
  63897. + # See if GNU ld supports shared libraries.
  63898. + case $host_os in
  63899. + aix[[3-9]]*)
  63900. + # On AIX/PPC, the GNU linker is very broken
  63901. + if test "$host_cpu" != ia64; then
  63902. + _LT_TAGVAR(ld_shlibs, $1)=no
  63903. + cat <<_LT_EOF 1>&2
  63904. +
  63905. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  63906. +*** to be unable to reliably create shared libraries on AIX.
  63907. +*** Therefore, libtool is disabling shared libraries support. If you
  63908. +*** really care for shared libraries, you may want to modify your PATH
  63909. +*** so that a non-GNU linker is found, and then restart.
  63910. +
  63911. +_LT_EOF
  63912. + fi
  63913. + ;;
  63914. +
  63915. + amigaos*)
  63916. + case $host_cpu in
  63917. + powerpc)
  63918. + # see comment about AmigaOS4 .so support
  63919. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  63920. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  63921. + ;;
  63922. + m68k)
  63923. + _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)'
  63924. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  63925. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  63926. + ;;
  63927. + esac
  63928. + ;;
  63929. +
  63930. + beos*)
  63931. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  63932. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  63933. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  63934. + # support --undefined. This deserves some investigation. FIXME
  63935. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  63936. + else
  63937. + _LT_TAGVAR(ld_shlibs, $1)=no
  63938. + fi
  63939. + ;;
  63940. +
  63941. + cygwin* | mingw* | pw32* | cegcc*)
  63942. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  63943. + # as there is no search path for DLLs.
  63944. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  63945. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  63946. + _LT_TAGVAR(always_export_symbols, $1)=no
  63947. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  63948. + _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'
  63949. +
  63950. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  63951. + _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'
  63952. + # If the export-symbols file already is a .def file (1st line
  63953. + # is EXPORTS), use it as is; otherwise, prepend...
  63954. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  63955. + cp $export_symbols $output_objdir/$soname.def;
  63956. + else
  63957. + echo EXPORTS > $output_objdir/$soname.def;
  63958. + cat $export_symbols >> $output_objdir/$soname.def;
  63959. + fi~
  63960. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  63961. + else
  63962. + _LT_TAGVAR(ld_shlibs, $1)=no
  63963. + fi
  63964. + ;;
  63965. +
  63966. + interix[[3-9]]*)
  63967. + _LT_TAGVAR(hardcode_direct, $1)=no
  63968. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  63969. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  63970. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  63971. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  63972. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  63973. + # default) and relocated if they conflict, which is a slow very memory
  63974. + # consuming and fragmenting process. To avoid this, we pick a random,
  63975. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  63976. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  63977. + _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'
  63978. + _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'
  63979. + ;;
  63980. +
  63981. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  63982. + tmp_diet=no
  63983. + if test "$host_os" = linux-dietlibc; then
  63984. + case $cc_basename in
  63985. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  63986. + esac
  63987. + fi
  63988. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  63989. + && test "$tmp_diet" = no
  63990. + then
  63991. + tmp_addflag=
  63992. + tmp_sharedflag='-shared'
  63993. + case $cc_basename,$host_cpu in
  63994. + pgcc*) # Portland Group C compiler
  63995. + _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'
  63996. + tmp_addflag=' $pic_flag'
  63997. + ;;
  63998. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  63999. + _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'
  64000. + tmp_addflag=' $pic_flag -Mnomain' ;;
  64001. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  64002. + tmp_addflag=' -i_dynamic' ;;
  64003. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  64004. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  64005. + ifc* | ifort*) # Intel Fortran compiler
  64006. + tmp_addflag=' -nofor_main' ;;
  64007. + lf95*) # Lahey Fortran 8.1
  64008. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  64009. + tmp_sharedflag='--shared' ;;
  64010. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  64011. + tmp_sharedflag='-qmkshrobj'
  64012. + tmp_addflag= ;;
  64013. + esac
  64014. + case `$CC -V 2>&1 | sed 5q` in
  64015. + *Sun\ C*) # Sun C 5.9
  64016. + _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'
  64017. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  64018. + tmp_sharedflag='-G' ;;
  64019. + *Sun\ F*) # Sun Fortran 8.3
  64020. + tmp_sharedflag='-G' ;;
  64021. + esac
  64022. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  64023. +
  64024. + if test "x$supports_anon_versioning" = xyes; then
  64025. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  64026. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  64027. + echo "local: *; };" >> $output_objdir/$libname.ver~
  64028. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  64029. + fi
  64030. +
  64031. + case $cc_basename in
  64032. + xlf*)
  64033. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  64034. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  64035. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  64036. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  64037. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  64038. + if test "x$supports_anon_versioning" = xyes; then
  64039. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  64040. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  64041. + echo "local: *; };" >> $output_objdir/$libname.ver~
  64042. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  64043. + fi
  64044. + ;;
  64045. + esac
  64046. + else
  64047. + _LT_TAGVAR(ld_shlibs, $1)=no
  64048. + fi
  64049. + ;;
  64050. +
  64051. + netbsd* | netbsdelf*-gnu)
  64052. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  64053. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  64054. + wlarc=
  64055. + else
  64056. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  64057. + _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'
  64058. + fi
  64059. + ;;
  64060. +
  64061. + solaris*)
  64062. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  64063. + _LT_TAGVAR(ld_shlibs, $1)=no
  64064. + cat <<_LT_EOF 1>&2
  64065. +
  64066. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  64067. +*** create shared libraries on Solaris systems. Therefore, libtool
  64068. +*** is disabling shared libraries support. We urge you to upgrade GNU
  64069. +*** binutils to release 2.9.1 or newer. Another option is to modify
  64070. +*** your PATH or compiler configuration so that the native linker is
  64071. +*** used, and then restart.
  64072. +
  64073. +_LT_EOF
  64074. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  64075. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  64076. + _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'
  64077. + else
  64078. + _LT_TAGVAR(ld_shlibs, $1)=no
  64079. + fi
  64080. + ;;
  64081. +
  64082. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  64083. + case `$LD -v 2>&1` in
  64084. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  64085. + _LT_TAGVAR(ld_shlibs, $1)=no
  64086. + cat <<_LT_EOF 1>&2
  64087. +
  64088. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  64089. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  64090. +*** is disabling shared libraries support. We urge you to upgrade GNU
  64091. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  64092. +*** your PATH or compiler configuration so that the native linker is
  64093. +*** used, and then restart.
  64094. +
  64095. +_LT_EOF
  64096. + ;;
  64097. + *)
  64098. + # For security reasons, it is highly recommended that you always
  64099. + # use absolute paths for naming shared libraries, and exclude the
  64100. + # DT_RUNPATH tag from executables and libraries. But doing so
  64101. + # requires that you compile everything twice, which is a pain.
  64102. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  64103. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  64104. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  64105. + _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'
  64106. + else
  64107. + _LT_TAGVAR(ld_shlibs, $1)=no
  64108. + fi
  64109. + ;;
  64110. + esac
  64111. + ;;
  64112. +
  64113. + sunos4*)
  64114. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  64115. + wlarc=
  64116. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64117. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64118. + ;;
  64119. +
  64120. + *)
  64121. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  64122. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  64123. + _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'
  64124. + else
  64125. + _LT_TAGVAR(ld_shlibs, $1)=no
  64126. + fi
  64127. + ;;
  64128. + esac
  64129. +
  64130. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  64131. + runpath_var=
  64132. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  64133. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  64134. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  64135. + fi
  64136. + else
  64137. + # PORTME fill in a description of your system's linker (not GNU ld)
  64138. + case $host_os in
  64139. + aix3*)
  64140. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  64141. + _LT_TAGVAR(always_export_symbols, $1)=yes
  64142. + _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'
  64143. + # Note: this linker hardcodes the directories in LIBPATH if there
  64144. + # are no directories specified by -L.
  64145. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64146. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  64147. + # Neither direct hardcoding nor static linking is supported with a
  64148. + # broken collect2.
  64149. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  64150. + fi
  64151. + ;;
  64152. +
  64153. + aix[[4-9]]*)
  64154. + if test "$host_cpu" = ia64; then
  64155. + # On IA64, the linker does run time linking by default, so we don't
  64156. + # have to do anything special.
  64157. + aix_use_runtimelinking=no
  64158. + exp_sym_flag='-Bexport'
  64159. + no_entry_flag=""
  64160. + else
  64161. + # If we're using GNU nm, then we don't want the "-C" option.
  64162. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  64163. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  64164. + _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'
  64165. + else
  64166. + _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'
  64167. + fi
  64168. + aix_use_runtimelinking=no
  64169. +
  64170. + # Test if we are trying to use run time linking or normal
  64171. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  64172. + # need to do runtime linking.
  64173. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  64174. + for ld_flag in $LDFLAGS; do
  64175. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  64176. + aix_use_runtimelinking=yes
  64177. + break
  64178. + fi
  64179. + done
  64180. + ;;
  64181. + esac
  64182. +
  64183. + exp_sym_flag='-bexport'
  64184. + no_entry_flag='-bnoentry'
  64185. + fi
  64186. +
  64187. + # When large executables or shared objects are built, AIX ld can
  64188. + # have problems creating the table of contents. If linking a library
  64189. + # or program results in "error TOC overflow" add -mminimal-toc to
  64190. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  64191. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  64192. +
  64193. + _LT_TAGVAR(archive_cmds, $1)=''
  64194. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64195. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  64196. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  64197. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  64198. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  64199. +
  64200. + if test "$GCC" = yes; then
  64201. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  64202. + # We only want to do this on AIX 4.2 and lower, the check
  64203. + # below for broken collect2 doesn't work under 4.3+
  64204. + collect2name=`${CC} -print-prog-name=collect2`
  64205. + if test -f "$collect2name" &&
  64206. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  64207. + then
  64208. + # We have reworked collect2
  64209. + :
  64210. + else
  64211. + # We have old collect2
  64212. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  64213. + # It fails to find uninstalled libraries when the uninstalled
  64214. + # path is not listed in the libpath. Setting hardcode_minus_L
  64215. + # to unsupported forces relinking
  64216. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64217. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  64218. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  64219. + fi
  64220. + ;;
  64221. + esac
  64222. + shared_flag='-shared'
  64223. + if test "$aix_use_runtimelinking" = yes; then
  64224. + shared_flag="$shared_flag "'${wl}-G'
  64225. + fi
  64226. + _LT_TAGVAR(link_all_deplibs, $1)=no
  64227. + else
  64228. + # not using gcc
  64229. + if test "$host_cpu" = ia64; then
  64230. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  64231. + # chokes on -Wl,-G. The following line is correct:
  64232. + shared_flag='-G'
  64233. + else
  64234. + if test "$aix_use_runtimelinking" = yes; then
  64235. + shared_flag='${wl}-G'
  64236. + else
  64237. + shared_flag='${wl}-bM:SRE'
  64238. + fi
  64239. + fi
  64240. + fi
  64241. +
  64242. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  64243. + # It seems that -bexpall does not export symbols beginning with
  64244. + # underscore (_), so it is better to generate a list of symbols to export.
  64245. + _LT_TAGVAR(always_export_symbols, $1)=yes
  64246. + if test "$aix_use_runtimelinking" = yes; then
  64247. + # Warning - without using the other runtime loading flags (-brtl),
  64248. + # -berok will link without error, but may produce a broken library.
  64249. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  64250. + # Determine the default libpath from the value encoded in an
  64251. + # empty executable.
  64252. + _LT_SYS_MODULE_PATH_AIX
  64253. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  64254. + _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"
  64255. + else
  64256. + if test "$host_cpu" = ia64; then
  64257. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  64258. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  64259. + _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"
  64260. + else
  64261. + # Determine the default libpath from the value encoded in an
  64262. + # empty executable.
  64263. + _LT_SYS_MODULE_PATH_AIX
  64264. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  64265. + # Warning - without using the other run time loading flags,
  64266. + # -berok will link without error, but may produce a broken library.
  64267. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  64268. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  64269. + # Exported symbols can be pulled into shared objects from archives
  64270. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  64271. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  64272. + # This is similar to how AIX traditionally builds its shared libraries.
  64273. + _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'
  64274. + fi
  64275. + fi
  64276. + ;;
  64277. +
  64278. + amigaos*)
  64279. + case $host_cpu in
  64280. + powerpc)
  64281. + # see comment about AmigaOS4 .so support
  64282. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  64283. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  64284. + ;;
  64285. + m68k)
  64286. + _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)'
  64287. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  64288. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64289. + ;;
  64290. + esac
  64291. + ;;
  64292. +
  64293. + bsdi[[45]]*)
  64294. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  64295. + ;;
  64296. +
  64297. + cygwin* | mingw* | pw32* | cegcc*)
  64298. + # When not using gcc, we currently assume that we are using
  64299. + # Microsoft Visual C++.
  64300. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  64301. + # no search path for DLLs.
  64302. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  64303. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  64304. + # Tell ltmain to make .lib files, not .a files.
  64305. + libext=lib
  64306. + # Tell ltmain to make .dll files, not .so files.
  64307. + shrext_cmds=".dll"
  64308. + # FIXME: Setting linknames here is a bad hack.
  64309. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  64310. + # The linker will automatically build a .lib file if we build a DLL.
  64311. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  64312. + # FIXME: Should let the user specify the lib program.
  64313. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  64314. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  64315. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  64316. + ;;
  64317. +
  64318. + darwin* | rhapsody*)
  64319. + _LT_DARWIN_LINKER_FEATURES($1)
  64320. + ;;
  64321. +
  64322. + dgux*)
  64323. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64324. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  64325. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64326. + ;;
  64327. +
  64328. + freebsd1*)
  64329. + _LT_TAGVAR(ld_shlibs, $1)=no
  64330. + ;;
  64331. +
  64332. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  64333. + # support. Future versions do this automatically, but an explicit c++rt0.o
  64334. + # does not break anything, and helps significantly (at the cost of a little
  64335. + # extra space).
  64336. + freebsd2.2*)
  64337. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  64338. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  64339. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64340. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64341. + ;;
  64342. +
  64343. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  64344. + freebsd2*)
  64345. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  64346. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64347. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64348. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64349. + ;;
  64350. +
  64351. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  64352. + freebsd* | dragonfly*)
  64353. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  64354. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  64355. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64356. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64357. + ;;
  64358. +
  64359. + hpux9*)
  64360. + if test "$GCC" = yes; then
  64361. + _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'
  64362. + else
  64363. + _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'
  64364. + fi
  64365. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  64366. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  64367. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64368. +
  64369. + # hardcode_minus_L: Not really in the search PATH,
  64370. + # but as the default location of the library.
  64371. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64372. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  64373. + ;;
  64374. +
  64375. + hpux10*)
  64376. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  64377. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  64378. + else
  64379. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  64380. + fi
  64381. + if test "$with_gnu_ld" = no; then
  64382. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  64383. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  64384. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  64385. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64386. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  64387. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  64388. + # hardcode_minus_L: Not really in the search PATH,
  64389. + # but as the default location of the library.
  64390. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64391. + fi
  64392. + ;;
  64393. +
  64394. + hpux11*)
  64395. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  64396. + case $host_cpu in
  64397. + hppa*64*)
  64398. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  64399. + ;;
  64400. + ia64*)
  64401. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  64402. + ;;
  64403. + *)
  64404. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  64405. + ;;
  64406. + esac
  64407. + else
  64408. + case $host_cpu in
  64409. + hppa*64*)
  64410. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  64411. + ;;
  64412. + ia64*)
  64413. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  64414. + ;;
  64415. + *)
  64416. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  64417. + ;;
  64418. + esac
  64419. + fi
  64420. + if test "$with_gnu_ld" = no; then
  64421. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  64422. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  64423. +
  64424. + case $host_cpu in
  64425. + hppa*64*|ia64*)
  64426. + _LT_TAGVAR(hardcode_direct, $1)=no
  64427. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64428. + ;;
  64429. + *)
  64430. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64431. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  64432. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  64433. +
  64434. + # hardcode_minus_L: Not really in the search PATH,
  64435. + # but as the default location of the library.
  64436. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64437. + ;;
  64438. + esac
  64439. + fi
  64440. + ;;
  64441. +
  64442. + irix5* | irix6* | nonstopux*)
  64443. + if test "$GCC" = yes; then
  64444. + _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'
  64445. + # Try to use the -exported_symbol ld option, if it does not
  64446. + # work, assume that -exports_file does not work either and
  64447. + # implicitly export all symbols.
  64448. + save_LDFLAGS="$LDFLAGS"
  64449. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  64450. + AC_LINK_IFELSE(int foo(void) {},
  64451. + _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'
  64452. + )
  64453. + LDFLAGS="$save_LDFLAGS"
  64454. + else
  64455. + _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'
  64456. + _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'
  64457. + fi
  64458. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  64459. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  64460. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  64461. + _LT_TAGVAR(inherit_rpath, $1)=yes
  64462. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  64463. + ;;
  64464. +
  64465. + netbsd* | netbsdelf*-gnu)
  64466. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  64467. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  64468. + else
  64469. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  64470. + fi
  64471. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  64472. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64473. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64474. + ;;
  64475. +
  64476. + newsos6)
  64477. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64478. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64479. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  64480. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  64481. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64482. + ;;
  64483. +
  64484. + *nto* | *qnx*)
  64485. + ;;
  64486. +
  64487. + openbsd*)
  64488. + if test -f /usr/libexec/ld.so; then
  64489. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64490. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64491. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  64492. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  64493. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  64494. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  64495. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  64496. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  64497. + else
  64498. + case $host_os in
  64499. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  64500. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  64501. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  64502. + ;;
  64503. + *)
  64504. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  64505. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  64506. + ;;
  64507. + esac
  64508. + fi
  64509. + else
  64510. + _LT_TAGVAR(ld_shlibs, $1)=no
  64511. + fi
  64512. + ;;
  64513. +
  64514. + os2*)
  64515. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  64516. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64517. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  64518. + _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'
  64519. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  64520. + ;;
  64521. +
  64522. + osf3*)
  64523. + if test "$GCC" = yes; then
  64524. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  64525. + _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'
  64526. + else
  64527. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  64528. + _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'
  64529. + fi
  64530. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  64531. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  64532. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  64533. + ;;
  64534. +
  64535. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  64536. + if test "$GCC" = yes; then
  64537. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  64538. + _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'
  64539. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  64540. + else
  64541. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  64542. + _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'
  64543. + _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~
  64544. + $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'
  64545. +
  64546. + # Both c and cxx compiler support -rpath directly
  64547. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  64548. + fi
  64549. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  64550. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  64551. + ;;
  64552. +
  64553. + solaris*)
  64554. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  64555. + if test "$GCC" = yes; then
  64556. + wlarc='${wl}'
  64557. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  64558. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  64559. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  64560. + else
  64561. + case `$CC -V 2>&1` in
  64562. + *"Compilers 5.0"*)
  64563. + wlarc=''
  64564. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64565. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  64566. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  64567. + ;;
  64568. + *)
  64569. + wlarc='${wl}'
  64570. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  64571. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  64572. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  64573. + ;;
  64574. + esac
  64575. + fi
  64576. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  64577. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64578. + case $host_os in
  64579. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  64580. + *)
  64581. + # The compiler driver will combine and reorder linker options,
  64582. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  64583. + # but is careful enough not to reorder.
  64584. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  64585. + if test "$GCC" = yes; then
  64586. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  64587. + else
  64588. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  64589. + fi
  64590. + ;;
  64591. + esac
  64592. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  64593. + ;;
  64594. +
  64595. + sunos4*)
  64596. + if test "x$host_vendor" = xsequent; then
  64597. + # Use $CC to link under sequent, because it throws in some extra .o
  64598. + # files that make .init and .fini sections work.
  64599. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  64600. + else
  64601. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  64602. + fi
  64603. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  64604. + _LT_TAGVAR(hardcode_direct, $1)=yes
  64605. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  64606. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64607. + ;;
  64608. +
  64609. + sysv4)
  64610. + case $host_vendor in
  64611. + sni)
  64612. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64613. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  64614. + ;;
  64615. + siemens)
  64616. + ## LD is ld it makes a PLAMLIB
  64617. + ## CC just makes a GrossModule.
  64618. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  64619. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  64620. + _LT_TAGVAR(hardcode_direct, $1)=no
  64621. + ;;
  64622. + motorola)
  64623. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64624. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  64625. + ;;
  64626. + esac
  64627. + runpath_var='LD_RUN_PATH'
  64628. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64629. + ;;
  64630. +
  64631. + sysv4.3*)
  64632. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64633. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64634. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  64635. + ;;
  64636. +
  64637. + sysv4*MP*)
  64638. + if test -d /usr/nec; then
  64639. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64640. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64641. + runpath_var=LD_RUN_PATH
  64642. + hardcode_runpath_var=yes
  64643. + _LT_TAGVAR(ld_shlibs, $1)=yes
  64644. + fi
  64645. + ;;
  64646. +
  64647. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  64648. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  64649. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  64650. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64651. + runpath_var='LD_RUN_PATH'
  64652. +
  64653. + if test "$GCC" = yes; then
  64654. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64655. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64656. + else
  64657. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64658. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64659. + fi
  64660. + ;;
  64661. +
  64662. + sysv5* | sco3.2v5* | sco5v6*)
  64663. + # Note: We can NOT use -z defs as we might desire, because we do not
  64664. + # link with -lc, and that would cause any symbols used from libc to
  64665. + # always be unresolved, which means just about no library would
  64666. + # ever link correctly. If we're not using GNU ld we use -z text
  64667. + # though, which does catch some bad symbols but isn't as heavy-handed
  64668. + # as -z defs.
  64669. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  64670. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  64671. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  64672. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64673. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  64674. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  64675. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  64676. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  64677. + runpath_var='LD_RUN_PATH'
  64678. +
  64679. + if test "$GCC" = yes; then
  64680. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64681. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64682. + else
  64683. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64684. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  64685. + fi
  64686. + ;;
  64687. +
  64688. + uts4*)
  64689. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  64690. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  64691. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  64692. + ;;
  64693. +
  64694. + *)
  64695. + _LT_TAGVAR(ld_shlibs, $1)=no
  64696. + ;;
  64697. + esac
  64698. +
  64699. + if test x$host_vendor = xsni; then
  64700. + case $host in
  64701. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  64702. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  64703. + ;;
  64704. + esac
  64705. + fi
  64706. + fi
  64707. +])
  64708. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  64709. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  64710. +
  64711. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  64712. +
  64713. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  64714. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  64715. +_LT_DECL([], [extract_expsyms_cmds], [2],
  64716. + [The commands to extract the exported symbol list from a shared archive])
  64717. +
  64718. +#
  64719. +# Do we need to explicitly link libc?
  64720. +#
  64721. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  64722. +x|xyes)
  64723. + # Assume -lc should be added
  64724. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  64725. +
  64726. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  64727. + case $_LT_TAGVAR(archive_cmds, $1) in
  64728. + *'~'*)
  64729. + # FIXME: we may have to deal with multi-command sequences.
  64730. + ;;
  64731. + '$CC '*)
  64732. + # Test whether the compiler implicitly links with -lc since on some
  64733. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  64734. + # to ld, don't add -lc before -lgcc.
  64735. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  64736. + $RM conftest*
  64737. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  64738. +
  64739. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  64740. + soname=conftest
  64741. + lib=conftest
  64742. + libobjs=conftest.$ac_objext
  64743. + deplibs=
  64744. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  64745. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  64746. + compiler_flags=-v
  64747. + linker_flags=-v
  64748. + verstring=
  64749. + output_objdir=.
  64750. + libname=conftest
  64751. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  64752. + _LT_TAGVAR(allow_undefined_flag, $1)=
  64753. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  64754. + then
  64755. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  64756. + else
  64757. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  64758. + fi
  64759. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  64760. + else
  64761. + cat conftest.err 1>&5
  64762. + fi
  64763. + $RM conftest*
  64764. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  64765. + ;;
  64766. + esac
  64767. + fi
  64768. + ;;
  64769. +esac
  64770. +
  64771. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  64772. + [Whether or not to add -lc for building shared libraries])
  64773. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  64774. + [enable_shared_with_static_runtimes], [0],
  64775. + [Whether or not to disallow shared libs when runtime libs are static])
  64776. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  64777. + [Compiler flag to allow reflexive dlopens])
  64778. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  64779. + [Compiler flag to generate shared objects directly from archives])
  64780. +_LT_TAGDECL([], [compiler_needs_object], [1],
  64781. + [Whether the compiler copes with passing no objects directly])
  64782. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  64783. + [Create an old-style archive from a shared archive])
  64784. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  64785. + [Create a temporary old-style archive to link instead of a shared archive])
  64786. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  64787. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  64788. +_LT_TAGDECL([], [module_cmds], [2],
  64789. + [Commands used to build a loadable module if different from building
  64790. + a shared archive.])
  64791. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  64792. +_LT_TAGDECL([], [with_gnu_ld], [1],
  64793. + [Whether we are building with GNU ld or not])
  64794. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  64795. + [Flag that allows shared libraries with undefined symbols to be built])
  64796. +_LT_TAGDECL([], [no_undefined_flag], [1],
  64797. + [Flag that enforces no undefined symbols])
  64798. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  64799. + [Flag to hardcode $libdir into a binary during linking.
  64800. + This must work even if $libdir does not exist])
  64801. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  64802. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  64803. + during linking. This must work even if $libdir does not exist]])
  64804. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  64805. + [Whether we need a single "-rpath" flag with a separated argument])
  64806. +_LT_TAGDECL([], [hardcode_direct], [0],
  64807. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  64808. + DIR into the resulting binary])
  64809. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  64810. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  64811. + DIR into the resulting binary and the resulting library dependency is
  64812. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  64813. + library is relocated])
  64814. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  64815. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  64816. + into the resulting binary])
  64817. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  64818. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  64819. + into the resulting binary])
  64820. +_LT_TAGDECL([], [hardcode_automatic], [0],
  64821. + [Set to "yes" if building a shared library automatically hardcodes DIR
  64822. + into the library and all subsequent libraries and executables linked
  64823. + against it])
  64824. +_LT_TAGDECL([], [inherit_rpath], [0],
  64825. + [Set to yes if linker adds runtime paths of dependent libraries
  64826. + to runtime path list])
  64827. +_LT_TAGDECL([], [link_all_deplibs], [0],
  64828. + [Whether libtool must link a program against all its dependency libraries])
  64829. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  64830. + [Fix the shell variable $srcfile for the compiler])
  64831. +_LT_TAGDECL([], [always_export_symbols], [0],
  64832. + [Set to "yes" if exported symbols are required])
  64833. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  64834. + [The commands to list exported symbols])
  64835. +_LT_TAGDECL([], [exclude_expsyms], [1],
  64836. + [Symbols that should not be listed in the preloaded symbols])
  64837. +_LT_TAGDECL([], [include_expsyms], [1],
  64838. + [Symbols that must always be exported])
  64839. +_LT_TAGDECL([], [prelink_cmds], [2],
  64840. + [Commands necessary for linking programs (against libraries) with templates])
  64841. +_LT_TAGDECL([], [file_list_spec], [1],
  64842. + [Specify filename containing input files])
  64843. +dnl FIXME: Not yet implemented
  64844. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  64845. +dnl [Compiler flag to generate thread safe objects])
  64846. +])# _LT_LINKER_SHLIBS
  64847. +
  64848. +
  64849. +# _LT_LANG_C_CONFIG([TAG])
  64850. +# ------------------------
  64851. +# Ensure that the configuration variables for a C compiler are suitably
  64852. +# defined. These variables are subsequently used by _LT_CONFIG to write
  64853. +# the compiler configuration to `libtool'.
  64854. +m4_defun([_LT_LANG_C_CONFIG],
  64855. +[m4_require([_LT_DECL_EGREP])dnl
  64856. +lt_save_CC="$CC"
  64857. +AC_LANG_PUSH(C)
  64858. +
  64859. +# Source file extension for C test sources.
  64860. +ac_ext=c
  64861. +
  64862. +# Object file extension for compiled C test sources.
  64863. +objext=o
  64864. +_LT_TAGVAR(objext, $1)=$objext
  64865. +
  64866. +# Code to be used in simple compile tests
  64867. +lt_simple_compile_test_code="int some_variable = 0;"
  64868. +
  64869. +# Code to be used in simple link tests
  64870. +lt_simple_link_test_code='int main(){return(0);}'
  64871. +
  64872. +_LT_TAG_COMPILER
  64873. +# Save the default compiler, since it gets overwritten when the other
  64874. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  64875. +compiler_DEFAULT=$CC
  64876. +
  64877. +# save warnings/boilerplate of simple test code
  64878. +_LT_COMPILER_BOILERPLATE
  64879. +_LT_LINKER_BOILERPLATE
  64880. +
  64881. +## CAVEAT EMPTOR:
  64882. +## There is no encapsulation within the following macros, do not change
  64883. +## the running order or otherwise move them around unless you know exactly
  64884. +## what you are doing...
  64885. +if test -n "$compiler"; then
  64886. + _LT_COMPILER_NO_RTTI($1)
  64887. + _LT_COMPILER_PIC($1)
  64888. + _LT_COMPILER_C_O($1)
  64889. + _LT_COMPILER_FILE_LOCKS($1)
  64890. + _LT_LINKER_SHLIBS($1)
  64891. + _LT_SYS_DYNAMIC_LINKER($1)
  64892. + _LT_LINKER_HARDCODE_LIBPATH($1)
  64893. + LT_SYS_DLOPEN_SELF
  64894. + _LT_CMD_STRIPLIB
  64895. +
  64896. + # Report which library types will actually be built
  64897. + AC_MSG_CHECKING([if libtool supports shared libraries])
  64898. + AC_MSG_RESULT([$can_build_shared])
  64899. +
  64900. + AC_MSG_CHECKING([whether to build shared libraries])
  64901. + test "$can_build_shared" = "no" && enable_shared=no
  64902. +
  64903. + # On AIX, shared libraries and static libraries use the same namespace, and
  64904. + # are all built from PIC.
  64905. + case $host_os in
  64906. + aix3*)
  64907. + test "$enable_shared" = yes && enable_static=no
  64908. + if test -n "$RANLIB"; then
  64909. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  64910. + postinstall_cmds='$RANLIB $lib'
  64911. + fi
  64912. + ;;
  64913. +
  64914. + aix[[4-9]]*)
  64915. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  64916. + test "$enable_shared" = yes && enable_static=no
  64917. + fi
  64918. + ;;
  64919. + esac
  64920. + AC_MSG_RESULT([$enable_shared])
  64921. +
  64922. + AC_MSG_CHECKING([whether to build static libraries])
  64923. + # Make sure either enable_shared or enable_static is yes.
  64924. + test "$enable_shared" = yes || enable_static=yes
  64925. + AC_MSG_RESULT([$enable_static])
  64926. +
  64927. + _LT_CONFIG($1)
  64928. +fi
  64929. +AC_LANG_POP
  64930. +CC="$lt_save_CC"
  64931. +])# _LT_LANG_C_CONFIG
  64932. +
  64933. +
  64934. +# _LT_PROG_CXX
  64935. +# ------------
  64936. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  64937. +# compiler, we have our own version here.
  64938. +m4_defun([_LT_PROG_CXX],
  64939. +[
  64940. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  64941. +AC_PROG_CXX
  64942. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  64943. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  64944. + (test "X$CXX" != "Xg++"))) ; then
  64945. + AC_PROG_CXXCPP
  64946. +else
  64947. + _lt_caught_CXX_error=yes
  64948. +fi
  64949. +popdef([AC_MSG_ERROR])
  64950. +])# _LT_PROG_CXX
  64951. +
  64952. +dnl aclocal-1.4 backwards compatibility:
  64953. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  64954. +
  64955. +
  64956. +# _LT_LANG_CXX_CONFIG([TAG])
  64957. +# --------------------------
  64958. +# Ensure that the configuration variables for a C++ compiler are suitably
  64959. +# defined. These variables are subsequently used by _LT_CONFIG to write
  64960. +# the compiler configuration to `libtool'.
  64961. +m4_defun([_LT_LANG_CXX_CONFIG],
  64962. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  64963. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  64964. +m4_require([_LT_DECL_EGREP])dnl
  64965. +
  64966. +AC_LANG_PUSH(C++)
  64967. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  64968. +_LT_TAGVAR(allow_undefined_flag, $1)=
  64969. +_LT_TAGVAR(always_export_symbols, $1)=no
  64970. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  64971. +_LT_TAGVAR(compiler_needs_object, $1)=no
  64972. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  64973. +_LT_TAGVAR(hardcode_direct, $1)=no
  64974. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  64975. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  64976. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  64977. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  64978. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  64979. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  64980. +_LT_TAGVAR(hardcode_automatic, $1)=no
  64981. +_LT_TAGVAR(inherit_rpath, $1)=no
  64982. +_LT_TAGVAR(module_cmds, $1)=
  64983. +_LT_TAGVAR(module_expsym_cmds, $1)=
  64984. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  64985. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  64986. +_LT_TAGVAR(no_undefined_flag, $1)=
  64987. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  64988. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  64989. +
  64990. +# Source file extension for C++ test sources.
  64991. +ac_ext=cpp
  64992. +
  64993. +# Object file extension for compiled C++ test sources.
  64994. +objext=o
  64995. +_LT_TAGVAR(objext, $1)=$objext
  64996. +
  64997. +# No sense in running all these tests if we already determined that
  64998. +# the CXX compiler isn't working. Some variables (like enable_shared)
  64999. +# are currently assumed to apply to all compilers on this platform,
  65000. +# and will be corrupted by setting them based on a non-working compiler.
  65001. +if test "$_lt_caught_CXX_error" != yes; then
  65002. + # Code to be used in simple compile tests
  65003. + lt_simple_compile_test_code="int some_variable = 0;"
  65004. +
  65005. + # Code to be used in simple link tests
  65006. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  65007. +
  65008. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  65009. + _LT_TAG_COMPILER
  65010. +
  65011. + # save warnings/boilerplate of simple test code
  65012. + _LT_COMPILER_BOILERPLATE
  65013. + _LT_LINKER_BOILERPLATE
  65014. +
  65015. + # Allow CC to be a program name with arguments.
  65016. + lt_save_CC=$CC
  65017. + lt_save_LD=$LD
  65018. + lt_save_GCC=$GCC
  65019. + GCC=$GXX
  65020. + lt_save_with_gnu_ld=$with_gnu_ld
  65021. + lt_save_path_LD=$lt_cv_path_LD
  65022. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  65023. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  65024. + else
  65025. + $as_unset lt_cv_prog_gnu_ld
  65026. + fi
  65027. + if test -n "${lt_cv_path_LDCXX+set}"; then
  65028. + lt_cv_path_LD=$lt_cv_path_LDCXX
  65029. + else
  65030. + $as_unset lt_cv_path_LD
  65031. + fi
  65032. + test -z "${LDCXX+set}" || LD=$LDCXX
  65033. + CC=${CXX-"c++"}
  65034. + compiler=$CC
  65035. + _LT_TAGVAR(compiler, $1)=$CC
  65036. + _LT_CC_BASENAME([$compiler])
  65037. +
  65038. + if test -n "$compiler"; then
  65039. + # We don't want -fno-exception when compiling C++ code, so set the
  65040. + # no_builtin_flag separately
  65041. + if test "$GXX" = yes; then
  65042. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  65043. + else
  65044. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  65045. + fi
  65046. +
  65047. + if test "$GXX" = yes; then
  65048. + # Set up default GNU C++ configuration
  65049. +
  65050. + LT_PATH_LD
  65051. +
  65052. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  65053. + # archiving commands below assume that GNU ld is being used.
  65054. + if test "$with_gnu_ld" = yes; then
  65055. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65056. + _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'
  65057. +
  65058. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65059. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  65060. +
  65061. + # If archive_cmds runs LD, not CC, wlarc should be empty
  65062. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  65063. + # investigate it a little bit more. (MM)
  65064. + wlarc='${wl}'
  65065. +
  65066. + # ancient GNU ld didn't support --whole-archive et. al.
  65067. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  65068. + $GREP 'no-whole-archive' > /dev/null; then
  65069. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  65070. + else
  65071. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  65072. + fi
  65073. + else
  65074. + with_gnu_ld=no
  65075. + wlarc=
  65076. +
  65077. + # A generic and very simple default shared library creation
  65078. + # command for GNU C++ for the case where it uses the native
  65079. + # linker, instead of GNU ld. If possible, this setting should
  65080. + # overridden to take advantage of the native linker features on
  65081. + # the platform it is being used on.
  65082. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  65083. + fi
  65084. +
  65085. + # Commands to make compiler produce verbose output that lists
  65086. + # what "hidden" libraries, object files and flags are used when
  65087. + # linking a shared library.
  65088. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  65089. +
  65090. + else
  65091. + GXX=no
  65092. + with_gnu_ld=no
  65093. + wlarc=
  65094. + fi
  65095. +
  65096. + # PORTME: fill in a description of your system's C++ link characteristics
  65097. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  65098. + _LT_TAGVAR(ld_shlibs, $1)=yes
  65099. + case $host_os in
  65100. + aix3*)
  65101. + # FIXME: insert proper C++ library support
  65102. + _LT_TAGVAR(ld_shlibs, $1)=no
  65103. + ;;
  65104. + aix[[4-9]]*)
  65105. + if test "$host_cpu" = ia64; then
  65106. + # On IA64, the linker does run time linking by default, so we don't
  65107. + # have to do anything special.
  65108. + aix_use_runtimelinking=no
  65109. + exp_sym_flag='-Bexport'
  65110. + no_entry_flag=""
  65111. + else
  65112. + aix_use_runtimelinking=no
  65113. +
  65114. + # Test if we are trying to use run time linking or normal
  65115. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  65116. + # need to do runtime linking.
  65117. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  65118. + for ld_flag in $LDFLAGS; do
  65119. + case $ld_flag in
  65120. + *-brtl*)
  65121. + aix_use_runtimelinking=yes
  65122. + break
  65123. + ;;
  65124. + esac
  65125. + done
  65126. + ;;
  65127. + esac
  65128. +
  65129. + exp_sym_flag='-bexport'
  65130. + no_entry_flag='-bnoentry'
  65131. + fi
  65132. +
  65133. + # When large executables or shared objects are built, AIX ld can
  65134. + # have problems creating the table of contents. If linking a library
  65135. + # or program results in "error TOC overflow" add -mminimal-toc to
  65136. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  65137. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  65138. +
  65139. + _LT_TAGVAR(archive_cmds, $1)=''
  65140. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65141. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  65142. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  65143. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  65144. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  65145. +
  65146. + if test "$GXX" = yes; then
  65147. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  65148. + # We only want to do this on AIX 4.2 and lower, the check
  65149. + # below for broken collect2 doesn't work under 4.3+
  65150. + collect2name=`${CC} -print-prog-name=collect2`
  65151. + if test -f "$collect2name" &&
  65152. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  65153. + then
  65154. + # We have reworked collect2
  65155. + :
  65156. + else
  65157. + # We have old collect2
  65158. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  65159. + # It fails to find uninstalled libraries when the uninstalled
  65160. + # path is not listed in the libpath. Setting hardcode_minus_L
  65161. + # to unsupported forces relinking
  65162. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  65163. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65164. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  65165. + fi
  65166. + esac
  65167. + shared_flag='-shared'
  65168. + if test "$aix_use_runtimelinking" = yes; then
  65169. + shared_flag="$shared_flag "'${wl}-G'
  65170. + fi
  65171. + else
  65172. + # not using gcc
  65173. + if test "$host_cpu" = ia64; then
  65174. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  65175. + # chokes on -Wl,-G. The following line is correct:
  65176. + shared_flag='-G'
  65177. + else
  65178. + if test "$aix_use_runtimelinking" = yes; then
  65179. + shared_flag='${wl}-G'
  65180. + else
  65181. + shared_flag='${wl}-bM:SRE'
  65182. + fi
  65183. + fi
  65184. + fi
  65185. +
  65186. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  65187. + # It seems that -bexpall does not export symbols beginning with
  65188. + # underscore (_), so it is better to generate a list of symbols to
  65189. + # export.
  65190. + _LT_TAGVAR(always_export_symbols, $1)=yes
  65191. + if test "$aix_use_runtimelinking" = yes; then
  65192. + # Warning - without using the other runtime loading flags (-brtl),
  65193. + # -berok will link without error, but may produce a broken library.
  65194. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  65195. + # Determine the default libpath from the value encoded in an empty
  65196. + # executable.
  65197. + _LT_SYS_MODULE_PATH_AIX
  65198. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  65199. +
  65200. + _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"
  65201. + else
  65202. + if test "$host_cpu" = ia64; then
  65203. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  65204. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  65205. + _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"
  65206. + else
  65207. + # Determine the default libpath from the value encoded in an
  65208. + # empty executable.
  65209. + _LT_SYS_MODULE_PATH_AIX
  65210. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  65211. + # Warning - without using the other run time loading flags,
  65212. + # -berok will link without error, but may produce a broken library.
  65213. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  65214. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  65215. + # Exported symbols can be pulled into shared objects from archives
  65216. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  65217. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  65218. + # This is similar to how AIX traditionally builds its shared
  65219. + # libraries.
  65220. + _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'
  65221. + fi
  65222. + fi
  65223. + ;;
  65224. +
  65225. + beos*)
  65226. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  65227. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  65228. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  65229. + # support --undefined. This deserves some investigation. FIXME
  65230. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65231. + else
  65232. + _LT_TAGVAR(ld_shlibs, $1)=no
  65233. + fi
  65234. + ;;
  65235. +
  65236. + chorus*)
  65237. + case $cc_basename in
  65238. + *)
  65239. + # FIXME: insert proper C++ library support
  65240. + _LT_TAGVAR(ld_shlibs, $1)=no
  65241. + ;;
  65242. + esac
  65243. + ;;
  65244. +
  65245. + cygwin* | mingw* | pw32* | cegcc*)
  65246. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  65247. + # as there is no search path for DLLs.
  65248. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  65249. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  65250. + _LT_TAGVAR(always_export_symbols, $1)=no
  65251. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  65252. +
  65253. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  65254. + _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'
  65255. + # If the export-symbols file already is a .def file (1st line
  65256. + # is EXPORTS), use it as is; otherwise, prepend...
  65257. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  65258. + cp $export_symbols $output_objdir/$soname.def;
  65259. + else
  65260. + echo EXPORTS > $output_objdir/$soname.def;
  65261. + cat $export_symbols >> $output_objdir/$soname.def;
  65262. + fi~
  65263. + $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'
  65264. + else
  65265. + _LT_TAGVAR(ld_shlibs, $1)=no
  65266. + fi
  65267. + ;;
  65268. + darwin* | rhapsody*)
  65269. + _LT_DARWIN_LINKER_FEATURES($1)
  65270. + ;;
  65271. +
  65272. + dgux*)
  65273. + case $cc_basename in
  65274. + ec++*)
  65275. + # FIXME: insert proper C++ library support
  65276. + _LT_TAGVAR(ld_shlibs, $1)=no
  65277. + ;;
  65278. + ghcx*)
  65279. + # Green Hills C++ Compiler
  65280. + # FIXME: insert proper C++ library support
  65281. + _LT_TAGVAR(ld_shlibs, $1)=no
  65282. + ;;
  65283. + *)
  65284. + # FIXME: insert proper C++ library support
  65285. + _LT_TAGVAR(ld_shlibs, $1)=no
  65286. + ;;
  65287. + esac
  65288. + ;;
  65289. +
  65290. + freebsd[[12]]*)
  65291. + # C++ shared libraries reported to be fairly broken before
  65292. + # switch to ELF
  65293. + _LT_TAGVAR(ld_shlibs, $1)=no
  65294. + ;;
  65295. +
  65296. + freebsd-elf*)
  65297. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  65298. + ;;
  65299. +
  65300. + freebsd* | dragonfly*)
  65301. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  65302. + # conventions
  65303. + _LT_TAGVAR(ld_shlibs, $1)=yes
  65304. + ;;
  65305. +
  65306. + gnu*)
  65307. + ;;
  65308. +
  65309. + hpux9*)
  65310. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  65311. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65312. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65313. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65314. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  65315. + # but as the default
  65316. + # location of the library.
  65317. +
  65318. + case $cc_basename in
  65319. + CC*)
  65320. + # FIXME: insert proper C++ library support
  65321. + _LT_TAGVAR(ld_shlibs, $1)=no
  65322. + ;;
  65323. + aCC*)
  65324. + _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'
  65325. + # Commands to make compiler produce verbose output that lists
  65326. + # what "hidden" libraries, object files and flags are used when
  65327. + # linking a shared library.
  65328. + #
  65329. + # There doesn't appear to be a way to prevent this compiler from
  65330. + # explicitly linking system object files so we need to strip them
  65331. + # from the output so that they don't get included in the library
  65332. + # dependencies.
  65333. + 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'
  65334. + ;;
  65335. + *)
  65336. + if test "$GXX" = yes; then
  65337. + _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'
  65338. + else
  65339. + # FIXME: insert proper C++ library support
  65340. + _LT_TAGVAR(ld_shlibs, $1)=no
  65341. + fi
  65342. + ;;
  65343. + esac
  65344. + ;;
  65345. +
  65346. + hpux10*|hpux11*)
  65347. + if test $with_gnu_ld = no; then
  65348. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  65349. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65350. +
  65351. + case $host_cpu in
  65352. + hppa*64*|ia64*)
  65353. + ;;
  65354. + *)
  65355. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65356. + ;;
  65357. + esac
  65358. + fi
  65359. + case $host_cpu in
  65360. + hppa*64*|ia64*)
  65361. + _LT_TAGVAR(hardcode_direct, $1)=no
  65362. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65363. + ;;
  65364. + *)
  65365. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65366. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  65367. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  65368. + # but as the default
  65369. + # location of the library.
  65370. + ;;
  65371. + esac
  65372. +
  65373. + case $cc_basename in
  65374. + CC*)
  65375. + # FIXME: insert proper C++ library support
  65376. + _LT_TAGVAR(ld_shlibs, $1)=no
  65377. + ;;
  65378. + aCC*)
  65379. + case $host_cpu in
  65380. + hppa*64*)
  65381. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  65382. + ;;
  65383. + ia64*)
  65384. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  65385. + ;;
  65386. + *)
  65387. + _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'
  65388. + ;;
  65389. + esac
  65390. + # Commands to make compiler produce verbose output that lists
  65391. + # what "hidden" libraries, object files and flags are used when
  65392. + # linking a shared library.
  65393. + #
  65394. + # There doesn't appear to be a way to prevent this compiler from
  65395. + # explicitly linking system object files so we need to strip them
  65396. + # from the output so that they don't get included in the library
  65397. + # dependencies.
  65398. + 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'
  65399. + ;;
  65400. + *)
  65401. + if test "$GXX" = yes; then
  65402. + if test $with_gnu_ld = no; then
  65403. + case $host_cpu in
  65404. + hppa*64*)
  65405. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  65406. + ;;
  65407. + ia64*)
  65408. + _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'
  65409. + ;;
  65410. + *)
  65411. + _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'
  65412. + ;;
  65413. + esac
  65414. + fi
  65415. + else
  65416. + # FIXME: insert proper C++ library support
  65417. + _LT_TAGVAR(ld_shlibs, $1)=no
  65418. + fi
  65419. + ;;
  65420. + esac
  65421. + ;;
  65422. +
  65423. + interix[[3-9]]*)
  65424. + _LT_TAGVAR(hardcode_direct, $1)=no
  65425. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65426. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65427. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65428. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  65429. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  65430. + # default) and relocated if they conflict, which is a slow very memory
  65431. + # consuming and fragmenting process. To avoid this, we pick a random,
  65432. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  65433. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  65434. + _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'
  65435. + _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'
  65436. + ;;
  65437. + irix5* | irix6*)
  65438. + case $cc_basename in
  65439. + CC*)
  65440. + # SGI C++
  65441. + _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'
  65442. +
  65443. + # Archives containing C++ object files must be created using
  65444. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  65445. + # necessary to make sure instantiated templates are included
  65446. + # in the archive.
  65447. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  65448. + ;;
  65449. + *)
  65450. + if test "$GXX" = yes; then
  65451. + if test "$with_gnu_ld" = no; then
  65452. + _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'
  65453. + else
  65454. + _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'
  65455. + fi
  65456. + fi
  65457. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  65458. + ;;
  65459. + esac
  65460. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65461. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65462. + _LT_TAGVAR(inherit_rpath, $1)=yes
  65463. + ;;
  65464. +
  65465. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  65466. + case $cc_basename in
  65467. + KCC*)
  65468. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  65469. +
  65470. + # KCC will only create a shared library if the output file
  65471. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  65472. + # to its proper name (with version) after linking.
  65473. + _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'
  65474. + _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'
  65475. + # Commands to make compiler produce verbose output that lists
  65476. + # what "hidden" libraries, object files and flags are used when
  65477. + # linking a shared library.
  65478. + #
  65479. + # There doesn't appear to be a way to prevent this compiler from
  65480. + # explicitly linking system object files so we need to strip them
  65481. + # from the output so that they don't get included in the library
  65482. + # dependencies.
  65483. + 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'
  65484. +
  65485. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65486. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  65487. +
  65488. + # Archives containing C++ object files must be created using
  65489. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  65490. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  65491. + ;;
  65492. + icpc* | ecpc* )
  65493. + # Intel C++
  65494. + with_gnu_ld=yes
  65495. + # version 8.0 and above of icpc choke on multiply defined symbols
  65496. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  65497. + # earlier do not add the objects themselves.
  65498. + case `$CC -V 2>&1` in
  65499. + *"Version 7."*)
  65500. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65501. + _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'
  65502. + ;;
  65503. + *) # Version 8.0 or newer
  65504. + tmp_idyn=
  65505. + case $host_cpu in
  65506. + ia64*) tmp_idyn=' -i_dynamic';;
  65507. + esac
  65508. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65509. + _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'
  65510. + ;;
  65511. + esac
  65512. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  65513. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65514. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  65515. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  65516. + ;;
  65517. + pgCC* | pgcpp*)
  65518. + # Portland Group C++ compiler
  65519. + case `$CC -V` in
  65520. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  65521. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  65522. + rm -rf $tpldir~
  65523. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  65524. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  65525. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  65526. + rm -rf $tpldir~
  65527. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  65528. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  65529. + $RANLIB $oldlib'
  65530. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  65531. + rm -rf $tpldir~
  65532. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  65533. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  65534. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  65535. + rm -rf $tpldir~
  65536. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  65537. + $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'
  65538. + ;;
  65539. + *) # Version 6 will use weak symbols
  65540. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  65541. + _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'
  65542. + ;;
  65543. + esac
  65544. +
  65545. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  65546. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  65547. + _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'
  65548. + ;;
  65549. + cxx*)
  65550. + # Compaq C++
  65551. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65552. + _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'
  65553. +
  65554. + runpath_var=LD_RUN_PATH
  65555. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  65556. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65557. +
  65558. + # Commands to make compiler produce verbose output that lists
  65559. + # what "hidden" libraries, object files and flags are used when
  65560. + # linking a shared library.
  65561. + #
  65562. + # There doesn't appear to be a way to prevent this compiler from
  65563. + # explicitly linking system object files so we need to strip them
  65564. + # from the output so that they don't get included in the library
  65565. + # dependencies.
  65566. + 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'
  65567. + ;;
  65568. + xl*)
  65569. + # IBM XL 8.0 on PPC, with GNU ld
  65570. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65571. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  65572. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  65573. + if test "x$supports_anon_versioning" = xyes; then
  65574. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  65575. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  65576. + echo "local: *; };" >> $output_objdir/$libname.ver~
  65577. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  65578. + fi
  65579. + ;;
  65580. + *)
  65581. + case `$CC -V 2>&1 | sed 5q` in
  65582. + *Sun\ C*)
  65583. + # Sun C++ 5.9
  65584. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  65585. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  65586. + _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'
  65587. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  65588. + _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'
  65589. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  65590. +
  65591. + # Not sure whether something based on
  65592. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  65593. + # would be better.
  65594. + output_verbose_link_cmd='echo'
  65595. +
  65596. + # Archives containing C++ object files must be created using
  65597. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  65598. + # necessary to make sure instantiated templates are included
  65599. + # in the archive.
  65600. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  65601. + ;;
  65602. + esac
  65603. + ;;
  65604. + esac
  65605. + ;;
  65606. +
  65607. + lynxos*)
  65608. + # FIXME: insert proper C++ library support
  65609. + _LT_TAGVAR(ld_shlibs, $1)=no
  65610. + ;;
  65611. +
  65612. + m88k*)
  65613. + # FIXME: insert proper C++ library support
  65614. + _LT_TAGVAR(ld_shlibs, $1)=no
  65615. + ;;
  65616. +
  65617. + mvs*)
  65618. + case $cc_basename in
  65619. + cxx*)
  65620. + # FIXME: insert proper C++ library support
  65621. + _LT_TAGVAR(ld_shlibs, $1)=no
  65622. + ;;
  65623. + *)
  65624. + # FIXME: insert proper C++ library support
  65625. + _LT_TAGVAR(ld_shlibs, $1)=no
  65626. + ;;
  65627. + esac
  65628. + ;;
  65629. +
  65630. + netbsd*)
  65631. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  65632. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  65633. + wlarc=
  65634. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  65635. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65636. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65637. + fi
  65638. + # Workaround some broken pre-1.5 toolchains
  65639. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  65640. + ;;
  65641. +
  65642. + *nto* | *qnx*)
  65643. + _LT_TAGVAR(ld_shlibs, $1)=yes
  65644. + ;;
  65645. +
  65646. + openbsd2*)
  65647. + # C++ shared libraries are fairly broken
  65648. + _LT_TAGVAR(ld_shlibs, $1)=no
  65649. + ;;
  65650. +
  65651. + openbsd*)
  65652. + if test -f /usr/libexec/ld.so; then
  65653. + _LT_TAGVAR(hardcode_direct, $1)=yes
  65654. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65655. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  65656. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  65657. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65658. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  65659. + _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'
  65660. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  65661. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  65662. + fi
  65663. + output_verbose_link_cmd=echo
  65664. + else
  65665. + _LT_TAGVAR(ld_shlibs, $1)=no
  65666. + fi
  65667. + ;;
  65668. +
  65669. + osf3* | osf4* | osf5*)
  65670. + case $cc_basename in
  65671. + KCC*)
  65672. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  65673. +
  65674. + # KCC will only create a shared library if the output file
  65675. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  65676. + # to its proper name (with version) after linking.
  65677. + _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'
  65678. +
  65679. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  65680. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65681. +
  65682. + # Archives containing C++ object files must be created using
  65683. + # the KAI C++ compiler.
  65684. + case $host in
  65685. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  65686. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  65687. + esac
  65688. + ;;
  65689. + RCC*)
  65690. + # Rational C++ 2.4.1
  65691. + # FIXME: insert proper C++ library support
  65692. + _LT_TAGVAR(ld_shlibs, $1)=no
  65693. + ;;
  65694. + cxx*)
  65695. + case $host in
  65696. + osf3*)
  65697. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  65698. + _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'
  65699. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65700. + ;;
  65701. + *)
  65702. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  65703. + _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'
  65704. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  65705. + echo "-hidden">> $lib.exp~
  65706. + $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~
  65707. + $RM $lib.exp'
  65708. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  65709. + ;;
  65710. + esac
  65711. +
  65712. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65713. +
  65714. + # Commands to make compiler produce verbose output that lists
  65715. + # what "hidden" libraries, object files and flags are used when
  65716. + # linking a shared library.
  65717. + #
  65718. + # There doesn't appear to be a way to prevent this compiler from
  65719. + # explicitly linking system object files so we need to strip them
  65720. + # from the output so that they don't get included in the library
  65721. + # dependencies.
  65722. + 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'
  65723. + ;;
  65724. + *)
  65725. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  65726. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  65727. + case $host in
  65728. + osf3*)
  65729. + _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'
  65730. + ;;
  65731. + *)
  65732. + _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'
  65733. + ;;
  65734. + esac
  65735. +
  65736. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  65737. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  65738. +
  65739. + # Commands to make compiler produce verbose output that lists
  65740. + # what "hidden" libraries, object files and flags are used when
  65741. + # linking a shared library.
  65742. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  65743. +
  65744. + else
  65745. + # FIXME: insert proper C++ library support
  65746. + _LT_TAGVAR(ld_shlibs, $1)=no
  65747. + fi
  65748. + ;;
  65749. + esac
  65750. + ;;
  65751. +
  65752. + psos*)
  65753. + # FIXME: insert proper C++ library support
  65754. + _LT_TAGVAR(ld_shlibs, $1)=no
  65755. + ;;
  65756. +
  65757. + sunos4*)
  65758. + case $cc_basename in
  65759. + CC*)
  65760. + # Sun C++ 4.x
  65761. + # FIXME: insert proper C++ library support
  65762. + _LT_TAGVAR(ld_shlibs, $1)=no
  65763. + ;;
  65764. + lcc*)
  65765. + # Lucid
  65766. + # FIXME: insert proper C++ library support
  65767. + _LT_TAGVAR(ld_shlibs, $1)=no
  65768. + ;;
  65769. + *)
  65770. + # FIXME: insert proper C++ library support
  65771. + _LT_TAGVAR(ld_shlibs, $1)=no
  65772. + ;;
  65773. + esac
  65774. + ;;
  65775. +
  65776. + solaris*)
  65777. + case $cc_basename in
  65778. + CC*)
  65779. + # Sun C++ 4.2, 5.x and Centerline C++
  65780. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  65781. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  65782. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  65783. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  65784. + $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'
  65785. +
  65786. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  65787. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65788. + case $host_os in
  65789. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  65790. + *)
  65791. + # The compiler driver will combine and reorder linker options,
  65792. + # but understands `-z linker_flag'.
  65793. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  65794. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  65795. + ;;
  65796. + esac
  65797. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  65798. +
  65799. + output_verbose_link_cmd='echo'
  65800. +
  65801. + # Archives containing C++ object files must be created using
  65802. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  65803. + # necessary to make sure instantiated templates are included
  65804. + # in the archive.
  65805. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  65806. + ;;
  65807. + gcx*)
  65808. + # Green Hills C++ Compiler
  65809. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  65810. +
  65811. + # The C++ compiler must be used to create the archive.
  65812. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  65813. + ;;
  65814. + *)
  65815. + # GNU C++ compiler with Solaris linker
  65816. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  65817. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  65818. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  65819. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  65820. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  65821. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  65822. +
  65823. + # Commands to make compiler produce verbose output that lists
  65824. + # what "hidden" libraries, object files and flags are used when
  65825. + # linking a shared library.
  65826. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  65827. + else
  65828. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  65829. + # platform.
  65830. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  65831. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  65832. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  65833. +
  65834. + # Commands to make compiler produce verbose output that lists
  65835. + # what "hidden" libraries, object files and flags are used when
  65836. + # linking a shared library.
  65837. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  65838. + fi
  65839. +
  65840. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  65841. + case $host_os in
  65842. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  65843. + *)
  65844. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  65845. + ;;
  65846. + esac
  65847. + fi
  65848. + ;;
  65849. + esac
  65850. + ;;
  65851. +
  65852. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  65853. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  65854. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  65855. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65856. + runpath_var='LD_RUN_PATH'
  65857. +
  65858. + case $cc_basename in
  65859. + CC*)
  65860. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65861. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65862. + ;;
  65863. + *)
  65864. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65865. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65866. + ;;
  65867. + esac
  65868. + ;;
  65869. +
  65870. + sysv5* | sco3.2v5* | sco5v6*)
  65871. + # Note: We can NOT use -z defs as we might desire, because we do not
  65872. + # link with -lc, and that would cause any symbols used from libc to
  65873. + # always be unresolved, which means just about no library would
  65874. + # ever link correctly. If we're not using GNU ld we use -z text
  65875. + # though, which does catch some bad symbols but isn't as heavy-handed
  65876. + # as -z defs.
  65877. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  65878. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  65879. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  65880. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  65881. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  65882. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  65883. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  65884. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  65885. + runpath_var='LD_RUN_PATH'
  65886. +
  65887. + case $cc_basename in
  65888. + CC*)
  65889. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65890. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65891. + ;;
  65892. + *)
  65893. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65894. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  65895. + ;;
  65896. + esac
  65897. + ;;
  65898. +
  65899. + tandem*)
  65900. + case $cc_basename in
  65901. + NCC*)
  65902. + # NonStop-UX NCC 3.20
  65903. + # FIXME: insert proper C++ library support
  65904. + _LT_TAGVAR(ld_shlibs, $1)=no
  65905. + ;;
  65906. + *)
  65907. + # FIXME: insert proper C++ library support
  65908. + _LT_TAGVAR(ld_shlibs, $1)=no
  65909. + ;;
  65910. + esac
  65911. + ;;
  65912. +
  65913. + vxworks*)
  65914. + # FIXME: insert proper C++ library support
  65915. + _LT_TAGVAR(ld_shlibs, $1)=no
  65916. + ;;
  65917. +
  65918. + *)
  65919. + # FIXME: insert proper C++ library support
  65920. + _LT_TAGVAR(ld_shlibs, $1)=no
  65921. + ;;
  65922. + esac
  65923. +
  65924. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  65925. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  65926. +
  65927. + _LT_TAGVAR(GCC, $1)="$GXX"
  65928. + _LT_TAGVAR(LD, $1)="$LD"
  65929. +
  65930. + ## CAVEAT EMPTOR:
  65931. + ## There is no encapsulation within the following macros, do not change
  65932. + ## the running order or otherwise move them around unless you know exactly
  65933. + ## what you are doing...
  65934. + _LT_SYS_HIDDEN_LIBDEPS($1)
  65935. + _LT_COMPILER_PIC($1)
  65936. + _LT_COMPILER_C_O($1)
  65937. + _LT_COMPILER_FILE_LOCKS($1)
  65938. + _LT_LINKER_SHLIBS($1)
  65939. + _LT_SYS_DYNAMIC_LINKER($1)
  65940. + _LT_LINKER_HARDCODE_LIBPATH($1)
  65941. +
  65942. + _LT_CONFIG($1)
  65943. + fi # test -n "$compiler"
  65944. +
  65945. + CC=$lt_save_CC
  65946. + LDCXX=$LD
  65947. + LD=$lt_save_LD
  65948. + GCC=$lt_save_GCC
  65949. + with_gnu_ld=$lt_save_with_gnu_ld
  65950. + lt_cv_path_LDCXX=$lt_cv_path_LD
  65951. + lt_cv_path_LD=$lt_save_path_LD
  65952. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  65953. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  65954. +fi # test "$_lt_caught_CXX_error" != yes
  65955. +
  65956. +AC_LANG_POP
  65957. +])# _LT_LANG_CXX_CONFIG
  65958. +
  65959. +
  65960. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  65961. +# ---------------------------------
  65962. +# Figure out "hidden" library dependencies from verbose
  65963. +# compiler output when linking a shared library.
  65964. +# Parse the compiler output and extract the necessary
  65965. +# objects, libraries and library flags.
  65966. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  65967. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  65968. +# Dependencies to place before and after the object being linked:
  65969. +_LT_TAGVAR(predep_objects, $1)=
  65970. +_LT_TAGVAR(postdep_objects, $1)=
  65971. +_LT_TAGVAR(predeps, $1)=
  65972. +_LT_TAGVAR(postdeps, $1)=
  65973. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  65974. +
  65975. +dnl we can't use the lt_simple_compile_test_code here,
  65976. +dnl because it contains code intended for an executable,
  65977. +dnl not a library. It's possible we should let each
  65978. +dnl tag define a new lt_????_link_test_code variable,
  65979. +dnl but it's only used here...
  65980. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  65981. +int a;
  65982. +void foo (void) { a = 0; }
  65983. +_LT_EOF
  65984. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  65985. +class Foo
  65986. +{
  65987. +public:
  65988. + Foo (void) { a = 0; }
  65989. +private:
  65990. + int a;
  65991. +};
  65992. +_LT_EOF
  65993. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  65994. + subroutine foo
  65995. + implicit none
  65996. + integer*4 a
  65997. + a=0
  65998. + return
  65999. + end
  66000. +_LT_EOF
  66001. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  66002. + subroutine foo
  66003. + implicit none
  66004. + integer a
  66005. + a=0
  66006. + return
  66007. + end
  66008. +_LT_EOF
  66009. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  66010. +public class foo {
  66011. + private int a;
  66012. + public void bar (void) {
  66013. + a = 0;
  66014. + }
  66015. +};
  66016. +_LT_EOF
  66017. +])
  66018. +dnl Parse the compiler output and extract the necessary
  66019. +dnl objects, libraries and library flags.
  66020. +if AC_TRY_EVAL(ac_compile); then
  66021. + # Parse the compiler output and extract the necessary
  66022. + # objects, libraries and library flags.
  66023. +
  66024. + # Sentinel used to keep track of whether or not we are before
  66025. + # the conftest object file.
  66026. + pre_test_object_deps_done=no
  66027. +
  66028. + for p in `eval "$output_verbose_link_cmd"`; do
  66029. + case $p in
  66030. +
  66031. + -L* | -R* | -l*)
  66032. + # Some compilers place space between "-{L,R}" and the path.
  66033. + # Remove the space.
  66034. + if test $p = "-L" ||
  66035. + test $p = "-R"; then
  66036. + prev=$p
  66037. + continue
  66038. + else
  66039. + prev=
  66040. + fi
  66041. +
  66042. + if test "$pre_test_object_deps_done" = no; then
  66043. + case $p in
  66044. + -L* | -R*)
  66045. + # Internal compiler library paths should come after those
  66046. + # provided the user. The postdeps already come after the
  66047. + # user supplied libs so there is no need to process them.
  66048. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  66049. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  66050. + else
  66051. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  66052. + fi
  66053. + ;;
  66054. + # The "-l" case would never come before the object being
  66055. + # linked, so don't bother handling this case.
  66056. + esac
  66057. + else
  66058. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  66059. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  66060. + else
  66061. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  66062. + fi
  66063. + fi
  66064. + ;;
  66065. +
  66066. + *.$objext)
  66067. + # This assumes that the test object file only shows up
  66068. + # once in the compiler output.
  66069. + if test "$p" = "conftest.$objext"; then
  66070. + pre_test_object_deps_done=yes
  66071. + continue
  66072. + fi
  66073. +
  66074. + if test "$pre_test_object_deps_done" = no; then
  66075. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  66076. + _LT_TAGVAR(predep_objects, $1)="$p"
  66077. + else
  66078. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  66079. + fi
  66080. + else
  66081. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  66082. + _LT_TAGVAR(postdep_objects, $1)="$p"
  66083. + else
  66084. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  66085. + fi
  66086. + fi
  66087. + ;;
  66088. +
  66089. + *) ;; # Ignore the rest.
  66090. +
  66091. + esac
  66092. + done
  66093. +
  66094. + # Clean up.
  66095. + rm -f a.out a.exe
  66096. +else
  66097. + echo "libtool.m4: error: problem compiling $1 test program"
  66098. +fi
  66099. +
  66100. +$RM -f confest.$objext
  66101. +
  66102. +# PORTME: override above test on systems where it is broken
  66103. +m4_if([$1], [CXX],
  66104. +[case $host_os in
  66105. +interix[[3-9]]*)
  66106. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  66107. + # hack all around it, let's just trust "g++" to DTRT.
  66108. + _LT_TAGVAR(predep_objects,$1)=
  66109. + _LT_TAGVAR(postdep_objects,$1)=
  66110. + _LT_TAGVAR(postdeps,$1)=
  66111. + ;;
  66112. +
  66113. +linux*)
  66114. + case `$CC -V 2>&1 | sed 5q` in
  66115. + *Sun\ C*)
  66116. + # Sun C++ 5.9
  66117. +
  66118. + # The more standards-conforming stlport4 library is
  66119. + # incompatible with the Cstd library. Avoid specifying
  66120. + # it if it's in CXXFLAGS. Ignore libCrun as
  66121. + # -library=stlport4 depends on it.
  66122. + case " $CXX $CXXFLAGS " in
  66123. + *" -library=stlport4 "*)
  66124. + solaris_use_stlport4=yes
  66125. + ;;
  66126. + esac
  66127. +
  66128. + if test "$solaris_use_stlport4" != yes; then
  66129. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  66130. + fi
  66131. + ;;
  66132. + esac
  66133. + ;;
  66134. +
  66135. +solaris*)
  66136. + case $cc_basename in
  66137. + CC*)
  66138. + # The more standards-conforming stlport4 library is
  66139. + # incompatible with the Cstd library. Avoid specifying
  66140. + # it if it's in CXXFLAGS. Ignore libCrun as
  66141. + # -library=stlport4 depends on it.
  66142. + case " $CXX $CXXFLAGS " in
  66143. + *" -library=stlport4 "*)
  66144. + solaris_use_stlport4=yes
  66145. + ;;
  66146. + esac
  66147. +
  66148. + # Adding this requires a known-good setup of shared libraries for
  66149. + # Sun compiler versions before 5.6, else PIC objects from an old
  66150. + # archive will be linked into the output, leading to subtle bugs.
  66151. + if test "$solaris_use_stlport4" != yes; then
  66152. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  66153. + fi
  66154. + ;;
  66155. + esac
  66156. + ;;
  66157. +esac
  66158. +])
  66159. +
  66160. +case " $_LT_TAGVAR(postdeps, $1) " in
  66161. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  66162. +esac
  66163. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  66164. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  66165. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  66166. +fi
  66167. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  66168. + [The directories searched by this compiler when creating a shared library])
  66169. +_LT_TAGDECL([], [predep_objects], [1],
  66170. + [Dependencies to place before and after the objects being linked to
  66171. + create a shared library])
  66172. +_LT_TAGDECL([], [postdep_objects], [1])
  66173. +_LT_TAGDECL([], [predeps], [1])
  66174. +_LT_TAGDECL([], [postdeps], [1])
  66175. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  66176. + [The library search path used internally by the compiler when linking
  66177. + a shared library])
  66178. +])# _LT_SYS_HIDDEN_LIBDEPS
  66179. +
  66180. +
  66181. +# _LT_PROG_F77
  66182. +# ------------
  66183. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  66184. +# if there is no fortran compiler, we have our own version here.
  66185. +m4_defun([_LT_PROG_F77],
  66186. +[
  66187. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  66188. +AC_PROG_F77
  66189. +if test -z "$F77" || test "X$F77" = "Xno"; then
  66190. + _lt_disable_F77=yes
  66191. +fi
  66192. +popdef([AC_MSG_ERROR])
  66193. +])# _LT_PROG_F77
  66194. +
  66195. +dnl aclocal-1.4 backwards compatibility:
  66196. +dnl AC_DEFUN([_LT_PROG_F77], [])
  66197. +
  66198. +
  66199. +# _LT_LANG_F77_CONFIG([TAG])
  66200. +# --------------------------
  66201. +# Ensure that the configuration variables for a Fortran 77 compiler are
  66202. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  66203. +# to write the compiler configuration to `libtool'.
  66204. +m4_defun([_LT_LANG_F77_CONFIG],
  66205. +[AC_REQUIRE([_LT_PROG_F77])dnl
  66206. +AC_LANG_PUSH(Fortran 77)
  66207. +
  66208. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66209. +_LT_TAGVAR(allow_undefined_flag, $1)=
  66210. +_LT_TAGVAR(always_export_symbols, $1)=no
  66211. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  66212. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  66213. +_LT_TAGVAR(hardcode_direct, $1)=no
  66214. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  66215. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  66216. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  66217. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  66218. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  66219. +_LT_TAGVAR(hardcode_automatic, $1)=no
  66220. +_LT_TAGVAR(inherit_rpath, $1)=no
  66221. +_LT_TAGVAR(module_cmds, $1)=
  66222. +_LT_TAGVAR(module_expsym_cmds, $1)=
  66223. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  66224. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  66225. +_LT_TAGVAR(no_undefined_flag, $1)=
  66226. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  66227. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  66228. +
  66229. +# Source file extension for f77 test sources.
  66230. +ac_ext=f
  66231. +
  66232. +# Object file extension for compiled f77 test sources.
  66233. +objext=o
  66234. +_LT_TAGVAR(objext, $1)=$objext
  66235. +
  66236. +# No sense in running all these tests if we already determined that
  66237. +# the F77 compiler isn't working. Some variables (like enable_shared)
  66238. +# are currently assumed to apply to all compilers on this platform,
  66239. +# and will be corrupted by setting them based on a non-working compiler.
  66240. +if test "$_lt_disable_F77" != yes; then
  66241. + # Code to be used in simple compile tests
  66242. + lt_simple_compile_test_code="\
  66243. + subroutine t
  66244. + return
  66245. + end
  66246. +"
  66247. +
  66248. + # Code to be used in simple link tests
  66249. + lt_simple_link_test_code="\
  66250. + program t
  66251. + end
  66252. +"
  66253. +
  66254. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  66255. + _LT_TAG_COMPILER
  66256. +
  66257. + # save warnings/boilerplate of simple test code
  66258. + _LT_COMPILER_BOILERPLATE
  66259. + _LT_LINKER_BOILERPLATE
  66260. +
  66261. + # Allow CC to be a program name with arguments.
  66262. + lt_save_CC="$CC"
  66263. + lt_save_GCC=$GCC
  66264. + CC=${F77-"f77"}
  66265. + compiler=$CC
  66266. + _LT_TAGVAR(compiler, $1)=$CC
  66267. + _LT_CC_BASENAME([$compiler])
  66268. + GCC=$G77
  66269. + if test -n "$compiler"; then
  66270. + AC_MSG_CHECKING([if libtool supports shared libraries])
  66271. + AC_MSG_RESULT([$can_build_shared])
  66272. +
  66273. + AC_MSG_CHECKING([whether to build shared libraries])
  66274. + test "$can_build_shared" = "no" && enable_shared=no
  66275. +
  66276. + # On AIX, shared libraries and static libraries use the same namespace, and
  66277. + # are all built from PIC.
  66278. + case $host_os in
  66279. + aix3*)
  66280. + test "$enable_shared" = yes && enable_static=no
  66281. + if test -n "$RANLIB"; then
  66282. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  66283. + postinstall_cmds='$RANLIB $lib'
  66284. + fi
  66285. + ;;
  66286. + aix[[4-9]]*)
  66287. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  66288. + test "$enable_shared" = yes && enable_static=no
  66289. + fi
  66290. + ;;
  66291. + esac
  66292. + AC_MSG_RESULT([$enable_shared])
  66293. +
  66294. + AC_MSG_CHECKING([whether to build static libraries])
  66295. + # Make sure either enable_shared or enable_static is yes.
  66296. + test "$enable_shared" = yes || enable_static=yes
  66297. + AC_MSG_RESULT([$enable_static])
  66298. +
  66299. + _LT_TAGVAR(GCC, $1)="$G77"
  66300. + _LT_TAGVAR(LD, $1)="$LD"
  66301. +
  66302. + ## CAVEAT EMPTOR:
  66303. + ## There is no encapsulation within the following macros, do not change
  66304. + ## the running order or otherwise move them around unless you know exactly
  66305. + ## what you are doing...
  66306. + _LT_COMPILER_PIC($1)
  66307. + _LT_COMPILER_C_O($1)
  66308. + _LT_COMPILER_FILE_LOCKS($1)
  66309. + _LT_LINKER_SHLIBS($1)
  66310. + _LT_SYS_DYNAMIC_LINKER($1)
  66311. + _LT_LINKER_HARDCODE_LIBPATH($1)
  66312. +
  66313. + _LT_CONFIG($1)
  66314. + fi # test -n "$compiler"
  66315. +
  66316. + GCC=$lt_save_GCC
  66317. + CC="$lt_save_CC"
  66318. +fi # test "$_lt_disable_F77" != yes
  66319. +
  66320. +AC_LANG_POP
  66321. +])# _LT_LANG_F77_CONFIG
  66322. +
  66323. +
  66324. +# _LT_PROG_FC
  66325. +# -----------
  66326. +# Since AC_PROG_FC is broken, in that it returns the empty string
  66327. +# if there is no fortran compiler, we have our own version here.
  66328. +m4_defun([_LT_PROG_FC],
  66329. +[
  66330. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  66331. +AC_PROG_FC
  66332. +if test -z "$FC" || test "X$FC" = "Xno"; then
  66333. + _lt_disable_FC=yes
  66334. +fi
  66335. +popdef([AC_MSG_ERROR])
  66336. +])# _LT_PROG_FC
  66337. +
  66338. +dnl aclocal-1.4 backwards compatibility:
  66339. +dnl AC_DEFUN([_LT_PROG_FC], [])
  66340. +
  66341. +
  66342. +# _LT_LANG_FC_CONFIG([TAG])
  66343. +# -------------------------
  66344. +# Ensure that the configuration variables for a Fortran compiler are
  66345. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  66346. +# to write the compiler configuration to `libtool'.
  66347. +m4_defun([_LT_LANG_FC_CONFIG],
  66348. +[AC_REQUIRE([_LT_PROG_FC])dnl
  66349. +AC_LANG_PUSH(Fortran)
  66350. +
  66351. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66352. +_LT_TAGVAR(allow_undefined_flag, $1)=
  66353. +_LT_TAGVAR(always_export_symbols, $1)=no
  66354. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  66355. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  66356. +_LT_TAGVAR(hardcode_direct, $1)=no
  66357. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  66358. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  66359. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  66360. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  66361. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  66362. +_LT_TAGVAR(hardcode_automatic, $1)=no
  66363. +_LT_TAGVAR(inherit_rpath, $1)=no
  66364. +_LT_TAGVAR(module_cmds, $1)=
  66365. +_LT_TAGVAR(module_expsym_cmds, $1)=
  66366. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  66367. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  66368. +_LT_TAGVAR(no_undefined_flag, $1)=
  66369. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  66370. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  66371. +
  66372. +# Source file extension for fc test sources.
  66373. +ac_ext=${ac_fc_srcext-f}
  66374. +
  66375. +# Object file extension for compiled fc test sources.
  66376. +objext=o
  66377. +_LT_TAGVAR(objext, $1)=$objext
  66378. +
  66379. +# No sense in running all these tests if we already determined that
  66380. +# the FC compiler isn't working. Some variables (like enable_shared)
  66381. +# are currently assumed to apply to all compilers on this platform,
  66382. +# and will be corrupted by setting them based on a non-working compiler.
  66383. +if test "$_lt_disable_FC" != yes; then
  66384. + # Code to be used in simple compile tests
  66385. + lt_simple_compile_test_code="\
  66386. + subroutine t
  66387. + return
  66388. + end
  66389. +"
  66390. +
  66391. + # Code to be used in simple link tests
  66392. + lt_simple_link_test_code="\
  66393. + program t
  66394. + end
  66395. +"
  66396. +
  66397. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  66398. + _LT_TAG_COMPILER
  66399. +
  66400. + # save warnings/boilerplate of simple test code
  66401. + _LT_COMPILER_BOILERPLATE
  66402. + _LT_LINKER_BOILERPLATE
  66403. +
  66404. + # Allow CC to be a program name with arguments.
  66405. + lt_save_CC="$CC"
  66406. + lt_save_GCC=$GCC
  66407. + CC=${FC-"f95"}
  66408. + compiler=$CC
  66409. + GCC=$ac_cv_fc_compiler_gnu
  66410. +
  66411. + _LT_TAGVAR(compiler, $1)=$CC
  66412. + _LT_CC_BASENAME([$compiler])
  66413. +
  66414. + if test -n "$compiler"; then
  66415. + AC_MSG_CHECKING([if libtool supports shared libraries])
  66416. + AC_MSG_RESULT([$can_build_shared])
  66417. +
  66418. + AC_MSG_CHECKING([whether to build shared libraries])
  66419. + test "$can_build_shared" = "no" && enable_shared=no
  66420. +
  66421. + # On AIX, shared libraries and static libraries use the same namespace, and
  66422. + # are all built from PIC.
  66423. + case $host_os in
  66424. + aix3*)
  66425. + test "$enable_shared" = yes && enable_static=no
  66426. + if test -n "$RANLIB"; then
  66427. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  66428. + postinstall_cmds='$RANLIB $lib'
  66429. + fi
  66430. + ;;
  66431. + aix[[4-9]]*)
  66432. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  66433. + test "$enable_shared" = yes && enable_static=no
  66434. + fi
  66435. + ;;
  66436. + esac
  66437. + AC_MSG_RESULT([$enable_shared])
  66438. +
  66439. + AC_MSG_CHECKING([whether to build static libraries])
  66440. + # Make sure either enable_shared or enable_static is yes.
  66441. + test "$enable_shared" = yes || enable_static=yes
  66442. + AC_MSG_RESULT([$enable_static])
  66443. +
  66444. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  66445. + _LT_TAGVAR(LD, $1)="$LD"
  66446. +
  66447. + ## CAVEAT EMPTOR:
  66448. + ## There is no encapsulation within the following macros, do not change
  66449. + ## the running order or otherwise move them around unless you know exactly
  66450. + ## what you are doing...
  66451. + _LT_SYS_HIDDEN_LIBDEPS($1)
  66452. + _LT_COMPILER_PIC($1)
  66453. + _LT_COMPILER_C_O($1)
  66454. + _LT_COMPILER_FILE_LOCKS($1)
  66455. + _LT_LINKER_SHLIBS($1)
  66456. + _LT_SYS_DYNAMIC_LINKER($1)
  66457. + _LT_LINKER_HARDCODE_LIBPATH($1)
  66458. +
  66459. + _LT_CONFIG($1)
  66460. + fi # test -n "$compiler"
  66461. +
  66462. + GCC=$lt_save_GCC
  66463. + CC="$lt_save_CC"
  66464. +fi # test "$_lt_disable_FC" != yes
  66465. +
  66466. +AC_LANG_POP
  66467. +])# _LT_LANG_FC_CONFIG
  66468. +
  66469. +
  66470. +# _LT_LANG_GCJ_CONFIG([TAG])
  66471. +# --------------------------
  66472. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  66473. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  66474. +# to write the compiler configuration to `libtool'.
  66475. +m4_defun([_LT_LANG_GCJ_CONFIG],
  66476. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  66477. +AC_LANG_SAVE
  66478. +
  66479. +# Source file extension for Java test sources.
  66480. +ac_ext=java
  66481. +
  66482. +# Object file extension for compiled Java test sources.
  66483. +objext=o
  66484. +_LT_TAGVAR(objext, $1)=$objext
  66485. +
  66486. +# Code to be used in simple compile tests
  66487. +lt_simple_compile_test_code="class foo {}"
  66488. +
  66489. +# Code to be used in simple link tests
  66490. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  66491. +
  66492. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  66493. +_LT_TAG_COMPILER
  66494. +
  66495. +# save warnings/boilerplate of simple test code
  66496. +_LT_COMPILER_BOILERPLATE
  66497. +_LT_LINKER_BOILERPLATE
  66498. +
  66499. +# Allow CC to be a program name with arguments.
  66500. +lt_save_CC="$CC"
  66501. +lt_save_GCC=$GCC
  66502. +GCC=yes
  66503. +CC=${GCJ-"gcj"}
  66504. +compiler=$CC
  66505. +_LT_TAGVAR(compiler, $1)=$CC
  66506. +_LT_TAGVAR(LD, $1)="$LD"
  66507. +_LT_CC_BASENAME([$compiler])
  66508. +
  66509. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  66510. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  66511. +
  66512. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  66513. +
  66514. +## CAVEAT EMPTOR:
  66515. +## There is no encapsulation within the following macros, do not change
  66516. +## the running order or otherwise move them around unless you know exactly
  66517. +## what you are doing...
  66518. +if test -n "$compiler"; then
  66519. + _LT_COMPILER_NO_RTTI($1)
  66520. + _LT_COMPILER_PIC($1)
  66521. + _LT_COMPILER_C_O($1)
  66522. + _LT_COMPILER_FILE_LOCKS($1)
  66523. + _LT_LINKER_SHLIBS($1)
  66524. + _LT_LINKER_HARDCODE_LIBPATH($1)
  66525. +
  66526. + _LT_CONFIG($1)
  66527. +fi
  66528. +
  66529. +AC_LANG_RESTORE
  66530. +
  66531. +GCC=$lt_save_GCC
  66532. +CC="$lt_save_CC"
  66533. +])# _LT_LANG_GCJ_CONFIG
  66534. +
  66535. +
  66536. +# _LT_LANG_RC_CONFIG([TAG])
  66537. +# -------------------------
  66538. +# Ensure that the configuration variables for the Windows resource compiler
  66539. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  66540. +# to write the compiler configuration to `libtool'.
  66541. +m4_defun([_LT_LANG_RC_CONFIG],
  66542. +[AC_REQUIRE([LT_PROG_RC])dnl
  66543. +AC_LANG_SAVE
  66544. +
  66545. +# Source file extension for RC test sources.
  66546. +ac_ext=rc
  66547. +
  66548. +# Object file extension for compiled RC test sources.
  66549. +objext=o
  66550. +_LT_TAGVAR(objext, $1)=$objext
  66551. +
  66552. +# Code to be used in simple compile tests
  66553. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  66554. +
  66555. +# Code to be used in simple link tests
  66556. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  66557. +
  66558. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  66559. +_LT_TAG_COMPILER
  66560. +
  66561. +# save warnings/boilerplate of simple test code
  66562. +_LT_COMPILER_BOILERPLATE
  66563. +_LT_LINKER_BOILERPLATE
  66564. +
  66565. +# Allow CC to be a program name with arguments.
  66566. +lt_save_CC="$CC"
  66567. +lt_save_GCC=$GCC
  66568. +GCC=
  66569. +CC=${RC-"windres"}
  66570. +compiler=$CC
  66571. +_LT_TAGVAR(compiler, $1)=$CC
  66572. +_LT_CC_BASENAME([$compiler])
  66573. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  66574. +
  66575. +if test -n "$compiler"; then
  66576. + :
  66577. + _LT_CONFIG($1)
  66578. +fi
  66579. +
  66580. +GCC=$lt_save_GCC
  66581. +AC_LANG_RESTORE
  66582. +CC="$lt_save_CC"
  66583. +])# _LT_LANG_RC_CONFIG
  66584. +
  66585. +
  66586. +# LT_PROG_GCJ
  66587. +# -----------
  66588. +AC_DEFUN([LT_PROG_GCJ],
  66589. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  66590. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  66591. + [AC_CHECK_TOOL(GCJ, gcj,)
  66592. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  66593. + AC_SUBST(GCJFLAGS)])])[]dnl
  66594. +])
  66595. +
  66596. +# Old name:
  66597. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  66598. +dnl aclocal-1.4 backwards compatibility:
  66599. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  66600. +
  66601. +
  66602. +# LT_PROG_RC
  66603. +# ----------
  66604. +AC_DEFUN([LT_PROG_RC],
  66605. +[AC_CHECK_TOOL(RC, windres,)
  66606. +])
  66607. +
  66608. +# Old name:
  66609. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  66610. +dnl aclocal-1.4 backwards compatibility:
  66611. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  66612. +
  66613. +
  66614. +# _LT_DECL_EGREP
  66615. +# --------------
  66616. +# If we don't have a new enough Autoconf to choose the best grep
  66617. +# available, choose the one first in the user's PATH.
  66618. +m4_defun([_LT_DECL_EGREP],
  66619. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  66620. +AC_REQUIRE([AC_PROG_FGREP])dnl
  66621. +test -z "$GREP" && GREP=grep
  66622. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  66623. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  66624. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  66625. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  66626. +AC_SUBST([GREP])
  66627. +])
  66628. +
  66629. +
  66630. +# _LT_DECL_OBJDUMP
  66631. +# --------------
  66632. +# If we don't have a new enough Autoconf to choose the best objdump
  66633. +# available, choose the one first in the user's PATH.
  66634. +m4_defun([_LT_DECL_OBJDUMP],
  66635. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  66636. +test -z "$OBJDUMP" && OBJDUMP=objdump
  66637. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  66638. +AC_SUBST([OBJDUMP])
  66639. +])
  66640. +
  66641. +
  66642. +# _LT_DECL_SED
  66643. +# ------------
  66644. +# Check for a fully-functional sed program, that truncates
  66645. +# as few characters as possible. Prefer GNU sed if found.
  66646. +m4_defun([_LT_DECL_SED],
  66647. +[AC_PROG_SED
  66648. +test -z "$SED" && SED=sed
  66649. +Xsed="$SED -e 1s/^X//"
  66650. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  66651. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  66652. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  66653. +])# _LT_DECL_SED
  66654. +
  66655. +m4_ifndef([AC_PROG_SED], [
  66656. +############################################################
  66657. +# NOTE: This macro has been submitted for inclusion into #
  66658. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  66659. +# a released version of Autoconf we should remove this #
  66660. +# macro and use it instead. #
  66661. +############################################################
  66662. +
  66663. +m4_defun([AC_PROG_SED],
  66664. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  66665. +AC_CACHE_VAL(lt_cv_path_SED,
  66666. +[# Loop through the user's path and test for sed and gsed.
  66667. +# Then use that list of sed's as ones to test for truncation.
  66668. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66669. +for as_dir in $PATH
  66670. +do
  66671. + IFS=$as_save_IFS
  66672. + test -z "$as_dir" && as_dir=.
  66673. + for lt_ac_prog in sed gsed; do
  66674. + for ac_exec_ext in '' $ac_executable_extensions; do
  66675. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  66676. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  66677. + fi
  66678. + done
  66679. + done
  66680. +done
  66681. +IFS=$as_save_IFS
  66682. +lt_ac_max=0
  66683. +lt_ac_count=0
  66684. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  66685. +# along with /bin/sed that truncates output.
  66686. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  66687. + test ! -f $lt_ac_sed && continue
  66688. + cat /dev/null > conftest.in
  66689. + lt_ac_count=0
  66690. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  66691. + # Check for GNU sed and select it if it is found.
  66692. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  66693. + lt_cv_path_SED=$lt_ac_sed
  66694. + break
  66695. + fi
  66696. + while true; do
  66697. + cat conftest.in conftest.in >conftest.tmp
  66698. + mv conftest.tmp conftest.in
  66699. + cp conftest.in conftest.nl
  66700. + echo >>conftest.nl
  66701. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  66702. + cmp -s conftest.out conftest.nl || break
  66703. + # 10000 chars as input seems more than enough
  66704. + test $lt_ac_count -gt 10 && break
  66705. + lt_ac_count=`expr $lt_ac_count + 1`
  66706. + if test $lt_ac_count -gt $lt_ac_max; then
  66707. + lt_ac_max=$lt_ac_count
  66708. + lt_cv_path_SED=$lt_ac_sed
  66709. + fi
  66710. + done
  66711. +done
  66712. +])
  66713. +SED=$lt_cv_path_SED
  66714. +AC_SUBST([SED])
  66715. +AC_MSG_RESULT([$SED])
  66716. +])#AC_PROG_SED
  66717. +])#m4_ifndef
  66718. +
  66719. +# Old name:
  66720. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  66721. +dnl aclocal-1.4 backwards compatibility:
  66722. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  66723. +
  66724. +
  66725. +# _LT_CHECK_SHELL_FEATURES
  66726. +# ------------------------
  66727. +# Find out whether the shell is Bourne or XSI compatible,
  66728. +# or has some other useful features.
  66729. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  66730. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  66731. +# Try some XSI features
  66732. +xsi_shell=no
  66733. +( _lt_dummy="a/b/c"
  66734. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  66735. + = c,a/b,, \
  66736. + && eval 'test $(( 1 + 1 )) -eq 2 \
  66737. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  66738. + && xsi_shell=yes
  66739. +AC_MSG_RESULT([$xsi_shell])
  66740. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  66741. +
  66742. +AC_MSG_CHECKING([whether the shell understands "+="])
  66743. +lt_shell_append=no
  66744. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  66745. + >/dev/null 2>&1 \
  66746. + && lt_shell_append=yes
  66747. +AC_MSG_RESULT([$lt_shell_append])
  66748. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  66749. +
  66750. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  66751. + lt_unset=unset
  66752. +else
  66753. + lt_unset=false
  66754. +fi
  66755. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  66756. +
  66757. +# test EBCDIC or ASCII
  66758. +case `echo X|tr X '\101'` in
  66759. + A) # ASCII based system
  66760. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  66761. + lt_SP2NL='tr \040 \012'
  66762. + lt_NL2SP='tr \015\012 \040\040'
  66763. + ;;
  66764. + *) # EBCDIC based system
  66765. + lt_SP2NL='tr \100 \n'
  66766. + lt_NL2SP='tr \r\n \100\100'
  66767. + ;;
  66768. +esac
  66769. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  66770. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  66771. +])# _LT_CHECK_SHELL_FEATURES
  66772. +
  66773. +
  66774. +# _LT_PROG_XSI_SHELLFNS
  66775. +# ---------------------
  66776. +# Bourne and XSI compatible variants of some useful shell functions.
  66777. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  66778. +[case $xsi_shell in
  66779. + yes)
  66780. + cat << \_LT_EOF >> "$cfgfile"
  66781. +
  66782. +# func_dirname file append nondir_replacement
  66783. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  66784. +# otherwise set result to NONDIR_REPLACEMENT.
  66785. +func_dirname ()
  66786. +{
  66787. + case ${1} in
  66788. + */*) func_dirname_result="${1%/*}${2}" ;;
  66789. + * ) func_dirname_result="${3}" ;;
  66790. + esac
  66791. +}
  66792. +
  66793. +# func_basename file
  66794. +func_basename ()
  66795. +{
  66796. + func_basename_result="${1##*/}"
  66797. +}
  66798. +
  66799. +# func_dirname_and_basename file append nondir_replacement
  66800. +# perform func_basename and func_dirname in a single function
  66801. +# call:
  66802. +# dirname: Compute the dirname of FILE. If nonempty,
  66803. +# add APPEND to the result, otherwise set result
  66804. +# to NONDIR_REPLACEMENT.
  66805. +# value returned in "$func_dirname_result"
  66806. +# basename: Compute filename of FILE.
  66807. +# value retuned in "$func_basename_result"
  66808. +# Implementation must be kept synchronized with func_dirname
  66809. +# and func_basename. For efficiency, we do not delegate to
  66810. +# those functions but instead duplicate the functionality here.
  66811. +func_dirname_and_basename ()
  66812. +{
  66813. + case ${1} in
  66814. + */*) func_dirname_result="${1%/*}${2}" ;;
  66815. + * ) func_dirname_result="${3}" ;;
  66816. + esac
  66817. + func_basename_result="${1##*/}"
  66818. +}
  66819. +
  66820. +# func_stripname prefix suffix name
  66821. +# strip PREFIX and SUFFIX off of NAME.
  66822. +# PREFIX and SUFFIX must not contain globbing or regex special
  66823. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  66824. +# dot (in which case that matches only a dot).
  66825. +func_stripname ()
  66826. +{
  66827. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  66828. + # positional parameters, so assign one to ordinary parameter first.
  66829. + func_stripname_result=${3}
  66830. + func_stripname_result=${func_stripname_result#"${1}"}
  66831. + func_stripname_result=${func_stripname_result%"${2}"}
  66832. +}
  66833. +
  66834. +# func_opt_split
  66835. +func_opt_split ()
  66836. +{
  66837. + func_opt_split_opt=${1%%=*}
  66838. + func_opt_split_arg=${1#*=}
  66839. +}
  66840. +
  66841. +# func_lo2o object
  66842. +func_lo2o ()
  66843. +{
  66844. + case ${1} in
  66845. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  66846. + *) func_lo2o_result=${1} ;;
  66847. + esac
  66848. +}
  66849. +
  66850. +# func_xform libobj-or-source
  66851. +func_xform ()
  66852. +{
  66853. + func_xform_result=${1%.*}.lo
  66854. +}
  66855. +
  66856. +# func_arith arithmetic-term...
  66857. +func_arith ()
  66858. +{
  66859. + func_arith_result=$(( $[*] ))
  66860. +}
  66861. +
  66862. +# func_len string
  66863. +# STRING may not start with a hyphen.
  66864. +func_len ()
  66865. +{
  66866. + func_len_result=${#1}
  66867. +}
  66868. +
  66869. +_LT_EOF
  66870. + ;;
  66871. + *) # Bourne compatible functions.
  66872. + cat << \_LT_EOF >> "$cfgfile"
  66873. +
  66874. +# func_dirname file append nondir_replacement
  66875. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  66876. +# otherwise set result to NONDIR_REPLACEMENT.
  66877. +func_dirname ()
  66878. +{
  66879. + # Extract subdirectory from the argument.
  66880. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  66881. + if test "X$func_dirname_result" = "X${1}"; then
  66882. + func_dirname_result="${3}"
  66883. + else
  66884. + func_dirname_result="$func_dirname_result${2}"
  66885. + fi
  66886. +}
  66887. +
  66888. +# func_basename file
  66889. +func_basename ()
  66890. +{
  66891. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  66892. +}
  66893. +
  66894. +dnl func_dirname_and_basename
  66895. +dnl A portable version of this function is already defined in general.m4sh
  66896. +dnl so there is no need for it here.
  66897. +
  66898. +# func_stripname prefix suffix name
  66899. +# strip PREFIX and SUFFIX off of NAME.
  66900. +# PREFIX and SUFFIX must not contain globbing or regex special
  66901. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  66902. +# dot (in which case that matches only a dot).
  66903. +# func_strip_suffix prefix name
  66904. +func_stripname ()
  66905. +{
  66906. + case ${2} in
  66907. + .*) func_stripname_result=`$ECHO "X${3}" \
  66908. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  66909. + *) func_stripname_result=`$ECHO "X${3}" \
  66910. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  66911. + esac
  66912. +}
  66913. +
  66914. +# sed scripts:
  66915. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  66916. +my_sed_long_arg='1s/^-[[^=]]*=//'
  66917. +
  66918. +# func_opt_split
  66919. +func_opt_split ()
  66920. +{
  66921. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  66922. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  66923. +}
  66924. +
  66925. +# func_lo2o object
  66926. +func_lo2o ()
  66927. +{
  66928. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  66929. +}
  66930. +
  66931. +# func_xform libobj-or-source
  66932. +func_xform ()
  66933. +{
  66934. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  66935. +}
  66936. +
  66937. +# func_arith arithmetic-term...
  66938. +func_arith ()
  66939. +{
  66940. + func_arith_result=`expr "$[@]"`
  66941. +}
  66942. +
  66943. +# func_len string
  66944. +# STRING may not start with a hyphen.
  66945. +func_len ()
  66946. +{
  66947. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  66948. +}
  66949. +
  66950. +_LT_EOF
  66951. +esac
  66952. +
  66953. +case $lt_shell_append in
  66954. + yes)
  66955. + cat << \_LT_EOF >> "$cfgfile"
  66956. +
  66957. +# func_append var value
  66958. +# Append VALUE to the end of shell variable VAR.
  66959. +func_append ()
  66960. +{
  66961. + eval "$[1]+=\$[2]"
  66962. +}
  66963. +_LT_EOF
  66964. + ;;
  66965. + *)
  66966. + cat << \_LT_EOF >> "$cfgfile"
  66967. +
  66968. +# func_append var value
  66969. +# Append VALUE to the end of shell variable VAR.
  66970. +func_append ()
  66971. +{
  66972. + eval "$[1]=\$$[1]\$[2]"
  66973. +}
  66974. +
  66975. +_LT_EOF
  66976. + ;;
  66977. + esac
  66978. +])
  66979. diff -Nur esound-0.2.41.orig/m4/lt~obsolete.m4 esound-0.2.41/m4/lt~obsolete.m4
  66980. --- esound-0.2.41.orig/m4/lt~obsolete.m4 1970-01-01 01:00:00.000000000 +0100
  66981. +++ esound-0.2.41/m4/lt~obsolete.m4 2011-02-24 20:04:59.747302164 +0100
  66982. @@ -0,0 +1,92 @@
  66983. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  66984. +#
  66985. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  66986. +# Written by Scott James Remnant, 2004.
  66987. +#
  66988. +# This file is free software; the Free Software Foundation gives
  66989. +# unlimited permission to copy and/or distribute it, with or without
  66990. +# modifications, as long as this notice is preserved.
  66991. +
  66992. +# serial 4 lt~obsolete.m4
  66993. +
  66994. +# These exist entirely to fool aclocal when bootstrapping libtool.
  66995. +#
  66996. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  66997. +# which have later been changed to m4_define as they aren't part of the
  66998. +# exported API, or moved to Autoconf or Automake where they belong.
  66999. +#
  67000. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  67001. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  67002. +# using a macro with the same name in our local m4/libtool.m4 it'll
  67003. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  67004. +# and doesn't know about Autoconf macros at all.)
  67005. +#
  67006. +# So we provide this file, which has a silly filename so it's always
  67007. +# included after everything else. This provides aclocal with the
  67008. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  67009. +# because those macros already exist, or will be overwritten later.
  67010. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  67011. +#
  67012. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  67013. +# Yes, that means every name once taken will need to remain here until
  67014. +# we give up compatibility with versions before 1.7, at which point
  67015. +# we need to keep only those names which we still refer to.
  67016. +
  67017. +# This is to help aclocal find these macros, as it can't see m4_define.
  67018. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  67019. +
  67020. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  67021. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  67022. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  67023. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  67024. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  67025. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  67026. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  67027. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  67028. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  67029. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  67030. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  67031. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  67032. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  67033. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  67034. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  67035. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  67036. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  67037. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  67038. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  67039. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  67040. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  67041. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  67042. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  67043. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  67044. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  67045. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  67046. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  67047. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  67048. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  67049. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  67050. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  67051. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  67052. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  67053. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  67054. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  67055. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  67056. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  67057. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  67058. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  67059. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  67060. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  67061. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  67062. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  67063. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  67064. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  67065. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  67066. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  67067. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  67068. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  67069. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  67070. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  67071. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  67072. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  67073. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  67074. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  67075. diff -Nur esound-0.2.41.orig/m4/ltoptions.m4 esound-0.2.41/m4/ltoptions.m4
  67076. --- esound-0.2.41.orig/m4/ltoptions.m4 1970-01-01 01:00:00.000000000 +0100
  67077. +++ esound-0.2.41/m4/ltoptions.m4 2011-02-24 20:04:59.587306852 +0100
  67078. @@ -0,0 +1,368 @@
  67079. +# Helper functions for option handling. -*- Autoconf -*-
  67080. +#
  67081. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  67082. +# Written by Gary V. Vaughan, 2004
  67083. +#
  67084. +# This file is free software; the Free Software Foundation gives
  67085. +# unlimited permission to copy and/or distribute it, with or without
  67086. +# modifications, as long as this notice is preserved.
  67087. +
  67088. +# serial 6 ltoptions.m4
  67089. +
  67090. +# This is to help aclocal find these macros, as it can't see m4_define.
  67091. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  67092. +
  67093. +
  67094. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  67095. +# ------------------------------------------
  67096. +m4_define([_LT_MANGLE_OPTION],
  67097. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  67098. +
  67099. +
  67100. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  67101. +# ---------------------------------------
  67102. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  67103. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  67104. +# saved as a flag.
  67105. +m4_define([_LT_SET_OPTION],
  67106. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  67107. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  67108. + _LT_MANGLE_DEFUN([$1], [$2]),
  67109. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  67110. +])
  67111. +
  67112. +
  67113. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  67114. +# ------------------------------------------------------------
  67115. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  67116. +m4_define([_LT_IF_OPTION],
  67117. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  67118. +
  67119. +
  67120. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  67121. +# -------------------------------------------------------
  67122. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  67123. +# are set.
  67124. +m4_define([_LT_UNLESS_OPTIONS],
  67125. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  67126. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  67127. + [m4_define([$0_found])])])[]dnl
  67128. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  67129. +])[]dnl
  67130. +])
  67131. +
  67132. +
  67133. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  67134. +# ----------------------------------------
  67135. +# OPTION-LIST is a space-separated list of Libtool options associated
  67136. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  67137. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  67138. +# the unknown option and exit.
  67139. +m4_defun([_LT_SET_OPTIONS],
  67140. +[# Set options
  67141. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  67142. + [_LT_SET_OPTION([$1], _LT_Option)])
  67143. +
  67144. +m4_if([$1],[LT_INIT],[
  67145. + dnl
  67146. + dnl Simply set some default values (i.e off) if boolean options were not
  67147. + dnl specified:
  67148. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  67149. + ])
  67150. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  67151. + ])
  67152. + dnl
  67153. + dnl If no reference was made to various pairs of opposing options, then
  67154. + dnl we run the default mode handler for the pair. For example, if neither
  67155. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  67156. + dnl archives by default:
  67157. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  67158. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  67159. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  67160. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  67161. + [_LT_ENABLE_FAST_INSTALL])
  67162. + ])
  67163. +])# _LT_SET_OPTIONS
  67164. +
  67165. +
  67166. +## --------------------------------- ##
  67167. +## Macros to handle LT_INIT options. ##
  67168. +## --------------------------------- ##
  67169. +
  67170. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  67171. +# -----------------------------------------
  67172. +m4_define([_LT_MANGLE_DEFUN],
  67173. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  67174. +
  67175. +
  67176. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  67177. +# -----------------------------------------------
  67178. +m4_define([LT_OPTION_DEFINE],
  67179. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  67180. +])# LT_OPTION_DEFINE
  67181. +
  67182. +
  67183. +# dlopen
  67184. +# ------
  67185. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  67186. +])
  67187. +
  67188. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  67189. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  67190. +AC_DIAGNOSE([obsolete],
  67191. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  67192. +put the `dlopen' option into LT_INIT's first parameter.])
  67193. +])
  67194. +
  67195. +dnl aclocal-1.4 backwards compatibility:
  67196. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  67197. +
  67198. +
  67199. +# win32-dll
  67200. +# ---------
  67201. +# Declare package support for building win32 dll's.
  67202. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  67203. +[enable_win32_dll=yes
  67204. +
  67205. +case $host in
  67206. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  67207. + AC_CHECK_TOOL(AS, as, false)
  67208. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  67209. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  67210. + ;;
  67211. +esac
  67212. +
  67213. +test -z "$AS" && AS=as
  67214. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  67215. +
  67216. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  67217. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  67218. +
  67219. +test -z "$OBJDUMP" && OBJDUMP=objdump
  67220. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  67221. +])# win32-dll
  67222. +
  67223. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  67224. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  67225. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  67226. +AC_DIAGNOSE([obsolete],
  67227. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  67228. +put the `win32-dll' option into LT_INIT's first parameter.])
  67229. +])
  67230. +
  67231. +dnl aclocal-1.4 backwards compatibility:
  67232. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  67233. +
  67234. +
  67235. +# _LT_ENABLE_SHARED([DEFAULT])
  67236. +# ----------------------------
  67237. +# implement the --enable-shared flag, and supports the `shared' and
  67238. +# `disable-shared' LT_INIT options.
  67239. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  67240. +m4_define([_LT_ENABLE_SHARED],
  67241. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  67242. +AC_ARG_ENABLE([shared],
  67243. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  67244. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  67245. + [p=${PACKAGE-default}
  67246. + case $enableval in
  67247. + yes) enable_shared=yes ;;
  67248. + no) enable_shared=no ;;
  67249. + *)
  67250. + enable_shared=no
  67251. + # Look at the argument we got. We use all the common list separators.
  67252. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  67253. + for pkg in $enableval; do
  67254. + IFS="$lt_save_ifs"
  67255. + if test "X$pkg" = "X$p"; then
  67256. + enable_shared=yes
  67257. + fi
  67258. + done
  67259. + IFS="$lt_save_ifs"
  67260. + ;;
  67261. + esac],
  67262. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  67263. +
  67264. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  67265. + [Whether or not to build shared libraries])
  67266. +])# _LT_ENABLE_SHARED
  67267. +
  67268. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  67269. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  67270. +
  67271. +# Old names:
  67272. +AC_DEFUN([AC_ENABLE_SHARED],
  67273. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  67274. +])
  67275. +
  67276. +AC_DEFUN([AC_DISABLE_SHARED],
  67277. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  67278. +])
  67279. +
  67280. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  67281. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  67282. +
  67283. +dnl aclocal-1.4 backwards compatibility:
  67284. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  67285. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  67286. +
  67287. +
  67288. +
  67289. +# _LT_ENABLE_STATIC([DEFAULT])
  67290. +# ----------------------------
  67291. +# implement the --enable-static flag, and support the `static' and
  67292. +# `disable-static' LT_INIT options.
  67293. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  67294. +m4_define([_LT_ENABLE_STATIC],
  67295. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  67296. +AC_ARG_ENABLE([static],
  67297. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  67298. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  67299. + [p=${PACKAGE-default}
  67300. + case $enableval in
  67301. + yes) enable_static=yes ;;
  67302. + no) enable_static=no ;;
  67303. + *)
  67304. + enable_static=no
  67305. + # Look at the argument we got. We use all the common list separators.
  67306. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  67307. + for pkg in $enableval; do
  67308. + IFS="$lt_save_ifs"
  67309. + if test "X$pkg" = "X$p"; then
  67310. + enable_static=yes
  67311. + fi
  67312. + done
  67313. + IFS="$lt_save_ifs"
  67314. + ;;
  67315. + esac],
  67316. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  67317. +
  67318. + _LT_DECL([build_old_libs], [enable_static], [0],
  67319. + [Whether or not to build static libraries])
  67320. +])# _LT_ENABLE_STATIC
  67321. +
  67322. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  67323. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  67324. +
  67325. +# Old names:
  67326. +AC_DEFUN([AC_ENABLE_STATIC],
  67327. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  67328. +])
  67329. +
  67330. +AC_DEFUN([AC_DISABLE_STATIC],
  67331. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  67332. +])
  67333. +
  67334. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  67335. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  67336. +
  67337. +dnl aclocal-1.4 backwards compatibility:
  67338. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  67339. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  67340. +
  67341. +
  67342. +
  67343. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  67344. +# ----------------------------------
  67345. +# implement the --enable-fast-install flag, and support the `fast-install'
  67346. +# and `disable-fast-install' LT_INIT options.
  67347. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  67348. +m4_define([_LT_ENABLE_FAST_INSTALL],
  67349. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  67350. +AC_ARG_ENABLE([fast-install],
  67351. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  67352. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  67353. + [p=${PACKAGE-default}
  67354. + case $enableval in
  67355. + yes) enable_fast_install=yes ;;
  67356. + no) enable_fast_install=no ;;
  67357. + *)
  67358. + enable_fast_install=no
  67359. + # Look at the argument we got. We use all the common list separators.
  67360. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  67361. + for pkg in $enableval; do
  67362. + IFS="$lt_save_ifs"
  67363. + if test "X$pkg" = "X$p"; then
  67364. + enable_fast_install=yes
  67365. + fi
  67366. + done
  67367. + IFS="$lt_save_ifs"
  67368. + ;;
  67369. + esac],
  67370. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  67371. +
  67372. +_LT_DECL([fast_install], [enable_fast_install], [0],
  67373. + [Whether or not to optimize for fast installation])dnl
  67374. +])# _LT_ENABLE_FAST_INSTALL
  67375. +
  67376. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  67377. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  67378. +
  67379. +# Old names:
  67380. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  67381. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  67382. +AC_DIAGNOSE([obsolete],
  67383. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  67384. +the `fast-install' option into LT_INIT's first parameter.])
  67385. +])
  67386. +
  67387. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  67388. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  67389. +AC_DIAGNOSE([obsolete],
  67390. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  67391. +the `disable-fast-install' option into LT_INIT's first parameter.])
  67392. +])
  67393. +
  67394. +dnl aclocal-1.4 backwards compatibility:
  67395. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  67396. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  67397. +
  67398. +
  67399. +# _LT_WITH_PIC([MODE])
  67400. +# --------------------
  67401. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  67402. +# LT_INIT options.
  67403. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  67404. +m4_define([_LT_WITH_PIC],
  67405. +[AC_ARG_WITH([pic],
  67406. + [AS_HELP_STRING([--with-pic],
  67407. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  67408. + [pic_mode="$withval"],
  67409. + [pic_mode=default])
  67410. +
  67411. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  67412. +
  67413. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  67414. +])# _LT_WITH_PIC
  67415. +
  67416. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  67417. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  67418. +
  67419. +# Old name:
  67420. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  67421. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  67422. +AC_DIAGNOSE([obsolete],
  67423. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  67424. +put the `pic-only' option into LT_INIT's first parameter.])
  67425. +])
  67426. +
  67427. +dnl aclocal-1.4 backwards compatibility:
  67428. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  67429. +
  67430. +## ----------------- ##
  67431. +## LTDL_INIT Options ##
  67432. +## ----------------- ##
  67433. +
  67434. +m4_define([_LTDL_MODE], [])
  67435. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  67436. + [m4_define([_LTDL_MODE], [nonrecursive])])
  67437. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  67438. + [m4_define([_LTDL_MODE], [recursive])])
  67439. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  67440. + [m4_define([_LTDL_MODE], [subproject])])
  67441. +
  67442. +m4_define([_LTDL_TYPE], [])
  67443. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  67444. + [m4_define([_LTDL_TYPE], [installable])])
  67445. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  67446. + [m4_define([_LTDL_TYPE], [convenience])])
  67447. diff -Nur esound-0.2.41.orig/m4/ltsugar.m4 esound-0.2.41/m4/ltsugar.m4
  67448. --- esound-0.2.41.orig/m4/ltsugar.m4 1970-01-01 01:00:00.000000000 +0100
  67449. +++ esound-0.2.41/m4/ltsugar.m4 2011-02-24 20:04:59.637304891 +0100
  67450. @@ -0,0 +1,123 @@
  67451. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  67452. +#
  67453. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  67454. +# Written by Gary V. Vaughan, 2004
  67455. +#
  67456. +# This file is free software; the Free Software Foundation gives
  67457. +# unlimited permission to copy and/or distribute it, with or without
  67458. +# modifications, as long as this notice is preserved.
  67459. +
  67460. +# serial 6 ltsugar.m4
  67461. +
  67462. +# This is to help aclocal find these macros, as it can't see m4_define.
  67463. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  67464. +
  67465. +
  67466. +# lt_join(SEP, ARG1, [ARG2...])
  67467. +# -----------------------------
  67468. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  67469. +# associated separator.
  67470. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  67471. +# versions in m4sugar had bugs.
  67472. +m4_define([lt_join],
  67473. +[m4_if([$#], [1], [],
  67474. + [$#], [2], [[$2]],
  67475. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  67476. +m4_define([_lt_join],
  67477. +[m4_if([$#$2], [2], [],
  67478. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  67479. +
  67480. +
  67481. +# lt_car(LIST)
  67482. +# lt_cdr(LIST)
  67483. +# ------------
  67484. +# Manipulate m4 lists.
  67485. +# These macros are necessary as long as will still need to support
  67486. +# Autoconf-2.59 which quotes differently.
  67487. +m4_define([lt_car], [[$1]])
  67488. +m4_define([lt_cdr],
  67489. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  67490. + [$#], 1, [],
  67491. + [m4_dquote(m4_shift($@))])])
  67492. +m4_define([lt_unquote], $1)
  67493. +
  67494. +
  67495. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  67496. +# ------------------------------------------
  67497. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  67498. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  67499. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  67500. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  67501. +# than defined and empty).
  67502. +#
  67503. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  67504. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  67505. +m4_define([lt_append],
  67506. +[m4_define([$1],
  67507. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  67508. +
  67509. +
  67510. +
  67511. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  67512. +# ----------------------------------------------------------
  67513. +# Produce a SEP delimited list of all paired combinations of elements of
  67514. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  67515. +# has the form PREFIXmINFIXSUFFIXn.
  67516. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  67517. +m4_define([lt_combine],
  67518. +[m4_if(m4_eval([$# > 3]), [1],
  67519. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  67520. +[[m4_foreach([_Lt_prefix], [$2],
  67521. + [m4_foreach([_Lt_suffix],
  67522. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  67523. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  67524. +
  67525. +
  67526. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  67527. +# -----------------------------------------------------------------------
  67528. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  67529. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  67530. +m4_define([lt_if_append_uniq],
  67531. +[m4_ifdef([$1],
  67532. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  67533. + [lt_append([$1], [$2], [$3])$4],
  67534. + [$5])],
  67535. + [lt_append([$1], [$2], [$3])$4])])
  67536. +
  67537. +
  67538. +# lt_dict_add(DICT, KEY, VALUE)
  67539. +# -----------------------------
  67540. +m4_define([lt_dict_add],
  67541. +[m4_define([$1($2)], [$3])])
  67542. +
  67543. +
  67544. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  67545. +# --------------------------------------------
  67546. +m4_define([lt_dict_add_subkey],
  67547. +[m4_define([$1($2:$3)], [$4])])
  67548. +
  67549. +
  67550. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  67551. +# ----------------------------------
  67552. +m4_define([lt_dict_fetch],
  67553. +[m4_ifval([$3],
  67554. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  67555. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  67556. +
  67557. +
  67558. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  67559. +# -----------------------------------------------------------------
  67560. +m4_define([lt_if_dict_fetch],
  67561. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  67562. + [$5],
  67563. + [$6])])
  67564. +
  67565. +
  67566. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  67567. +# --------------------------------------------------------------
  67568. +m4_define([lt_dict_filter],
  67569. +[m4_if([$5], [], [],
  67570. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  67571. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  67572. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  67573. +])
  67574. diff -Nur esound-0.2.41.orig/m4/ltversion.m4 esound-0.2.41/m4/ltversion.m4
  67575. --- esound-0.2.41.orig/m4/ltversion.m4 1970-01-01 01:00:00.000000000 +0100
  67576. +++ esound-0.2.41/m4/ltversion.m4 2011-02-24 20:04:59.687302480 +0100
  67577. @@ -0,0 +1,23 @@
  67578. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  67579. +#
  67580. +# Copyright (C) 2004 Free Software Foundation, Inc.
  67581. +# Written by Scott James Remnant, 2004
  67582. +#
  67583. +# This file is free software; the Free Software Foundation gives
  67584. +# unlimited permission to copy and/or distribute it, with or without
  67585. +# modifications, as long as this notice is preserved.
  67586. +
  67587. +# Generated from ltversion.in.
  67588. +
  67589. +# serial 3017 ltversion.m4
  67590. +# This file is part of GNU Libtool
  67591. +
  67592. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  67593. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  67594. +
  67595. +AC_DEFUN([LTVERSION_VERSION],
  67596. +[macro_version='2.2.6b'
  67597. +macro_revision='1.3017'
  67598. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  67599. +_LT_DECL(, macro_revision, 0)
  67600. +])
  67601. diff -Nur esound-0.2.41.orig/Makefile.in esound-0.2.41/Makefile.in
  67602. --- esound-0.2.41.orig/Makefile.in 2008-11-18 21:54:41.000000000 +0100
  67603. +++ esound-0.2.41/Makefile.in 2011-02-24 20:05:04.133550656 +0100
  67604. @@ -1,8 +1,9 @@
  67605. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  67606. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  67607. # @configure_input@
  67608. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  67609. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  67610. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  67611. +# Inc.
  67612. # This Makefile.in is free software; the Free Software Foundation
  67613. # gives unlimited permission to copy and/or distribute it,
  67614. # with or without modifications, as long as this notice is preserved.
  67615. @@ -20,8 +21,9 @@
  67616. VPATH = @srcdir@
  67617. pkgdatadir = $(datadir)/@PACKAGE@
  67618. -pkglibdir = $(libdir)/@PACKAGE@
  67619. pkgincludedir = $(includedir)/@PACKAGE@
  67620. +pkglibdir = $(libdir)/@PACKAGE@
  67621. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  67622. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  67623. install_sh_DATA = $(install_sh) -c -m 644
  67624. install_sh_PROGRAM = $(install_sh) -c
  67625. @@ -52,7 +54,9 @@
  67626. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  67627. am__aclocal_m4_deps = $(top_srcdir)/m4/as-arts.m4 \
  67628. $(top_srcdir)/m4/as-compiler-flag.m4 \
  67629. - $(top_srcdir)/configure.ac
  67630. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  67631. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  67632. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
  67633. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  67634. $(ACLOCAL_M4)
  67635. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  67636. @@ -60,17 +64,32 @@
  67637. mkinstalldirs = $(install_sh) -d
  67638. CONFIG_HEADER = config.h
  67639. CONFIG_CLEAN_FILES = esd-config esound.spec esound.pc esddsp
  67640. +CONFIG_CLEAN_VPATH_FILES =
  67641. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  67642. am__vpath_adj = case $$p in \
  67643. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  67644. *) f=$$p;; \
  67645. esac;
  67646. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  67647. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  67648. +am__install_max = 40
  67649. +am__nobase_strip_setup = \
  67650. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  67651. +am__nobase_strip = \
  67652. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  67653. +am__nobase_list = $(am__nobase_strip_setup); \
  67654. + for p in $$list; do echo "$$p $$p"; done | \
  67655. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  67656. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  67657. + if (++n[$$2] == $(am__install_max)) \
  67658. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  67659. + END { for (dir in files) print dir, files[dir] }'
  67660. +am__base_list = \
  67661. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  67662. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  67663. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
  67664. "$(DESTDIR)$(esddir)" "$(DESTDIR)$(bindir)" \
  67665. "$(DESTDIR)$(esdconfdir)" "$(DESTDIR)$(m4datadir)" \
  67666. "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"
  67667. -libLTLIBRARIES_INSTALL = $(INSTALL)
  67668. LTLIBRARIES = $(lib_LTLIBRARIES)
  67669. am__DEPENDENCIES_1 =
  67670. libesd_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
  67671. @@ -89,8 +108,6 @@
  67672. $(libesddsp_la_LDFLAGS) $(LDFLAGS) -o $@
  67673. @BUILD_ESDDSP_TRUE@am_libesddsp_la_rpath = -rpath $(libdir)
  67674. @BUILD_ESDPLAY_TRUE@am__EXEEXT_1 = esdplay$(EXEEXT)
  67675. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  67676. -esdPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  67677. PROGRAMS = $(bin_PROGRAMS) $(esd_PROGRAMS)
  67678. am__esd_SOURCES_DIST = esd.c clients.c filter.c mix.c players.c \
  67679. proto.c samples.c getopt.c getopt1.c esd-config.h esd-server.h
  67680. @@ -136,11 +153,11 @@
  67681. esdsample_OBJECTS = $(am_esdsample_OBJECTS)
  67682. esdsample_LDADD = $(LDADD)
  67683. esdsample_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1)
  67684. -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  67685. SCRIPTS = $(bin_SCRIPTS)
  67686. DEFAULT_INCLUDES = -I.@am__isrc@
  67687. depcomp = $(SHELL) $(top_srcdir)/depcomp
  67688. am__depfiles_maybe = depfiles
  67689. +am__mv = mv -f
  67690. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  67691. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67692. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67693. @@ -167,14 +184,13 @@
  67694. install-pdf-recursive install-ps-recursive install-recursive \
  67695. installcheck-recursive installdirs-recursive pdf-recursive \
  67696. ps-recursive uninstall-recursive
  67697. -esdconfDATA_INSTALL = $(INSTALL_DATA)
  67698. -m4dataDATA_INSTALL = $(INSTALL_DATA)
  67699. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  67700. DATA = $(esdconf_DATA) $(m4data_DATA) $(pkgconfig_DATA)
  67701. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  67702. HEADERS = $(include_HEADERS)
  67703. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  67704. distclean-recursive maintainer-clean-recursive
  67705. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  67706. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  67707. + distdir dist dist-all distcheck
  67708. ETAGS = etags
  67709. CTAGS = ctags
  67710. DIST_SUBDIRS = $(SUBDIRS)
  67711. @@ -182,9 +198,34 @@
  67712. distdir = $(PACKAGE)-$(VERSION)
  67713. top_distdir = $(distdir)
  67714. am__remove_distdir = \
  67715. - { test ! -d $(distdir) \
  67716. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  67717. - && rm -fr $(distdir); }; }
  67718. + { test ! -d "$(distdir)" \
  67719. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  67720. + && rm -fr "$(distdir)"; }; }
  67721. +am__relativize = \
  67722. + dir0=`pwd`; \
  67723. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  67724. + sed_rest='s,^[^/]*/*,,'; \
  67725. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  67726. + sed_butlast='s,/*[^/]*$$,,'; \
  67727. + while test -n "$$dir1"; do \
  67728. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  67729. + if test "$$first" != "."; then \
  67730. + if test "$$first" = ".."; then \
  67731. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  67732. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  67733. + else \
  67734. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  67735. + if test "$$first2" = "$$first"; then \
  67736. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  67737. + else \
  67738. + dir2="../$$dir2"; \
  67739. + fi; \
  67740. + dir0="$$dir0"/"$$first"; \
  67741. + fi; \
  67742. + fi; \
  67743. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  67744. + done; \
  67745. + reldir="$$dir2"
  67746. DIST_ARCHIVES = $(distdir).tar.gz
  67747. GZIP_ENV = --best
  67748. distuninstallcheck_listfiles = find . -type f -print
  67749. @@ -220,7 +261,7 @@
  67750. DL_LIB = @DL_LIB@
  67751. DOCS = @DOCS@
  67752. DSYMUTIL = @DSYMUTIL@
  67753. -ECHO = @ECHO@
  67754. +DUMPBIN = @DUMPBIN@
  67755. ECHO_C = @ECHO_C@
  67756. ECHO_N = @ECHO_N@
  67757. ECHO_T = @ECHO_T@
  67758. @@ -233,8 +274,7 @@
  67759. ESD_VERSION = @ESD_VERSION@
  67760. ESD_VERSION_INFO = @ESD_VERSION_INFO@
  67761. EXEEXT = @EXEEXT@
  67762. -F77 = @F77@
  67763. -FFLAGS = @FFLAGS@
  67764. +FGREP = @FGREP@
  67765. GREP = @GREP@
  67766. INSTALL = @INSTALL@
  67767. INSTALL_DATA = @INSTALL_DATA@
  67768. @@ -242,23 +282,29 @@
  67769. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67770. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  67771. JW = @JW@
  67772. +LD = @LD@
  67773. LDFLAGS = @LDFLAGS@
  67774. LIBOBJS = @LIBOBJS@
  67775. LIBS = @LIBS@
  67776. LIBTOOL = @LIBTOOL@
  67777. +LIPO = @LIPO@
  67778. LN_S = @LN_S@
  67779. LTLIBOBJS = @LTLIBOBJS@
  67780. MAINT = @MAINT@
  67781. MAKEINFO = @MAKEINFO@
  67782. MKDIR_P = @MKDIR_P@
  67783. +NM = @NM@
  67784. NMEDIT = @NMEDIT@
  67785. OBJDUMP = @OBJDUMP@
  67786. OBJEXT = @OBJEXT@
  67787. +OTOOL = @OTOOL@
  67788. +OTOOL64 = @OTOOL64@
  67789. PACKAGE = @PACKAGE@
  67790. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  67791. PACKAGE_NAME = @PACKAGE_NAME@
  67792. PACKAGE_STRING = @PACKAGE_STRING@
  67793. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  67794. +PACKAGE_URL = @PACKAGE_URL@
  67795. PACKAGE_VERSION = @PACKAGE_VERSION@
  67796. PATH_SEPARATOR = @PATH_SEPARATOR@
  67797. PKG_CONFIG = @PKG_CONFIG@
  67798. @@ -276,7 +322,7 @@
  67799. abs_top_srcdir = @abs_top_srcdir@
  67800. ac_ct_CC = @ac_ct_CC@
  67801. ac_ct_CXX = @ac_ct_CXX@
  67802. -ac_ct_F77 = @ac_ct_F77@
  67803. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  67804. am__include = @am__include@
  67805. am__leading_dot = @am__leading_dot@
  67806. am__quote = @am__quote@
  67807. @@ -307,6 +353,7 @@
  67808. libexecdir = @libexecdir@
  67809. localedir = @localedir@
  67810. localstatedir = @localstatedir@
  67811. +lt_ECHO = @lt_ECHO@
  67812. mandir = @mandir@
  67813. mkdir_p = @mkdir_p@
  67814. oldincludedir = @oldincludedir@
  67815. @@ -323,6 +370,7 @@
  67816. target_cpu = @target_cpu@
  67817. target_os = @target_os@
  67818. target_vendor = @target_vendor@
  67819. +top_build_prefix = @top_build_prefix@
  67820. top_builddir = @top_builddir@
  67821. top_srcdir = @top_srcdir@
  67822. SUBDIRS = docs
  67823. @@ -458,15 +506,15 @@
  67824. @for dep in $?; do \
  67825. case '$(am__configure_deps)' in \
  67826. *$$dep*) \
  67827. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  67828. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  67829. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  67830. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  67831. && exit 0; \
  67832. exit 1;; \
  67833. esac; \
  67834. done; \
  67835. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  67836. - cd $(top_srcdir) && \
  67837. - $(AUTOMAKE) --gnu Makefile
  67838. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  67839. + $(am__cd) $(top_srcdir) && \
  67840. + $(AUTOMAKE) --gnu Makefile
  67841. .PRECIOUS: Makefile
  67842. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  67843. @case '$?' in \
  67844. @@ -482,9 +530,10 @@
  67845. $(SHELL) ./config.status --recheck
  67846. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  67847. - cd $(srcdir) && $(AUTOCONF)
  67848. + $(am__cd) $(srcdir) && $(AUTOCONF)
  67849. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  67850. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  67851. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  67852. +$(am__aclocal_m4_deps):
  67853. config.h: stamp-h1
  67854. @if test ! -f $@; then \
  67855. @@ -496,7 +545,7 @@
  67856. @rm -f stamp-h1
  67857. cd $(top_builddir) && $(SHELL) ./config.status config.h
  67858. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  67859. - cd $(top_srcdir) && $(AUTOHEADER)
  67860. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  67861. rm -f stamp-h1
  67862. touch $@
  67863. @@ -513,20 +562,24 @@
  67864. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  67865. @$(NORMAL_INSTALL)
  67866. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  67867. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  67868. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  67869. + list2=; for p in $$list; do \
  67870. if test -f $$p; then \
  67871. - f=$(am__strip_dir) \
  67872. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  67873. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  67874. + list2="$$list2 $$p"; \
  67875. else :; fi; \
  67876. - done
  67877. + done; \
  67878. + test -z "$$list2" || { \
  67879. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  67880. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  67881. + }
  67882. uninstall-libLTLIBRARIES:
  67883. @$(NORMAL_UNINSTALL)
  67884. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  67885. - p=$(am__strip_dir) \
  67886. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  67887. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  67888. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  67889. + for p in $$list; do \
  67890. + $(am__strip_dir) \
  67891. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  67892. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  67893. done
  67894. clean-libLTLIBRARIES:
  67895. @@ -544,59 +597,89 @@
  67896. install-binPROGRAMS: $(bin_PROGRAMS)
  67897. @$(NORMAL_INSTALL)
  67898. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  67899. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  67900. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  67901. - if test -f $$p \
  67902. - || test -f $$p1 \
  67903. - ; then \
  67904. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  67905. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  67906. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  67907. - else :; fi; \
  67908. - done
  67909. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  67910. + for p in $$list; do echo "$$p $$p"; done | \
  67911. + sed 's/$(EXEEXT)$$//' | \
  67912. + while read p p1; do if test -f $$p || test -f $$p1; \
  67913. + then echo "$$p"; echo "$$p"; else :; fi; \
  67914. + done | \
  67915. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  67916. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  67917. + sed 'N;N;N;s,\n, ,g' | \
  67918. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  67919. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  67920. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  67921. + else { print "f", $$3 "/" $$4, $$1; } } \
  67922. + END { for (d in files) print "f", d, files[d] }' | \
  67923. + while read type dir files; do \
  67924. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  67925. + test -z "$$files" || { \
  67926. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  67927. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  67928. + } \
  67929. + ; done
  67930. uninstall-binPROGRAMS:
  67931. @$(NORMAL_UNINSTALL)
  67932. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  67933. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  67934. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  67935. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  67936. - done
  67937. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  67938. + files=`for p in $$list; do echo "$$p"; done | \
  67939. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  67940. + -e 's/$$/$(EXEEXT)/' `; \
  67941. + test -n "$$list" || exit 0; \
  67942. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  67943. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  67944. clean-binPROGRAMS:
  67945. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  67946. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  67947. - echo " rm -f $$p $$f"; \
  67948. - rm -f $$p $$f ; \
  67949. - done
  67950. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  67951. + echo " rm -f" $$list; \
  67952. + rm -f $$list || exit $$?; \
  67953. + test -n "$(EXEEXT)" || exit 0; \
  67954. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  67955. + echo " rm -f" $$list; \
  67956. + rm -f $$list
  67957. install-esdPROGRAMS: $(esd_PROGRAMS)
  67958. @$(NORMAL_INSTALL)
  67959. test -z "$(esddir)" || $(MKDIR_P) "$(DESTDIR)$(esddir)"
  67960. - @list='$(esd_PROGRAMS)'; for p in $$list; do \
  67961. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  67962. - if test -f $$p \
  67963. - || test -f $$p1 \
  67964. - ; then \
  67965. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  67966. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(esdPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(esddir)/$$f'"; \
  67967. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(esdPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(esddir)/$$f" || exit 1; \
  67968. - else :; fi; \
  67969. - done
  67970. + @list='$(esd_PROGRAMS)'; test -n "$(esddir)" || list=; \
  67971. + for p in $$list; do echo "$$p $$p"; done | \
  67972. + sed 's/$(EXEEXT)$$//' | \
  67973. + while read p p1; do if test -f $$p || test -f $$p1; \
  67974. + then echo "$$p"; echo "$$p"; else :; fi; \
  67975. + done | \
  67976. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  67977. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  67978. + sed 'N;N;N;s,\n, ,g' | \
  67979. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  67980. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  67981. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  67982. + else { print "f", $$3 "/" $$4, $$1; } } \
  67983. + END { for (d in files) print "f", d, files[d] }' | \
  67984. + while read type dir files; do \
  67985. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  67986. + test -z "$$files" || { \
  67987. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(esddir)$$dir'"; \
  67988. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(esddir)$$dir" || exit $$?; \
  67989. + } \
  67990. + ; done
  67991. uninstall-esdPROGRAMS:
  67992. @$(NORMAL_UNINSTALL)
  67993. - @list='$(esd_PROGRAMS)'; for p in $$list; do \
  67994. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  67995. - echo " rm -f '$(DESTDIR)$(esddir)/$$f'"; \
  67996. - rm -f "$(DESTDIR)$(esddir)/$$f"; \
  67997. - done
  67998. + @list='$(esd_PROGRAMS)'; test -n "$(esddir)" || list=; \
  67999. + files=`for p in $$list; do echo "$$p"; done | \
  68000. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  68001. + -e 's/$$/$(EXEEXT)/' `; \
  68002. + test -n "$$list" || exit 0; \
  68003. + echo " ( cd '$(DESTDIR)$(esddir)' && rm -f" $$files ")"; \
  68004. + cd "$(DESTDIR)$(esddir)" && rm -f $$files
  68005. clean-esdPROGRAMS:
  68006. - @list='$(esd_PROGRAMS)'; for p in $$list; do \
  68007. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  68008. - echo " rm -f $$p $$f"; \
  68009. - rm -f $$p $$f ; \
  68010. - done
  68011. + @list='$(esd_PROGRAMS)'; test -n "$$list" || exit 0; \
  68012. + echo " rm -f" $$list; \
  68013. + rm -f $$list || exit $$?; \
  68014. + test -n "$(EXEEXT)" || exit 0; \
  68015. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  68016. + echo " rm -f" $$list; \
  68017. + rm -f $$list
  68018. esd$(EXEEXT): $(esd_OBJECTS) $(esd_DEPENDENCIES)
  68019. @rm -f esd$(EXEEXT)
  68020. $(LINK) $(esd_OBJECTS) $(esd_LDADD) $(LIBS)
  68021. @@ -627,22 +710,37 @@
  68022. install-binSCRIPTS: $(bin_SCRIPTS)
  68023. @$(NORMAL_INSTALL)
  68024. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  68025. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  68026. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
  68027. + for p in $$list; do \
  68028. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  68029. - if test -f $$d$$p; then \
  68030. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  68031. - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  68032. - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
  68033. - else :; fi; \
  68034. - done
  68035. + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
  68036. + done | \
  68037. + sed -e 'p;s,.*/,,;n' \
  68038. + -e 'h;s|.*|.|' \
  68039. + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
  68040. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
  68041. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  68042. + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
  68043. + if (++n[d] == $(am__install_max)) { \
  68044. + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
  68045. + else { print "f", d "/" $$4, $$1 } } \
  68046. + END { for (d in files) print "f", d, files[d] }' | \
  68047. + while read type dir files; do \
  68048. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  68049. + test -z "$$files" || { \
  68050. + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  68051. + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  68052. + } \
  68053. + ; done
  68054. uninstall-binSCRIPTS:
  68055. @$(NORMAL_UNINSTALL)
  68056. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  68057. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  68058. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  68059. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  68060. - done
  68061. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
  68062. + files=`for p in $$list; do echo "$$p"; done | \
  68063. + sed -e 's,.*/,,;$(transform)'`; \
  68064. + test -n "$$list" || exit 0; \
  68065. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  68066. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  68067. mostlyclean-compile:
  68068. -rm -f *.$(OBJEXT)
  68069. @@ -678,73 +776,73 @@
  68070. .c.o:
  68071. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  68072. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68073. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68074. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  68075. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68076. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  68077. .c.obj:
  68078. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  68079. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68080. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  68081. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  68082. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68083. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  68084. .c.lo:
  68085. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  68086. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  68087. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  68088. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  68089. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68090. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  68091. libesd_la-esdlib.lo: esdlib.c
  68092. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esdlib.lo -MD -MP -MF $(DEPDIR)/libesd_la-esdlib.Tpo -c -o libesd_la-esdlib.lo `test -f 'esdlib.c' || echo '$(srcdir)/'`esdlib.c
  68093. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libesd_la-esdlib.Tpo $(DEPDIR)/libesd_la-esdlib.Plo
  68094. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esdlib.lo -MD -MP -MF $(DEPDIR)/libesd_la-esdlib.Tpo -c -o libesd_la-esdlib.lo `test -f 'esdlib.c' || echo '$(srcdir)/'`esdlib.c
  68095. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libesd_la-esdlib.Tpo $(DEPDIR)/libesd_la-esdlib.Plo
  68096. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='esdlib.c' object='libesd_la-esdlib.lo' libtool=yes @AMDEPBACKSLASH@
  68097. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68098. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esdlib.lo `test -f 'esdlib.c' || echo '$(srcdir)/'`esdlib.c
  68099. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esdlib.lo `test -f 'esdlib.c' || echo '$(srcdir)/'`esdlib.c
  68100. libesd_la-esdmgr.lo: esdmgr.c
  68101. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esdmgr.lo -MD -MP -MF $(DEPDIR)/libesd_la-esdmgr.Tpo -c -o libesd_la-esdmgr.lo `test -f 'esdmgr.c' || echo '$(srcdir)/'`esdmgr.c
  68102. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libesd_la-esdmgr.Tpo $(DEPDIR)/libesd_la-esdmgr.Plo
  68103. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esdmgr.lo -MD -MP -MF $(DEPDIR)/libesd_la-esdmgr.Tpo -c -o libesd_la-esdmgr.lo `test -f 'esdmgr.c' || echo '$(srcdir)/'`esdmgr.c
  68104. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libesd_la-esdmgr.Tpo $(DEPDIR)/libesd_la-esdmgr.Plo
  68105. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='esdmgr.c' object='libesd_la-esdmgr.lo' libtool=yes @AMDEPBACKSLASH@
  68106. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68107. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esdmgr.lo `test -f 'esdmgr.c' || echo '$(srcdir)/'`esdmgr.c
  68108. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esdmgr.lo `test -f 'esdmgr.c' || echo '$(srcdir)/'`esdmgr.c
  68109. libesd_la-esdfile.lo: esdfile.c
  68110. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esdfile.lo -MD -MP -MF $(DEPDIR)/libesd_la-esdfile.Tpo -c -o libesd_la-esdfile.lo `test -f 'esdfile.c' || echo '$(srcdir)/'`esdfile.c
  68111. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libesd_la-esdfile.Tpo $(DEPDIR)/libesd_la-esdfile.Plo
  68112. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esdfile.lo -MD -MP -MF $(DEPDIR)/libesd_la-esdfile.Tpo -c -o libesd_la-esdfile.lo `test -f 'esdfile.c' || echo '$(srcdir)/'`esdfile.c
  68113. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libesd_la-esdfile.Tpo $(DEPDIR)/libesd_la-esdfile.Plo
  68114. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='esdfile.c' object='libesd_la-esdfile.lo' libtool=yes @AMDEPBACKSLASH@
  68115. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68116. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esdfile.lo `test -f 'esdfile.c' || echo '$(srcdir)/'`esdfile.c
  68117. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esdfile.lo `test -f 'esdfile.c' || echo '$(srcdir)/'`esdfile.c
  68118. libesd_la-esd_config.lo: esd_config.c
  68119. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esd_config.lo -MD -MP -MF $(DEPDIR)/libesd_la-esd_config.Tpo -c -o libesd_la-esd_config.lo `test -f 'esd_config.c' || echo '$(srcdir)/'`esd_config.c
  68120. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libesd_la-esd_config.Tpo $(DEPDIR)/libesd_la-esd_config.Plo
  68121. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-esd_config.lo -MD -MP -MF $(DEPDIR)/libesd_la-esd_config.Tpo -c -o libesd_la-esd_config.lo `test -f 'esd_config.c' || echo '$(srcdir)/'`esd_config.c
  68122. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libesd_la-esd_config.Tpo $(DEPDIR)/libesd_la-esd_config.Plo
  68123. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='esd_config.c' object='libesd_la-esd_config.lo' libtool=yes @AMDEPBACKSLASH@
  68124. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68125. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esd_config.lo `test -f 'esd_config.c' || echo '$(srcdir)/'`esd_config.c
  68126. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-esd_config.lo `test -f 'esd_config.c' || echo '$(srcdir)/'`esd_config.c
  68127. libesd_la-audio.lo: audio.c
  68128. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-audio.lo -MD -MP -MF $(DEPDIR)/libesd_la-audio.Tpo -c -o libesd_la-audio.lo `test -f 'audio.c' || echo '$(srcdir)/'`audio.c
  68129. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libesd_la-audio.Tpo $(DEPDIR)/libesd_la-audio.Plo
  68130. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-audio.lo -MD -MP -MF $(DEPDIR)/libesd_la-audio.Tpo -c -o libesd_la-audio.lo `test -f 'audio.c' || echo '$(srcdir)/'`audio.c
  68131. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libesd_la-audio.Tpo $(DEPDIR)/libesd_la-audio.Plo
  68132. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='audio.c' object='libesd_la-audio.lo' libtool=yes @AMDEPBACKSLASH@
  68133. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68134. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-audio.lo `test -f 'audio.c' || echo '$(srcdir)/'`audio.c
  68135. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-audio.lo `test -f 'audio.c' || echo '$(srcdir)/'`audio.c
  68136. libesd_la-genrand.lo: genrand.c
  68137. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-genrand.lo -MD -MP -MF $(DEPDIR)/libesd_la-genrand.Tpo -c -o libesd_la-genrand.lo `test -f 'genrand.c' || echo '$(srcdir)/'`genrand.c
  68138. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libesd_la-genrand.Tpo $(DEPDIR)/libesd_la-genrand.Plo
  68139. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-genrand.lo -MD -MP -MF $(DEPDIR)/libesd_la-genrand.Tpo -c -o libesd_la-genrand.lo `test -f 'genrand.c' || echo '$(srcdir)/'`genrand.c
  68140. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libesd_la-genrand.Tpo $(DEPDIR)/libesd_la-genrand.Plo
  68141. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='genrand.c' object='libesd_la-genrand.lo' libtool=yes @AMDEPBACKSLASH@
  68142. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68143. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-genrand.lo `test -f 'genrand.c' || echo '$(srcdir)/'`genrand.c
  68144. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-genrand.lo `test -f 'genrand.c' || echo '$(srcdir)/'`genrand.c
  68145. libesd_la-util.lo: util.c
  68146. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-util.lo -MD -MP -MF $(DEPDIR)/libesd_la-util.Tpo -c -o libesd_la-util.lo `test -f 'util.c' || echo '$(srcdir)/'`util.c
  68147. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libesd_la-util.Tpo $(DEPDIR)/libesd_la-util.Plo
  68148. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -MT libesd_la-util.lo -MD -MP -MF $(DEPDIR)/libesd_la-util.Tpo -c -o libesd_la-util.lo `test -f 'util.c' || echo '$(srcdir)/'`util.c
  68149. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libesd_la-util.Tpo $(DEPDIR)/libesd_la-util.Plo
  68150. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='util.c' object='libesd_la-util.lo' libtool=yes @AMDEPBACKSLASH@
  68151. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  68152. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-util.lo `test -f 'util.c' || echo '$(srcdir)/'`util.c
  68153. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libesd_la_CFLAGS) $(CFLAGS) -c -o libesd_la-util.lo `test -f 'util.c' || echo '$(srcdir)/'`util.c
  68154. mostlyclean-libtool:
  68155. -rm -f *.lo
  68156. @@ -753,75 +851,87 @@
  68157. -rm -rf .libs _libs
  68158. distclean-libtool:
  68159. - -rm -f libtool
  68160. + -rm -f libtool config.lt
  68161. install-esdconfDATA: $(esdconf_DATA)
  68162. @$(NORMAL_INSTALL)
  68163. test -z "$(esdconfdir)" || $(MKDIR_P) "$(DESTDIR)$(esdconfdir)"
  68164. - @list='$(esdconf_DATA)'; for p in $$list; do \
  68165. + @list='$(esdconf_DATA)'; test -n "$(esdconfdir)" || list=; \
  68166. + for p in $$list; do \
  68167. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  68168. - f=$(am__strip_dir) \
  68169. - echo " $(esdconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(esdconfdir)/$$f'"; \
  68170. - $(esdconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(esdconfdir)/$$f"; \
  68171. + echo "$$d$$p"; \
  68172. + done | $(am__base_list) | \
  68173. + while read files; do \
  68174. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(esdconfdir)'"; \
  68175. + $(INSTALL_DATA) $$files "$(DESTDIR)$(esdconfdir)" || exit $$?; \
  68176. done
  68177. uninstall-esdconfDATA:
  68178. @$(NORMAL_UNINSTALL)
  68179. - @list='$(esdconf_DATA)'; for p in $$list; do \
  68180. - f=$(am__strip_dir) \
  68181. - echo " rm -f '$(DESTDIR)$(esdconfdir)/$$f'"; \
  68182. - rm -f "$(DESTDIR)$(esdconfdir)/$$f"; \
  68183. - done
  68184. + @list='$(esdconf_DATA)'; test -n "$(esdconfdir)" || list=; \
  68185. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  68186. + test -n "$$files" || exit 0; \
  68187. + echo " ( cd '$(DESTDIR)$(esdconfdir)' && rm -f" $$files ")"; \
  68188. + cd "$(DESTDIR)$(esdconfdir)" && rm -f $$files
  68189. install-m4dataDATA: $(m4data_DATA)
  68190. @$(NORMAL_INSTALL)
  68191. test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)"
  68192. - @list='$(m4data_DATA)'; for p in $$list; do \
  68193. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  68194. + for p in $$list; do \
  68195. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  68196. - f=$(am__strip_dir) \
  68197. - echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \
  68198. - $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \
  68199. + echo "$$d$$p"; \
  68200. + done | $(am__base_list) | \
  68201. + while read files; do \
  68202. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \
  68203. + $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \
  68204. done
  68205. uninstall-m4dataDATA:
  68206. @$(NORMAL_UNINSTALL)
  68207. - @list='$(m4data_DATA)'; for p in $$list; do \
  68208. - f=$(am__strip_dir) \
  68209. - echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \
  68210. - rm -f "$(DESTDIR)$(m4datadir)/$$f"; \
  68211. - done
  68212. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  68213. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  68214. + test -n "$$files" || exit 0; \
  68215. + echo " ( cd '$(DESTDIR)$(m4datadir)' && rm -f" $$files ")"; \
  68216. + cd "$(DESTDIR)$(m4datadir)" && rm -f $$files
  68217. install-pkgconfigDATA: $(pkgconfig_DATA)
  68218. @$(NORMAL_INSTALL)
  68219. test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  68220. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  68221. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  68222. + for p in $$list; do \
  68223. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  68224. - f=$(am__strip_dir) \
  68225. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  68226. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  68227. + echo "$$d$$p"; \
  68228. + done | $(am__base_list) | \
  68229. + while read files; do \
  68230. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  68231. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  68232. done
  68233. uninstall-pkgconfigDATA:
  68234. @$(NORMAL_UNINSTALL)
  68235. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  68236. - f=$(am__strip_dir) \
  68237. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  68238. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  68239. - done
  68240. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  68241. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  68242. + test -n "$$files" || exit 0; \
  68243. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  68244. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  68245. install-includeHEADERS: $(include_HEADERS)
  68246. @$(NORMAL_INSTALL)
  68247. test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  68248. - @list='$(include_HEADERS)'; for p in $$list; do \
  68249. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  68250. + for p in $$list; do \
  68251. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  68252. - f=$(am__strip_dir) \
  68253. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  68254. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  68255. + echo "$$d$$p"; \
  68256. + done | $(am__base_list) | \
  68257. + while read files; do \
  68258. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  68259. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  68260. done
  68261. uninstall-includeHEADERS:
  68262. @$(NORMAL_UNINSTALL)
  68263. - @list='$(include_HEADERS)'; for p in $$list; do \
  68264. - f=$(am__strip_dir) \
  68265. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  68266. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  68267. - done
  68268. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  68269. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  68270. + test -n "$$files" || exit 0; \
  68271. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  68272. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  68273. # This directory's subdirectories are mostly independent; you can cd
  68274. # into them and run `make' without going through this Makefile.
  68275. @@ -830,7 +940,7 @@
  68276. # (which will cause the Makefiles to be regenerated when you run `make');
  68277. # (2) otherwise, pass the desired values on the `make' command line.
  68278. $(RECURSIVE_TARGETS):
  68279. - @failcom='exit 1'; \
  68280. + @fail= failcom='exit 1'; \
  68281. for f in x $$MAKEFLAGS; do \
  68282. case $$f in \
  68283. *=* | --[!k]*);; \
  68284. @@ -847,7 +957,7 @@
  68285. else \
  68286. local_target="$$target"; \
  68287. fi; \
  68288. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68289. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68290. || eval $$failcom; \
  68291. done; \
  68292. if test "$$dot_seen" = "no"; then \
  68293. @@ -855,7 +965,7 @@
  68294. fi; test -z "$$fail"
  68295. $(RECURSIVE_CLEAN_TARGETS):
  68296. - @failcom='exit 1'; \
  68297. + @fail= failcom='exit 1'; \
  68298. for f in x $$MAKEFLAGS; do \
  68299. case $$f in \
  68300. *=* | --[!k]*);; \
  68301. @@ -881,16 +991,16 @@
  68302. else \
  68303. local_target="$$target"; \
  68304. fi; \
  68305. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68306. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68307. || eval $$failcom; \
  68308. done && test -z "$$fail"
  68309. tags-recursive:
  68310. list='$(SUBDIRS)'; for subdir in $$list; do \
  68311. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  68312. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  68313. done
  68314. ctags-recursive:
  68315. list='$(SUBDIRS)'; for subdir in $$list; do \
  68316. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  68317. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  68318. done
  68319. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  68320. @@ -898,14 +1008,14 @@
  68321. unique=`for i in $$list; do \
  68322. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68323. done | \
  68324. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  68325. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68326. END { if (nonempty) { for (i in files) print i; }; }'`; \
  68327. mkid -fID $$unique
  68328. tags: TAGS
  68329. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  68330. $(TAGS_FILES) $(LISP)
  68331. - tags=; \
  68332. + set x; \
  68333. here=`pwd`; \
  68334. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  68335. include_option=--etags-include; \
  68336. @@ -917,7 +1027,7 @@
  68337. list='$(SUBDIRS)'; for subdir in $$list; do \
  68338. if test "$$subdir" = .; then :; else \
  68339. test ! -f $$subdir/TAGS || \
  68340. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  68341. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  68342. fi; \
  68343. done; \
  68344. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  68345. @@ -926,36 +1036,41 @@
  68346. done | \
  68347. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68348. END { if (nonempty) { for (i in files) print i; }; }'`; \
  68349. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  68350. + shift; \
  68351. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  68352. test -n "$$unique" || unique=$$empty_fix; \
  68353. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68354. - $$tags $$unique; \
  68355. + if test $$# -gt 0; then \
  68356. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68357. + "$$@" $$unique; \
  68358. + else \
  68359. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68360. + $$unique; \
  68361. + fi; \
  68362. fi
  68363. ctags: CTAGS
  68364. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  68365. $(TAGS_FILES) $(LISP)
  68366. - tags=; \
  68367. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  68368. unique=`for i in $$list; do \
  68369. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68370. done | \
  68371. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68372. END { if (nonempty) { for (i in files) print i; }; }'`; \
  68373. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  68374. + test -z "$(CTAGS_ARGS)$$unique" \
  68375. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  68376. - $$tags $$unique
  68377. + $$unique
  68378. GTAGS:
  68379. here=`$(am__cd) $(top_builddir) && pwd` \
  68380. - && cd $(top_srcdir) \
  68381. - && gtags -i $(GTAGS_ARGS) $$here
  68382. + && $(am__cd) $(top_srcdir) \
  68383. + && gtags -i $(GTAGS_ARGS) "$$here"
  68384. distclean-tags:
  68385. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  68386. distdir: $(DISTFILES)
  68387. $(am__remove_distdir)
  68388. - test -d $(distdir) || mkdir $(distdir)
  68389. + test -d "$(distdir)" || mkdir "$(distdir)"
  68390. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68391. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68392. list='$(DISTFILES)'; \
  68393. @@ -971,38 +1086,55 @@
  68394. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  68395. if test -d $$d/$$file; then \
  68396. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  68397. + if test -d "$(distdir)/$$file"; then \
  68398. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68399. + fi; \
  68400. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  68401. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  68402. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  68403. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68404. fi; \
  68405. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  68406. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  68407. else \
  68408. - test -f $(distdir)/$$file \
  68409. - || cp -p $$d/$$file $(distdir)/$$file \
  68410. + test -f "$(distdir)/$$file" \
  68411. + || cp -p $$d/$$file "$(distdir)/$$file" \
  68412. || exit 1; \
  68413. fi; \
  68414. done
  68415. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  68416. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  68417. if test "$$subdir" = .; then :; else \
  68418. test -d "$(distdir)/$$subdir" \
  68419. || $(MKDIR_P) "$(distdir)/$$subdir" \
  68420. || exit 1; \
  68421. - distdir=`$(am__cd) $(distdir) && pwd`; \
  68422. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  68423. - (cd $$subdir && \
  68424. + fi; \
  68425. + done
  68426. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  68427. + if test "$$subdir" = .; then :; else \
  68428. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  68429. + $(am__relativize); \
  68430. + new_distdir=$$reldir; \
  68431. + dir1=$$subdir; dir2="$(top_distdir)"; \
  68432. + $(am__relativize); \
  68433. + new_top_distdir=$$reldir; \
  68434. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  68435. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  68436. + ($(am__cd) $$subdir && \
  68437. $(MAKE) $(AM_MAKEFLAGS) \
  68438. - top_distdir="$$top_distdir" \
  68439. - distdir="$$distdir/$$subdir" \
  68440. + top_distdir="$$new_top_distdir" \
  68441. + distdir="$$new_distdir" \
  68442. am__remove_distdir=: \
  68443. am__skip_length_check=: \
  68444. + am__skip_mode_fix=: \
  68445. distdir) \
  68446. || exit 1; \
  68447. fi; \
  68448. done
  68449. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  68450. + -test -n "$(am__skip_mode_fix)" \
  68451. + || find "$(distdir)" -type d ! -perm -755 \
  68452. + -exec chmod u+rwx,go+rx {} \; -o \
  68453. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  68454. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  68455. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  68456. - || chmod -R a+r $(distdir)
  68457. + || chmod -R a+r "$(distdir)"
  68458. dist-gzip: distdir
  68459. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  68460. $(am__remove_distdir)
  68461. @@ -1015,6 +1147,10 @@
  68462. tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  68463. $(am__remove_distdir)
  68464. +dist-xz: distdir
  68465. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  68466. + $(am__remove_distdir)
  68467. +
  68468. dist-tarZ: distdir
  68469. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  68470. $(am__remove_distdir)
  68471. @@ -1038,15 +1174,17 @@
  68472. distcheck: dist
  68473. case '$(DIST_ARCHIVES)' in \
  68474. *.tar.gz*) \
  68475. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  68476. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  68477. *.tar.bz2*) \
  68478. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  68479. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  68480. *.tar.lzma*) \
  68481. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  68482. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  68483. + *.tar.xz*) \
  68484. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  68485. *.tar.Z*) \
  68486. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  68487. *.shar.gz*) \
  68488. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  68489. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  68490. *.zip*) \
  68491. unzip $(distdir).zip ;;\
  68492. esac
  68493. @@ -1054,9 +1192,11 @@
  68494. mkdir $(distdir)/_build
  68495. mkdir $(distdir)/_inst
  68496. chmod a-w $(distdir)
  68497. + test -d $(distdir)/_build || exit 0; \
  68498. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  68499. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  68500. - && cd $(distdir)/_build \
  68501. + && am__cwd=`pwd` \
  68502. + && $(am__cd) $(distdir)/_build \
  68503. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  68504. $(DISTCHECK_CONFIGURE_FLAGS) \
  68505. && $(MAKE) $(AM_MAKEFLAGS) \
  68506. @@ -1078,13 +1218,15 @@
  68507. && rm -rf "$$dc_destdir" \
  68508. && $(MAKE) $(AM_MAKEFLAGS) dist \
  68509. && rm -rf $(DIST_ARCHIVES) \
  68510. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  68511. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  68512. + && cd "$$am__cwd" \
  68513. + || exit 1
  68514. $(am__remove_distdir)
  68515. @(echo "$(distdir) archives ready for distribution: "; \
  68516. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  68517. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  68518. distuninstallcheck:
  68519. - @cd $(distuninstallcheck_dir) \
  68520. + @$(am__cd) '$(distuninstallcheck_dir)' \
  68521. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  68522. || { echo "ERROR: files left after uninstall:" ; \
  68523. if test -n "$(DESTDIR)"; then \
  68524. @@ -1132,6 +1274,7 @@
  68525. distclean-generic:
  68526. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  68527. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  68528. maintainer-clean-generic:
  68529. @echo "This command is intended for maintainers to use"
  68530. @@ -1154,6 +1297,8 @@
  68531. html: html-recursive
  68532. +html-am:
  68533. +
  68534. info: info-recursive
  68535. info-am:
  68536. @@ -1164,19 +1309,29 @@
  68537. install-dvi: install-dvi-recursive
  68538. +install-dvi-am:
  68539. +
  68540. install-exec-am: install-binPROGRAMS install-binSCRIPTS \
  68541. install-libLTLIBRARIES
  68542. install-html: install-html-recursive
  68543. +install-html-am:
  68544. +
  68545. install-info: install-info-recursive
  68546. +install-info-am:
  68547. +
  68548. install-man:
  68549. install-pdf: install-pdf-recursive
  68550. +install-pdf-am:
  68551. +
  68552. install-ps: install-ps-recursive
  68553. +install-ps-am:
  68554. +
  68555. installcheck-am:
  68556. maintainer-clean: maintainer-clean-recursive
  68557. @@ -1204,21 +1359,21 @@
  68558. uninstall-includeHEADERS uninstall-libLTLIBRARIES \
  68559. uninstall-m4dataDATA uninstall-pkgconfigDATA
  68560. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  68561. - install-strip
  68562. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  68563. + ctags-recursive install-am install-strip tags-recursive
  68564. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  68565. all all-am am--refresh check check-am clean clean-binPROGRAMS \
  68566. clean-esdPROGRAMS clean-generic clean-libLTLIBRARIES \
  68567. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  68568. - dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
  68569. - distclean distclean-compile distclean-generic distclean-hdr \
  68570. - distclean-libtool distclean-tags distcleancheck distdir \
  68571. - distuninstallcheck dvi dvi-am html html-am info info-am \
  68572. - install install-am install-binPROGRAMS install-binSCRIPTS \
  68573. - install-data install-data-am install-dvi install-dvi-am \
  68574. - install-esdPROGRAMS install-esdconfDATA install-exec \
  68575. - install-exec-am install-html install-html-am \
  68576. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  68577. + distcheck distclean distclean-compile distclean-generic \
  68578. + distclean-hdr distclean-libtool distclean-tags distcleancheck \
  68579. + distdir distuninstallcheck dvi dvi-am html html-am info \
  68580. + info-am install install-am install-binPROGRAMS \
  68581. + install-binSCRIPTS install-data install-data-am install-dvi \
  68582. + install-dvi-am install-esdPROGRAMS install-esdconfDATA \
  68583. + install-exec install-exec-am install-html install-html-am \
  68584. install-includeHEADERS install-info install-info-am \
  68585. install-libLTLIBRARIES install-m4dataDATA install-man \
  68586. install-pdf install-pdf-am install-pkgconfigDATA install-ps \
  68587. @@ -1238,6 +1393,7 @@
  68588. rpm: $(PACKAGE)-$(VERSION).tar.gz
  68589. cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
  68590. rpm -ba $(SPEC_FILE)
  68591. +
  68592. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  68593. # Otherwise a system limit (for SysV at least) may be exceeded.
  68594. .NOEXPORT:
  68595. diff -Nur esound-0.2.41.orig/missing esound-0.2.41/missing
  68596. --- esound-0.2.41.orig/missing 2008-11-18 21:54:40.000000000 +0100
  68597. +++ esound-0.2.41/missing 2011-02-24 20:05:03.943550777 +0100
  68598. @@ -1,10 +1,10 @@
  68599. #! /bin/sh
  68600. # Common stub for a few missing GNU programs while installing.
  68601. -scriptversion=2006-05-10.23
  68602. +scriptversion=2009-04-28.21; # UTC
  68603. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  68604. -# Free Software Foundation, Inc.
  68605. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  68606. +# 2008, 2009 Free Software Foundation, Inc.
  68607. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  68608. # This program is free software; you can redistribute it and/or modify
  68609. @@ -18,9 +18,7 @@
  68610. # GNU General Public License for more details.
  68611. # You should have received a copy of the GNU General Public License
  68612. -# along with this program; if not, write to the Free Software
  68613. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  68614. -# 02110-1301, USA.
  68615. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  68616. # As a special exception to the GNU General Public License, if you
  68617. # distribute this file as part of a program that contains a
  68618. @@ -89,6 +87,9 @@
  68619. tar try tar, gnutar, gtar, then tar without non-portable flags
  68620. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  68621. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  68622. +\`g' are ignored when checking the name.
  68623. +
  68624. Send bug reports to <bug-automake@gnu.org>."
  68625. exit $?
  68626. ;;
  68627. @@ -106,15 +107,22 @@
  68628. esac
  68629. +# normalize program name to check for.
  68630. +program=`echo "$1" | sed '
  68631. + s/^gnu-//; t
  68632. + s/^gnu//; t
  68633. + s/^g//; t'`
  68634. +
  68635. # Now exit if we have it, but it failed. Also exit now if we
  68636. # don't have it and --version was passed (most likely to detect
  68637. -# the program).
  68638. +# the program). This is about non-GNU programs, so use $1 not
  68639. +# $program.
  68640. case $1 in
  68641. - lex|yacc)
  68642. + lex*|yacc*)
  68643. # Not GNU programs, they don't have --version.
  68644. ;;
  68645. - tar)
  68646. + tar*)
  68647. if test -n "$run"; then
  68648. echo 1>&2 "ERROR: \`tar' requires --run"
  68649. exit 1
  68650. @@ -138,7 +146,7 @@
  68651. # If it does not exist, or fails to run (possibly an outdated version),
  68652. # try to emulate it.
  68653. -case $1 in
  68654. +case $program in
  68655. aclocal*)
  68656. echo 1>&2 "\
  68657. WARNING: \`$1' is $msg. You should only need it if
  68658. @@ -148,7 +156,7 @@
  68659. touch aclocal.m4
  68660. ;;
  68661. - autoconf)
  68662. + autoconf*)
  68663. echo 1>&2 "\
  68664. WARNING: \`$1' is $msg. You should only need it if
  68665. you modified \`${configure_ac}'. You might want to install the
  68666. @@ -157,7 +165,7 @@
  68667. touch configure
  68668. ;;
  68669. - autoheader)
  68670. + autoheader*)
  68671. echo 1>&2 "\
  68672. WARNING: \`$1' is $msg. You should only need it if
  68673. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  68674. @@ -187,7 +195,7 @@
  68675. while read f; do touch "$f"; done
  68676. ;;
  68677. - autom4te)
  68678. + autom4te*)
  68679. echo 1>&2 "\
  68680. WARNING: \`$1' is needed, but is $msg.
  68681. You might have modified some files without having the
  68682. @@ -210,7 +218,7 @@
  68683. fi
  68684. ;;
  68685. - bison|yacc)
  68686. + bison*|yacc*)
  68687. echo 1>&2 "\
  68688. WARNING: \`$1' $msg. You should only need it if
  68689. you modified a \`.y' file. You may need the \`Bison' package
  68690. @@ -240,7 +248,7 @@
  68691. fi
  68692. ;;
  68693. - lex|flex)
  68694. + lex*|flex*)
  68695. echo 1>&2 "\
  68696. WARNING: \`$1' is $msg. You should only need it if
  68697. you modified a \`.l' file. You may need the \`Flex' package
  68698. @@ -263,7 +271,7 @@
  68699. fi
  68700. ;;
  68701. - help2man)
  68702. + help2man*)
  68703. echo 1>&2 "\
  68704. WARNING: \`$1' is $msg. You should only need it if
  68705. you modified a dependency of a manual page. You may need the
  68706. @@ -277,11 +285,11 @@
  68707. else
  68708. test -z "$file" || exec >$file
  68709. echo ".ab help2man is required to generate this page"
  68710. - exit 1
  68711. + exit $?
  68712. fi
  68713. ;;
  68714. - makeinfo)
  68715. + makeinfo*)
  68716. echo 1>&2 "\
  68717. WARNING: \`$1' is $msg. You should only need it if
  68718. you modified a \`.texi' or \`.texinfo' file, or any other file
  68719. @@ -310,7 +318,7 @@
  68720. touch $file
  68721. ;;
  68722. - tar)
  68723. + tar*)
  68724. shift
  68725. # We have already tried tar in the generic part.
  68726. @@ -363,5 +371,6 @@
  68727. # eval: (add-hook 'write-file-hooks 'time-stamp)
  68728. # time-stamp-start: "scriptversion="
  68729. # time-stamp-format: "%:y-%02m-%02d.%02H"
  68730. -# time-stamp-end: "$"
  68731. +# time-stamp-time-zone: "UTC"
  68732. +# time-stamp-end: "; # UTC"
  68733. # End: